[med-svn] [pftools] 01/01: Run build time test

Andreas Tille tille at debian.org
Wed Mar 22 15:01:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository pftools.

commit 58f0c7636d5ab8e594714d3b2eba64dc8e635e3f
Author: Andreas Tille <tille at debian.org>
Date:   Wed Mar 22 16:00:58 2017 +0100

    Run build time test
---
 debian/clean | 2 ++
 debian/rules | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/clean b/debian/clean
index 9daeafb..29ce096 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,3 @@
 test
+test.build
+test.compare
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 79f4ebb..d7e3675 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,3 +39,11 @@ override_dh_installexamples:
 	    -e "1a cp -a /usr/lib/$(DEBPKGNAME)/*.prf ." \
 	    -e "1a cp -a /usr/lib/$(DEBPKGNAME)/*.seq ." \
 	    debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/examples/test.sh
+
+override_dh_auto_test:
+	dh_auto_test
+	. ./test.sh | \
+	    sed -e '/^MA/s/\(N_SCORE=[68].5\)0*/\1/' \
+	        -e '/^DT  */d' > test.build
+	grep -v '^DT  *' test.out > test.compare
+	diff -u test.compare test.build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pftools.git



More information about the debian-med-commit mailing list