Last change
on this file since 5095 was
5095,
checked in by abarral, 2 months ago
|
Revert cosp*/ from the trunk, as it's external code
Add missing bits from FCM2 source
|
-
Property svn:executable set to
*
|
File size:
773 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | echo "### Fortran compiler tests" |
---|
4 | for fc in \ |
---|
5 | "ifort" \ |
---|
6 | "ifort -assume nosource_include" \ |
---|
7 | "gfortran" \ |
---|
8 | "gfortran -I-" |
---|
9 | do |
---|
10 | echo |
---|
11 | echo "Compiler: $fc" |
---|
12 | echo "Fortran include test:" |
---|
13 | $fc -o test.o -I$PWD/inc -c prog/test_fortran_inc.f90 |
---|
14 | $fc -o test.exe test.o |
---|
15 | test.exe |
---|
16 | rm test.exe test.o |
---|
17 | echo "CPP include test:" |
---|
18 | $fc -o test.o -I$PWD/inc -c prog/test_prepro_inc.F90 |
---|
19 | $fc -o test.exe test.o |
---|
20 | test.exe |
---|
21 | rm test.exe test.o |
---|
22 | done |
---|
23 | |
---|
24 | echo |
---|
25 | echo "### Preprocessor tests" |
---|
26 | fc=gfortran |
---|
27 | for cpp in \ |
---|
28 | "cpp -P -traditional" \ |
---|
29 | "cpp -P -traditional -I-" |
---|
30 | do |
---|
31 | echo |
---|
32 | echo "Pre-processor: $cpp" |
---|
33 | $cpp -I$PWD/inc prog/test_prepro_inc.F90 >tmp.f90 |
---|
34 | $fc -o test.o -I$PWD/inc -c tmp.f90 |
---|
35 | $fc -o test.exe test.o |
---|
36 | test.exe |
---|
37 | rm test.exe test.o tmp.f90 |
---|
38 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.