[med-svn] r18401 - trunk/packages/circos/trunk/debian/tests
Andreas Tille
tille at moszumanska.debian.org
Sat Oct 25 07:18:47 UTC 2014
Author: tille
Date: 2014-10-25 07:18:47 +0000 (Sat, 25 Oct 2014)
New Revision: 18401
Modified:
trunk/packages/circos/trunk/debian/tests/run-unit-test
Log:
After installing the additional dependency and doing proper testing the test fails ...
Modified: trunk/packages/circos/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/circos/trunk/debian/tests/run-unit-test 2014-10-25 07:17:15 UTC (rev 18400)
+++ trunk/packages/circos/trunk/debian/tests/run-unit-test 2014-10-25 07:18:47 UTC (rev 18401)
@@ -7,21 +7,22 @@
cd $ADTTMP
cp -a /usr/share/doc/$pkg/examples/* $ADTTMP
find . -name "*.gz" -exec gunzip \{\} \;
-cp -a circos.svg circos-orig.svg
-cp -a circos.png circos-orig.png
+mv circos.svg circos-orig.svg
+mv circos.png circos-orig.png
circos -conf circos.conf
-diff circos-orig.svg circos.svg
-if [ ! $? ] ; then
+if [ ! -e circos.svg ] ; then
echo "Test failed"
exit 1
-else
- echo "Test passed"
fi
-cmp circos-orig.png circos.png
-if [ ! $? ] ; then
+if diff -q circos-orig.svg circos.svg ; then
echo "Test failed"
exit 1
+fi
+
+if cmp -q circos-orig.png circos.png ; then
+ echo "Test failed"
+ exit 1
else
echo "Test passed"
fi
More information about the debian-med-commit
mailing list