diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2017-04-10 02:44:11 +0000 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2017-05-10 21:37:18 -0400 |
commit | 62abe2493346a6b012522935698f26b9a092ed17 (patch) | |
tree | e52e5ff9b61dac50a93ca18b4f093f92480b4f39 /testsuite/misc.pl | |
parent | b4a5e6e9686e360b420cebe20a083a2fef354ef6 (diff) | |
download | sed-62abe2493346a6b012522935698f26b9a092ed17.tar.gz |
tests: convert "classes" test to new framework
* testsuite/misc.pl (Tests): Add classes.
* testsuite/classes.good: Delete file.
* testsuite/classes.inp: Likewise.
* testsuite/classes.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "classes".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r-- | testsuite/misc.pl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl index 7b88abf..7dbdf0f 100644 --- a/testsuite/misc.pl +++ b/testsuite/misc.pl @@ -148,6 +148,23 @@ q)}, . "\n"} ], + ['classes', + # inspired by an autoconf generated configure script. + qw(-n -f), + {IN => 's/^\([/[:lower:]A-Z0-9]*_cv_[[:lower:][:upper:]/[:digit:]]*\)'. + '=\(.*\)/: \${\1=\'\2\'}/p'}, + {IN => "_cv_=emptyvar\n" + . "ac_cv_prog/RANLIB=/usr/bin/ranlib\n" + . "ac_cv_prog/CC=/usr/unsupported/\\ \\ /lib/_cv_/cc\n" + . "a/c_cv_prog/CPP=/usr/bin/cpp\n" + . "SHELL=bash\n" + . "GNU=GNU!UNIX\n"}, + {OUT => ": \${_cv_='emptyvar'}\n" + . ": \${ac_cv_prog/RANLIB='/usr/bin/ranlib'}\n" + . ": \${ac_cv_prog/CC='/usr/unsupported/\\ \\ /lib/_cv_/cc'}\n" + . ": \${a/c_cv_prog/CPP='/usr/bin/cpp'}\n"} + ], + ['dollar', # Test replacement on the last line (address '$') qw(-e '$s/^/space /'), |