summaryrefslogtreecommitdiff
path: root/tests/help-silent.test
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-11-04 20:15:12 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-11-04 20:15:12 +0100
commit8355b2b59221c58b33d686a0a2b4f22a19a3c330 (patch)
tree924e6c98d3730065499c64d2ee82a71964b9c139 /tests/help-silent.test
parente79b1bf3d8fa33bb4e2d4d3b6c4b1f90dd65ea40 (diff)
downloadautomake-8355b2b59221c58b33d686a0a2b4f22a19a3c330.tar.gz
test defs: new functions to analyze configure help screen
* tests/defs (extract_configure_help, grep_configure_help): New functions. * tests/maintmode-configure-msg.test: Use them, reducing code duplication and test brittleness. * tests/help-depend.test: Likewise. * tests/help-depend2.test: Likewise. * tests/help-dmalloc.test: Likewise. * tests/help-lispdir.test: Likewise. * tests/help-multilib.test: Likewise. * tests/help-python.test: Likewise. * tests/help-regex.test: Likewise. * tests/help-silent.test: Likewise. * tests/help-upc.test: Likewise. * tests/help-init.test: Make grepping of configure help screen slightly stricter. * tests/self-check-configure-help.test: New self test. * tests/Makefile.am (TESTS): Add it. From a report by Jim Meyering.
Diffstat (limited to 'tests/help-silent.test')
-rwxr-xr-xtests/help-silent.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/help-silent.test b/tests/help-silent.test
index e41d166f3..855be52e3 100755
--- a/tests/help-silent.test
+++ b/tests/help-silent.test
@@ -28,16 +28,16 @@ $ACLOCAL
mv -f configure.in configure.tmpl
+q="[\`'\"]"
+
for args in '' '([])' '([yes])' '([no])'; do
sed "s/AM_SILENT_RULES.*/&$args/" configure.tmpl >configure.in
cat configure.in
$AUTOCONF --force
- ./configure --help >stdout || { cat stdout; Exit 1; }
- cat stdout
- $EGREP '^ *--enable-silent-rules( |$)' stdout
- grep ' less verbose build.*undo.*make V=1' stdout
- $EGREP '^ *--disable-silent-rules ( |$)' stdout
- grep ' verbose build.*undo.*make V=0' stdout
+ grep_configure_help --enable-silent-rules \
+ " less verbose build.*\\(undo.*${q}make V=1${q}"
+ grep_configure_help --disable-silent-rules \
+ " verbose build.*\\(undo.*${q}make V=0${q}"
done
: