File: upstream-python3

package info (click to toggle)
pyswarms 1.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 33,556 kB
  • sloc: python: 4,109; makefile: 240; sh: 32
file content (17 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Run python3-pyswarms tests using the default Python 3 version. Assumes
# $AUTOPKGTEST_TMP is set, see /usr/share/doc/autopkgtest/README.package-tests.rst.gz
set -efu

SOURCE_BASE="$PWD"
for interpreter in `py3versions --supported 2>/dev/null`
do
	echo "=== Testing with $interpreter ==="
	# We just copy the entire test suite to the $AUTOPKGTEST_TMP directory and
	# run the tests from within there.
	cd "$SOURCE_BASE"
	mkdir "$AUTOPKGTEST_TMP"/$interpreter
	cp -r tests "$AUTOPKGTEST_TMP"/$interpreter/
	cd "$AUTOPKGTEST_TMP"/$interpreter
	$interpreter -m pytest
done