summaryrefslogtreecommitdiff
path: root/gtk2_ardour/artest
blob: e7603b89bfdbb9689e045adba6b6d8b316d760ee (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

cd "`dirname \"$0\"`"

TOP=..
. $TOP/build/gtk2_ardour/ardev_common_waf.sh

LIBS_DIR=$TOP/build/libs

ALLGOOD=yes

run_tests () {
	echo ""
	echo "-------------------------------------------"
	RUN=run-tests
	if test -n "$2"; then
		RUN=$2
		echo "Running test $2 of $1..."
	else
		echo "Running tests for $1..."
	fi
	echo "-------------------------------------------"
	echo ""
  $3 $LIBS_DIR/$1/$RUN || ALLGOOD=no
  echo ""
}

if [ $# -gt 0 ]; then
	run_tests $1 $2 $3
	exit
fi

run_tests audiographer
run_tests midi++2
run_tests evoral
run_tests pbd
run_tests ardour

if test "$ALLGOOD" != "yes"; then
	echo ""
	echo ""
	echo " *** SOME TEST(s) FAILED ***"
	echo ""
	echo ""
fi