mirror of
https://github.com/rclone/rclone
synced 2024-11-07 04:16:58 +01:00
build: add example scripts for bisecting rclone and go
This commit is contained in:
parent
7accd30da8
commit
b3d8bc61ac
23
bin/bisect-go-rclone.sh
Executable file
23
bin/bisect-go-rclone.sh
Executable 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
15
bin/bisect-rclone.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user