[med-svn] [eigensoft] 01/01: Added a simple autopkgtest script to verify that at least some of the binaries are able to run.

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Feb 5 19:01:48 UTC 2016


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

pere pushed a commit to branch master
in repository eigensoft.

commit 12401112fbe3f59b50ccb848eba40321b7a1b70c
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Feb 5 19:01:43 2016 +0000

    Added a simple autopkgtest script to verify that at least some of the binaries are able to run.
---
 debian/changelog          |  2 ++
 debian/tests/control      |  2 ++
 debian/tests/test-working | 21 +++++++++++++++++++++
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 11962b5..0303bab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,8 @@ eigensoft (6.0.1+ds-1) UNRELEASED; urgency=medium
   [ Petter Reinholdtsen ]
   * Added lapacke.patch to link with -llapacke and -llapack.
   * Added liblapacke-dev as build-dependency.
+  * Added a simple autopkgtest script to verify that at least some of the
+    binaries are able to run.
 
  -- Andreas Tille <tille at debian.org>  Tue, 26 Jan 2016 12:55:32 +0100
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..9d98f46
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Depends: @
+Tests: test-working
diff --git a/debian/tests/test-working b/debian/tests/test-working
new file mode 100755
index 0000000..e7541fb
--- /dev/null
+++ b/debian/tests/test-working
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# Check if all required libraries are available.
+
+isusageprinted() {
+    if bin/"$1" 2>&1 | grep -q Usage ; then
+	echo "success: $1 print usage information"
+    else
+	echo "error: $1 do not print usage information"
+    fi
+}
+
+# These print usage information
+for p in eigenstrat eigenstratQTL pca ; do
+    isusageprinted $p
+done
+
+# These do not:
+# baseprog fixgreen smarteigenstrat convertf gc.perl
+# smarteigenstrat.perl mergeit smartpca smartpca.perl
+# evec2pca-ped.perl pcatoy smartrel evec2pca.perl ploteig twstats

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



More information about the debian-med-commit mailing list