]> jfr.im git - yt-dlp.git/blame - devscripts/run_tests.sh
[travis] Run tests in parallel
[yt-dlp.git] / devscripts / run_tests.sh
CommitLineData
1e2c3f61
S
1#!/bin/bash
2
3DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter"
4
5test_set=""
8936f68a 6multiprocess_args=""
1e2c3f61
S
7
8case "$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"
8936f68a 14 multiprocess_args="--processes=4 --process-timeout=540"
1e2c3f61
S
15 ;;
16 *)
17 break
18 ;;
19esac
20
8936f68a 21nosetests test --verbose $test_set $multiprocess_args