New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
sette.sh in NEMO/branches/2019/fix_sette_ticket2239 – NEMO

source: NEMO/branches/2019/fix_sette_ticket2239/sette.sh @ 10713

Last change on this file since 10713 was 10713, checked in by mathiot, 5 years ago

changes related to Simon comments (ticket #2239)

  • Property svn:executable set to *
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
7if [[ $? != 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
14fi
15
16# run sette on test cases
17./sette_test-cases.sh
18if [[ $? != 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
25fi
26
27# run sette report
28echo ""
29echo "-------------------------------------------------------------"
30echo "./sette_rpt.sh (script will wait all nemo_sette run are done)"
31echo "-------------------------------------------------------------"
32echo ""
33NRUN=999
34NIT=0
35while [[ $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
46done
47printf "\n"
48echo ""
49echo "Something wrong happened, it tooks more than 3 hours to run all the sette tests"
50echo ""
Note: See TracBrowser for help on using the repository browser.