[med-svn] r18399 - in trunk/packages/circos/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Sat Oct 25 07:10:52 UTC 2014
Author: tille
Date: 2014-10-25 07:10:51 +0000 (Sat, 25 Oct 2014)
New Revision: 18399
Added:
trunk/packages/circos/trunk/debian/README.test
trunk/packages/circos/trunk/debian/tests/
trunk/packages/circos/trunk/debian/tests/control
trunk/packages/circos/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/circos/trunk/debian/changelog
trunk/packages/circos/trunk/debian/docs
Log:
Add autopkgtest
Added: trunk/packages/circos/trunk/debian/README.test
===================================================================
--- trunk/packages/circos/trunk/debian/README.test (rev 0)
+++ trunk/packages/circos/trunk/debian/README.test 2014-10-25 07:10:51 UTC (rev 18399)
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+ sh run-unit-test
+
+in this directory.
Modified: trunk/packages/circos/trunk/debian/changelog
===================================================================
--- trunk/packages/circos/trunk/debian/changelog 2014-10-25 07:06:00 UTC (rev 18398)
+++ trunk/packages/circos/trunk/debian/changelog 2014-10-25 07:10:51 UTC (rev 18399)
@@ -3,6 +3,7 @@
* New upstream release
* cme fix dpkg-control
* debhelper 9
+ * Add autopkgtest
-- Andreas Tille <tille at debian.org> Sat, 25 Oct 2014 08:45:17 +0200
Modified: trunk/packages/circos/trunk/debian/docs
===================================================================
--- trunk/packages/circos/trunk/debian/docs 2014-10-25 07:06:00 UTC (rev 18398)
+++ trunk/packages/circos/trunk/debian/docs 2014-10-25 07:10:51 UTC (rev 18399)
@@ -2,3 +2,5 @@
README.tools
README.tutorials
fonts/README.fonts
+debian/README.test
+debian/tests/run-unit-test
Added: trunk/packages/circos/trunk/debian/tests/control
===================================================================
--- trunk/packages/circos/trunk/debian/tests/control (rev 0)
+++ trunk/packages/circos/trunk/debian/tests/control 2014-10-25 07:10:51 UTC (rev 18399)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
Added: trunk/packages/circos/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/circos/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/circos/trunk/debian/tests/run-unit-test 2014-10-25 07:10:51 UTC (rev 18399)
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+
+pkg=circos
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+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
+circos -conf circos.conf
+diff circos-orig.svg circos.svg
+if [ ! $? ] ; then
+ echo "Test failed"
+ exit 1
+else
+ echo "Test passed"
+fi
+
+cmp circos-orig.png circos.png
+if [ ! $? ] ; then
+ echo "Test failed"
+ exit 1
+else
+ echo "Test passed"
+fi
More information about the debian-med-commit
mailing list