Skip to content

Testing

EXTPAR is tested with an adapted version of the COSMO technical testsuite .

Run Tests

First step is to compile the code following the instructions in Compile and Run.

Docker

docker run extpar bash -c "/workspace/test/jenkins/test_docker.sh"

Levante

cp bin/* test/testsuite/bin/.
cd test/testsuite
./data/get_data.sh
sbatch submit.levante.sh

The results of the testsuite can be found in file testsuite.out

An example output could look as follows:
Testsuite_log

Testlists

There are many different testlist, each containing a set of tests for different setups, compiler or models:

GCC

Tolerances

It is possible to define an optional tolerance threshold for each test and each field. To allow deviations for the test icon_d2 for example, just dit the the tolerances file .

The syntax is as follows:

PARAMETER, abs_diff
NDVI, 9.0e-08
W_SNOW, 5.0e-05

Add a New Test

  1. Modify the testlist.xml file to add the new test. Alternatively, you could also add a new testlist XML file (with a new name). The testlist which is run can be chosen from the testsuite command line.

  2. Make a folder in the data folder for the new test containing the INPUT_* files and the namelist.py for the Python-CDO modules.

  3. Send any binary reference files to upload to the ftp site to the source code administrator.