summaryrefslogtreecommitdiff
path: root/tools/windows_packaging/wine-ardour-tests.sh
blob: a4bd033c8b20472aa9e53ec81a177ab09a9d1a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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