source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/run_sub_test.sh @ 1715

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

Generic_testcase : add sub-sub folder for tests

  • Property svn:executable set to *
File size: 867 bytes
Line 
1#!/bin/bash
2
3cp -n  ../context_grid_dynamico.xml ./
4cp -n ../dynamico_grid.nc ./
5
6
7rm -f sub_config1.py
8rm -f sub_config2.py
9rm -f sub_check.py
10rm -f default_param.py
11
12cp -n ../../user_config.py sub_config1.py
13cp -n ../../config.py sub_config2.py
14cp -n ../../check.py sub_check.py
15cp -n ../../default_param.py default_param.py
16
17
18touch report.txt
19> report.txt
20echo "testing average reduce..." >> report.txt
21
22nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
23
24
25counter=0
26while [ $counter -lt $nb_config ]
27do
28
29rm -f user_param.py
30
31cp user_param.py.$counter user_param.py
32
33((counter++))
34
35nb_proc=$(python sub_config2.py 2>&1) 
36
37mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe
38
39python sub_check.py
40
41rm -f iodef.xml
42mv iodef.xml.bkp iodef.xml
43
44done
Note: See TracBrowser for help on using the repository browser.