diff options
Diffstat (limited to 'tools/windows_packaging/wine-ardour-tests.sh')
-rwxr-xr-x | tools/windows_packaging/wine-ardour-tests.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/windows_packaging/wine-ardour-tests.sh b/tools/windows_packaging/wine-ardour-tests.sh new file mode 100755 index 0000000000..a4bd033c8b --- /dev/null +++ b/tools/windows_packaging/wine-ardour-tests.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +. ./wine-env.sh + +if [ "$1" == "--list" ]; then + TESTS='test_*' + for test_program in `find -name "$TESTS" -type f -perm /u+x`; + do + echo "$test_program" + done + exit 0 +fi + +if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then + if [ "$1" == "--single" ]; then + TESTS="test_*$2*" + elif [ "$2" == "--single" ]; then + TESTS="test_*$3*" + else + TESTS='test_*' + fi + for test_program in `find . -name "$TESTS" -type f -perm /u+x`; + do + echo "Running $test_program..." + wine "$test_program" + done +else + wine run-tests.exe +fi |