Merge branch '21121-cluster-activity' refs #21121
[arvados.git] / build / package-testing / common-test-packages.sh
1 #!/bin/sh
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 set -eu
7
8 FAIL=0
9
10 echo
11
12 while read so && [ -n "$so" ]; do
13     if ldd "$so" | grep "not found" ; then
14         echo "^^^ Missing while scanning $so ^^^"
15         FAIL=1
16     fi
17 done <<EOF
18 $(find -name '*.so')
19 EOF
20
21 if test -x "/jenkins/package-testing/test-package-$1.sh" ; then
22     if ! "/jenkins/package-testing/test-package-$1.sh" ; then
23        FAIL=1
24     fi
25 fi
26
27 if test $FAIL = 0 ; then
28    echo "Package $1 passed"
29 fi
30
31 exit $FAIL