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

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

GENERIC_TESTCASE : Each configuration is considered now as an independent test

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