[med-svn] r12420 - in trunk/packages/mafft/trunk/debian: . tests

Charles Plessy plessy at alioth.debian.org
Sun Oct 14 06:26:25 UTC 2012


Author: plessy
Date: 2012-10-14 06:26:24 +0000 (Sun, 14 Oct 2012)
New Revision: 12420

Added:
   trunk/packages/mafft/trunk/debian/tests/
   trunk/packages/mafft/trunk/debian/tests/control
   trunk/packages/mafft/trunk/debian/tests/with-example-data
Modified:
   trunk/packages/mafft/trunk/debian/changelog
   trunk/packages/mafft/trunk/debian/rules
Log:
Test for regressions with autopkgtest insted of doing it at build time.

Try for instance: sudo adt-run --no-built-binaries mafft_6.940-1.dsc --- adt-virt-null


Modified: trunk/packages/mafft/trunk/debian/changelog
===================================================================
--- trunk/packages/mafft/trunk/debian/changelog	2012-10-14 05:57:56 UTC (rev 12419)
+++ trunk/packages/mafft/trunk/debian/changelog	2012-10-14 06:26:24 UTC (rev 12420)
@@ -3,6 +3,8 @@
   [ Charles Plessy ]
   * New upstream release (no new license nor copyright statement).
   * Removed unnecessary build-dependance on quilt.
+  * Test for regressions with autopkgtest insted of doing it at build time.
+    (debian/control, debian/tests/control, debian/tests/with-example-data)
 
   [ Andreas Tille ]
   * debian/upstream:

Modified: trunk/packages/mafft/trunk/debian/rules
===================================================================
--- trunk/packages/mafft/trunk/debian/rules	2012-10-14 05:57:56 UTC (rev 12419)
+++ trunk/packages/mafft/trunk/debian/rules	2012-10-14 06:26:24 UTC (rev 12420)
@@ -21,13 +21,9 @@
 override_dh_install:
 	$(MAKE) -C core PREFIX=$(CURDIR)/debian/mafft/usr/lib/mafft MANDIR=$(CURDIR)/debian/mafft/usr/share/man/man1 LIBDIR=$(CURDIR)/debian/mafft/usr/lib/mafft/lib/mafft install
 	rm $(CURDIR)/debian/mafft/usr/lib/mafft/lib/mafft/*.1
-	# Testing Mafft…
-	$(MAFFT) 				test/sample | diff test/sample.fftns2 -
-	$(MAFFT) --maxiterate 100 		test/sample | diff test/sample.fftnsi -
-	$(MAFFT) --globalpair 			test/sample | diff test/sample.gins1 -
-	$(MAFFT) --globalpair --maxiterate 100	test/sample | diff test/sample.ginsi -
-	$(MAFFT) --localpair			test/sample | diff test/sample.lins1 -
-	$(MAFFT) --localpair --maxiterate 100	test/sample | diff test/sample.linsi -
 
+override_dh_compress:
+	dh_compress -X test/sample
+
 override_dh_builddeb:
 	dh_builddeb -- -Z xz

Added: trunk/packages/mafft/trunk/debian/tests/control
===================================================================
--- trunk/packages/mafft/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/mafft/trunk/debian/tests/control	2012-10-14 06:26:24 UTC (rev 12420)
@@ -0,0 +1 @@
+Tests: with-example-data

Added: trunk/packages/mafft/trunk/debian/tests/with-example-data
===================================================================
--- trunk/packages/mafft/trunk/debian/tests/with-example-data	                        (rev 0)
+++ trunk/packages/mafft/trunk/debian/tests/with-example-data	2012-10-14 06:26:24 UTC (rev 12420)
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+MAFFT=mafft
+TESTDATADIR=/usr/share/doc/mafft/test/
+
+$MAFFT                               $TESTDATADIR/sample | diff $TESTDATADIR/sample.fftns2 -
+$MAFFT --maxiterate 100              $TESTDATADIR/sample | diff $TESTDATADIR/sample.fftnsi -
+$MAFFT --globalpair                  $TESTDATADIR/sample | diff $TESTDATADIR/sample.gins1 -
+$MAFFT --globalpair --maxiterate 100 $TESTDATADIR/sample | diff $TESTDATADIR/sample.ginsi -
+$MAFFT --localpair                   $TESTDATADIR/sample | diff $TESTDATADIR/sample.lins1 -
+$MAFFT --localpair --maxiterate 100  $TESTDATADIR/sample | diff $TESTDATADIR/sample.linsi -




More information about the debian-med-commit mailing list