]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Improve tests on generated portions of configure help screen.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 12 Dec 2010 13:17:41 +0000 (14:17 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 14 Dec 2010 00:03:29 +0000 (01:03 +0100)
* tests/help-depend.test: Grepping of configure help screen
relaxed to cater for possible line wrapping, and tightened in
other respects.
* tests/help-depend2.test: Likewise.
* tests/help-dmalloc.test: Likewise.
* tests/help-lispdir.test: Likewise.
* tests/help-maintainer.test: Likewise.
* tests/help-multilib.test: Likewise.
* tests/help-silent.test: Likewise.
* tests/help-upc.test: Likewise.
* tests/help-init.test: Grepping of configure help screen
tightened.

ChangeLog
tests/help-depend.test
tests/help-depend2.test
tests/help-dmalloc.test
tests/help-init.test
tests/help-lispdir.test
tests/help-maintainer.test
tests/help-multilib.test
tests/help-silent.test
tests/help-upc.test

index 5afdc53e64ad6c2d572ee187fc019a0f2db38854..2482ef1916c3301731823df4ec902eeed292c973 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2010-12-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       Improve tests on generated portions of configure help screen.
+       * tests/help-depend.test: Grepping of configure help screen
+       relaxed to cater for possible line wrapping, and tightened in
+       other respects.
+       * tests/help-depend2.test: Likewise.
+       * tests/help-dmalloc.test: Likewise.
+       * tests/help-lispdir.test: Likewise.
+       * tests/help-maintainer.test: Likewise.
+       * tests/help-multilib.test: Likewise.
+       * tests/help-silent.test: Likewise.
+       * tests/help-upc.test: Likewise.
+       * tests/help-init.test: Grepping of configure help screen
+       tightened.
+
 2010-12-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Avoid running installed automake from 'libtool --help'.
index ed9447e4367eb1bcc4e5ba11d50df2a5e6030a08..e676e5e62af58bbd2b42de5ddfb39170e0af74ad 100755 (executable)
@@ -33,9 +33,9 @@ $AUTOCONF
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
 
-$FGREP ' --enable-dependency-tracking ' stdout
-$FGREP ' --disable-dependency-tracking ' stdout
-$FGREP ' one-time build' stdout
+$EGREP '^  *--enable-dependency-tracking( |$)' stdout
+$EGREP '^  *--disable-dependency-tracking( |$)' stdout
+$FGREP ' speeds up one-time build' stdout
 $FGREP ' slow dependency extract' stdout
 
 :
index b4133b42beb14126f2040876f0eefb5bb07c185d..6bad661ddacaa6d4f28c2bb8c4d23b47042ec6ee 100755 (executable)
@@ -34,9 +34,9 @@ $AUTOCONF
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
 
-$FGREP ' --enable-dependency-tracking ' stdout
-$FGREP ' --disable-dependency-tracking ' stdout
-$FGREP ' one-time build' stdout
+$EGREP '^  *--enable-dependency-tracking( |$)' stdout
+$EGREP '^  *--disable-dependency-tracking( |$)' stdout
+$FGREP ' speeds up one-time build' stdout
 $FGREP ' slow dependency extract' stdout
 
 :
index c20288d58ab2a33845ef8522787d5003f463b210..51b3ba4bec1d51c5d62e9dedf542c322fc09749a 100755 (executable)
@@ -32,7 +32,7 @@ $AUTOCONF
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
 
-$FGREP ' --with-dmalloc ' stdout
+$EGREP '^   *--with-dmalloc( |$) ' stdout
 $FGREP ' use dmalloc' stdout
 $FGREP 'www.dmalloc.com' stdout
 
index a3af2714d83bbfa90b7f929336707caa29da1555..fdd9fa04d3d088d89950aeb49f68182f782a3d2b 100755 (executable)
@@ -32,8 +32,8 @@ $AUTOCONF
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
 
-grep ' --program-prefix[= ]' stdout
-grep ' --program-suffix[= ]' stdout
-grep ' --program-transform-name[= ]' stdout
+grep '^  *--program-prefix[= ]' stdout
+grep '^  *--program-suffix[= ]' stdout
+grep '^  *--program-transform-name[= ]' stdout
 
 :
index 3d8207467dc985d4bc74906e993bfac3fc62c954..5eb7ab9bb77054ad59f99fbc812418c71e77906b 100755 (executable)
@@ -32,9 +32,11 @@ $AUTOCONF
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
 
-grep ' --with-lispdir .*override.*lisp directory' stdout
-grep ' EMACS .*[eE]macs editor' stdout
-grep ' EMACSLOADPATH' stdout
+$EGREP '^  *--with-lispdir( |$)' stdout
+grep ' override.*lisp directory' stdout
+$EGREP '^  *EMACS( |$)' stdout
+grep ' .*[eE]macs editor' stdout
+$EGREP '^  *EMACSLOADPATH( |$)' stdout
 grep ' .*[eE]macs library search path' stdout
 
 :
index 72fc98a3753ad490280aeaca02f14d4f0ce2f4c4..6933d0c6570a0f25092bb9f9b212bcf9399854a4 100755 (executable)
@@ -31,7 +31,8 @@ $ACLOCAL
 $AUTOCONF --force
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
-grep ' --enable-maintainer-mode.*enable make rules' stdout
+$EGREP '^  *--enable-maintainer-mode( |$)' stdout
+$FGREP ' enable make rules' stdout
 
 rm -rf autom4te*.cache # just to be sure
 sed 's/\(AM_MAINTAINER_MODE\).*/\1([disable])/' configure.in >t
@@ -42,7 +43,8 @@ $ACLOCAL
 $AUTOCONF --force
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
-grep ' --enable-maintainer-mode.*enable make rules' stdout
+$EGREP '^  *--enable-maintainer-mode( |$)' stdout
+$FGREP ' enable make rules' stdout
 
 rm -rf autom4te*.cache # just to be sure
 sed 's/\(AM_MAINTAINER_MODE\).*/\1([enable])/' configure.in >t
@@ -53,6 +55,7 @@ $ACLOCAL
 $AUTOCONF --force
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
-grep ' --disable-maintainer-mode.*disable make rules' stdout
+$EGREP '^  *--disable-maintainer-mode( |$)' stdout
+$FGREP ' disable make rules' stdout
 
 :
index 0016c7646b2020e4faf18b109558bdab59dd5e20..1657c345b3b71e5bf1489387c6fec2fdb95078ec 100755 (executable)
@@ -32,7 +32,7 @@ $AUTOCONF
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
 
-$FGREP ' --enable-multilib ' stdout
+$EGREP '^  *--enable-multilib( |$)' stdout
 $FGREP ' many library versions (default)' stdout
 
 :
index b33890760a43ecacb596e67a4f47b51d0748104c..e59f2f1cb2a6214ec1b771481a510e858305cee9 100755 (executable)
@@ -36,8 +36,10 @@ for args in '' '([])' '([yes])' '([no])'; do
   $AUTOCONF --force
   ./configure --help >stdout || { cat stdout; Exit 1; }
   cat stdout
-  grep ' --enable-silent-rules  *less verbose build.*undo.*make V=1' stdout
-  grep ' --disable-silent-rules  *verbose build.*undo.*make V=0' 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
 done
 
 :
index 586299b2b4508c28beb420218ea93202e2d75926..8f5ff5feb6fcf9cea9c4a9558127901f2fdfa6a0 100755 (executable)
@@ -32,7 +32,7 @@ $AUTOCONF
 ./configure --help >stdout || { cat stdout; Exit 1; }
 cat stdout
 
-grep ' UPCFLAGS .*Unified Parallel C compiler flags' stdout
-grep ' UPC .*Unified Parallel C compiler command' stdout
+grep '^  *UPCFLAGS .*Unified Parallel C compiler flags' stdout
+grep '^  *UPC .*Unified Parallel C compiler command' stdout
 
 :