[med-svn] [Git][med-team/kmer][master] Add autopkgtest to test atac for now

Liubov Chuprikova gitlab at salsa.debian.org
Fri Jun 15 11:08:50 BST 2018


Liubov Chuprikova pushed to branch master at Debian Med / kmer


Commits:
50805531 by Liubov Chuprikova at 2018-06-15T12:06:31+02:00
Add autopkgtest to test atac for now

- - - - -


5 changed files:

- debian/atac.docs
- + debian/source/include-binaries
- + debian/tests/atac-unit-test
- + debian/tests/control
- + debian/tests/test-data/test_data.tar.gz


Changes:

=====================================
debian/atac.docs
=====================================
--- a/debian/atac.docs
+++ b/debian/atac.docs
@@ -1 +1,3 @@
 README.atac
+debian/tests/atac-unit-test
+debian/tests/test-data/test_data.tar.gz


=====================================
debian/source/include-binaries
=====================================
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1 @@
+debian/tests/test-data/test_data.tar.gz


=====================================
debian/tests/atac-unit-test
=====================================
--- /dev/null
+++ b/debian/tests/atac-unit-test
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+pkg="atac"
+
+if [ "$AUTOPKGTEST_TMP" = "" ]; then
+    AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+    trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $AUTOPKGTEST_TMP
+cp -a /usr/share/doc/${pkg}/test_data.tar.gz .
+tar -xzvf *.tar.gz; rm *.tar.gz
+
+# Run atac:
+atac -meryldir meryldir -dir results -id1 Ecoli -seq1 GCF_000195995.1_ASM19599v1_genomic.fna \
+	-id2 Sent -seq2 GCF_000005845.2_ASM584v2_genomic.fna


=====================================
debian/tests/control
=====================================
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: atac-unit-test
+Depends: @
+Restrictions: allow-stderr


=====================================
debian/tests/test-data/test_data.tar.gz
=====================================
Binary files /dev/null and b/debian/tests/test-data/test_data.tar.gz differ



View it on GitLab: https://salsa.debian.org/med-team/kmer/commit/5080553126487328686f72ec0ade5a83a47ec768

-- 
View it on GitLab: https://salsa.debian.org/med-team/kmer/commit/5080553126487328686f72ec0ade5a83a47ec768
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180615/0b8603a5/attachment-0001.html>


More information about the debian-med-commit mailing list