From eb3945795c35cfbdc02cacb6a1f45f7b0606a5b1 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 7 Mar 2009 01:41:29 +0100 Subject: [PATCH] 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. Signed-off-by: Ralf Wildenhues --- ChangeLog | 7 +++++++ tests/depend6.test | 6 ++++-- tests/postproc.test | 4 ++-- tests/pr243.test | 4 ++-- tests/pr266.test | 4 ++-- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c4689dfd..658832fd7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2009-03-07 Ralf Wildenhues + 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'. diff --git a/tests/depend6.test b/tests/depend6.test index 6a1595c58..7a1f7220b 100755 --- a/tests/depend6.test +++ b/tests/depend6.test @@ -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 : diff --git a/tests/postproc.test b/tests/postproc.test index 254c93649..dff60fcfe 100755 --- a/tests/postproc.test +++ b/tests/postproc.test @@ -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 diff --git a/tests/pr243.test b/tests/pr243.test index 1a66e8e9a..516665ecf 100755 --- a/tests/pr243.test +++ b/tests/pr243.test @@ -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 diff --git a/tests/pr266.test b/tests/pr266.test index e3fd58291..2b4ca1fe9 100755 --- a/tests/pr266.test +++ b/tests/pr266.test @@ -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 -- 2.47.2