Skip to content
Newer
Older
100755 31 lines (26 sloc) 622 Bytes
a458958 adding more tests, enhancing the framework
BuzzTroll authored
1 #!/bin/bash
2
3 backf=`mktemp`
80bdbb0 more testing, more bugging
BuzzTroll authored
4 rm $backf
a458958 adding more tests, enhancing the framework
BuzzTroll authored
5 cd $CLOUD_CLIENT_HOME
6 ./bin/grid-proxy-init.sh
f3cd495 @buzztroll breaking out the image name from the image location
buzztroll authored
7 ./bin/cloud-client.sh --transfer --sourcefile $NIMBUS_SOURCE_TEST_IMAGE
a458958 adding more tests, enhancing the framework
BuzzTroll authored
8 if [ $? -ne 0 ]; then
9 rm $backf
10 echo "upload failed"
11 exit 1
12 fi
2639808 @buzztroll removing hard coded image name
buzztroll authored
13 ./bin/cloud-client.sh --download --name $NIMBUS_TEST_IMAGE --localfile $backf
a458958 adding more tests, enhancing the framework
BuzzTroll authored
14 if [ $? -ne 0 ]; then
15 rm $backf
16 echo "download failed"
17 exit 1
18 fi
19
49e734e @buzztroll anyother change to break up the test image name from its location
buzztroll authored
20 diff $backf $NIMBUS_SOURCE_TEST_IMAGE
a458958 adding more tests, enhancing the framework
BuzzTroll authored
21 if [ $? -ne 0 ]; then
22 rm $backf
23 echo "diff failed, file corrupted in transfer"
24 exit 1
25 fi
26
2639808 @buzztroll removing hard coded image name
buzztroll authored
27 ./bin/cloud-client.sh --delete --name $NIMBUS_TEST_IMAGE --localfile $backf
a458958 adding more tests, enhancing the framework
BuzzTroll authored
28 rm $backf
29 exit 0
30
Something went wrong with that request. Please try again.