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 @ 10717

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

change related to discussion with Simon (ticket #2239)

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/sh
2# initialise user dependent variable
3SETTE_DIR=$(cd $(dirname "$0"); pwd)
4MAIN_DIR=$(dirname $SETTE_DIR)
5. ./param.cfg
6
7# run sette on reference configuration
8./sette_reference-configurations.sh
9if [[ $? != 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
16fi
17
18# run sette on test cases
19./sette_test-cases.sh
20if [[ $? != 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
27fi
28
29# run sette report
30echo ""
31echo "-------------------------------------------------------------"
32echo "./sette_rpt.sh (script will wait all nemo_sette run are done)"
33echo "-------------------------------------------------------------"
34echo ""
35NRUN=999
36NIT=0
37while [[ $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
48done
49printf "\n"
50echo ""
51echo "Something wrong happened, it tooks more than 3 hours to run all the sette tests"
52echo ""
Note: See TracBrowser for help on using the repository browser.