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.
get_hpc_results in vendors/test – NEMO

source: vendors/test/get_hpc_results @ 10669

Last change on this file since 10669 was 10669, checked in by nicolasmartin, 5 years ago

Import latest FCM release from Github into the repository for testing

File size: 781 bytes
Line 
1#!/bin/ksh
2
3while getopts ":ch" opt
4do
5  case $opt in
6    c ) COPY=true ;;
7    h ) HELP=true ;;
8    \? ) echo "Invalid option"
9        HELP=true
10        break ;;
11  esac
12done
13if [[ $# != $(($OPTIND - 1)) ]]; then
14  echo "Invalid argument"
15  HELP=true
16fi
17
18if [[ $HELP == true ]]; then
19 echo 'Usage: get_hpc_results [options]'
20 echo 'Valid options:'
21 echo '-c'
22 echo '   Mirror the full test directory from the HPC'
23 echo '-h'
24 echo '   Print this help message'
25 exit 1
26fi
27
28export HPC=$(rose host-select -q hpc)
29ssh $HPC "cd working/fcm_test_suite; $MY_BIN/report_hpc_results" | tee $LOCALTEMP/fcm_test_suite/hpc.summary
30
31if [[ $COPY == true ]]; then
32  echo "Mirroring results from HPC ..."
33  rsync -a --delete --rsh="ssh" $HPC:fcm_test_suite/ $LOCALTEMP/fcm_test_suite/hpc_mirror
34fi
Note: See TracBrowser for help on using the repository browser.