[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix code for requiring gfortran and g77 in tests.
From: |
Stefano Lattarini |
Subject: |
[PATCH] Fix code for requiring gfortran and g77 in tests. |
Date: |
Sun, 13 Jun 2010 22:03:33 +0200 |
User-agent: |
KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.4; i686; ; ) |
Another improvements to 'tests/defs', factored out from my on-going
refactoring of test scripts setup. This time it is (should be) a real
improvement, not just a cosmetic one.
Regards,
Stefano
-*-*-*-
Fix code for requiring gfortran and g77 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 | 4 ++++
tests/defs.in | 22 ++++++++++++++++++++++
From e51877a696ec8c125d1348e8b022881e4c7b23ca Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Wed, 2 Jun 2010 21:19:49 +0200
Subject: [PATCH] Fix code for requiring gfortran and g77 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 | 4 ++++
tests/defs.in | 22 ++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b5f1433..d52bfee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2010-06-13 Stefano Lattarini <address@hidden>
+ Fix code for requiring gfortran and g77 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.
+
Add useful comment in test script obsolete.test.
* tests/obsolte.test: Add a comment explaining why we need
an indirection in adding $AUTOUPDATE to $required.
diff --git a/tests/defs.in b/tests/defs.in
index 9bb6333..555f7bc 100644
--- a/tests/defs.in
+++ b/tests/defs.in
@@ -143,6 +143,28 @@ do
echo "$me: running $CXX --version"
( $CXX --version ) || exit 77
;;
+ gfortran)
+ FC=gfortran
+ export FC
+ echo "$me: running $FC --version"
+ ( $FC --version ) || exit 77
+ # This ensures that gfortran and g77 can both be required.
+ case " $required " in
+ *\ g77\ *);;
+ *) F77=$FC; export F77;;
+ esac
+ ;;
+ g77)
+ F77=g77
+ export F77
+ echo "$me: running $F77 --version"
+ ( $F77 --version ) || exit 77
+ # This ensures that gfortran and g77 can both be required.
+ case " $required " in
+ *\ gfortran\ *);;
+ *) FC=$F77; export FC;;
+ esac
+ ;;
icc)
CC=icc
export CC
--
1.6.5
- [PATCH] Fix code for requiring gfortran and g77 in tests.,
Stefano Lattarini <=
- Re: [PATCH] Fix code for requiring gfortran and g77 in tests., Ralf Wildenhues, 2010/06/20
- Re: [PATCH] Fix code for requiring gfortran and g77 in tests., Stefano Lattarini, 2010/06/20
- Re: [PATCH] Fix code for requiring gfortran and g77 in tests., Ralf Wildenhues, 2010/06/21
- Re: [PATCH] Fix code for requiring gfortran and g77 in tests., Stefano Lattarini, 2010/06/22
- [PATCH] New requirement "cc" for tests using a C compiler (was: Fix code for requiring gfortran and g77 in tests), Stefano Lattarini, 2010/06/22
- Re: [PATCH] New requirement "cc" for tests using a C compiler, Stefano Lattarini, 2010/06/22
- [PATCH 2/?] Do not SKIP a test on a command failing with `77' exit status (was: [PATCH] New requirement "cc" for tests using a C compiler), Stefano Lattarini, 2010/06/23
- [PATCH 3/?, 4/?] Make sure all tests needing a C compiler require it explicitly, Stefano Lattarini, 2010/06/23
- Re: [PATCHES v2] New requirement "cc" for tests needing a C compiler, Stefano Lattarini, 2010/06/23
- Re: [PATCHES v2] New requirement "cc" for tests needing a C compiler, Stefano Lattarini, 2010/06/29