From 3e959a33f972bdc48cced73e8f76eb9ce7ce64eb Mon Sep 17 00:00:00 2001 From: nik Date: Thu, 11 Nov 2004 19:47:55 +0000 Subject: Switch over to a different, more flexible test output protocol that's understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file. --- tools/regression/usr.bin/sed/regress.sh | 2 ++ tools/regression/usr.bin/sed/regress.t | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 tools/regression/usr.bin/sed/regress.t (limited to 'tools/regression/usr.bin/sed') diff --git a/tools/regression/usr.bin/sed/regress.sh b/tools/regression/usr.bin/sed/regress.sh index fc5a135..cd68e24 100644 --- a/tools/regression/usr.bin/sed/regress.sh +++ b/tools/regression/usr.bin/sed/regress.sh @@ -2,6 +2,8 @@ REGRESSION_START($1) +echo '1..9' + REGRESSION_TEST(`G', `sed G < regress.in') REGRESSION_TEST(`P', `sed P < regress.in') REGRESSION_TEST(`psl', `sed \$!g\;P\;D < regress.in') diff --git a/tools/regression/usr.bin/sed/regress.t b/tools/regression/usr.bin/sed/regress.t new file mode 100644 index 0000000..a82aacd --- /dev/null +++ b/tools/regression/usr.bin/sed/regress.t @@ -0,0 +1,6 @@ +#!/bin/sh +# $FreeBSD$ + +cd `dirname $0` + +m4 ../regress.m4 regress.sh | sh -- cgit v1.1