8008: Test each Arvados package individually.
[arvados-dev.git] / jenkins / deb-common-test-packages.sh
1 #!/bin/bash
2
3 set -eu
4
5 # Multiple .deb based distros symlink to this script, so extract the target
6 # from the invocation path.
7 target=$(echo $0 | sed 's/.*test-packages-\([^.]*\)\.sh.*/\1/')
8
9 apt-get -qq update
10 apt-get --assume-yes --force-yes install $1
11
12 mkdir -p /tmp/opts
13 cd /tmp/opts
14
15 dpkg-deb -x /arvados/packages/$target/$1-*.deb .
16
17 for so in $(find . -name "*.so") ; do
18     echo
19     echo "== Packages dependencies for $so =="
20     ldd $so | awk '($3 ~ /^\//){print $3}' | sort -u | xargs dpkg -S | cut -d: -f1 | sort -u
21 done
22
23 exec /jenkins/common-test-packages.sh $1