5 target=$(basename "$0" | grep -Eo '\bcentos[[:digit:]]+\b')
10 export ARV_PACKAGES_DIR="/arvados/packages/$target"
12 rpm -qa | sort > "$ARV_PACKAGES_DIR/$1.before"
14 yum install --assumeyes $1
16 rpm -qa | sort > "$ARV_PACKAGES_DIR/$1.after"
18 diff "$ARV_PACKAGES_DIR/$1".{before,after} >"$ARV_PACKAGES_DIR/$1.diff" || true
20 # Enable any Software Collections that the package depended on.
21 if [[ -d /opt/rh ]]; then
22 # We have to stage the list to a file, because `ls | while read` would
23 # make a subshell, causing the `source` lines to have no effect.
25 ls /opt/rh >"$scl_list"
27 # SCL scripts aren't designed to run with -eu.
30 source scl_source enable "$scl"
39 rpm2cpio $(ls -t "$ARV_PACKAGES_DIR/$1"-*.rpm | head -n1) | cpio -idm 2>/dev/null
41 find -name '*.so' | while read so; do
42 echo -e "\n== Packages dependencies for $so =="
44 | awk '($3 ~ /^\//){print $3}' | sort -u | xargs rpm -qf | sort -u
47 exec /jenkins/package-testing/common-test-packages.sh "$1"