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