source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_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.7 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
[1721]14# Black        0;30     Dark Gray     1;30
15# Red          0;31     Light Red     1;31
16# Green        0;32     Light Green   1;32
17# Brown/Orange 0;33     Yellow        1;33
18# Blue         0;34     Light Blue    1;34
19# Purple       0;35     Light Purple  1;35
20# Cyan         0;36     Light Cyan    1;36
21# Light Gray   0;37     White         1;37
22
23
24
[1729]25nb_proc=$(python sub_config.py 2>&1) 
[1721]26
[1729]27machine_name=jeanzay
[1714]28
[1734]29# echo $nb_proc
[1725]30if [[ ($machine_name == irene) ]]
[1718]31then
[1728]32    echo "Testing on Irene"
[1718]33    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe
[1725]34elif [[($machine_name == ada)]]
35then
36    echo "Testing on ADA"
37    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe
38elif [[($machine_name == jeanzay)]]
39then
40    echo "Testing on Jean-Zay" 
41    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe
[1728]42    if [ $? -ne 0 ]
[1729]43        then
44            echo "execution failed"
[1728]45            rm -f iodef.xml
[1729]46            rm -f user_param.py
[1728]47            rm -f default_param.py
[1729]48            rm -f sub_config.py
[1734]49            rm -f sub_check.py
[1729]50            exit 1234
[1728]51    fi
[1718]52else
[1725]53    echo "other machine"
[1728]54    exit 1234
[1718]55fi
[1714]56
[1734]57check_output=$(python sub_check.py 2>&1 >/dev/null)
58if [[ "$check_output" -ne 0 ]]
59then
60    echo "check.py failed"
61    rm -f iodef.xml
62    rm -f user_param.py
63    rm -f default_param.py
64    rm -f sub_config.py
65    rm -f sub_check.py
66    exit 1
67else
68    echo "check.py OK"
69fi
[1714]70
[1734]71
[1714]72rm -f iodef.xml
[1729]73rm -f user_param.py
[1726]74rm -f default_param.py
[1729]75rm -f sub_config.py
[1734]76rm -f sub_check.py
Note: See TracBrowser for help on using the repository browser.