source:
NEMO/branches/2019/fix_sette_ticket2239/sette.sh
@
10713
Last change on this file since 10713 was 10713, checked in by mathiot, 4 years ago | |
---|---|
|
|
File size: 1.4 KB |
Line | |
---|---|
1 | #!/bin/sh |
2 | # initialise user dependent variable |
3 | . ./param.cfg |
4 | |
5 | # run sette on reference configuration |
6 | ./sette_reference-configurations.sh |
7 | if [[ $? != 0 ]]; then |
8 | echo "" |
9 | echo "--------------------------------------------------------------" |
10 | echo "./sette_cfg-ref.sh didn't finish properly, need investigations" |
11 | echo "--------------------------------------------------------------" |
12 | echo "" |
13 | exit 42 |
14 | fi |
15 | |
16 | # run sette on test cases |
17 | ./sette_test-cases.sh |
18 | if [[ $? != 0 ]]; then |
19 | echo "" |
20 | echo "-----------------------------------------------------------------" |
21 | echo "./sette_test-cases.sh didn't finish properly, need investigations" |
22 | echo "-----------------------------------------------------------------" |
23 | echo "" |
24 | exit 42 |
25 | fi |
26 | |
27 | # run sette report |
28 | echo "" |
29 | echo "-------------------------------------------------------------" |
30 | echo "./sette_rpt.sh (script will wait all nemo_sette run are done)" |
31 | echo "-------------------------------------------------------------" |
32 | echo "" |
33 | NRUN=999 |
34 | NIT=0 |
35 | while [[ $NRUN -ne 0 && $nit -le 1080 ]]; do |
36 | nit=$((nit+1)) |
37 | NRUN=$( ${BATCH_STAT} | grep nemo_sette | wc -l ) |
38 | if [[ $NRUN -ne 0 ]]; then |
39 | printf "%-3d %s\r" $NRUN 'nemo_sette run still in queue or running ...'; |
40 | else |
41 | printf "%s\n" " " |
42 | ./sette_rpt.sh |
43 | exit |
44 | fi |
45 | sleep 10 |
46 | done |
47 | printf "\n" |
48 | echo "" |
49 | echo "Something wrong happened, it tooks more than 3 hours to run all the sette tests" |
50 | echo "" |
Note: See TracBrowser
for help on using the repository browser.