diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-08-16 20:52:45 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-12-07 20:48:19 +1000 |
commit | 7e42cafe395e934d966938728e72b03c1167fb42 (patch) | |
tree | 40767315a2d45d44e727afcb3ab2ab612a593cb5 /tools | |
parent | 20f3e4d1fcf5dba4f6963eaec55e723cbb73de1d (diff) |
Add ability to run single libardour tests using wine
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/windows_packaging/wine-ardour-tests.sh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/windows_packaging/wine-ardour-tests.sh b/tools/windows_packaging/wine-ardour-tests.sh index 22a8876241..6556c8a9c4 100755 --- a/tools/windows_packaging/wine-ardour-tests.sh +++ b/tools/windows_packaging/wine-ardour-tests.sh @@ -2,4 +2,19 @@ . ./wine-env.sh -wine run-tests.exe +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 |