tests: convert "appquit" test to new framework
* testsuite/misc.pl (Tests): Add appquit. * testsuite/appquit.good: Delete file. * testsuite/appquit.inp: Likewise. * testsuite/appquit.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "appquit".
This commit is contained in:
1 parent
e925d8a5bd
commit
9c19138f89
5 files changed
+12
-11
No files matched your search
@@ -1,2 +0,0 @@
|
||||
doh
|
||||
ok
|
||||
@@ -1 +0,0 @@
|
||||
doh
|
||||
@@ -1,4 +0,0 @@
|
||||
# Test appending quit
|
||||
a\
|
||||
ok
|
||||
q
|
||||
+1
-4
@@ -106,7 +106,7 @@ check_PROGRAMS += testsuite/bug-regex7 \
|
||||
testsuite/runptests testsuite/tst-rxspencer testsuite/tst-regex2
|
||||
endif
|
||||
|
||||
SEDTESTS += testsuite/appquit testsuite/enable testsuite/sep \
|
||||
SEDTESTS += testsuite/enable testsuite/sep \
|
||||
testsuite/inclib testsuite/8bit testsuite/newjis \
|
||||
testsuite/noeolw testsuite/modulo testsuite/numsub \
|
||||
testsuite/numsub2 testsuite/numsub3 testsuite/numsub4 \
|
||||
@@ -198,9 +198,6 @@ EXTRA_DIST += \
|
||||
testsuite/amp-escape.good \
|
||||
testsuite/amp-escape.inp \
|
||||
testsuite/amp-escape.sed \
|
||||
testsuite/appquit.good \
|
||||
testsuite/appquit.inp \
|
||||
testsuite/appquit.sed \
|
||||
testsuite/binary.good \
|
||||
testsuite/binary.inp \
|
||||
testsuite/binary.sed \
|
||||
|
||||
@@ -117,6 +117,17 @@ y/Ss\nYy/yY$sS/'),
|
||||
{OUT => "yes\n"}
|
||||
],
|
||||
|
||||
['appquit',
|
||||
# Test 'a'ppend command before 'q'uit
|
||||
qw(-f),
|
||||
{IN => q(a\
|
||||
ok
|
||||
q)},
|
||||
{IN => "doh\n"},
|
||||
{OUT => "doh\n"
|
||||
. "ok\n"}
|
||||
],
|
||||
|
||||
['dollar',
|
||||
# Test replacement on the last line (address '$')
|
||||
qw(-e '$s/^/space /'),
|
||||
|
||||
Reference in new issue
Block a user