8 export ARV_PACKAGES_DIR=/arvados/packages/centos6
10 rpm -qa | sort > "$ARV_PACKAGES_DIR/$1.before"
12 yum install --assumeyes $1
14 rpm -qa | sort > "$ARV_PACKAGES_DIR/$1.after"
17 diff "$ARV_PACKAGES_DIR/$1.before" "$ARV_PACKAGES_DIR/$1.after" >"$ARV_PACKAGES_DIR/$1.diff"
21 if scl enable python27 true 2>/dev/null ; then
22 SCL="scl enable python27"
28 rpm2cpio $(ls -t "$ARV_PACKAGES_DIR/$1"-*.rpm | head -n1) | cpio -idm 2>/dev/null
30 shared=$(find -name '*.so')
31 if test -n "$shared" ; then
32 for so in $shared ; do
34 echo "== Packages dependencies for $so =="
36 | awk '($3 ~ /^\//){print $3}' | sort -u | xargs rpm -qf | sort -u
40 if test -n "$SCL" ; then
41 exec $SCL "/jenkins/package-testing/common-test-packages.sh '$1'"
43 exec /jenkins/package-testing/common-test-packages.sh "$1"