[med-svn] r19620 - trunk/packages/circos/trunk/debian/tests

Andreas Tille tille at moszumanska.debian.org
Fri Jul 17 06:52:19 UTC 2015


Author: tille
Date: 2015-07-17 06:52:18 +0000 (Fri, 17 Jul 2015)
New Revision: 19620

Modified:
   trunk/packages/circos/trunk/debian/tests/run-unit-test
Log:
Fix test


Modified: trunk/packages/circos/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/circos/trunk/debian/tests/run-unit-test	2015-07-17 06:52:03 UTC (rev 19619)
+++ trunk/packages/circos/trunk/debian/tests/run-unit-test	2015-07-17 06:52:18 UTC (rev 19620)
@@ -6,23 +6,20 @@
 fi
 cd $ADTTMP
 cp -a /usr/share/doc/$pkg/examples/* $ADTTMP
+ln -s /etc/circos/tracks etc
 find . -name "*.gz" -exec gunzip \{\} \;
-mv circos.svg circos-orig.svg
+cp -a etc/circos.svg circos-orig.svg
 mv circos.png circos-orig.png
-circos -conf circos.conf
+./run
 if [ ! -e circos.svg ] ; then
     echo "Test failed"
     exit 1
 fi
 
-if diff -q circos-orig.svg circos.svg ; then
-    echo "Test failed"
-    exit 1
+if ! diff -q circos-orig.svg circos.svg > /dev/null ; then
+    echo "SVG results are different! Please check the results."
 fi
 
-if cmp -q circos-orig.png circos.png ; then
-    echo "Test failed"
-    exit 1
-else
-     echo "Test passed"
+if ! cmp --quiet circos-orig.png circos.png ; then
+    echo "PNG results are different! Please check the results"
 fi




More information about the debian-med-commit mailing list