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