source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/run_sub_test.sh @ 1734

Last change on this file since 1734 was 1734, checked in by yushan, 5 years ago

GENERIC_TESTCASE : check all .nc files by default. Generate Cmake files from python scripts (user_config.py, setup.py). Add scripts for copy to/from compressed reference stored in /gpfswork/rech/psl/rpsl954 (Jean-Zay and Irene).

  • Property svn:executable set to *
File size: 1.4 KB
RevLine 
[1714]1#!/bin/bash
2
3
4
[1729]5cp ../context_grid_dynamico.xml ./
6cp ../dynamico_grid.nc ./
7
8cp ../config.py sub_config.py
9cp ../check.py sub_check.py
10
11cp ../default_param.py default_param.py
12
13
14
[1721]15# Black        0;30     Dark Gray     1;30
16# Red          0;31     Light Red     1;31
17# Green        0;32     Light Green   1;32
18# Brown/Orange 0;33     Yellow        1;33
19# Blue         0;34     Light Blue    1;34
20# Purple       0;35     Light Purple  1;35
21# Cyan         0;36     Light Cyan    1;36
22# Light Gray   0;37     White         1;37
[1714]23
[1721]24
[1726]25
[1729]26nb_proc=$(python sub_config.py 2>&1) 
[1721]27
[1729]28machine_name=jeanzay
[1714]29
[1734]30# echo $nb_proc
[1725]31if [[ ($machine_name == irene) ]]
[1718]32then
[1729]33    echo "Testing on Irene"
[1718]34    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe
[1725]35elif [[($machine_name == ada)]]
36then
37    echo "Testing on ADA"
38    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe
39elif [[($machine_name == jeanzay)]]
40then
41    echo "Testing on Jean-Zay" 
42    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe
[1728]43    if [ $? -ne 0 ]
[1729]44        then
45            echo "execution failed"
[1728]46            rm -f iodef.xml
[1729]47            rm -f user_param.py
[1728]48            rm -f default_param.py
[1729]49            rm -f sub_config.py
[1734]50            rm -f sub_check.py
[1729]51            exit 1234
[1728]52    fi
[1718]53else
[1725]54    echo "other machine"
[1728]55    exit 1234
[1718]56fi
[1714]57
58python sub_check.py
59
60rm -f iodef.xml
[1729]61rm -f user_param.py
[1726]62rm -f default_param.py
[1729]63rm -f sub_config.py
[1734]64rm -f sub_check.py
Note: See TracBrowser for help on using the repository browser.