From: Stefano Lattarini Date: Tue, 27 Apr 2010 10:33:32 +0000 (+0200) Subject: Enable `errexit' shell flag in all tests cxx*.test. X-Git-Tag: v1.11.1b~80^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71288283bca6ba61325feb86badbc7719bc90234;p=thirdparty%2Fautomake.git Enable `errexit' shell flag in all tests cxx*.test. * tests/cxx.test: Add call to `set -e'. Related changes. Bumped copyright years. * tests/cxxansi.test: Likewise. * tests/cxxcpp.test: Likewise. * tests/cxxlibobj.test: Likewise. * tests/cxxlink.test: Likewise. * tests/cxxo.test: Likewise. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 69a89ff4c..e62e54f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2010-06-06 Stefano Lattarini + Enable `errexit' shell flag in all tests cxx*.test. + * tests/cxx.test: Enabled `errexit' shell flag, and related + minor changes. + * tests/cxxansi.test: Likewise. + * tests/cxxcpp.test: Likewise. + * tests/cxxlibobj.test: Likewise. + * tests/cxxlink.test: Likewise. + * tests/cxxo.test: Likewise. + Enable `errexit' shell flag in various tests. * tests/acoutnoq.test: Enabled `errexit' shell flag, and related minor changes. diff --git a/tests/cxx.test b/tests/cxx.test index 2105c0081..aa2f22575 100755 --- a/tests/cxx.test +++ b/tests/cxx.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2010 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 @@ -19,6 +19,8 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CXX END @@ -28,7 +30,7 @@ bin_PROGRAMS = hello hello_SOURCES = hello.c++ END -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE grep '^\.SUFFIXES:.*c[+][+]' Makefile.in diff --git a/tests/cxxansi.test b/tests/cxxansi.test index da8bd6b41..8bbe9b278 100755 --- a/tests/cxxansi.test +++ b/tests/cxxansi.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2010 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 @@ -19,6 +19,8 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CXX AM_C_PROTOTYPES @@ -36,10 +38,10 @@ END : > doe.C : > jane.C -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE $FGREP 'jane$U' Makefile.in && Exit 1 -$FGREP 'doe$U' Makefile.in || Exit 1 +$FGREP 'doe$U' Makefile.in Exit 0 diff --git a/tests/cxxcpp.test b/tests/cxxcpp.test index 257505f6e..09bb4eb8c 100755 --- a/tests/cxxcpp.test +++ b/tests/cxxcpp.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1998, 2001, 2002, 2010 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 @@ -18,14 +18,15 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CXXCPP END - : > Makefile.am -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE grep '^CXXCPP' Makefile.in diff --git a/tests/cxxlibobj.test b/tests/cxxlibobj.test index 82f9e85a5..5f5ee308d 100755 --- a/tests/cxxlibobj.test +++ b/tests/cxxlibobj.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1997, 2001, 2002, 2010 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 @@ -18,6 +18,8 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CXX AC_PROG_CC @@ -34,7 +36,7 @@ END : > doe.C : > jane.C -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE grep CC Makefile.in diff --git a/tests/cxxlink.test b/tests/cxxlink.test index b7a86f00d..66b3d2953 100755 --- a/tests/cxxlink.test +++ b/tests/cxxlink.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1996, 2001, 2002, 2010 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 @@ -18,6 +18,8 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CC AC_PROG_CXX @@ -31,8 +33,8 @@ END : > lava.c : > lamp.cxx -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE # Look for this macro not at the beginning of any line; that will have # to be good enough for now. diff --git a/tests/cxxo.test b/tests/cxxo.test index 116df06c8..a69fb2ab1 100755 --- a/tests/cxxo.test +++ b/tests/cxxo.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1996, 2001, 2002, 2010 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 @@ -17,6 +17,8 @@ # Make sure C++ files are rewritten to ".o" and not just "o". . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CXX END @@ -28,7 +30,7 @@ END : > doe.C -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE $FGREP 'doe.$(OBJEXT)' Makefile.in