logo

youtube-dl

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

run_tests.sh (562B)


  1. #!/bin/bash
  2. # Keep this list in sync with the `offlinetest` target in Makefile
  3. DOWNLOAD_TESTS="age_restriction|download|iqiyi_sdk_interpreter|socks|subtitles|write_annotations|youtube_lists|youtube_signature"
  4. test_set=""
  5. multiprocess_args=""
  6. case "$YTDL_TEST_SET" in
  7. core)
  8. test_set="-I test_($DOWNLOAD_TESTS)\.py"
  9. ;;
  10. download)
  11. test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py"
  12. multiprocess_args="--processes=4 --process-timeout=540"
  13. ;;
  14. *)
  15. break
  16. ;;
  17. esac
  18. nosetests test --verbose $test_set $multiprocess_args