| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Detect when housekeeping has run and account is unlocked, and stop the loop
early, so that we don't have to wait for 32 iterations of the loop.
|
|
|
|
|
|
|
|
| |
This test has always been fragile, and usually fails on Travis for reasons
unknown, so replace the log parsing and intercepts with simple mocking code.
This doesn't cover 100% of what the old test did, including diff timer aborts
and the number of blocks used by the uploaded files, but it should be
completely robust.
|
|
|
|
|
| |
They cause a lot of noise in the Travis build logs.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We pass a std::auto_ptr<SocketStream> to every Protocol subclass when we
construct it, and it takes control of this object. This reduces the risk of:
* accidentally reusing the same SocketStream for multiple Protocols
(it happened to me in testbackupstore);
* holding onto a reference to the SocketStream;
* allowing a locally-scoped SocketStream to go out of scope and be released
while still being referenced by a live Protocol.
|
|
|
|
|
| |
You can only pass a std::auto_ptr<IOStream> to SendStream now. Nothing
else will do for Clang. But you can cast a std::auto_ptr<subclass>.
|
|
|
|
|
| |
Rename ProtocolObject to Message.
|
|
|
|
|
| |
housekeeping.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
to help with interpreting test output.
When running at Trace level, where extra output from bbackupd etc. is
common, log a single line at the start of waiting, instead of progress
dots, to help with interpreting output.
Show number of seconds waited for on Windows as well as Unixes.
|
|
|
|
|
| |
(refs #3)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All of these use lib/server/WinNamedPipeStream on Win32, so they don't
belong in lib/common.
Made LaunchServer() work on Win32.
Added constants for paths to executables, for use in tests, removing the
need for #ifdefs and clumsy DIRECTORY_SEPARATORs in paths.
Added terminate_bbackupd() and wait_for_operation() functions.
Update unit tests to #include "ServerControl.h" if they need it.
(refs #3)
|
| |
|
|
|
|
|
| |
Use RunCommand instead of ::system to convert UNIX paths to native
|
|
|
|
|
|
| |
Don't check for memory leaks on Win32, since the process is force killed
and doesn't have a chance to write the log file.
|
|
|
|
|
|
| |
Cannot signal bbstored to housekeep immediately on Win32, so just wait
for it to happen.
|
|
|
|
|
| |
Fix format strings on Win32
|
|
|
|
|
| |
Initialise Windows sockets on Win32
|
| |
|
|
|
|
|
|
|
| |
- This is my current patch queue. I think that all of these are safe
to apply. This is just under half of the pending changes in
chris/general (the easy half).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bin/bbstored/backupprotocol.txt
* bin/bbstored/BackupCommands.cpp
* bin/bbackupd/BackupClientContext.cpp
* bin/bbackupd/BackupClientContext.h
* bin/bbackupd/BackupClientDirectoryRecord.cpp
* bin/bbackupd/BackupDaemon.cpp
* lib/backupclient/BackupStoreFileDiff.cpp
* lib/backupclient/BackupDaemonConfigVerify.cpp
* lib/backupclient/BackupStoreFile.h
* test/backupstore/testbackupstore.cpp
* test/backupstorepatch/testbackupstorepatch.cpp
- Applied changes from chris/diff-timeout-and-ssl-keepalive
* test/backupdiff/testbackupdiff.cpp
- Fixed test to match new prototype for EncodeFileDiff
|
|
|