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:
parent
c03e1c5648
commit
9720ee9e56
7 changed files with 169 additions and 15 deletions
|
@ -24,6 +24,9 @@ import Data.Int
|
|||
- far, *not* an incremental amount since the last call. -}
|
||||
type MeterUpdate = (BytesProcessed -> IO ())
|
||||
|
||||
nullMeterUpdate :: MeterUpdate
|
||||
nullMeterUpdate _ = return ()
|
||||
|
||||
{- Total number of bytes processed so far. -}
|
||||
newtype BytesProcessed = BytesProcessed Integer
|
||||
deriving (Eq, Ord, Show)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue