[med-svn] [Git][med-team/python-pynndescent][master] Get autopkgtest runner working
Diane Trout
gitlab at salsa.debian.org
Thu Jan 21 00:09:14 GMT 2021
Diane Trout pushed to branch master at Debian Med / python-pynndescent
Commits:
051fdc73 by Diane Trout at 2021-01-20T15:57:22-08:00
Get autopkgtest runner working
I replaced the previous run-unit-test template with something like
what what the Python team is using, though I had to adapt it for use
with nose instead of the more common pytest, additionally since the
upstream package doesn't install the tests, I had to tell nose where to
find the tests while still actually testing the installed package and
not the unpacked source tree.
- - - - -
2 changed files:
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: @
+Depends: @, python3-nose
Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -1,16 +1,10 @@
#!/bin/bash
set -e
-pkg=#PACKAGENAME#
-
-export LC_ALL=C.UTF-8
-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/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
-
-cd "${AUTOPKGTEST_TMP}"
-
-#do_stuff_to_test_package#
+SOURCE=$(pwd)
+for py in $(py3versions -r 2>/dev/null)
+do
+ cd "$AUTOPKGTEST_TMP"
+ echo "Testing with $py:"
+ http_proxy= $py -m nose -w ${SOURCE}/pynndescent/tests
+done
View it on GitLab: https://salsa.debian.org/med-team/python-pynndescent/-/commit/051fdc732b53d3eb4f6b16d210e67c627b84164f
--
View it on GitLab: https://salsa.debian.org/med-team/python-pynndescent/-/commit/051fdc732b53d3eb4f6b16d210e67c627b84164f
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/20210121/f43ca2ed/attachment-0001.html>
More information about the debian-med-commit
mailing list