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:
Assaf Gordon committed 2017-05-10 21:37:18 -04:00
1 parent e925d8a5bd
commit 9c19138f89
5 files changed
+12 -11

No files matched your search

-2
View File
@@ -1,2 +0,0 @@
doh
ok
-1
View File
@@ -1 +0,0 @@
doh
-4
View File
@@ -1,4 +0,0 @@
# Test appending quit
a\
ok
q
+1 -4
View File
@@ -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 \
+11
View File
@@ -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 /'),