source: LMDZ6/branches/Amaury_dev/tools/fcm/test/test_include/test.sh @ 5095

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
3echo "### Fortran compiler tests"
4for fc in \
5  "ifort" \
6  "ifort -assume nosource_include" \
7  "gfortran" \
8  "gfortran -I-"
9do
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
22done
23
24echo
25echo "### Preprocessor tests"
26fc=gfortran
27for cpp in \
28  "cpp -P -traditional" \
29  "cpp -P -traditional -I-"
30do
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
38done
Note: See TracBrowser for help on using the repository browser.