From 9c19138f894855371393f4dcc1d6960d93316518 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Mon, 10 Apr 2017 02:17:04 +0000 Subject: [PATCH] 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". --- testsuite/appquit.good | 2 -- testsuite/appquit.inp | 1 - testsuite/appquit.sed | 4 ---- testsuite/local.mk | 5 +---- testsuite/misc.pl | 11 +++++++++++ 5 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 testsuite/appquit.good delete mode 100644 testsuite/appquit.inp delete mode 100644 testsuite/appquit.sed diff --git a/testsuite/appquit.good b/testsuite/appquit.good deleted file mode 100644 index 0742c8e..0000000 --- a/testsuite/appquit.good +++ /dev/null @@ -1,2 +0,0 @@ -doh -ok diff --git a/testsuite/appquit.inp b/testsuite/appquit.inp deleted file mode 100644 index a2300c9..0000000 --- a/testsuite/appquit.inp +++ /dev/null @@ -1 +0,0 @@ -doh diff --git a/testsuite/appquit.sed b/testsuite/appquit.sed deleted file mode 100644 index fc11774..0000000 --- a/testsuite/appquit.sed +++ /dev/null @@ -1,4 +0,0 @@ -# Test appending quit -a\ -ok -q diff --git a/testsuite/local.mk b/testsuite/local.mk index 7162870..47aebcc 100644 --- a/testsuite/local.mk +++ b/testsuite/local.mk @@ -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 \ diff --git a/testsuite/misc.pl b/testsuite/misc.pl index 0bede64..180f904 100644 --- a/testsuite/misc.pl +++ b/testsuite/misc.pl @@ -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 /'),