Debian Codegraph @

debian/tests/upstream-tests

raw
1 #! /bin/sh
2
3 set -e
4
5 cp -r docs mkdocs ${AUTOPKGTEST_TMP}
6
7 # Note: Some tests within cli_tests.py are expected to fail,
8 # we remove the whole file before calling unittest.
9
10 for py3vers in $(py3versions -s); do
11 echo
12 echo "***************************"
13 echo "*** Testing with ${py3vers}"
14 echo "***************************"
15 echo
16 cd ${AUTOPKGTEST_TMP} && \
17 echo "Content of current working folder:\n" && \
18 ls -la && \
19 echo "Running tests...\n" && \
20 rm -f mkdocs/tests/cli_tests.py && \
21 ${py3vers} -m unittest discover -v -s mkdocs/tests -p "*_tests.py" && \
22 rm -rf .pytest_cache || exit 1
23 done
24 echo
25
26 exit 0