Fix test runner for tests that use files.

This commit is contained in:
David Robillard 2014-11-30 20:37:35 -05:00
parent 2588b1cac9
commit 302c93df04
2 changed files with 11 additions and 3 deletions

View file

@ -1,4 +1,6 @@
TOP=`dirname "$0"`/..
if [ -z "$TOP" ]; then
TOP=`dirname "$0"`/..
fi
#export G_DEBUG=fatal_criticals

View file

@ -1,5 +1,9 @@
#!/bin/sh
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
REL_TOP=`dirname "$0"`/..
TOP=`realpath $REL_TOP`
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
LIBS_DIR=$TOP/build/libs
@ -9,7 +13,9 @@ run_tests () {
echo "Running tests for $1..."
echo "-------------------------------------------"
echo ""
$2 $LIBS_DIR/$1/run-tests
cd $LIBS_DIR/$1
$2 ./run-tests
cd -
echo ""
}