summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am.test4
-rwxr-xr-xtools/testlist4
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/Makefile.am.test b/tools/Makefile.am.test
index 70382b0..5c5e8c7 100644
--- a/tools/Makefile.am.test
+++ b/tools/Makefile.am.test
@@ -1,5 +1,5 @@
-Makefile.am.test: ${pracrod_SOURCES} ${EXTRA_DIST}
- $(top_srcdir)/../tools/testlist > Makefile.am.test
+Makefile.am.test: ${TEST_SOURCE_DEPS}
+ ${TEST_SCRIPT_DIR}/testlist > Makefile.am.test
@touch Makefile.am
test: Makefile.am.test $(TESTFILES)
diff --git a/tools/testlist b/tools/testlist
index fca9d95..a4e7202 100755
--- a/tools/testlist
+++ b/tools/testlist
@@ -1,5 +1,7 @@
#!/bin/bash
+SCRIPTDIR=`dirname $0`
+
grep "TEST_BEGIN" *.cc > tmp
echo -n "TESTFILES="
@@ -22,7 +24,7 @@ do
CFLAGS=`cat $FILE | grep "cflags:" | cut -d':' -f2`
TEST=test_$NAME
echo "$TEST: $FILE $DEPS"
- echo -e "\t@../../tools/test $FILE $DEPS $CFLAGS $LIBS"
+ echo -e "\t@${SCRIPTDIR}/test $FILE $DEPS $CFLAGS $LIBS"
echo ""
done < tmp