Fix test runner for tests that use files.
[ardour.git] / gtk2_ardour / artest
1 #!/bin/sh
2
3 REL_TOP=`dirname "$0"`/..
4 TOP=`realpath $REL_TOP`
5
6 . $TOP/build/gtk2_ardour/ardev_common_waf.sh
7
8 LIBS_DIR=$TOP/build/libs
9
10 run_tests () {
11   echo ""
12   echo "-------------------------------------------"
13   echo "Running tests for $1..."
14   echo "-------------------------------------------"
15   echo ""
16   cd $LIBS_DIR/$1
17   $2 ./run-tests
18   cd -
19   echo ""
20 }
21
22 if [ $# -gt 0 ]; then
23         run_tests $1 $2
24         exit
25 fi
26
27 run_tests audiographer
28 run_tests midi++2
29 run_tests evoral
30 run_tests pbd
31 run_tests ardour