Last change
on this file since 1723 was
1712,
checked in by yushan, 5 years ago
|
Generic_testcase : update iodef configurations
|
-
Property svn:executable set to
*
|
File size:
638 bytes
|
Rev | Line | |
---|
[1708] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | cp ../user_config.py sub_config1.py |
---|
| 5 | cp ../config.py sub_config2.py |
---|
| 6 | cp ../check.py sub_check.py |
---|
| 7 | cp ../default_param.py default_param.py |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | touch report.txt |
---|
| 11 | > report.txt |
---|
| 12 | |
---|
| 13 | nb_config=$(python sub_config1.py 2>&1) |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | counter=0 |
---|
| 17 | while [ $counter -lt $nb_config ] |
---|
| 18 | do |
---|
| 19 | |
---|
| 20 | rm -f user_param.py |
---|
| 21 | |
---|
| 22 | cp user_param.py.$counter user_param.py |
---|
| 23 | |
---|
| 24 | ((counter++)) |
---|
| 25 | |
---|
| 26 | nb_proc=$(python sub_config2.py 2>&1) |
---|
| 27 | |
---|
| 28 | mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe |
---|
| 29 | |
---|
| 30 | python sub_check.py |
---|
| 31 | |
---|
[1712] | 32 | rm -f iodef.xml |
---|
| 33 | mv iodef.xml.bkp iodef.xml |
---|
| 34 | |
---|
[1708] | 35 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.