summaryrefslogtreecommitdiff
path: root/testsuite/misc.pl
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-04-10 04:28:37 +0000
committerAssaf Gordon <assafgordon@gmail.com>2017-05-10 21:37:20 -0400
commit393733a3142639a8e4c93ea31610722df9e1c659 (patch)
tree729f10d46142771406dcec6ae37767e6f0f7121d /testsuite/misc.pl
parent3d720b26f14cfc7a552b7ab0c00f7615116e33d6 (diff)
downloadsed-393733a3142639a8e4c93ea31610722df9e1c659.tar.gz
tests: convert "readin" test to new framework
* testsuite/misc.pl (Tests): Add readin. * testsuite/readin.good: Delete file. * testsuite/readin.inp: Likewise. * testsuite/readin.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "readin".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r--testsuite/misc.pl42
1 files changed, 42 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl
index b600b17..24258be 100644
--- a/testsuite/misc.pl
+++ b/testsuite/misc.pl
@@ -938,6 +938,48 @@ foo foo fo oo f oo foo foo foo foo foo foo foo foo foo foo foo foo foo
{OUT => ""}
],
+ ['readin',
+ qw(-f),
+ {IN => q(/\.$/r readin.in2
+/too\.$/q
+)},
+ {AUX => { 'readin.in2' => "MOO\n" }},
+ {IN => "``Democracy will not come today, this year,\n"
+ . " nor ever through compromise and fear.\n"
+ . " I have as much right as the other fellow has\n"
+ . " to stand on my two feet and own the land.\n"
+ . " I tire so of hearing people say\n"
+ . " let things take their course,\n"
+ . " tomorrow is another day.\n"
+ . " I do not need my freedom when I'm dead.\n"
+ . " I cannot live on tomorrow's bread.\n"
+ . " Freedom is a strong seed\n"
+ . " planted in a great need.\n"
+ . " I live here, too.\n"
+ . " I want freedom just as you.''\n"
+ . " ``The Weary Blues'', Langston Hughes\n"},
+ {OUT => "``Democracy will not come today, this year,\n"
+ . " nor ever through compromise and fear.\n"
+ . "MOO\n"
+ . " I have as much right as the other fellow has\n"
+ . " to stand on my two feet and own the land.\n"
+ . "MOO\n"
+ . " I tire so of hearing people say\n"
+ . " let things take their course,\n"
+ . " tomorrow is another day.\n"
+ . "MOO\n"
+ . " I do not need my freedom when I'm dead.\n"
+ . "MOO\n"
+ . " I cannot live on tomorrow's bread.\n"
+ . "MOO\n"
+ . " Freedom is a strong seed\n"
+ . " planted in a great need.\n"
+ . "MOO\n"
+ . " I live here, too.\n"
+ . "MOO\n"}
+ ],
+
+
['xabcx',
# from the ChangeLog (Fri May 21 1993)
# Regex address with custom character (\xREGEXx)