[med-svn] r7459 - trunk/packages/ssake/trunk/debian

Charles Plessy plessy at alioth.debian.org
Mon Aug 15 05:07:26 UTC 2011


Author: plessy
Date: 2011-08-15 05:07:25 +0000 (Mon, 15 Aug 2011)
New Revision: 7459

Modified:
   trunk/packages/ssake/trunk/debian/changelog
   trunk/packages/ssake/trunk/debian/rules
   trunk/packages/ssake/trunk/debian/ssake-examples.README.Debian
Log:
Implement rudimentary regression tests.


Modified: trunk/packages/ssake/trunk/debian/changelog
===================================================================
--- trunk/packages/ssake/trunk/debian/changelog	2011-08-15 04:24:35 UTC (rev 7458)
+++ trunk/packages/ssake/trunk/debian/changelog	2011-08-15 05:07:25 UTC (rev 7459)
@@ -7,6 +7,7 @@
   * Corrected VCS URLs (debian/control).
   * Incremented Standards-Version to indicate conformance with Policy 3.9.2.
     (debian/control, changes needed.)
+  * Implement rudimentary regression tests (debian/rules).
 
  -- Charles Plessy <plessy at debian.org>  Mon, 15 Aug 2011 13:09:18 +0900
 

Modified: trunk/packages/ssake/trunk/debian/rules
===================================================================
--- trunk/packages/ssake/trunk/debian/rules	2011-08-15 04:24:35 UTC (rev 7458)
+++ trunk/packages/ssake/trunk/debian/rules	2011-08-15 05:07:25 UTC (rev 7459)
@@ -8,9 +8,20 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 
+BINDIR := $(CURDIR)/debian/$(pkg)/usr/bin
+DOCDIR := $(CURDIR)/debian/$(examples)/usr/share/doc/$(pkg)
+
 install/$(pkg)::
-	cp -a SSAKE `pwd`/debian/$(pkg)/usr/bin/ssake
-	cp -a tools/TQS.py `pwd`/debian/$(pkg)/usr/bin/tqs
+	cp -a SSAKE $(BINDIR)/ssake
+	cp -a tools/TQS.py $(BINDIR)/tqs
 
 install/$(examples)::
-	cp -a test/* `pwd`/debian/$(examples)/usr/share/doc/$(pkg)/examples
+	cp -a test/* $(DOCDIR)/examples
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+TESTDIR := $(shell mktemp -d)
+binary/$(pkg)::
+	cp -a $(DOCDIR)/examples/* $(TESTDIR)
+	cd $(TESTDIR) && gunzip *.gz && $(BINDIR)/ssake -f Herpesvirus_3.60kb.reads.fa -m 16 -o 2 -r 0.6 -p 0 -t 0 -c 1 -w 5 -b myFirstSSAKErun
+	rm -rf $(TESTDIR)
+endif

Modified: trunk/packages/ssake/trunk/debian/ssake-examples.README.Debian
===================================================================
--- trunk/packages/ssake/trunk/debian/ssake-examples.README.Debian	2011-08-15 04:24:35 UTC (rev 7458)
+++ trunk/packages/ssake/trunk/debian/ssake-examples.README.Debian	2011-08-15 05:07:25 UTC (rev 7459)
@@ -8,10 +8,10 @@
 
    cp -a /usr/share/doc/ssake/examples/* .
    gunzip *.gz
-   ssake -f Herpesvirus_3.60kb.reads.fa -m 16 -o 2 -r 0.6 -p 0 -t 0
+   ssake -f Herpesvirus_3.60kb.reads.fa -m 16 -o 2 -r 0.6 -p 0 -t 0 -c 1 -w 5 -b myFirstSSAKErun
 
 The resultting output file is marked with pid${PROCESSID} - you might
 like to compare with the example output files.
 
  -- Andreas Tille <tille at debian.org>  Mon, 24 Nov 2008 13:12:38 +0100
- 
\ No newline at end of file
+ 




More information about the debian-med-commit mailing list