summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/sed/multitest.t
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2009-09-20 13:39:44 +0000
committerdds <dds@FreeBSD.org>2009-09-20 13:39:44 +0000
commit317812e953cee4b6f1caa75d2ee04837f6c96158 (patch)
treebe777c53a81010bada7ceb770ba5d55ba80cab89 /tools/regression/usr.bin/sed/multitest.t
parentca8a7b5d9511c32327deb88340f17f282c8f6c85 (diff)
downloadFreeBSD-src-317812e953cee4b6f1caa75d2ee04837f6c96158.zip
FreeBSD-src-317812e953cee4b6f1caa75d2ee04837f6c96158.tar.gz
The transition to Subversion allows us to rename files without
repo-copy hacks. Remove the test-number prefix from the name of the output files, so that new test cases can be easily added.
Diffstat (limited to 'tools/regression/usr.bin/sed/multitest.t')
-rw-r--r--tools/regression/usr.bin/sed/multitest.t16
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/regression/usr.bin/sed/multitest.t b/tools/regression/usr.bin/sed/multitest.t
index f3a42e2..53c14c5 100644
--- a/tools/regression/usr.bin/sed/multitest.t
+++ b/tools/regression/usr.bin/sed/multitest.t
@@ -37,11 +37,9 @@
#
# The directory regress.test.out contains the expected test results
#
-# These are the regression tests created during the development of the
-# BSD sed. The reference file naming scheme used in this script can't
-# handle gracefully the insertion of new tests between existing ones.
-# Therefore, either use the new m4-based regress.t framework, or add
-# tests after the last existing test.
+# These are the regression tests mostly created during the development
+# of the BSD sed. Each test should have a unique mark name, which is
+# used for naming the corresponding file in regress.multitest.out.
main()
{
@@ -88,11 +86,11 @@ result()
else
TODO=''
fi
- if ! [ -r $REGRESS/${MARK}_${TESTNAME} ] ; then
- echo "Seeding $REGRESS/${MARK}_${TESTNAME} with current result" 1>&2
- cp current.out $REGRESS/${MARK}_${TESTNAME}
+ if ! [ -r $REGRESS/${TESTNAME} ] ; then
+ echo "Seeding $REGRESS/${TESTNAME} with current result" 1>&2
+ cp current.out $REGRESS/${TESTNAME}
fi
- if diff -c $REGRESS/${MARK}_${TESTNAME} current.out ; then
+ if diff -c $REGRESS/${TESTNAME} current.out ; then
echo "ok $MARK $TESTNAME # $TODO$COMMENT"
else
echo "not ok $MARK $TESTNAME # $TODO$COMMENT"
OpenPOWER on IntegriCloud