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 if [[ -f $(ls -t "$ARV_PACKAGES_DIR/$1"_*.deb 2>/dev/null | head -n1) ]] ; then
31 debpkg=$(ls -t "$ARV_PACKAGES_DIR/$1"_*.deb | head -n1)
33 debpkg=$(ls -t "$ARV_PACKAGES_DIR/processed/$1"_*.deb | head -n1)
38 while read so && [ -n "$so" ]; do
40 echo "== Packages dependencies for $so =="
41 ldd "$so" | awk '($3 ~ /^\//){print $3}' | sort -u | xargs dpkg -S | cut -d: -f1 | sort -u
46 exec /jenkins/package-testing/common-test-packages.sh "$1"