[med-svn] [Git][med-team/harvest-tools][master] 4 commits: Add autopkgtests

Nilesh Patra gitlab at salsa.debian.org
Wed Aug 26 16:21:42 BST 2020



Nilesh Patra pushed to branch master at Debian Med / harvest-tools


Commits:
f30123c3 by Nilesh Patra at 2020-08-26T15:11:58+00:00
Add autopkgtests

- - - - -
edde6ff2 by Nilesh Patra at 2020-08-26T20:46:10+05:30
Update changelog

- - - - -
dd452bdc by Nilesh Patra at 2020-08-26T20:46:27+05:30
routine-update: debhelper-compat 13

- - - - -
666f57ad by Nilesh Patra at 2020-08-26T20:47:49+05:30
Update changelog

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/tests/control
- + debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+harvest-tools (1.3-6) unstable; urgency=medium
+
+  * Team Upload.
+  * Add autopkgtests
+  * debhelper-compat 13 (routine-update)
+
+ -- Nilesh Patra <npatra974 at gmail.com>  Wed, 26 Aug 2020 20:47:27 +0530
+
 harvest-tools (1.3-5) unstable; urgency=medium
 
   [ Steffen Möller ]


=====================================
debian/control
=====================================
@@ -3,7 +3,7 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
 Uploaders: Andreas Tille <tille at debian.org>
 Section: science
 Priority: optional
-Build-Depends: debhelper-compat (= 12),
+Build-Depends: debhelper-compat (= 13),
                cython3,
                python3-setuptools,
                protobuf-compiler,


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,4 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
+


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,32 @@
+#!/bin/bash
+set -e
+
+pkg=harvest-tools
+CUR_DIR=`pwd`
+
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp ${CUR_DIR}/test/* -a "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+gunzip -r *
+
+echo 'Test 1'
+echo 'convert to .ggr file'
+harvesttools -x test2.xmfa -f test2.fna -g test2.vcf -n test2.tree
+harvesttools -g test2.vcf -f test2.fna -x test2.xmfa -o test2.ggr
+[ -s test2.tree ] || exit 1
+[ -s test2.ggr ] || exit 1
+echo 'PASS'
+echo
+
+echo 'Test 2'
+echo 'Recover into fna format'
+harvesttools -i test2.ggr -F out.fna
+diff -u test2.fna out.fna
+echo 'PASS'
+echo '============================================================'
+



View it on GitLab: https://salsa.debian.org/med-team/harvest-tools/-/compare/677a231907374b2a0cc182c8a7cce2ec21d345a1...666f57ad63249ed072bca91e0051931ca47db010

-- 
View it on GitLab: https://salsa.debian.org/med-team/harvest-tools/-/compare/677a231907374b2a0cc182c8a7cce2ec21d345a1...666f57ad63249ed072bca91e0051931ca47db010
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/20200826/4c40b817/attachment-0001.html>


More information about the debian-med-commit mailing list