tests: convert 'quiet'/'file' tests to new framework

* testsuite/local.mk: (SEDTESTS): Remove tests.
* testsuite/misc.pl: Add tests.
This commit is contained in:
Assaf Gordon committed 2017-05-10 21:37:21 -04:00
1 parent 34ec11a66b
commit 50b7d92bab
2 files changed
+34 -2

No files matched your search

+2 -2
View File
@@ -118,8 +118,8 @@ SEDTESTS += testsuite/8bit testsuite/newjis \
testsuite/utf8-1 \
testsuite/utf8-2 testsuite/utf8-3 testsuite/utf8-4 \
testsuite/badenc testsuite/inplace-hold \
testsuite/help testsuite/file \
testsuite/quiet testsuite/binary3 \
testsuite/help \
testsuite/binary3 \
testsuite/binary2 testsuite/binary testsuite/dc
# Note that the first lines are statements. They ensure that environment
+32
View File
@@ -199,6 +199,38 @@ s/[[[[[[[[[]/h/
. ": \${ac_cv_prog_CPP='/usr/bin/cpp'}\n"}
],
['quiet',
# the old 'quiet' test: --quiet instead of -n
qw(--quiet -f),
{IN => q|s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\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"
. "ac_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"
. ": \${ac_cv_prog_CPP='/usr/bin/cpp'}\n"}
],
['file',
# the old 'file' test: --file instead of -f
qw(-n --file),
{IN => q|s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\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"
. "ac_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"
. ": \${ac_cv_prog_CPP='/usr/bin/cpp'}\n"}
],
['dollar',
# Test replacement on the last line (address '$')