source: XIOS/tools/FCM/test/get_hpc_results @ 2333

Last change on this file since 2333 was 81, checked in by ymipsl, 14 years ago

ajout FCM 1.5

File size: 746 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=hpc1e
29ssh $HPC "cd fcm_test_suite; ./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.