2022-05-27 01:06:23 +02:00
|
|
|
#!/usr/bin/env sh
|
2021-07-23 16:48:15 +02:00
|
|
|
|
2022-09-01 13:19:03 +02:00
|
|
|
if [ -z "$1" ]; then
|
2021-07-23 16:48:15 +02:00
|
|
|
test_set='test'
|
2022-09-01 13:19:03 +02:00
|
|
|
elif [ "$1" = 'core' ]; then
|
2021-10-12 20:54:27 +02:00
|
|
|
test_set="-m not download"
|
2022-09-01 13:19:03 +02:00
|
|
|
elif [ "$1" = 'download' ]; then
|
2021-10-12 20:54:27 +02:00
|
|
|
test_set="-m download"
|
2021-07-23 16:48:15 +02:00
|
|
|
else
|
2022-09-01 13:19:03 +02:00
|
|
|
echo 'Invalid test type "'"$1"'". Use "core" | "download"'
|
2021-07-23 16:48:15 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-04-17 22:42:48 +02:00
|
|
|
python3 -bb -Werror -m pytest "$test_set"
|