From 28b8ebcfcb896668dcf89b01e0a3f8933b83392a Mon Sep 17 00:00:00 2001 From: jmallett Date: Mon, 24 Jun 2002 14:29:19 +0000 Subject: I explicitly meant to not move any of this over to the new m4(1) framework, even slightly. Grrr CVS. --- tools/regression/usr.bin/m4/Makefile | 2 +- tools/regression/usr.bin/m4/regress.sh | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'tools') 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() -- cgit v1.1