| 1 |
#!/bin/sh |
| 2 |
set -efu |
| 3 |
|
| 4 |
pys="$(py3versions -sv 2>/dev/null)" |
| 5 |
|
| 6 |
# These exclusions should be kept in sync with debian/rules |
| 7 |
exclude_tests="not test_rusboost" |
| 8 |
if dpkg-architecture -e armhf 2>/dev/null; then |
| 9 |
exclude_tests="$exclude_tests and not test_common" |
| 10 |
fi |
| 11 |
|
| 12 |
TMP="$(mktemp -d)" |
| 13 |
trap "rm -r \"$TMP\"" EXIT |
| 14 |
HOME="$TMP" |
| 15 |
export HOME |
| 16 |
|
| 17 |
for py in $pys; do |
| 18 |
python$py -m pytest --import-mode=importlib -m 'not network' -s -k "$exclude_tests" "/usr/lib/python3/dist-packages/imblearn/tests/" 2>&1 |
| 19 |
done |