[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/14] Fix code for requiring gfortran in tests.
From: |
Stefano Lattarini |
Subject: |
[PATCH 11/14] Fix code for requiring gfortran in tests. |
Date: |
Fri, 2 Jul 2010 15:30:00 +0200 |
User-agent: |
KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.4; i686; ; ) |
This should supersede the old-patch of mine "Fix code for requiring
gfortran and g77 in tests" (which happened to kick-start this patch
series BTW). Note that no "g77" special requirement is added anymore,
since presently no test script is using it.
Regards,
Stefano
-*-*-*-
Fix code for requiring gfortran in tests.
* tests/defs.in: Correctly set and export F77 and/or FC when
gfortran is in $required.
---
ChangeLog | 6 ++++++
tests/defs.in | 9 +++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
From 422e5322812d6576a9076996869d3f1757a3f2cc Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Fri, 2 Jul 2010 12:41:30 +0200
Subject: [PATCH 11/14] Fix code for requiring gfortran in tests.
* tests/defs.in: Correctly set and export F77 and/or FC when g77
and/or gfortran are in $required, even when they both required.
---
ChangeLog | 6 ++++++
tests/defs.in | 9 +++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5d027b2..6a1d5a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
2010-07-02 Stefano Lattarini <address@hidden>
+
+ Fix code for requiring gfortran in tests.
+ * tests/defs.in: Correctly set and export F77 and/or FC when
+ gfortran is in $required.
+
+2010-07-02 Stefano Lattarini <address@hidden>
Ralf Wildenhues <address@hidden>
New requirements "fortran" and "fortran77", for tests using
diff --git a/tests/defs.in b/tests/defs.in
index 588c3ec..42a23ef 100644
--- a/tests/defs.in
+++ b/tests/defs.in
@@ -189,6 +189,15 @@ do
# gfortran should be able to seamlessly compile Fortran 77 code
require_compiler 'F77' g77 gfortran
;;
+ gfortran)
+ require_gnu_compiler 'FC' gfortran
+ # This ensures that gfortran and a fortran77 compiler can both be
+ # required.
+ case " $required " in
+ *\ fortran77\ *);;
+ *) F77=$FC; export F77;;
+ esac
+ ;;
icc)
CC=icc
export CC
--
1.6.5
- [PATCH 01/14] New requirement "cc" for tests using a C compiler., (continued)
- [PATCH 01/14] New requirement "cc" for tests using a C compiler., Stefano Lattarini, 2010/07/02
- [PATCH 02/14] Drop useless "cc" requirement from a test script., Stefano Lattarini, 2010/07/02
- [PATCH 03/14] Do not SKIP a test on a command failing with `77' exit status., Stefano Lattarini, 2010/07/02
- [PATCH 04/14] Make sure all tests needing C compiler require it explicitly., Stefano Lattarini, 2010/07/02
- [PATCH 05/14] New requirement "c++" for tests using a C++ compiler., Stefano Lattarini, 2010/07/02
- [PATCH 06/14] Fix `silent*.test' for C++ compilers with "weird" names., Stefano Lattarini, 2010/07/02
- [PATCH 07/14] Make sure silent*.test work with non-GNU C compilers., Stefano Lattarini, 2010/07/02
- [PATCH 08/14] Fixes/renamings for "synced tests" among `silent*.test'., Stefano Lattarini, 2010/07/02
- [PATCH 09/14] Refactor code requiring compilers in testsuite., Stefano Lattarini, 2010/07/02
- [PATCH 10/14] Tests: new requirements "fortran" and "fortran77", Stefano Lattarini, 2010/07/02
- [PATCH 11/14] Fix code for requiring gfortran in tests.,
Stefano Lattarini <=
- [PATCH 12/14] Refactor code requiring compilers in testsuite., Stefano Lattarini, 2010/07/02
- [PATCH 13/14] Clobber global CFLAGS etc. when requiring GNU compilers., Stefano Lattarini, 2010/07/02
- Re: [PATCH 0/14] Fix/improve requirements declaration for test scripts., Stefano Lattarini, 2010/07/02
- [PATCH 14/14] Make sure all tests needing gzip require it explicitly., Stefano Lattarini, 2010/07/02