diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2010-05-08 02:25:50 +0200 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2010-06-06 14:27:57 +0200 |
commit | ac61ca33187ca451bb01d733b472a027003e72b7 (patch) | |
tree | 9eafe2c3db8354ee878f9b72c24258a64094e717 /tests/link_f_only.test | |
parent | 121470109ab5ff5b7a4dc89f1b2916c6d4931c21 (diff) | |
download | automake-ac61ca33187ca451bb01d733b472a027003e72b7.tar.gz |
Improve tests link*.test (enable `set -e').
* 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.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/link_f_only.test')
-rwxr-xr-x | tests/link_f_only.test | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/link_f_only.test b/tests/link_f_only.test index 4390bd6d8..c4df8cefb 100755 --- a/tests/link_f_only.test +++ b/tests/link_f_only.test @@ -1,5 +1,6 @@ #! /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 @@ -19,6 +20,8 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_F77 END @@ -28,17 +31,14 @@ bin_PROGRAMS = lavalamp 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 |