Last change
on this file since 1715 was
1715,
checked in by yushan, 5 years ago
|
Generic_testcase : add sub-sub folder for tests
|
-
Property svn:executable set to
*
|
File size:
867 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | cp -n ../context_grid_dynamico.xml ./ |
---|
4 | cp -n ../dynamico_grid.nc ./ |
---|
5 | |
---|
6 | |
---|
7 | rm -f sub_config1.py |
---|
8 | rm -f sub_config2.py |
---|
9 | rm -f sub_check.py |
---|
10 | rm -f default_param.py |
---|
11 | |
---|
12 | cp -n ../../user_config.py sub_config1.py |
---|
13 | cp -n ../../config.py sub_config2.py |
---|
14 | cp -n ../../check.py sub_check.py |
---|
15 | cp -n ../../default_param.py default_param.py |
---|
16 | |
---|
17 | |
---|
18 | touch report.txt |
---|
19 | > report.txt |
---|
20 | echo "testing average reduce..." >> report.txt |
---|
21 | |
---|
22 | nb_config=$(python sub_config1.py 2>&1) |
---|
23 | |
---|
24 | |
---|
25 | counter=0 |
---|
26 | while [ $counter -lt $nb_config ] |
---|
27 | do |
---|
28 | |
---|
29 | rm -f user_param.py |
---|
30 | |
---|
31 | cp user_param.py.$counter user_param.py |
---|
32 | |
---|
33 | ((counter++)) |
---|
34 | |
---|
35 | nb_proc=$(python sub_config2.py 2>&1) |
---|
36 | |
---|
37 | mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe |
---|
38 | |
---|
39 | python sub_check.py |
---|
40 | |
---|
41 | rm -f iodef.xml |
---|
42 | mv iodef.xml.bkp iodef.xml |
---|
43 | |
---|
44 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.