Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (26 sloc) 0.622 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/bash

backf=`mktemp`
rm $backf
cd $CLOUD_CLIENT_HOME
./bin/grid-proxy-init.sh
./bin/cloud-client.sh --transfer --sourcefile $NIMBUS_SOURCE_TEST_IMAGE
if [ $? -ne 0 ]; then
    rm $backf
    echo "upload failed"
    exit 1
fi
./bin/cloud-client.sh --download --name $NIMBUS_TEST_IMAGE --localfile $backf
if [ $? -ne 0 ]; then
    rm $backf
    echo "download failed"
    exit 1
fi

diff $backf $NIMBUS_SOURCE_TEST_IMAGE
if [ $? -ne 0 ]; then
    rm $backf
    echo "diff failed, file corrupted in transfer"
    exit 1
fi

./bin/cloud-client.sh --delete --name $NIMBUS_TEST_IMAGE --localfile $backf
rm $backf
exit 0
Something went wrong with that request. Please try again.