[med-svn] [infernal] 01/01: Autopkgtests added

Canberk Koç cbk-guest at moszumanska.debian.org
Wed Jun 22 02:39:34 UTC 2016


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

cbk-guest pushed a commit to branch master
in repository infernal.

commit 6adbb8985b1efc5e16724bc15ffac53d2ee15619
Author: cbk-guest <cbk-guests at scm.alioth.debian.org>
Date:   Wed Jun 22 05:39:11 2016 +0300

    Autopkgtests added
---
 debian/changelog           | 10 ++++++++++
 debian/rules               | 15 +++++++++++++++
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 20 ++++++++++++++++++++
 4 files changed, 48 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 982fc2e..012cc89 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+infernal (1.1.1-6) UNRELEASED; urgency=medium
+
+  * Team upload.
+  [Canberk Koç]
+  * Added Autopkgtest suite
+  *debian/rules file changed
+  *debian/tests directory added 
+
+ -- Canberk Koç  <canberkkoc at gmail.com>  Wed, 22 Jun 2016 05:35:41 +0300
+
 infernal (1.1.1-5) UNRELEASED; urgency=medium
 
   * Move packaging from SVN to Git
diff --git a/debian/rules b/debian/rules
index 50faad4..3dc2b5b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+pkgdata:=infernal
+sampledir:=$(CURDIR)/debian/$(pkgdata)/usr/share/doc/$(pkgdata)/examples
+
 %:
 	dh  $@
 
@@ -23,3 +26,15 @@ override_dh_install:
 		ln -s cmalign $(CURDIR)/debian/infernal/usr/bin/$$bin ; \
 	    fi ; \
 	done
+
+override_dh_installexamples:
+	dh_installexamples
+	mkdir -p $(sampledir)/src/;
+	mkdir -p $(sampledir)/easel/miniapps/;
+	find ./src -name "*test" -exec cp \{\} $(sampledir)/src/ \;
+	cp ./src/itest_brute $(sampledir)/src/;
+	cp ./easel/miniapps/esl-reformat $(sampledir)/easel/miniapps/;
+	cp ./easel/miniapps/esl-shuffle $(sampledir)/easel/miniapps/;
+	cp ./easel/miniapps/esl-sfetch $(sampledir)/easel/miniapps/;
+	cp -aR testsuite $(sampledir)/;
+	cp ./easel/devkit/sqc $(sampledir)/;
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b8a7cf3
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions:
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..196ebe9
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+
+pkg="infernal"
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
+
+cd $AUTOPKGTEST_TMP
+
+find . -name "*.gz" -exec gunzip \{\} \;
+
+chmod -R +x .
+
+echo infernal testsuite
+find /usr/bin -name "cm*" -exec ln -s \{\} src \;
+./sqc 2 ./testsuite/testsuite.sqc . ./testsuite/..

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



More information about the debian-med-commit mailing list