Debian Codegraph @

debian/tests/upstream-tests

raw
1 #!/bin/sh
2
3 set -e -u
4
5 # The test 'test_extended_templates' would need the package
6 # mkdocstrings-python-legacy which isn't available in the archive any more
7 # and wasn't coinstallable together with mkdocstrings-python-handlers.
8 # Thus the test is disabled.
9
10 cp -a *.md docs src tests "${AUTOPKGTEST_TMP}"
11
12 for py3vers in $(py3versions -s); do
13 echo
14 echo "***************************"
15 echo "*** Testing with ${py3vers}"
16 echo "***************************"
17 echo
18 cd ${AUTOPKGTEST_TMP} && \
19 echo "Content of current working folder:\n" && \
20 ls -la && \
21 echo "Running tests...\n" && \
22 ${py3vers} -m pytest -sv tests -k \
23 'not test_sphinx_load_mkdocstrings_inventory_file and not test_extended_templates' && \
24 rm -rf .pytest_cache || exit 1
25 done
26
27 echo
28
29 exit 0