You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
562 B

  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