b855e560dca546c6f561713d7ba9fab6d82f10b3
[ci-management.git] / jjb / scripts / vpp / dpdk-rdma-version-mismatch.sh
1 #!/bin/bash
2
3 # Copyright (c) 2022 Cisco and/or its affiliates.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 echo "---> jjb/scripts/vpp/dpdk-rdma-version-mismatch.sh"
17
18 set -euxo pipefail
19
20 line="*************************************************************************"
21 EXTERNAL_BUILD_DIR="$WORKSPACE/build/external"
22 RETVAL="0"
23 MISMATCH_RESULT="INCLUDED IN"
24
25 echo "sha1sum of this script: ${0}"
26 sha1sum $0
27
28 make -C "$EXTERNAL_BUILD_DIR" build-deb
29 source "$EXTERNAL_BUILD_DIR/dpdk_mlx_default.sh" || true
30
31 if [ "${DPDK_MLX_DEFAULT-}" = "n" ] ; then
32     MISMATCH_RESULT="MISSING FROM"
33     RETVAL="1"
34 fi
35 echo -e "\n$line\n* MLX DPDK DRIVER $MISMATCH_RESULT VPP-EXT-DEPS PACKAGE\n$line\n"
36 exit $RETVAL