]>
Commit | Line | Data |
---|---|---|
1e2c3f61 S |
1 | #!/bin/bash |
2 | ||
82a62de1 YCH |
3 | # Keep this list in sync with the `offlinetest` target in Makefile |
4 | DOWNLOAD_TESTS="age_restriction|download|iqiyi_sdk_interpreter|socks|subtitles|write_annotations|youtube_lists|youtube_signature" | |
1e2c3f61 S |
5 | |
6 | test_set="" | |
8936f68a | 7 | multiprocess_args="" |
1e2c3f61 S |
8 | |
9 | case "$YTDL_TEST_SET" in | |
10 | core) | |
11 | test_set="-I test_($DOWNLOAD_TESTS)\.py" | |
12 | ;; | |
13 | download) | |
14 | test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py" | |
8936f68a | 15 | multiprocess_args="--processes=4 --process-timeout=540" |
1e2c3f61 S |
16 | ;; |
17 | *) | |
18 | break | |
19 | ;; | |
20 | esac | |
21 | ||
8936f68a | 22 | nosetests test --verbose $test_set $multiprocess_args |