2014-08-01 16:58:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
go install
|
|
|
|
|
|
|
|
REMOTES="
|
|
|
|
TestSwift:
|
|
|
|
TestS3:
|
|
|
|
TestDrive:
|
|
|
|
TestGoogleCloudStorage:
|
|
|
|
TestDropbox:
|
2015-09-02 22:37:42 +00:00
|
|
|
TestAmazonCloudDrive:
|
2015-11-07 11:21:15 +00:00
|
|
|
TestOneDrive:
|
2014-08-01 16:58:39 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
function test_remote {
|
|
|
|
args=$@
|
|
|
|
echo "@go test $args"
|
|
|
|
go test $args || {
|
|
|
|
echo "*** test $args FAILED ***"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test_remote
|
|
|
|
test_remote --subdir
|
|
|
|
for remote in $REMOTES; do
|
|
|
|
test_remote --remote $remote
|
|
|
|
test_remote --remote $remote --subdir
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "All OK"
|