logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git

run_tests.bat (633B)


  1. @echo off
  2. rem Keep this list in sync with the `offlinetest` target in Makefile
  3. set DOWNLOAD_TESTS="age_restriction^|download^|iqiyi_sdk_interpreter^|socks^|subtitles^|write_annotations^|youtube_lists^|youtube_signature"
  4. if "%YTDL_TEST_SET%" == "core" (
  5. set test_set="-I test_("%DOWNLOAD_TESTS%")\.py"
  6. set multiprocess_args=""
  7. ) else if "%YTDL_TEST_SET%" == "download" (
  8. set test_set="-I test_(?!"%DOWNLOAD_TESTS%").+\.py"
  9. set multiprocess_args="--processes=4 --process-timeout=540"
  10. ) else (
  11. echo YTDL_TEST_SET is not set or invalid
  12. exit /b 1
  13. )
  14. nosetests test --verbose %test_set:"=% %multiprocess_args:"=%