Add 'build/' from commit '555b039609a3c8700c27767c255fdfe00eb42063'
[arvados.git] / build / jenkins / 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