summaryrefslogtreecommitdiff
path: root/test/bbackupd
Commit message (Collapse)AuthorAge
* Define some functions to reduce duplication in testbbackupd.Chris Wilson2014-09-04
| | | | | | | | | Merged back changes from the test refactor branch to reduce diffs. Fix wrong setting of log level in compare() function. We want to only show errors if we expect mismatches, and show warnings if we didn't expect mismatches. I had it the other way around before.
* Fix timing issue with bbackupd test for recovery after error.Chris Wilson2014-08-24
| | | | | | | For some reason the timing changed and the test was no longer waiting for the same length of time as bbackupd, causing it to fail. Merged back changes from the test refactor branch to reduce diffs.
* Fix tests broken by bbackupquery list recursive option change.Chris Wilson2014-08-17
|
* Add a TEST_PROTOCOL_ERROR_OR assertion.Chris Wilson2014-08-15
| | | | | | | | Similar to TEST_COMMAND_RETURNS_ERROR_OR, but allows any command or sequence to cause the error, without direct access to the command message. Refactor so that TEST_COMMAND_RETURNS_ERROR_OR calls TEST_PROTOCOL_ERROR_OR to make the assertion on the last error seen by the protocol.
* Remove ServerException.h and the exception code aliases that it defines.Chris Wilson2014-08-15
| | | | We don't really need these, so clean up by removing them.
* Whitespace, wrapping, comments and dead code cleanups.Chris Wilson2014-08-15
| | | | | | | | Conflicts: bin/bbackupd/BackupDaemon.cpp bin/bbackupd/BackupDaemon.h test/bbackupd/testbbackupd.cpp
* Remove NoObject reply, and adapt BackupQueries accordingly.Chris Wilson2014-04-09
|
* Remove the global logging level.Chris Wilson2014-04-09
| | | | | It's incompatible with having a logger that logs everything, regardless of the global log level.
* Make Protocol take control of the socket object passed in.Chris Wilson2014-03-01
| | | | | | | | | | | | | 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.
* Fix Clang warning about passing NULL as a string.Chris Wilson2014-02-27
|
* Check number of blocks used before the test that was failing.Chris Wilson2014-02-27
|
* Use an in-process BackupDaemon for some intercept tests.Chris Wilson2014-02-27
| | | | It's much easier to debug these tests if we can step into them.
* Use the new test utilities to remove some duplicate code.Chris Wilson2014-02-27
| | | | Fix previous changes by waiting for forked bbstored process during termination.
* Allow test/bbackupd to test bbackupquery completions.Chris Wilson2014-02-07
|
* Fix bbackupquery accepting a command starting with options.Chris Wilson2014-02-07
| | | | | | | This should never have been a valid command, but was accepted before, and silently ignored because it was treated as an empty command. This obscured bad quoting of bbackupquery command-line arguments, allowing commands to appear to work, but not do what you expected.
* Fix compile error due to missing mode on open(O_CREAT).Chris Wilson2013-02-13
|
* Link testbbackupd with bbackupquery object files, so that we can useChris Wilson2012-11-27
| | | | | BackupQueries directly for debugging compare failures.
* Fix random failures of bbackupd test by locking the account before makingChris Wilson2012-11-18
| | | | | changes to it.
* Link to HousekeepStoreAccount.o in the right directory since the big refactor.Chris Wilson2012-11-08
|
* Add support for SyncAllowScript to set maximum upload bandwidth dynamically.Chris Wilson2012-03-10
|
* Force all options to be present to BackupClientRestore(), to fix Chris Wilson2012-02-02
| | | | | | | misinterpretation of char * arguments as bools. Use macros to simplify test code. Test that locations not present when bbackupd started will be detected and backed up if subsequently created.
* Disable automatic backups in the temploc configuration, and enable theChris Wilson2012-02-01
| | | | | | NotifyScript, so that we can tell what kind of errors bbackupd reported and reproduce them reliably.
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Fix test/bbackupd build for new object locations.Chris Wilson2011-06-22
|
* Major refactoring to make lib/backupclient depend on lib/backupstore ratherChris Wilson2011-04-26
| | | | | | | than the other way around. This is needed to allow clients to have all the code that they'd need to implement local backups (using the Local protocol) in subsequent commits.
* Reformat for readability.Chris Wilson2011-04-23
|
* Add intercept logging, seems to work around intermittent failures inChris Wilson2011-01-09
| | | | | | | | | | | | testbbackupd: {{{ Waiting for internal daemon to scan spacetest/d1: ............ done. Waiting for server to die (pid 6307): .............................. failed! ERROR: **** TEST FAILURE: Condition [killed_server] failed at testbbackupd.cpp:718 ERROR: **** TEST FAILURE: Condition [stop_internal_daemon(pid)] failed at testbbackupd.cpp:1153 }}}
* Log the path, name and size of files being restored at TRACE level forChris Wilson2011-01-08
| | | | | | | | | | users wanting more detailed restore output. Disable printing dots when logging at TRACE level is enabled. Warn rather than failing to restore when the file attributes could not be restored. (merges [2745], [2827]).
* Fix location of memleaks file to fix test/bbackupd again.Chris Wilson2010-10-18
|
* Allow restoring directories with a single argument, using the remote nameChris Wilson2010-09-22
| | | | | as the local destination name also.
* Log while sleeping in test/bbackupd.Chris Wilson2009-04-26
| | | | | Only show warning about diff test time taken if it's out of bounds.
* Improve debugging output from external check script.Chris Wilson2009-04-26
|
* Fixes for gcc 4.4.Martin Ebourne2009-04-23
|
* Fix speeling misteak.Chris Wilson2009-04-09
|
* Fix race conditions where backups happen too slowly and tests fail.Chris Wilson2009-04-09
|
* Show reasons for waiting during bbackupd and backupstorepatch tests,Chris Wilson2009-04-09
| | | | | | | | | | | 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.
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Fix race condition where bbackupd would run just before test finished Chris Wilson2009-03-15
| | | | | | waiting for its 90 second error timeout on slow machines, e.g. FreeBSD VM, causing bbackupd test to fail.
* Move TEST_EQUAL macro into lib/common/Test.h, rename to TEST_EQUAL_LINE, Chris Wilson2009-01-03
| | | | | provide TEST_EQUAL that only takes two arguments for simplicity.
* Fix permissions on restored files after test, so that test buildChris Wilson2008-11-24
| | | | | system stops complaining that it can't delete them.
* Fix test for slight change to logging format.Chris Wilson2008-10-29
|
* Revert incorrectly committed file.Chris Wilson2008-10-29
|
* Use the same ostringstream formatting for protocol logging to fileChris Wilson2008-10-29
| | | | | | that we use for standard logging, to fix 64bit platform warnings reported by Matt Brown.
* Add missing extern "C" on intercept function definitions inChris Wilson2008-10-11
| | | | | | | testbbackupd. Fix assignment of string constants to non-const char pointers.
* Fix bbackupd/housekeeping deletion test for Unix again, and hopefullyChris Wilson2008-10-04
| | | | | make it work on Windows too. Improve comments about this test.
* Fix directory record conflicts caused by including the same directoryChris Wilson2008-10-03
| | | | | | | twice. Fix/reduce locked file timing conflict problems.
* Reinstate and fix the intercept tests for SSL keepalives.Chris Wilson2008-09-26
|
* Test for read errors being reported at more points during the tests.Chris Wilson2008-09-12
| | | | | Test that symlink to self does not cause restore to fail.
* Include signal.h if it exists.Chris Wilson2008-09-03
|
* Test that store-full error is not wrongly generated on aborted connections.Chris Wilson2008-08-10
|