[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FYI] {master} depcomp tests: avoid redundant runs for non-libtool test
From: |
Peter Rosin |
Subject: |
[FYI] {master} depcomp tests: avoid redundant runs for non-libtool test |
Date: |
Tue, 14 Feb 2012 03:01:24 +0100 |
When running the dependency tests without libtool, it's
not meaningful to run the tests three-fold, the libtool
configure options are simply ignored anyway.
* tests/depcomp.sh: Only run the tests three-fold when
libtool is in use.
---
tests/depcomp.sh | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
Hi!
I'm pushing this as obvious.
Cheers,
Peter
diff --git a/tests/depcomp.sh b/tests/depcomp.sh
index 708314f..9d8060d 100755
--- a/tests/depcomp.sh
+++ b/tests/depcomp.sh
@@ -286,23 +286,28 @@ test -f build-aux/depcomp \
case $depmode in
auto)
- plan_ 84
- do_all_tests ()
- {
- do_test default
- do_test noshared --disable-shared
- do_test nostatic --disable-static
- }
+ if test $depcomp_with_libtool = no; then
+ plan_ 28
+ do_all_tests () { do_test; }
+ else
+ plan_ 84
+ do_all_tests ()
+ {
+ do_test default
+ do_test noshared --disable-shared
+ do_test nostatic --disable-static
+ }
+ fi
displayed_depmode='..*' # At least one character long.
cfg_deptrack=--enable-dependency-tracking ;;
disabled)
plan_ 28
- do_all_tests() { do_test; }
+ do_all_tests () { do_test; }
displayed_depmode=none
cfg_deptrack=--disable-dependency-tracking ;;
*)
plan_ 28
- do_all_tests() { do_test; }
+ do_all_tests () { do_test; }
displayed_depmode="(cached) $depmode"
cfg_deptrack="$cachevar=$depmode"
# Sanity check: ensure the cache variable we force is truly
--
1.7.5.1
- [FYI] {master} depcomp tests: avoid redundant runs for non-libtool test,
Peter Rosin <=