debian/tests/unittests
raw| 1 | #!/bin/sh |
| 2 | set -efu |
| 3 | |
| 4 | pys="$(py3versions -s 2> /dev/null)" |
| 5 | |
| 6 | cp -a README-template.md test "$AUTOPKGTEST_TMP" |
| 7 | ln -s /usr/lib/nagios/plugins/check_systemd "$AUTOPKGTEST_TMP/check_systemd.py" |
| 8 | cd "$AUTOPKGTEST_TMP" |
| 9 | |
| 10 | for py in $pys; do |
| 11 | echo "=== $py ===" |
| 12 | PYTHONPATH=. $py -m pytest -k 'not test_entry_point' test 2>&1 |
| 13 | done |