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