| 1 |
#!/bin/bash |
| 2 |
set -e |
| 3 |
|
| 4 |
DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) |
| 5 |
PYVER=$(py3versions -sv) |
| 6 |
|
| 7 |
declare -a SKIP_TEST_LIST |
| 8 |
|
| 9 |
# skip numba tests due to limited availability |
| 10 |
SKIP_TEST_LIST=(numba) |
| 11 |
|
| 12 |
# armel and riscv64 time out when running tests, so skip the slowest of them |
| 13 |
case $DEB_HOST_ARCH in |
| 14 |
armel|riscv64) |
| 15 |
# run verbose to monitor failing tests |
| 16 |
VERBOSE_TESTS="-v" |
| 17 |
SKIP_TEST_LIST=(${SKIP_TEST_LIST[@]} test_dof_transformations.py test_interpolation_between_elements.py) |
| 18 |
;; |
| 19 |
esac |
| 20 |
|
| 21 |
echo "skipping tests with SKIP_TEST_LIST=${SKIP_TEST_LIST[@]}" |
| 22 |
|
| 23 |
SKIP_TEST_KEYWORDS="" |
| 24 |
for t in ${SKIP_TEST_LIST[@]}; do |
| 25 |
if [ "x${SKIP_TEST_KEYWORDS}" = "x" ]; then |
| 26 |
SKIP_TEST_KEYWORDS=$t |
| 27 |
else |
| 28 |
SKIP_TEST_KEYWORDS="${SKIP_TEST_KEYWORDS} or $t" |
| 29 |
fi |
| 30 |
done |
| 31 |
if [ "x${SKIP_TEST_KEYWORDS}" != "x" ]; then |
| 32 |
SKIP_TEST_KEYWORDS="not ( ${SKIP_TEST_KEYWORDS} )" |
| 33 |
fi |
| 34 |
|
| 35 |
for pyver in $PYVER; do |
| 36 |
python$pyver -m pytest --durations=20 ${VERBOSE_TESTS} -k "${SKIP_TEST_KEYWORDS}" --color=no test |
| 37 |
done |
| 38 |
|