source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/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: 853 bytes
Line 
1#!/bin/bash
2rm -f sub_config1.py
3rm -f sub_config2.py
4rm -f sub_check.py
5rm -f default_param.py
6
7cp -n ../user_config.py sub_config1.py
8cp -n ../config.py sub_config2.py
9cp -n ../check.py sub_check.py
10cp -n ../default_param.py default_param.py
11
12
13touch report.txt
14> report.txt
15echo " " >> report.txt
16echo " " >> report.txt
17echo "testing scalar algorithms..." >> report.txt
18echo " " >> report.txt
19
20nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
21
22
23counter=0
24while [ $counter -lt $nb_config ]
25do
26
27rm -f user_param.py
28
29cp user_param.py.$counter user_param.py
30
31((counter++))
32
33nb_proc=$(python sub_config2.py 2>&1) 
34
35mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe
36
37python sub_check.py
38
39rm -f iodef.xml
40mv iodef.xml.bkp iodef.xml
41
42done
Note: See TracBrowser for help on using the repository browser.