summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/usr.bin/m4/Makefile2
-rw-r--r--tools/regression/usr.bin/m4/regress.sh11
2 files changed, 11 insertions, 2 deletions
diff --git a/tools/regression/usr.bin/m4/Makefile b/tools/regression/usr.bin/m4/Makefile
index b937d41..9903670 100644
--- a/tools/regression/usr.bin/m4/Makefile
+++ b/tools/regression/usr.bin/m4/Makefile
@@ -1,4 +1,4 @@
# $FreeBSD$
all:
- @m4 ${.CURDIR}/../regress.m4 ${.CURDIR}/regress.sh | sh /dev/stdin ${.CURDIR}
+ @sh ${.CURDIR}/regress.sh ${.CURDIR}
diff --git a/tools/regression/usr.bin/m4/regress.sh b/tools/regression/usr.bin/m4/regress.sh
index 84f4fb5..b73d410 100644
--- a/tools/regression/usr.bin/m4/regress.sh
+++ b/tools/regression/usr.bin/m4/regress.sh
@@ -1,6 +1,13 @@
# $FreeBSD$
-REGRESSION_START($1)
+# Go into the regression test directory, handed to us by make(1)
+TESTDIR=$1
+if [ -z "$TESTDIR" ]; then
+ TESTDIR=.
+fi
+cd $TESTDIR
+
+STATUS=0
for test in GNU/changecom changecom; do
echo "Running test $test"
@@ -28,4 +35,6 @@ for test in GNU/changecom changecom; do
fi
done
+exit $STATUS
+
REGRESSION_END()
OpenPOWER on IntegriCloud