source: LMDZ6/branches/Amaury_dev/tools/fcm/test/get_hpc_results @ 5095

Last change on this file since 5095 was 5095, checked in by abarral, 11 months ago

Revert cosp*/ from the trunk, as it's external code
Add missing bits from FCM2 source

  • Property svn:executable set to *
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.