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/')
9 export ARV_PACKAGES_DIR="/arvados/packages/$target"
11 dpkg-query --show > "$ARV_PACKAGES_DIR/$1.before"
14 apt-get --assume-yes --allow-unauthenticated install "$1"
16 dpkg-query --show > "$ARV_PACKAGES_DIR/$1.after"
19 diff "$ARV_PACKAGES_DIR/$1.before" "$ARV_PACKAGES_DIR/$1.after" > "$ARV_PACKAGES_DIR/$1.diff"
25 export ARV_PACKAGES_DIR="/arvados/packages/$target"
27 dpkg-deb -x $(ls -t "$ARV_PACKAGES_DIR/$1"_*.deb | head -n1) .
29 while read so && [ -n "$so" ]; do
31 echo "== Packages dependencies for $so =="
32 ldd "$so" | awk '($3 ~ /^\//){print $3}' | sort -u | xargs dpkg -S | cut -d: -f1 | sort -u
37 exec /jenkins/package-testing/common-test-packages.sh "$1"