github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/bin/bisect-rclone.sh (about)

     1  #!/bin/bash
     2  
     3  # Example script for git bisect run
     4  #
     5  # Copy this file into /tmp say before running as it will be
     6  # overwritten by the bisect as it is checked in.
     7  #
     8  # Change the test below to find out whether rclone is working or not
     9  #
    10  # Run from the project root
    11  #
    12  # git bisect start
    13  # git checkout master
    14  # git bisect bad
    15  # git checkout v1.41 (or whatever is the first good one)
    16  # git bisect good
    17  # git bisect run /tmp/bisect-rclone.sh
    18  
    19  set -e
    20  
    21  # Compile notifying git on compile failure
    22  make || exit 125
    23  rclone version
    24  
    25  # Test whatever it is that is going wrong - exit with non zero exit code on failure
    26  # commented out examples follow
    27  
    28  # truncate -s 10M /tmp/10M
    29  # rclone delete azure:rclone-test1/10M || true
    30  # rclone --retries 1 copyto -vv /tmp/10M azure:rclone-test1/10M --azureblob-upload-cutoff 1M
    31  
    32  # rm -f "/tmp/tests's.docx" || true
    33  # rclone -vv --retries 1 copy "drive:test/tests's.docx" /tmp