| 1 |
#!/bin/sh |
| 2 |
set -eu |
| 3 |
|
| 4 |
pys="$(py3versions --supported 2>/dev/null)" |
| 5 |
|
| 6 |
cp -a ./tests "${AUTOPKGTEST_TMP}" |
| 7 |
cd "${AUTOPKGTEST_TMP}" |
| 8 |
|
| 9 |
for py in $pys; do |
| 10 |
echo "=== $py ===" |
| 11 |
$py -m pytest 2>&1 |
| 12 |
# show timer tests, comparing pyfftw against numpy.fft |
| 13 |
# (standard pytest captures output, use -s to display time tests) |
| 14 |
timetests=$( grep -l -E "timer_routine|Complex64FFTWTest" tests/test*.py --exclude=test_pyfftw_base.py ) |
| 15 |
$py -m pytest -s -k "test_time or MultiThreaded" $timetests |
| 16 |
done |