From c0a5c5049248bf91f8734231c97da7895c2db3bd Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Mon, 10 Apr 2017 01:30:41 +0000 Subject: [PATCH] tests: convert "xbxcx" test to new framework * testsuite/misc.pl (Tests): Add xbxcx. * testsuite/xbxcx.good: Delete file. * testsuite/xbxcx.inp: Likewise. * testsuite/xbxcx.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "xbxcx". --- testsuite/local.mk | 5 +---- testsuite/misc.pl | 20 ++++++++++++++++++++ testsuite/xbxcx.good | 7 ------- testsuite/xbxcx.inp | 7 ------- testsuite/xbxcx.sed | 2 -- 5 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 testsuite/xbxcx.good delete mode 100644 testsuite/xbxcx.inp delete mode 100644 testsuite/xbxcx.sed diff --git a/testsuite/local.mk b/testsuite/local.mk index 60ae2c0..122eb19 100644 --- a/testsuite/local.mk +++ b/testsuite/local.mk @@ -113,7 +113,7 @@ SEDTESTS += testsuite/appquit testsuite/enable testsuite/sep \ testsuite/numsub2 testsuite/numsub3 testsuite/numsub4 \ testsuite/numsub5 testsuite/0range testsuite/bkslashes \ testsuite/madding testsuite/mac-mf \ - testsuite/xbxcx testsuite/xbxcx3 \ + testsuite/xbxcx3 \ testsuite/xemacs \ testsuite/fasts testsuite/uniq testsuite/manis \ testsuite/khadafy testsuite/linecnt testsuite/eval \ @@ -335,9 +335,6 @@ EXTRA_DIST += \ testsuite/xabcx.good \ testsuite/xabcx.inp \ testsuite/xabcx.sed \ - testsuite/xbxcx.good \ - testsuite/xbxcx.inp \ - testsuite/xbxcx.sed \ testsuite/xbxcx3.good \ testsuite/xbxcx3.inp \ testsuite/xbxcx3.sed \ diff --git a/testsuite/misc.pl b/testsuite/misc.pl index 63853be..00fcce7 100644 --- a/testsuite/misc.pl +++ b/testsuite/misc.pl @@ -103,6 +103,26 @@ y/Ss\nYy/yY$sS/'), {IN => "ababb||abbbabbbb\n" }, {OUT=> ">abb<||>abbbb<\n" }, ], + + ['xbxcx', + # from the ChangeLog (Wed Sep 5 2001) + qw(-e 's/a*/x/g'), + {IN => "\n" + . "b\n" + . "bc\n" + . "bac\n" + . "baac\n" + . "baaac\n" + . "baaaac\n"}, + {OUT => "x\n" + . "xbx\n" + . "xbxcx\n" + . "xbxcx\n" + . "xbxcx\n" + . "xbxcx\n" + . "xbxcx\n"} + ], + ); my $save_temps = $ENV{SAVE_TEMPS}; diff --git a/testsuite/xbxcx.good b/testsuite/xbxcx.good deleted file mode 100644 index 1a2eece..0000000 --- a/testsuite/xbxcx.good +++ /dev/null @@ -1,7 +0,0 @@ -x -xbx -xbxcx -xbxcx -xbxcx -xbxcx -xbxcx diff --git a/testsuite/xbxcx.inp b/testsuite/xbxcx.inp deleted file mode 100644 index cac4334..0000000 --- a/testsuite/xbxcx.inp +++ /dev/null @@ -1,7 +0,0 @@ - -b -bc -bac -baac -baaac -baaaac diff --git a/testsuite/xbxcx.sed b/testsuite/xbxcx.sed deleted file mode 100644 index e6a9c3d..0000000 --- a/testsuite/xbxcx.sed +++ /dev/null @@ -1,2 +0,0 @@ -# from the ChangeLog (Wed Sep 5 2001) -s/a*/x/g