source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/run_sub_test.sh @ 1716

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

Generic_testcase : Tests can be launched via job script now. llsubmit job.sh in root or test folder

  • Property svn:executable set to *
File size: 936 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 " " >> report.txt
21echo " " >> report.txt
22echo "testing minimum reduce..." >> report.txt
23echo " " >> report.txt
24
25nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
26
27
28counter=0
29while [ $counter -lt $nb_config ]
30do
31
32rm -f user_param.py
33
34cp user_param.py.$counter user_param.py
35
36((counter++))
37
38nb_proc=$(python sub_config2.py 2>&1) 
39
40mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe
41
42python sub_check.py
43
44rm -f iodef.xml
45mv iodef.xml.bkp iodef.xml
46
47done
Note: See TracBrowser for help on using the repository browser.