tests: convert "insert" test to new framework

* testsuite/misc.pl (Tests): Add insert-nl.
* testsuite/insert.good: Delete file.
* testsuite/insert.inp: Likewise.
* testsuite/insert.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "insert".
This commit is contained in:
Jim Meyering authored and Assaf Gordon committed 2017-05-10 02:02:28 +00:00
1 parent 5bd3258819
commit 409ec0b60c
5 files changed
+6 -10

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
bar
foo
-2
View File
@@ -1,2 +0,0 @@
bar
foo
-1
View File
@@ -1 +0,0 @@
/foo/i\
+1 -4
View File
@@ -121,7 +121,7 @@ SEDTESTS += testsuite/appquit testsuite/enable testsuite/sep \
testsuite/cv-vars testsuite/classes testsuite/middle \
testsuite/bsd testsuite/stdin testsuite/flipcase \
testsuite/subwrite testsuite/writeout \
testsuite/readin testsuite/insert testsuite/utf8-1 \
testsuite/readin testsuite/utf8-1 \
testsuite/utf8-2 testsuite/utf8-3 testsuite/utf8-4 \
testsuite/badenc testsuite/inplace-hold testsuite/brackets \
testsuite/amp-escape testsuite/help testsuite/file \
@@ -253,9 +253,6 @@ EXTRA_DIST += \
testsuite/inclib.good \
testsuite/inclib.inp \
testsuite/inclib.sed \
testsuite/insert.good \
testsuite/insert.inp \
testsuite/insert.sed \
testsuite/khadafy.good \
testsuite/khadafy.inp \
testsuite/khadafy.sed \
+5
View File
@@ -74,6 +74,11 @@ y/Ss\nYy/yY$sS/'),
{OUT=> "bar bar fo oo f oo bar bar bar bar bar bar bar bar bar\n"},
],
['insert-nl', qw(-f), {IN => "/foo/i\\\n"},
{IN => "bar\nfoo\n" },
{OUT=> "bar\n\nfoo\n" },
],
);
my $save_temps = $ENV{SAVE_TEMPS};