]> jfr.im git - yt-dlp.git/blame - devscripts/run_tests.bat
Add post_hooks option to YoutubeDL.py (https://github.com/ytdl-org/youtube-dl/pull...
[yt-dlp.git] / devscripts / run_tests.bat
CommitLineData
c76eb41b 1@echo off
2
3rem Keep this list in sync with the `offlinetest` target in Makefile
ab8e5e51 4set DOWNLOAD_TESTS="age_restriction^|download^|iqiyi_sdk_interpreter^|socks^|subtitles^|write_annotations^|youtube_lists^|youtube_signature^|post_hooks"
c76eb41b 5
6if "%YTDL_TEST_SET%" == "core" (
7 set test_set="-I test_("%DOWNLOAD_TESTS%")\.py"
8 set multiprocess_args=""
9) else if "%YTDL_TEST_SET%" == "download" (
10 set test_set="-I test_(?!"%DOWNLOAD_TESTS%").+\.py"
11 set multiprocess_args="--processes=4 --process-timeout=540"
12) else (
13 echo YTDL_TEST_SET is not set or invalid
14 exit /b 1
15)
16
17nosetests test --verbose %test_set:"=% %multiprocess_args:"=%