Last change
on this file since 1729 was
1729,
checked in by yushan, 5 years ago
|
GENERIC_TESTCASE : Each configuration is considered now as an independent test
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | cp ../context_grid_dynamico.xml ./ |
---|
6 | cp ../dynamico_grid.nc ./ |
---|
7 | |
---|
8 | cp ../config.py sub_config.py |
---|
9 | cp ../check.py sub_check.py |
---|
10 | |
---|
11 | cp ../default_param.py default_param.py |
---|
12 | |
---|
13 | cp ../iodef.xml iodef.xml |
---|
14 | |
---|
15 | # Black 0;30 Dark Gray 1;30 |
---|
16 | # Red 0;31 Light Red 1;31 |
---|
17 | # Green 0;32 Light Green 1;32 |
---|
18 | # Brown/Orange 0;33 Yellow 1;33 |
---|
19 | # Blue 0;34 Light Blue 1;34 |
---|
20 | # Purple 0;35 Light Purple 1;35 |
---|
21 | # Cyan 0;36 Light Cyan 1;36 |
---|
22 | # Light Gray 0;37 White 1;37 |
---|
23 | |
---|
24 | |
---|
25 | mv iodef.xml iodef.xml.bkp |
---|
26 | |
---|
27 | nb_proc=$(python sub_config.py 2>&1) |
---|
28 | |
---|
29 | machine_name=jeanzay |
---|
30 | |
---|
31 | echo $nb_proc |
---|
32 | if [[ ($machine_name == irene) ]] |
---|
33 | then |
---|
34 | echo "Testing on Irene" |
---|
35 | ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe |
---|
36 | elif [[($machine_name == ada)]] |
---|
37 | then |
---|
38 | echo "Testing on ADA" |
---|
39 | mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe |
---|
40 | elif [[($machine_name == jeanzay)]] |
---|
41 | then |
---|
42 | echo "Testing on Jean-Zay" |
---|
43 | srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe |
---|
44 | if [ $? -ne 0 ] |
---|
45 | then |
---|
46 | echo "execution failed" |
---|
47 | rm -f iodef.xml |
---|
48 | mv iodef.xml.bkp iodef.xml |
---|
49 | rm -f user_param.py |
---|
50 | rm -f default_param.py |
---|
51 | rm -f sub_config.py |
---|
52 | exit 1234 |
---|
53 | fi |
---|
54 | else |
---|
55 | echo "other machine" |
---|
56 | exit 1234 |
---|
57 | fi |
---|
58 | |
---|
59 | python sub_check.py |
---|
60 | |
---|
61 | rm -f iodef.xml |
---|
62 | mv iodef.xml.bkp iodef.xml |
---|
63 | rm -f user_param.py |
---|
64 | rm -f default_param.py |
---|
65 | rm -f sub_config.py |
---|
Note: See
TracBrowser
for help on using the repository browser.