2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
8 # Multiple .deb based distros symlink to this script, so extract the target
9 # from the invocation path.
10 target=$(echo $0 | sed 's/.*test-packages-\([^.]*\)\.sh.*/\1/')
12 export ARV_PACKAGES_DIR="/arvados/packages/$target"
14 dpkg-query --show > "$ARV_PACKAGES_DIR/$1.before"
17 apt-get --assume-yes --allow-unauthenticated install "$1"
19 dpkg-query --show > "$ARV_PACKAGES_DIR/$1.after"
22 diff "$ARV_PACKAGES_DIR/$1.before" "$ARV_PACKAGES_DIR/$1.after" > "$ARV_PACKAGES_DIR/$1.diff"
28 export ARV_PACKAGES_DIR="/arvados/packages/$target"
30 dpkg-deb -x $(ls -t "$ARV_PACKAGES_DIR/$1"_*.deb | head -n1) .
32 while read so && [ -n "$so" ]; do
34 echo "== Packages dependencies for $so =="
35 ldd "$so" | awk '($3 ~ /^\//){print $3}' | sort -u | xargs dpkg -S | cut -d: -f1 | sort -u
40 exec /jenkins/package-testing/common-test-packages.sh "$1"