summaryrefslogtreecommitdiff
path: root/gtk2_ardour/artest
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-11 00:03:18 +0200
committerRobin Gareus <robin@gareus.org>2016-10-11 00:03:18 +0200
commit688eb2883fe3f5d29f8a668eba18fec6235b1a15 (patch)
treea83da701f50d182350419b0dc17b8abd5c15108c /gtk2_ardour/artest
parent9543452bb04c5ce097b374f15ddae92b2d714ebf (diff)
allow to run single tests from ./artest
Diffstat (limited to 'gtk2_ardour/artest')
-rwxr-xr-xgtk2_ardour/artest20
1 files changed, 13 insertions, 7 deletions
diff --git a/gtk2_ardour/artest b/gtk2_ardour/artest
index 24d07785bc..e7603b89bf 100755
--- a/gtk2_ardour/artest
+++ b/gtk2_ardour/artest
@@ -10,17 +10,23 @@ LIBS_DIR=$TOP/build/libs
ALLGOOD=yes
run_tests () {
- echo ""
- echo "-------------------------------------------"
- echo "Running tests for $1..."
- echo "-------------------------------------------"
- echo ""
- $2 $LIBS_DIR/$1/run-tests || ALLGOOD=no
+ 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
+ run_tests $1 $2 $3
exit
fi