mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
30 lines
409 B
Bash
30 lines
409 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
go install
|
||
|
|
||
|
REMOTES="
|
||
|
TestSwift:
|
||
|
TestS3:
|
||
|
TestDrive:
|
||
|
TestGoogleCloudStorage:
|
||
|
TestDropbox:
|
||
|
"
|
||
|
|
||
|
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"
|