]> Raphaƫl G. Git Repositories - youtubedl/blob - devscripts/run_tests.sh
Initiate new release.
[youtubedl] / devscripts / run_tests.sh
1 #!/bin/bash
2
3 DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter|youtube_lists"
4
5 test_set=""
6 multiprocess_args=""
7
8 case "$YTDL_TEST_SET" in
9 core)
10 test_set="-I test_($DOWNLOAD_TESTS)\.py"
11 ;;
12 download)
13 test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py"
14 multiprocess_args="--processes=4 --process-timeout=540"
15 ;;
16 *)
17 break
18 ;;
19 esac
20
21 nosetests test --verbose $test_set $multiprocess_args