summaryrefslogtreecommitdiff
path: root/test/bbackupd
Commit message (Collapse)AuthorAge
* 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
|
* Link bbackupd test with objects from bin/bbstored.Chris Wilson2008-08-10
|
* Fix conflict with local variables called "line".Chris Wilson2008-08-06
|
* Windows compile and deletion/housekeeping test fix.Chris Wilson2008-08-03
|
* Fix compile error on Windows.Chris Wilson2008-05-28
|
* Add bbackupquery -W<level> option to set explicit warning level, Chris Wilson2008-05-28
| | | | | | | | | | | | | | | | | | | Obsolete old (inconsistent) meaning of -q in bbackupquery. Replace -q with -Wwarning or -Werror in tests to reduce noise and fix tests. Test that reading a nonexistent directory on the server doesn't crash server or client. Test that bbackupd does continue backup run and delete files when storage limit is exceeded. Use logging guards to hide expected warnings in testbbackupd. Remove apparently pointless listing files on server at the end of testbbackupd.
* Add support to notifyscript to use a tag, useful for tests with Chris Wilson2008-05-28
| | | | | frequently-generated messages such as backup-start.
* Add new bbackupd config files for bbackupd test.Chris Wilson2008-05-28
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Allow configuration of the server port that the client will connect to Chris Wilson2008-03-28
| | | | | | | | | | | | | (bbackupd and bbackupquery). Redesign ConfigurationVerify to use classes instead of structs. Use port 22011 instead of 2201 during tests, to reduce the chances of conflicting with a running bbstored or other process. Ignore autogen_* in svn:ignore everywhere instead of individual per-file ignores.
* Fix missing space before bbstored_args in test to make them work Chris Wilson2008-03-13
| | | | | properly.
* Fix multiple connections to server (not supported on Windows) in test Chris Wilson2008-03-01
| | | | | | | that redundant locations are deleted on time. Commonise some more login code to simplify tests.
* Disable another symlink test on Win32.Chris Wilson2008-03-01
|
* Delete bbstored PID file after killing the daemon on Windows, as the Chris Wilson2008-03-01
| | | | | daemon can't clean up after itself.
* Ignore terminal type error messages from bbackupquery, may happenChris Wilson2008-01-23
| | | | | in Debian buildds.
* Report line of test where failed to kill internal daemon during SSLChris Wilson2007-12-15
| | | | | keepalive tests.
* Move comment, add whitespace.Chris Wilson2007-12-13
|
* Fix keepalive test failure: Chris Wilson2007-12-06
| | | | | | | | | * zero memory buffer before use to keep consistent behaviour. * expect a diff even if the maximum diffing time expires * really check when we have a diff and when we don't
* Re-initialise the timers when aborting test run during SSL KeepAliveChris Wilson2007-12-02
| | | | | | tests, as main() will try to clean them up and we'll get an error message if they're not initialised.
* Compile fix for [1931]Chris Wilson2007-11-09
|
* Handle bbackupd_args without leading space.Chris Wilson2007-11-07
|
* Fix calling bbackupd with NO args in keepalive tests (fixes [1928])Chris Wilson2007-11-07
|
* Pass bbackupd_args to the internal daemon (spaces are NOT supported).Chris Wilson2007-11-06
| | | | | Stop early if a keepalive test fails, for debugging.
* This is C++ not ruby (oops)Chris Wilson2007-11-06
|
* Add some debugging for a keepalive timer test failure reported byChris Wilson2007-11-06
| | | | | Matt Brown <matt@mbrown.co.uk> on 2007-11-06.
* Use lstat() instead of stat() to check whether a file exists. Thanks toChris Wilson2007-11-05
| | | | | | | | Hans-Joachim Baader for reporting this problem. (http://lists.warhead.org.uk/pipermail/boxbackup/2007-November/003958.html) Add a test that symlinks are not followed during restore.
* Include the time taken by bbackupquery compare in the time betweenChris Wilson2007-11-04
| | | | | | syncs, used to check that the SyncAllowScript pauses backup for the correct length of time.
* Compile fix for [1908].Chris Wilson2007-11-04
|
* Move sync helper functions from test/bbackupd to Test.h to share withChris Wilson2007-11-04
| | | | | other tests, particularly test/backupstorefix.
* Test that redundant locations are really deleted after the time expires.Chris Wilson2007-10-08
|
* Convert most printf() and fprintf() calls to use logging frameworkChris Wilson2007-08-02
| | | | | instead. (refs #3)
* Remove compare again. (refs #3, merges [1651])Chris Wilson2007-07-26
|
* Make Configuration take a std::string filename instead of a char array,Chris Wilson2007-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in C++ style. Add a function to get default config file paths at runtime, dependent on the location of the executable being run. Pass the config file name directly to Daemon::Main, instead of faking argv. No default raid file path at compile time on Windows, depends on executable location when run. Determine RaidFile path at runtime if not supplied in config file on Windows. Don't define default locations for config files at compile time on Windows, provide macros to determine them at runtime instead. Make FileHandleGuard take a std::string instead of a char array, C++ style. Determine config file location at runtime instead of hard-coding on Windows. Thanks to Paul MacKenzie, Per Thomsen, Pete Jalajas, Stuart Sanders, Dave Bamford and Gary for pushing me to do this. (fixes #12) Determine config file path at runtime. Call Daemon::Main with config file name instead of building fake argv. (refs #3, merges [1684] [1685] [1686] [1687] [1688] [1689] [1690] [1691] [1692])
* Fix unit tests now that bbackupd honours the hard limit and not theChris Wilson2007-07-26
| | | | | soft limit. (refs #3, merges [1662])
* Make test/bbackupd intercept timer tests a little less strict, becauseChris Wilson2007-06-30
| | | | | | object IDs can vary depending on the order that readdir() returns files in. (refs #3)
* Gratuitous additional spaces (refs #3)Chris Wilson2007-05-09
|
* Slightly more progress information during tests (refs #3)Chris Wilson2007-05-03
|
* Read-only restore test fix (refs #3)Chris Wilson2007-05-03
|