summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/sed
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>2004-11-11 19:47:55 +0000
committernik <nik@FreeBSD.org>2004-11-11 19:47:55 +0000
commit3e959a33f972bdc48cced73e8f76eb9ce7ce64eb (patch)
treecfebca4a0526247931bc6bdde73f15f72f3e92d0 /tools/regression/usr.bin/sed
parent6e5bd296a6ca375161a672ed141aa5e414ffbc16 (diff)
downloadFreeBSD-src-3e959a33f972bdc48cced73e8f76eb9ce7ce64eb.zip
FreeBSD-src-3e959a33f972bdc48cced73e8f76eb9ce7ce64eb.tar.gz
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.
Diffstat (limited to 'tools/regression/usr.bin/sed')
-rw-r--r--tools/regression/usr.bin/sed/regress.sh2
-rw-r--r--tools/regression/usr.bin/sed/regress.t6
2 files changed, 8 insertions, 0 deletions
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
OpenPOWER on IntegriCloud