2017-02-04 21:33:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-11-27 14:32:06 +01:00
|
|
|
# Keep this list in sync with the `offlinetest` target in Makefile
|
|
|
|
DOWNLOAD_TESTS="age_restriction|download|iqiyi_sdk_interpreter|socks|subtitles|write_annotations|youtube_lists|youtube_signature"
|
2017-02-04 21:33:23 +01:00
|
|
|
|
|
|
|
test_set=""
|
2015-10-20 18:37:28 +02:00
|
|
|
multiprocess_args=""
|
2017-02-04 21:33:23 +01:00
|
|
|
|
2020-11-01 04:39:17 +01:00
|
|
|
case "$HDL_TEST_SET" in
|
2017-02-04 21:33:23 +01:00
|
|
|
core)
|
|
|
|
test_set="-I test_($DOWNLOAD_TESTS)\.py"
|
|
|
|
;;
|
|
|
|
download)
|
|
|
|
test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py"
|
2021-01-18 22:39:18 +01:00
|
|
|
if [[ "$HDL_TEST_PLAYWRIGHT_DOWNLOAD" == "1" ]]; then
|
|
|
|
test_set="-I test_(?!download).+\.py"
|
|
|
|
fi
|
2015-10-20 18:37:28 +02:00
|
|
|
multiprocess_args="--processes=4 --process-timeout=540"
|
2017-02-04 21:33:23 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2015-10-20 18:37:28 +02:00
|
|
|
nosetests test --verbose $test_set $multiprocess_args
|