From bfebbd11f941b2a6c78014d64333a9c3453f62cd Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 4 May 2011 11:58:21 +0200 Subject: [PATCH] tests: 'silent-many-gcc.test' improved and made more robust * tests/silent-many-gcc.test: Also force "fast" gcc depmode for C++ compilations. Add sanity checks verifying that the cache variables we force are really used by configure. Fix typo in comments. --- ChangeLog | 8 ++++++++ tests/silent-many-gcc.test | 11 +++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6021006fc..6ab07c7e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-04 Stefano Lattarini + + tests: 'silent-many-gcc.test' improved and made more robust + * tests/silent-many-gcc.test: Also force "fast" gcc depmode + for C++ compilations. Add sanity checks verifying that the + cache variables we force are really used by configure. Fix + typo in comments. + 2011-05-04 Stefano Lattarini tests: drop useless requirements of 'g++' diff --git a/tests/silent-many-gcc.test b/tests/silent-many-gcc.test index 62dafa196..79fa4a634 100755 --- a/tests/silent-many-gcc.test +++ b/tests/silent-many-gcc.test @@ -180,11 +180,18 @@ $ACLOCAL $AUTOMAKE --add-missing $AUTOCONF +# Sanity check: make sure the cache variables we force are really +# used by configure. +$FGREP am_cv_CC_dependencies_compiler_type configure +$FGREP am_cv_CXX_dependencies_compiler_type configure + # Force gcc ("fast") depmode. +depmodes="am_cv_CC_dependencies_compiler_type=gcc \ + am_cv_CXX_dependencies_compiler_type=gcc" # This apparently useless "for" loop is here to simplify the syncing -# with sister test `silent-many-gcc.test'. +# with sister test `silent-many-generic.test'. for config_args in \ - am_cv_CC_dependencies_compiler_type=gcc + "$depmodes" do ./configure $config_args --enable-silent-rules -- 2.47.2