]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
testsuite: SKIP compile tests if configure found no compiler.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 7 Mar 2009 00:41:29 +0000 (01:41 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 7 Mar 2009 00:41:29 +0000 (01:41 +0100)
* tests/depend6.test: configure will exit 77 if AC_PROG_CC found
no working compiler.  Allow the test to be SKIPped in that case.
* tests/postproc.test: Likewise.
* tests/pr243.test: Likewise.
* tests/pr266.test: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/depend6.test
tests/postproc.test
tests/pr243.test
tests/pr266.test

index 1c4689dfde52fe1d106597769f61c4ff033530c2..658832fd734cebc866acaec4f47c853899e88793 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-03-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       testsuite: SKIP compile tests if configure found no compiler.
+       * tests/depend6.test: configure will exit 77 if AC_PROG_CC found
+       no working compiler.  Allow the test to be SKIPped in that case.
+       * tests/postproc.test: Likewise.
+       * tests/pr243.test: Likewise.
+       * tests/pr266.test: Likewise.
+
        Fix maintainer-check fallout.
        * tests/compile2.test: Use `Exit', not `exit'.
 
index 6a1595c582989b6f1f86dd5d7791c958fdb77258..7a1f7220bf92b5553b26e1512c8969b1439c92f0 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2008  Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -39,7 +39,9 @@ END
 $ACLOCAL
 $AUTOMAKE
 $AUTOCONF
-./configure --disable-dependency-tracking 2>stderr || { cat stderr >&2; Exit 1; }
+./configure --disable-dependency-tracking 2>stderr || {
+  stat=$?; cat stderr >&2; Exit $stat;
+}
 cat stderr >&2
 grep shift stderr && Exit 1
 :
index 254c93649b3fd26294da3f18d9ed9ed05a984cb5..dff60fcfef79df2f6119a0a665992c67d9c0b8c0 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2002, 2004  Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -40,7 +40,7 @@ mv myMakefile.in myMakefile.old
 echo '# Post-processed by post-processor 3.14.' > myMakefile.in
 cat myMakefile.old >> myMakefile.in
 
-./configure || Exit 1
+./configure || Exit $?
 
 test -f .deps/fred.Po || test -f _deps/fred.Po || Exit 1
 
index 1a66e8e9a9984be7c2f571b8b7c611b2afcc59df..516665ecf94b320bd54fa940e03acd56c3227442 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -40,6 +40,6 @@ END
 $ACLOCAL || Exit 1
 $AUTOMAKE || Exit 1
 $AUTOCONF || Exit 1
-./configure || Exit 1
+./configure || Exit $?
 
 test -f .deps/fx64.Po
index e3fd5829150d2563fdc4813be548e6f48325a4c2..2b4ca1fe9425a1fdb3b71c1ee65521539cd11072 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -38,6 +38,6 @@ END
 $ACLOCAL || Exit 1
 $AUTOMAKE || Exit 1
 $AUTOCONF || Exit 1
-./configure || Exit 1
+./configure || Exit $?
 
 test -f .deps/fx64.Po