File: tap-python.sh

package info (click to toggle)
confget 5.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 740 kB
  • sloc: python: 1,017; ansic: 893; sh: 770; makefile: 142
file content (21 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

# Find the available Python 3.x versions.

interpreters=''
if [ -n "$(command -v py3versions 2>/dev/null || true)" ]; then
	for ver in $(py3versions -s -v); do
		interpreters="$interpreters python$ver"
	done
fi

# Finally run the tests.

for python in $interpreters; do
	printf -- '\n\n============ Testing %s\n\n' "$python"
	env CONFGET="$python -Wignore::SyntaxWarning -m confget" prove t
done

printf -- '\n\n============ The TAP tests passed for all Python versions\n\n'