0e746f25a3
The Amazon Drive backend is closed from 2023-12-31. See: https://www.amazon.com/b?ie=UTF8&node=23943055011
51 lines
1.1 KiB
Bash
Executable file
51 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env zsh
|
|
#
|
|
# example usage:
|
|
# $GOPATH/src/github.com/rclone/rclone/cmd/info/test.sh --list | \
|
|
# parallel -P20 $GOPATH/src/github.com/rclone/rclone/cmd/info/test.sh
|
|
|
|
export PATH=$GOPATH/src/github.com/rclone/rclone:$PATH
|
|
|
|
typeset -A allRemotes
|
|
allRemotes=(
|
|
TestB2 ''
|
|
TestBox ''
|
|
TestDrive '--tpslimit=5'
|
|
TestCrypt ''
|
|
TestDropbox '--checkers=1'
|
|
TestGCS ''
|
|
TestJottacloud ''
|
|
TestKoofr ''
|
|
TestMega ''
|
|
TestOneDrive ''
|
|
TestOpenDrive '--low-level-retries=4 --checkers=5'
|
|
TestPcloud '--low-level-retries=2 --timeout=15s'
|
|
TestS3 ''
|
|
Local ''
|
|
)
|
|
|
|
set -euo pipefail
|
|
|
|
if [[ $# -eq 0 ]]; then
|
|
set -- ${(k)allRemotes[@]}
|
|
elif [[ $1 = --list ]]; then
|
|
printf '%s\n' ${(k)allRemotes[@]}
|
|
exit 0
|
|
fi
|
|
|
|
for remote; do
|
|
case $remote in
|
|
Local)
|
|
l=Local$(uname)
|
|
export RCLONE_CONFIG_${l:u}_TYPE=local
|
|
dir=$l:infotest;;
|
|
TestGCS)
|
|
dir=$remote:$GCS_BUCKET/infotest;;
|
|
*)
|
|
dir=$remote:infotest;;
|
|
esac
|
|
|
|
rclone purge $dir || :
|
|
rclone info -vv $dir --write-json=info-$remote.json ${=allRemotes[$remote]:-} &> info-$remote.log
|
|
rclone ls -vv $dir &> info-$remote.list
|
|
done
|