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