debian/tests/unittests-default-python3
raw| 1 | #!/bin/sh |
| 2 | # Run python3-cachetools unit tests using the default Python 3 version. Assumes |
| 3 | # $AUTOPKGTEST_TMP is set, see /usr/share/doc/autopkgtest/README.package-tests.rst.gz |
| 4 | set -e |
| 5 | |
| 6 | # We just copy the entire test suite to the $AUTOPKGTEST_TMP directory and run the |
| 7 | # tests from within there. |
| 8 | mkdir "$AUTOPKGTEST_TMP"/python3 |
| 9 | cp -r tests "$AUTOPKGTEST_TMP"/python3 |
| 10 | cd "$AUTOPKGTEST_TMP"/python3 |
| 11 | python3 -m unittest discover -v |