source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/run_sub_test.sh @ 1723

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

Generic_testcase : update iodef configurations

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