Merge branch 'master' into wtsi-hgi-8087-arv-cli-request-body-from-file
[arvados.git] / build / package-testing / common-test-packages.sh
1 #!/bin/sh
2
3 set -eu
4
5 FAIL=0
6
7 echo
8
9 while read so && [ -n "$so" ]; do
10     if ldd "$so" | grep "not found" ; then
11         echo "^^^ Missing while scanning $so ^^^"
12         FAIL=1
13     fi
14 done <<EOF
15 $(find -name '*.so')
16 EOF
17
18 if test -x "/jenkins/package-testing/test-package-$1.sh" ; then
19     if ! "/jenkins/package-testing/test-package-$1.sh" ; then
20        FAIL=1
21     fi
22 fi
23
24 if test $FAIL = 0 ; then
25    echo "Package $1 passed"
26 fi
27
28 exit $FAIL