New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
test.sh in vendors/test/test_include – NEMO

source: vendors/test/test_include/test.sh @ 10669

Last change on this file since 10669 was 10669, checked in by nicolasmartin, 5 years ago

Import latest FCM release from Github into the repository for testing

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.