2018-09-14 10:17:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-09-18 19:12:27 +00:00
|
|
|
# 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
|
|
|
|
#
|
2018-09-14 10:17:51 +00:00
|
|
|
# Run from the project root
|
2018-09-18 19:12:27 +00:00
|
|
|
#
|
|
|
|
# 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
|
2018-09-14 10:17:51 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-09-18 19:12:27 +00:00
|
|
|
# Compile notifying git on compile failure
|
|
|
|
make || exit 125
|
2018-09-14 10:17:51 +00:00
|
|
|
rclone version
|
|
|
|
|
2018-09-18 19:12:27 +00:00
|
|
|
# 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
|