Log package dependencies for each shared object. Add -q so make the logs a bit
authorPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 31 Aug 2015 15:18:05 +0000 (11:18 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 31 Aug 2015 15:18:05 +0000 (11:18 -0400)
less chatty.

jenkins/common-test-packages.sh
jenkins/deb-common-test-packages.sh
jenkins/run-test-packages.sh
jenkins/test-packages-centos6.sh

index 869f0544d6da8db388a9fb16755ada77f8a97c20..52bbba0ba1951fea6ea3efb563034e0c4416249e 100755 (executable)
@@ -2,6 +2,7 @@
 
 FAIL=0
 
+echo
 for so in $(find . -name "*.so") ; do
     if ldd $so | grep "not found" ; then
         echo "^^^ Missing while scanning $so ^^^"
@@ -9,6 +10,7 @@ for so in $(find . -name "*.so") ; do
     fi
 done
 
+echo
 if ! python <<EOF
 import arvados
 import arvados_fuse
index fbebe24acb465670fece6ffd7f4f4af07017093e..d781c8b80c62105e83721026758012f5bf90bdfa 100755 (executable)
@@ -24,8 +24,8 @@ if test "$1" = --run-test ; then
 fi
 
 echo "deb file:///mnt /" >>/etc/apt/sources.list
-apt-get update
-if ! apt-get --assume-yes --force-yes install python-arvados-python-client python-arvados-fuse ; then
+apt-get -qq update
+if ! apt-get -qq --assume-yes --force-yes install python-arvados-python-client python-arvados-fuse ; then
     exit 1
 fi
 
@@ -36,4 +36,10 @@ for r in /mnt/python-*amd64.deb ; do
     dpkg-deb -x $r .
 done
 
+for so in $(find . -name "*.so") ; do
+    echo
+    echo "== Packages dependencies for $so =="
+    ldd $so | awk '($3 ~ /^\//){print $3}' | sort -u | xargs dpkg -S | cut -d: -f1 | sort -u
+done
+
 exec /root/common-test.sh
index dce73623aad3ecae9971853185f8dc6c6b94734b..baca7b7b142aa745990a1a42a5d8ca590db23b2e 100755 (executable)
@@ -7,11 +7,17 @@ fi
 
 FAIL=0
 
+ERRORS=""
+
 for pkg in ./test-packages-*.sh ; do
+    echo
+    echo "== Running $pkg =="
+    echo
     if ! $pkg --run-test ; then
         FAIL=1
-        echo "$pkg has install errors"
+        ERRORS="$ERRORS\n$pkg has install errors"
     fi
 done
 
+echo $ERRORS
 exit $FAIL
index ea3ed097135ad7e7ec12d9712510afc21ee821fd..580bb27ec6b044acc289b5a0906e760237e8a3ab 100755 (executable)
@@ -23,10 +23,10 @@ if test "$1" = --run-test ; then
 fi
 
 if test "$1" = --install-scl ; then
-    yum install --assumeyes scl-utils
+    yum -q install --assumeyes scl-utils
     curl -L -O https://www.softwarecollections.org/en/scls/rhscl/python27/epel-6-x86_64/download/rhscl-python27-epel-6-x86_64.noarch.rpm
-    yum install --assumeyes rhscl-python27-epel-6-x86_64.noarch.rpm
-    yum install --assumeyes python27
+    yum -q install --assumeyes rhscl-python27-epel-6-x86_64.noarch.rpm
+    yum -q install --assumeyes python27
     exec scl enable python27 $0
 fi
 
@@ -38,9 +38,9 @@ gpgcheck=0
 enabled=1
 EOF
 
-yum clean all
-yum update
-if ! yum install --assumeyes python27-python-arvados-python-client python27-python-arvados-fuse ; then
+yum -q clean all
+yum -q update
+if ! yum -q install --assumeyes python27-python-arvados-python-client python27-python-arvados-fuse ; then
     exit 1
 fi
 
@@ -51,4 +51,10 @@ for r in /mnt/python27-python-*x86_64.rpm ; do
     rpm2cpio $r | cpio -idm
 done
 
+for so in $(find . -name "*.so") ; do
+    echo
+    echo "== Packages dependencies for $so =="
+    ldd $so | awk '($3 ~ /^\//){print $3}' | sort -u | xargs rpm -qf | sort -u
+done
+
 exec /root/common-test.sh