From 41da447bbc9b6c4c3821772fec59adf3d358e19e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 1 Mar 2017 20:54:48 -0800 Subject: [PATCH] tests: convert "y-bracket" test to new framework * testsuite/misc.pl (Tests): Add y-bracket. * testsuite/y-bracket.good: Delete file. * testsuite/y-bracket.inp: Likewise. * testsuite/y-bracket.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "y-bracket". --- testsuite/local.mk | 5 +---- testsuite/misc.pl | 6 ++++++ testsuite/y-bracket.good | 1 - testsuite/y-bracket.inp | 1 - testsuite/y-bracket.sed | 1 - 5 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 testsuite/y-bracket.good delete mode 100644 testsuite/y-bracket.inp delete mode 100644 testsuite/y-bracket.sed diff --git a/testsuite/local.mk b/testsuite/local.mk index ad3fba9..78e64b9 100644 --- a/testsuite/local.mk +++ b/testsuite/local.mk @@ -117,7 +117,7 @@ SEDTESTS += testsuite/appquit testsuite/enable testsuite/sep \ testsuite/recall testsuite/recall2 testsuite/xemacs \ testsuite/fasts testsuite/uniq testsuite/manis \ testsuite/khadafy testsuite/linecnt testsuite/eval \ - testsuite/distrib testsuite/8to7 testsuite/y-bracket \ + testsuite/distrib testsuite/8to7 \ testsuite/y-newline testsuite/y-zero testsuite/allsub \ testsuite/cv-vars testsuite/classes testsuite/middle \ testsuite/bsd testsuite/stdin testsuite/flipcase \ @@ -357,9 +357,6 @@ EXTRA_DIST += \ testsuite/xemacs.good \ testsuite/xemacs.inp \ testsuite/xemacs.sed \ - testsuite/y-bracket.good \ - testsuite/y-bracket.sed \ - testsuite/y-bracket.inp \ testsuite/y-zero.good \ testsuite/y-zero.sed \ testsuite/y-zero.inp \ diff --git a/testsuite/misc.pl b/testsuite/misc.pl index 5ea171a..622a5d5 100644 --- a/testsuite/misc.pl +++ b/testsuite/misc.pl @@ -51,6 +51,12 @@ my @Tests = {IN=> "a\nb" }, {OUT=>"ax\nbx" }, ], + + ['y-bracket', q('y/[/ /'), + {IN => "Are you sure (y/n)? [y]\n" }, + {OUT=> "Are you sure (y/n)? y]\n" }, + ], + ); my $save_temps = $ENV{SAVE_TEMPS}; diff --git a/testsuite/y-bracket.good b/testsuite/y-bracket.good deleted file mode 100644 index 7e1a0ac..0000000 --- a/testsuite/y-bracket.good +++ /dev/null @@ -1 +0,0 @@ -Are you sure (y/n)? y] diff --git a/testsuite/y-bracket.inp b/testsuite/y-bracket.inp deleted file mode 100644 index 131c38c..0000000 --- a/testsuite/y-bracket.inp +++ /dev/null @@ -1 +0,0 @@ -Are you sure (y/n)? [y] diff --git a/testsuite/y-bracket.sed b/testsuite/y-bracket.sed deleted file mode 100644 index 79f3b61..0000000 --- a/testsuite/y-bracket.sed +++ /dev/null @@ -1 +0,0 @@ -y/[/ /