+2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ Improve tests link*.test (enable `errexit' shell flag).
+ * tests/link_c_cxx.test: Enable `errexit shell flag, and related
+ changes. Also, do not create useless source files.
+ * tests/link_dist.test: Likewise.
+ * tests/link_f90_only.test: Likewise.
+ * tests/link_f_only.test: Likewise.
+ * tests/link_fc.test: Likewise.
+ * tests/link_fccxx.test: Likewise.
+ * tests/link_fcxx.test: Likewise.
+
2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Improve ext.test semantics, avoid OpenBSD sh errexit issue.
#! /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
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_CXX
lavalamp_SOURCES = lava.c lamp.cxx
END
-: > lava.c
-: > lamp.cxx
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
-
+$ACLOCAL
+$AUTOMAKE
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || Exit 1
+grep '.\$(CXXLINK)' Makefile.in
# We should not see these patterns:
grep '.\$(FLINK)' Makefile.in && Exit 1
#! /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
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_CXX
dist_lavalamp_SOURCES = lamp.cxx
END
-: > lava.c
-: > lamp.cxx
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
-
+$ACLOCAL
+$AUTOMAKE
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || Exit 1
+grep '.\$(CXXLINK)' Makefile.in
# We should not see these patterns:
grep '.\$(FLINK)' Makefile.in && Exit 1
#! /bin/sh
-# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 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
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_FC
END
lavalamp_SOURCES = lamp.f90
END
-: > lamp.f90
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
-
+$ACLOCAL
+$AUTOMAKE
# We should only see the Fortran linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(FCLINK)' Makefile.in || Exit 1
+grep '.\$(FCLINK)' Makefile.in
# We should not see these patterns:
grep '.\$(CXXLINK)' Makefile.in && Exit 1
#! /bin/sh
-# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 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
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_F77
END
lavalamp_SOURCES = lamp.f
END
-: > lamp.f
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
-
+$ACLOCAL
+$AUTOMAKE
# We should only see the Fortran linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(F77LINK)' Makefile.in || Exit 1
+grep '.\$(F77LINK)' Makefile.in
# We should not see these patterns:
grep '.\$(CXXLINK)' Makefile.in && Exit 1
#! /bin/sh
-# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 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
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_F77
lavalamp_SOURCES = lava.c lamp.f
END
-: > lava.c
-: > lamp.f
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
-
+$ACLOCAL
+$AUTOMAKE
# We should only see the Fortran 77 linker in the rules of
# `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(F77LINK)' Makefile.in || Exit 1
+grep '.\$(F77LINK)' Makefile.in
# We should not see these patterns:
grep '.\$(LINK)' Makefile.in && Exit 1
#! /bin/sh
-# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 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
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_CXX
lavalamp_SOURCES = lava.c lamp.cxx lamp2.f
END
-: > lava.c
-: > lamp.cxx
-: > lamp2.f
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
-
+$ACLOCAL
+$AUTOMAKE
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || Exit 1
+grep '.\$(CXXLINK)' Makefile.in
# We should not see these patterns:
grep '.\$(F77LINK)' Makefile.in && Exit 1
#! /bin/sh
-# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 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
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CXX
AC_PROG_F77
lavalamp_SOURCES = lava.cxx lamp.f
END
-: > lava.cxx
-: > lamp.f
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
-
+$ACLOCAL
+$AUTOMAKE
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || Exit 1
+grep '.\$(CXXLINK)' Makefile.in
# We should not see these patterns:
grep '.\$(F77LINK)' Makefile.in && Exit 1