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

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

Generic_testcase : Using CMake to generate tests

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