forked from rclone/rclone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Example script for git-bisect -run | ||
# Example script for git bisect run | ||
# | ||
# Copy this file into /tmp say before running as it will be | ||
# overwritten by the bisect as it is checked in. | ||
# | ||
# Change the test below to find out whether rclone is working or not | ||
# | ||
# Run from the project root | ||
# | ||
# git bisect start | ||
# git checkout master | ||
# git bisect bad | ||
# git checkout v1.41 (or whatever is the first good one) | ||
# git bisect good | ||
# git bisect run /tmp/bisect-rclone.sh | ||
|
||
set -e | ||
|
||
# Compile | ||
make | ||
# Compile notifying git on compile failure | ||
make || exit 125 | ||
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 | ||
# Test whatever it is that is going wrong - exit with non zero exit code on failure | ||
# commented out examples follow | ||
|
||
# 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 | ||
|
||
# rm -f "/tmp/tests's.docx" || true | ||
# rclone -vv --retries 1 copy "drive:test/tests's.docx" /tmp |