File: python3

package info (click to toggle)
pyfftw 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,080 kB
  • sloc: python: 9,425; ansic: 681; makefile: 130; sh: 16
file content (16 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -eu

pys="$(py3versions -r 2>/dev/null)"

cp -a ./tests "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"

for py in $pys; do
	echo "=== $py ==="
	$py -m pytest 2>&1
	# show timer tests, comparing pyfftw against numpy.fft
	# (standard pytest captures output, use -s to display time tests)
	timetests=$( grep -l -E "timer_routine|Complex64FFTWTest" tests/test*.py --exclude=test_pyfftw_base.py )
	$py -m pytest -s -k "test_time or MultiThreaded" $timetests
done