]> jfr.im git - yt-dlp.git/blame_incremental - devscripts/run_tests.sh
[patreon] extract post_file url(#17792)
[yt-dlp.git] / devscripts / run_tests.sh
... / ...
CommitLineData
1#!/bin/bash
2
3# Keep this list in sync with the `offlinetest` target in Makefile
4DOWNLOAD_TESTS="age_restriction|download|iqiyi_sdk_interpreter|socks|subtitles|write_annotations|youtube_lists|youtube_signature"
5
6test_set=""
7multiprocess_args=""
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"
15 multiprocess_args="--processes=4 --process-timeout=540"
16 ;;
17 *)
18 break
19 ;;
20esac
21
22nosetests test --verbose $test_set $multiprocess_args