[med-svn] [art-nextgen-simulation-tools] 01/05: Install some docs, fix tests, exclude more autogenerated autotools stuff

Andreas Tille tille at debian.org
Tue Feb 16 21:01:53 UTC 2016


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

tille pushed a commit to branch master
in repository art-nextgen-simulation-tools.

commit 6407bfd39661a8161c054c6d0a4c0afffb2190e7
Author: Andreas Tille <tille at debian.org>
Date:   Tue Feb 16 21:51:43 2016 +0100

    Install some docs, fix tests, exclude more autogenerated autotools stuff
---
 debian/README.test                          |  9 +++++++++
 debian/art-nextgen-simulation-tools.docs    |  6 ++++++
 debian/art-nextgen-simulation-tools.install |  1 +
 debian/copyright                            |  2 ++
 debian/rules                                |  7 ++++---
 debian/tests/control                        |  3 +++
 debian/tests/run-unit-test                  | 12 ++++++++++++
 7 files changed, 37 insertions(+), 3 deletions(-)

diff --git a/debian/README.test b/debian/README.test
index fc851bf..b38e4c8 100644
--- a/debian/README.test
+++ b/debian/README.test
@@ -1,3 +1,12 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you need to install the package
+artfastqgenerator-examples and than you can run
+
+   sh run-unit-test
+
+in this directory.
 
 
 In run_test_examples_SOLiD.sh
diff --git a/debian/art-nextgen-simulation-tools.docs b/debian/art-nextgen-simulation-tools.docs
new file mode 100644
index 0000000..37d0974
--- /dev/null
+++ b/debian/art-nextgen-simulation-tools.docs
@@ -0,0 +1,6 @@
+AUTHORS
+NEWS
+*README
+debian/README.test
+debian/tests/run-unit-test
+
diff --git a/debian/art-nextgen-simulation-tools.install b/debian/art-nextgen-simulation-tools.install
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/art-nextgen-simulation-tools.install
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/copyright b/debian/copyright
index 562c789..2f0a0a2 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -12,10 +12,12 @@ Files-Excluded: art_454
                 Makefile
                 Makefile.in
                 INSTALL
+                aclocal.m4
                 compile
                 config.h
                 config.log
                 config.status
+                configure
                 depcomp
                 install-sh
                 missing
diff --git a/debian/rules b/debian/rules
index 641c384..190e2d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,8 @@ override_dh_installexamples-indep:
 	mkdir -p debian/$(DATAPKG)/usr/share/doc/$(DEBPKGNAME)
 	mv debian/$(DATAPKG)/usr/share/doc/$(DATAPKG)/examples debian/$(DATAPKG)/usr/share/doc/$(DEBPKGNAME)
 	for ex in examples/run_test_examples_*.sh ; do \
-	    sed -e 's?=\.\./?/usr/bin/?' -e 's?^\.\./?/usr/bin/?' $$ex > debian/$(DATAPKG)/usr/share/doc/$(DEBPKGNAME)/examples/`basename $$ex` ; \
+	    sed -e 's?=\.\./?=/usr/bin/?' -e 's?^\.\./?/usr/bin/?' $$ex > debian/$(DATAPKG)/usr/share/doc/$(DEBPKGNAME)/examples/`basename $$ex` ; \
 	done
-	
-	
\ No newline at end of file
+
+override_dh_installchangelogs:
+	dh_installchangelogs ChangeLog
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..23711f1
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+pkg=art-nextgen-simulation-tools
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/examples/* .
+find . -name "*.gz" -exec gunzip \{\} \;
+. run_test_examples_454.sh
+. run_test_examples_SOLiD.sh
+. run_test_examples_illumina.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/art-nextgen-simulation-tools.git



More information about the debian-med-commit mailing list