[med-svn] [Git][med-team/qiime][master] Add autopkgtest

Liubov Chuprikova gitlab at salsa.debian.org
Sat Dec 14 22:20:51 GMT 2019



Liubov Chuprikova pushed to branch master at Debian Med / qiime


Commits:
d4ebd18b by Liubov Chuprikova at 2019-12-14T22:20:41Z
Add autopkgtest

- - - - -


4 changed files:

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


Changes:

=====================================
debian/README.test
=====================================
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+    sh run-unit-test
+
+in order to confirm its integrity.


=====================================
debian/changelog
=====================================
@@ -3,6 +3,7 @@ qiime (2019.10.0-1) UNRELEASED; urgency=medium
   * New upstream version
   * Standards-Version: 4.4.1
   * Remove trailing whitespace in debian/changelog
+  * Add autopkgtest 
 
  -- Liubov Chuprikova <chuprikovalv at gmail.com>  Sat, 14 Dec 2019 22:20:18 +0100
 


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,21 @@
+#!/bin/bash
+set -e
+
+pkg=qiime
+
+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 -a /usr/lib/python3/dist-packages/${pkg}* "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+
+if [ ! -e /usr/bin/nosetests3 ] ; then
+	echo "Please install package python3-nose to run this script!"
+	exit 1
+fi
+
+# Run build-time tests
+QIIMETEST= nosetests3



View it on GitLab: https://salsa.debian.org/med-team/qiime/commit/d4ebd18b386bcef74a9890fb74f0dd0e86bc65ca

-- 
View it on GitLab: https://salsa.debian.org/med-team/qiime/commit/d4ebd18b386bcef74a9890fb74f0dd0e86bc65ca
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/20191214/6f16fbd8/attachment-0001.html>


More information about the debian-med-commit mailing list