testremote: New command to test uploads/downloads to a remote.

This only performs some basic tests so far; no testing of chunking or
resuming. Also, the existing encryption type of the remote is used; it
would be good later to derive an encrypted and a non-encrypted version of
the remote and test them both.

This commit was sponsored by Joseph Liu.
This commit is contained in:
Joey Hess 2014-08-01 15:09:49 -04:00
parent c03e1c5648
commit 9720ee9e56
7 changed files with 169 additions and 15 deletions

View file

@ -966,6 +966,14 @@ subdirectories).
There are several parameters, provided by Haskell's tasty test framework.
Pass --help for details.
* `testremote remote`
This tests a remote by generating some random objects and sending them to
the remote, then redownloading them, removing them from the remote, etc.
It's safe to run in an existing repository (the repository contents are
not altered), although it may perform expensive data transfers.
* `fuzztest`
Generates random changes to files in the current repository,