This is an automated email from the git hooks/post-receive script. sascha-guest pushed a commit to branch master in repository kmc.
commit 4587d58e1afe482b7e365a655c12436374cebe8b Author: Sascha Steinbiss <sas...@steinbiss.name> Date: Thu Dec 24 07:14:24 2015 +0000 add autopkgtest --- debian/changelog | 3 ++- debian/control | 1 + debian/source/include-binaries | 1 + debian/tests/build-lib | 23 +++++++++++++++++++++++ debian/tests/control | 2 ++ debian/tests/sample_6.fastq.gz | Bin 0 -> 18506 bytes 6 files changed, 29 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index c152a2f..53bd5d6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,8 @@ kmc (2.3+dfsg-1) UNRELEASED; urgency=medium [ Sascha Steinbiss ] * New upstream release - * TODO: Man page creation needs rework w.r.t. new 'kmc_tools' binary + * Incorporate new 'kmc_tools' executable and manpages + * Add autopkgtest -- Sascha Steinbiss <sas...@steinbiss.name> Sat, 19 Dec 2015 14:51:54 +0000 diff --git a/debian/control b/debian/control index dda4057..979b08e 100644 --- a/debian/control +++ b/debian/control @@ -14,6 +14,7 @@ Build-Depends: debhelper (>= 9), ruby-ronn, d-shlibs Standards-Version: 3.9.6 +Testsuite: autopkgtest Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/kmc.git Vcs-Git: git://anonscm.debian.org/debian-med/kmc.git Homepage: http://sun.aei.polsl.pl/kmc diff --git a/debian/source/include-binaries b/debian/source/include-binaries new file mode 100644 index 0000000..019b619 --- /dev/null +++ b/debian/source/include-binaries @@ -0,0 +1 @@ +debian/tests/sample_6.fastq.gz diff --git a/debian/tests/build-lib b/debian/tests/build-lib new file mode 100755 index 0000000..87ac539 --- /dev/null +++ b/debian/tests/build-lib @@ -0,0 +1,23 @@ +#!/bin/sh +# autopkgtest check: Build and run a program against libkmc +# Author: Sascha Steinbiss <sas...@steinbiss.name> +set -e + +ORIGDIR=$(pwd) +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM + +g++ kmc_dump/*cpp -std=c++11 -lkmc -o $WORKDIR/my_kmcdump +[ -x $WORKDIR/my_kmcdump ] +echo "build: OK" + +cd $WORKDIR +kmc -ci1 -m1 -k28 $ORIGDIR/debian/tests/sample_6.fastq.gz 1 . +ls -Al +[ -s 1.kmc_suf ] +[ -s 1.kmc_pre ] +echo "kmc: OK" + +./my_kmcdump 1 out +[ -s out ] +echo "run: OK" diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..582a147 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: build-lib +Depends: @, build-essential diff --git a/debian/tests/sample_6.fastq.gz b/debian/tests/sample_6.fastq.gz new file mode 100644 index 0000000..0c977fe Binary files /dev/null and b/debian/tests/sample_6.fastq.gz differ -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/kmc.git _______________________________________________ debian-med-commit mailing list debian-med-commit@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit