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:
932 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 " " >> report.txt |
---|
21 | echo " " >> report.txt |
---|
22 | echo "testing sum reduce..." >> report.txt |
---|
23 | echo " " >> report.txt |
---|
24 | |
---|
25 | nb_config=$(python sub_config1.py 2>&1) |
---|
26 | |
---|
27 | |
---|
28 | counter=0 |
---|
29 | while [ $counter -lt $nb_config ] |
---|
30 | do |
---|
31 | |
---|
32 | rm -f user_param.py |
---|
33 | |
---|
34 | cp user_param.py.$counter user_param.py |
---|
35 | |
---|
36 | ((counter++)) |
---|
37 | |
---|
38 | nb_proc=$(python sub_config2.py 2>&1) |
---|
39 | |
---|
40 | mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe |
---|
41 | |
---|
42 | python sub_check.py |
---|
43 | |
---|
44 | rm -f iodef.xml |
---|
45 | mv iodef.xml.bkp iodef.xml |
---|
46 | |
---|
47 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.