source:
vendors/FCM-2017.10.0/test/get_hpc_results
@
11998
Last change on this file since 11998 was 10672, checked in by nicolasmartin, 5 years ago | |
---|---|
File size: 781 bytes |
Rev | Line | |
---|---|---|
[10672] | 1 | #!/bin/ksh |
2 | ||
3 | while getopts ":ch" opt | |
4 | do | |
5 | case $opt in | |
6 | c ) COPY=true ;; | |
7 | h ) HELP=true ;; | |
8 | \? ) echo "Invalid option" | |
9 | HELP=true | |
10 | break ;; | |
11 | esac | |
12 | done | |
13 | if [[ $# != $(($OPTIND - 1)) ]]; then | |
14 | echo "Invalid argument" | |
15 | HELP=true | |
16 | fi | |
17 | ||
18 | if [[ $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 | |
26 | fi | |
27 | ||
28 | export HPC=$(rose host-select -q hpc) | |
29 | ssh $HPC "cd working/fcm_test_suite; $MY_BIN/report_hpc_results" | tee $LOCALTEMP/fcm_test_suite/hpc.summary | |
30 | ||
31 | if [[ $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 | |
34 | fi |
Note: See TracBrowser
for help on using the repository browser.