]> Raphaƫl G. Git Repositories - youtubedl/blob - devscripts/run_tests.sh
cme fix dpkg-control
[youtubedl] / devscripts / run_tests.sh
1 #!/bin/bash
2
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"
5
6 test_set=""
7 multiprocess_args=""
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"
15 multiprocess_args="--processes=4 --process-timeout=540"
16 ;;
17 *)
18 break
19 ;;
20 esac
21
22 nosetests test --verbose $test_set $multiprocess_args