[med-svn] [libssw] 02/02: add autopkgtests
Sascha Steinbiss
satta at debian.org
Fri Jun 24 12:35:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
satta pushed a commit to branch master
in repository libssw.
commit 41fa644f90932114a601843797edac4e6c6477aa
Author: Sascha Steinbiss <satta at debian.org>
Date: Fri Jun 24 12:19:11 2016 +0000
add autopkgtests
---
debian/control | 1 +
debian/tests/build-lib | 15 +++++++++++++++
debian/tests/build-lib-java | 14 ++++++++++++++
debian/tests/control | 5 +++++
4 files changed, 35 insertions(+)
diff --git a/debian/control b/debian/control
index 31776f7..28f9d96 100644
--- a/debian/control
+++ b/debian/control
@@ -9,6 +9,7 @@ Build-Depends: debhelper (>= 9),
dh-autoreconf,
zlib1g-dev
Standards-Version: 3.9.8
+Testsuite: autopkgtest
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libssw.git
Vcs-Git: https://anonscm.debian.org/git/debian-med/libssw.git
Homepage: https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library
diff --git a/debian/tests/build-lib b/debian/tests/build-lib
new file mode 100755
index 0000000..c821768
--- /dev/null
+++ b/debian/tests/build-lib
@@ -0,0 +1,15 @@
+#!/bin/sh
+# autopkgtest check: Build and run test tools against libssw
+# Author: Sascha Steinbiss <satta at debian.org>
+set -e
+
+SRC=$(pwd)/src
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+gcc -o example_c $SRC/example.c -lm -lz -lssw
+./example_c
+
+g++ -o example_cpp $SRC/example.cpp -lm -lz -lssw
+./example_cpp
diff --git a/debian/tests/build-lib-java b/debian/tests/build-lib-java
new file mode 100755
index 0000000..b5b3394
--- /dev/null
+++ b/debian/tests/build-lib-java
@@ -0,0 +1,14 @@
+#!/bin/sh
+# autopkgtest check: Build and run a test tool against the Java library
+# Author: Sascha Steinbiss <satta at debian.org>
+set -e
+
+SRC=$(pwd)/src
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+mkdir ssw
+cp $SRC/ssw/Example.java ssw
+javac -cp /usr/share/java/ssw.jar ssw/Example.java
+java -cp /usr/share/java/ssw.jar:. ssw.Example
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..86d24ae
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: build-lib
+Depends: libssw0, libssw-dev, build-essential, zlib1g-dev
+
+Tests: build-lib-java
+Depends: libssw-java, default-jdk-headless
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libssw.git
More information about the debian-med-commit
mailing list