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