File: upstream-tests

package info (click to toggle)
python-portend 2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 164 kB
  • sloc: python: 173; sh: 9; makefile: 3
file content (16 lines) | stat: -rwxr-xr-x 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e -u

SOURCE_DIR="$(pwd)"

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

	echo "Running testsuite with $py:"
	$py -m pytest
done