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