File: upstream-tests

package info (click to toggle)
python-tempora 5.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: python: 636; sh: 12; makefile: 7
file content (19 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e -u

SOURCE_DIR="$(pwd)"

for py in $(py3versions -s 2>/dev/null); do
	cd "$AUTOPKGTEST_TMP"
	# cleanup
	rm -vrf "$AUTOPKGTEST_TMP"/*
	# create a fresh copy of the tests
	cp -va "$SOURCE_DIR"/pytest.ini "$SOURCE_DIR"/tests "$AUTOPKGTEST_TMP"/

	echo "Running testsuite with $py:"
	$py -m pytest tests
	cd /usr/lib/python3/dist-packages/tempora
	echo "Running doctests with $py:"
	$py -m pytest --doctest-modules .
done