Commit d4ebd18b authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Add autopkgtest

parent ff982f2b
Loading
Loading
Loading
Loading

debian/README.test

0 → 100644
+8 −0
Original line number Diff line number Diff line
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.
+1 −0
Original line number Diff line number Diff line
@@ -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@gmail.com>  Sat, 14 Dec 2019 22:20:18 +0100

debian/tests/control

0 → 100644
+3 −0
Original line number Diff line number Diff line
Tests: run-unit-test
Depends: @, python3-setuptools, python3-nose
Restrictions: allow-stderr
+21 −0
Original line number Diff line number Diff line
#!/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