replace ::cast_dynamic() with relevant ActionManager::get_*_action() calls
[ardour.git] / gtk2_ardour / artest
1 #!/bin/sh
2
3 cd "`dirname \"$0\"`"
4
5 TOP=..
6 . $TOP/build/gtk2_ardour/ardev_common_waf.sh
7
8 LIBS_DIR=$TOP/build/libs
9
10 ALLGOOD=yes
11
12 run_tests () {
13         echo ""
14         echo "-------------------------------------------"
15         RUN=run-tests
16         if test -n "$2"; then
17                 RUN=$2
18                 echo "Running test $2 of $1..."
19         else
20                 echo "Running tests for $1..."
21         fi
22         echo "-------------------------------------------"
23         echo ""
24   $3 $LIBS_DIR/$1/$RUN || ALLGOOD=no
25   echo ""
26 }
27
28 if [ $# -gt 0 ]; then
29         run_tests $1 $2 $3
30         exit
31 fi
32
33 run_tests audiographer
34 run_tests midi++2
35 run_tests evoral
36 run_tests pbd
37 run_tests ardour
38
39 if test "$ALLGOOD" != "yes"; then
40         echo ""
41         echo ""
42         echo " *** SOME TEST(s) FAILED ***"
43         echo ""
44         echo ""
45 fi