tests: convert "writeout" test to new framework
* testsuite/misc.pl (Tests): Add writeout. * testsuite/writeout.inp: Likewise. * testsuite/writeout.sed: Likewise. * testsuite/wrtout1.good: Delete file. * testsuite/wrtout2.good: Delete file. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "writeout".
This commit is contained in:
1 parent
50b7d92bab
commit
2f27d079c4
6 files changed
+19
-16
No files matched your search
+1
-5
@@ -114,7 +114,7 @@ SEDTESTS += testsuite/8bit testsuite/newjis \
|
||||
testsuite/eval \
|
||||
testsuite/distrib testsuite/8to7 \
|
||||
testsuite/bsd testsuite/stdin \
|
||||
testsuite/subwrite testsuite/writeout \
|
||||
testsuite/subwrite \
|
||||
testsuite/utf8-1 \
|
||||
testsuite/utf8-2 testsuite/utf8-3 testsuite/utf8-4 \
|
||||
testsuite/badenc testsuite/inplace-hold \
|
||||
@@ -243,10 +243,6 @@ EXTRA_DIST += \
|
||||
testsuite/badenc.good \
|
||||
testsuite/badenc.inp \
|
||||
testsuite/badenc.sed \
|
||||
testsuite/writeout.inp \
|
||||
testsuite/writeout.sed \
|
||||
testsuite/wrtout1.good \
|
||||
testsuite/wrtout2.good \
|
||||
testsuite/xemacs.good \
|
||||
testsuite/xemacs.inp \
|
||||
testsuite/xemacs.sed
|
||||
|
||||
@@ -1045,6 +1045,24 @@ s,.*[^\/],,
|
||||
. "//\n"}
|
||||
],
|
||||
|
||||
['writeout',
|
||||
# Test 'w' command
|
||||
qw(-e '/^Facts ar/w writeout.wout'),
|
||||
{IN => "Facts are simple and facts are straight\n"
|
||||
. "Facts are lazy and facts are late\n"
|
||||
. "Facts all come with points of view\n"
|
||||
. "Facts don't do what I want them to\n"},
|
||||
# The expected STDOUT
|
||||
{OUT => "Facts are simple and facts are straight\n"
|
||||
. "Facts are lazy and facts are late\n"
|
||||
. "Facts all come with points of view\n"
|
||||
. "Facts don't do what I want them to\n"},
|
||||
# The expected content of 'writeout.wout'
|
||||
{CMP => [ "Facts are simple and facts are straight\n"
|
||||
. "Facts are lazy and facts are late\n",
|
||||
{ 'writeout.wout' => undef }]}
|
||||
],
|
||||
|
||||
['xabcx',
|
||||
# from the ChangeLog (Fri May 21 1993)
|
||||
# Regex address with custom character (\xREGEXx)
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Facts are simple and facts are straight
|
||||
Facts are lazy and facts are late
|
||||
Facts all come with points of view
|
||||
Facts don't do what I want them to
|
||||
@@ -1 +0,0 @@
|
||||
/^Facts ar/w writeout.wout
|
||||
@@ -1,4 +0,0 @@
|
||||
Facts are simple and facts are straight
|
||||
Facts are lazy and facts are late
|
||||
Facts all come with points of view
|
||||
Facts don't do what I want them to
|
||||
@@ -1,2 +0,0 @@
|
||||
Facts are simple and facts are straight
|
||||
Facts are lazy and facts are late
|
||||
Reference in new issue
Block a user