Fix youtube.lua: Check for nil t.host
[libquvi-scripts.git] / find-tests.sh
blobbcc6740d2fc6f1500f0bd3ac56a93866039775e3
1 #!/bin/sh
3 # gen-test-skip.sh for libquvi-scripts
5 dir=tests/t/
7 note()
9 echo "Run in the top source directory of libquvi-scripts"
10 exit 0
13 [ -d "$dir" ] || note
15 echo "The test suite runs all found tests ($dir*.t) by default. To skip
16 any of these tests, define them in the TEST_SKIP enviroment.
18 Tests found:"
19 find "$dir" -name '*.t' |
20 xargs grep test_skip |
21 perl -ne'/test_skip."(.*?)"/ && print " $1\n"'
22 echo "
23 Example:
24 mkdir tmp ; cd tmp ; ../configure --with-tests
25 env TEST_SKIP=mem,format_default script -c \"make check\""