tests: convert "newline-anchor" test to new framework
* testsuite/misc.pl (Tests): Add newline-anchor. * testsuite/newline-anchor.good: Delete file. * testsuite/newline-anchor.inp: Likewise. * testsuite/newline-anchor.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "newline-anchor".
This commit is contained in:
1 parent
ff1d9f9e6e
commit
042ea8ebe6
5 files changed
+17
-17
No files matched your search
+1
-5
@@ -123,8 +123,7 @@ SEDTESTS += testsuite/sep \
|
||||
testsuite/badenc testsuite/inplace-hold testsuite/brackets \
|
||||
testsuite/help testsuite/file \
|
||||
testsuite/quiet testsuite/binary3 \
|
||||
testsuite/binary2 testsuite/binary testsuite/dc \
|
||||
testsuite/newline-anchor
|
||||
testsuite/binary2 testsuite/binary testsuite/dc
|
||||
|
||||
# Note that the first lines are statements. They ensure that environment
|
||||
# variables that can perturb tests are unset or set to expected values.
|
||||
@@ -223,9 +222,6 @@ EXTRA_DIST += \
|
||||
testsuite/newjis.good \
|
||||
testsuite/newjis.inp \
|
||||
testsuite/newjis.sed \
|
||||
testsuite/newline-anchor.good \
|
||||
testsuite/newline-anchor.inp \
|
||||
testsuite/newline-anchor.sed \
|
||||
testsuite/noeolw.good \
|
||||
testsuite/noeolw.inp \
|
||||
testsuite/noeolw.1good \
|
||||
|
||||
@@ -874,6 +874,22 @@ q( universe. You will never succeed. Everything will fail and come
|
||||
)}
|
||||
],
|
||||
|
||||
['newline-anchor',
|
||||
qw(-f),
|
||||
{IN => q(N
|
||||
N
|
||||
s/^/X/g
|
||||
s/^/X/mg
|
||||
s/$/Y/g
|
||||
s/$/Y/mg
|
||||
)},
|
||||
{IN => "a\n"
|
||||
. "b\n"
|
||||
. "c\n"},
|
||||
{OUT => "XXaY\n"
|
||||
. "XbY\n"
|
||||
. "XcYY\n"}
|
||||
],
|
||||
|
||||
['xabcx',
|
||||
# from the ChangeLog (Fri May 21 1993)
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
XXaY
|
||||
XbY
|
||||
XcYY
|
||||
@@ -1,3 +0,0 @@
|
||||
a
|
||||
b
|
||||
c
|
||||
@@ -1,6 +0,0 @@
|
||||
N
|
||||
N
|
||||
s/^/X/g
|
||||
s/^/X/mg
|
||||
s/$/Y/g
|
||||
s/$/Y/mg
|
||||
Reference in new issue
Block a user