build: add example scripts for bisecting rclone and go

s3-about
Nick Craig-Wood 2018-09-14 11:17:51 +01:00
parent 7accd30da8
commit b3d8bc61ac
2 changed files with 38 additions and 0 deletions

23
bin/bisect-go-rclone.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# An example script to run when bisecting go with git bisect -run when
# looking for an rclone regression
# Run this from the go root
set -e
# Compile the go version
cd src
./make.bash
# Make sure we are using it
source ~/bin/use-go1.11
go version
# Compile rclone
cd ~/go/src/github.com/ncw/rclone
make
# run the failing test
go run -race race.go

15
bin/bisect-rclone.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# Example script for git-bisect -run
# Run from the project root
set -e
# Compile
make
rclone version
# Test whatever it is that is going wrong
truncate -s 10M /tmp/10M
rclone delete azure:rclone-test1/10M || true
rclone --retries 1 copyto -vv /tmp/10M azure:rclone-test1/10M --azureblob-upload-cutoff 1M