]> jfr.im git - yt-dlp.git/blame - devscripts/run_tests.sh
Added `--force-overwrites` option (https://github.com/ytdl-org/youtube-dl/pull/20405)
[yt-dlp.git] / devscripts / run_tests.sh
CommitLineData
1e2c3f61
S
1#!/bin/bash
2
82a62de1 3# Keep this list in sync with the `offlinetest` target in Makefile
0c3d0f51 4DOWNLOAD_TESTS="age_restriction|download|iqiyi_sdk_interpreter|overwrites|socks|subtitles|write_annotations|youtube_lists|youtube_signature|post_hooks"
1e2c3f61
S
5
6test_set=""
8936f68a 7multiprocess_args=""
1e2c3f61
S
8
9case "$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 ;;
20esac
21
8936f68a 22nosetests test --verbose $test_set $multiprocess_args