summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Test that SyncAllowScript is executed and can pause backup for theChris Wilson2007-04-22
| | | | | correct amount of time. (refs #3)
* Add sync allow script to test config, to allow it to be tested.Chris Wilson2007-04-22
| | | | | Use TARGET_PERL to execute the test scripts. (refs #3)
* Use TARGET_PERL instead of PERL in shebang lines (refs #3)Chris Wilson2007-04-22
|
* Fix excessively verbose warnings while waiting for daemon to start.Chris Wilson2007-04-22
| | | | | (refs #3)
* Replace sleep() with safe_sleep() everywhere (refs #3)Chris Wilson2007-04-22
|
* Use additional arguments from command line options when starting bbackupdChris Wilson2007-04-22
| | | | | and bbstored. (refs #3)
* Add --bbackupd-args and --bbstored-args options, which may be used to passChris Wilson2007-04-22
| | | | | | | | | | | | | | | | | | | | | | | | additional command-line parameters to bbackupd and bbstored in some tests. Add -t and -T options, which add tags and timestamps to log messages using the logging framework inside the tests themselves. Now you can do things like: ./t -Tt test \ --bbackupd-args="-VTkt bbackupd" \ --bbstored-args="-VTkt bbstored" and you will get output from the test itself, the bbackupd and bbstored daemons, all interleaved, timestamped and tagged on the console. This is very useful for debugging synchronisation problems, where interleaved output from bbackupd and bbstored in the system logs is not enough, because you want to see exactly how they interact with the test, or you don't have access to the system logs. (refs #3)
* Add -V option, which sets maximum verbosity in one go.Chris Wilson2007-04-22
| | | | | | | | | | | Add -T option, which adds timestamps to console logs. Add -t option, which enabled and sets the tag used on console logs. Add -k option, which keeps console open after forking. (refs #3)
* Add options to log timestamps, and a custom tag, with each message toChris Wilson2007-04-22
| | | | | | | | | the console, e.g.: 14:53:17 [bbackupd] Finished scan of local files (refs #3)
* Log event name instead of numeric code. (refs #3)Chris Wilson2007-04-22
|
* Use logging framework to log stack traces from exceptions. (refs #3)Chris Wilson2007-04-22
|
* Use logging framework to log exceptions. (refs #3)Chris Wilson2007-04-22
|
* Declare global std::string variables that hold extra arguments forChris Wilson2007-04-22
| | | | | | | | | | | | | executables run in tests, to be implemented in a follow-up patch. ConvertPaths, LaunchServer and RunCommand all take std::string references instead of char*. Move safe_sleep from test/common to lib/server/Test.h so that all tests can use it. (refs #3)
* Pass all arguments from test scripts to test executable with properChris Wilson2007-04-22
| | | | | quoting (refs #3)
* Detect whether getopt.h is present on system. (refs #3)Chris Wilson2007-04-22
|
* Test that filenames containing non-ASCII (8-bit) characters can beChris Wilson2007-04-21
| | | | | | backed up and restored, and directories can be changed into and out of, on win32. (refs #3)
* Keep bbackupd pid in a global variable instead of a local one.Chris Wilson2007-04-21
| | | | | | | | | | Stop bbackupd nicely with terminate_bbackupd() instead of killing it, so that we get a memory leak report on Win32. Stop bbackupd and bbstored at end of test if any tests fail. (refs #3)
* Test fix: create TestDir1 with a readable mode (refs #3)Chris Wilson2007-04-21
|
* Compile fix, comment out set_file_time helper function on non-Win32Chris Wilson2007-04-21
| | | | | platforms (refs #3)
* Enhance test for bbackupd pausing on change of client store markerChris Wilson2007-04-21
| | | | | (refs #3)
* Work around lack of pipe support in Win32 system() command (refs #3)Chris Wilson2007-04-21
|
* Don't fill in struct dirent.d_ino unless we've detected that it's Chris Wilson2007-04-21
| | | | | present on this platform. (refs #3)
* Add utility functions for running different types of syncs, set WindowsChris Wilson2007-04-21
| | | | | | file time (enhanced utimes()), and finding a named entry in a directory on the store. (refs #3)
* Comment out some tests that don't work on Win32 (refs #3)Chris Wilson2007-04-21
|
* Use #defined constants rather than hard-coded paths for launchingChris Wilson2007-04-21
| | | | | programs. (refs #3)
* Compile fix, always include Test.h (refs #3)Chris Wilson2007-04-21
|
* Rearrange #includes in alphabetical order. (refs #3)Chris Wilson2007-04-20
|
* Don't log errors or throw exceptions when we get ERROR_NO_DATA, which justChris Wilson2007-04-20
| | | | | | | | | | | | | | | means that the pipe is being closed. Treat it as a normal remote close (EOF) instead. Don't log an error if DisconnectNamedPipe tells us that the remote end already closed the pipe (ERROR_PIPE_NOT_CONNECTED). Treat ERR_PIPE_NOT_CONNECTED during pipe reads as EOF as well. Improve logging of pipe errors by including the error message. (refs #3, merges [1458] and [1463])
* Add a warning that comparing locations with a final directory separatorChris Wilson2007-04-20
| | | | | may fail (Stefan Tauner) (refs #3, merges [1512])
* Fix erroneous line break.Chris Wilson2007-04-20
|
* Added commentary to RaidFileDoesntExist exception.Chris Wilson2007-04-20
|
* Check return value using the macro, because ::system works differentlyChris Wilson2007-04-06
| | | | | on Windows than on Unix (refs #3, merges part of [623])
* Use the old way to unzip files on win32/cygwin, since the pipe method Chris Wilson2007-04-06
| | | | | doesn't seem to work here. (refs #3, merges part of [623])
* Disable interrupted restore test on Win32 (uses fork) Chris Wilson2007-04-06
| | | | | (refs #3, merges part of [623])
* Disable symlink tests on win32. (refs #3, merges part of [623])Chris Wilson2007-04-02
|
* Test for restoring to a directory whose parent does not exist Chris Wilson2007-04-01
| | | | | (refs #3, merges [517])
* Only include headers on systems which have themChris Wilson2007-03-25
|
* Win32 fixes (paths to executables, and don't try things that don't workChris Wilson2007-03-25
| | | | | on Windows, like sending HUP signals) (refs #3)
* Allow '/' as a path separator on all platforms, even Win32 (refs #3,Chris Wilson2007-03-25
| | | | | merges [1496])
* Close RaidFile before committing, so that commit can work on win32.Chris Wilson2007-03-25
| | | | | | | Typo fix. (refs #3)
* Use #defined paths for executables to remove win32/unix differences.Chris Wilson2007-03-25
| | | | | (refs #3)
* Fix spurious/suprious typos.Chris Wilson2007-03-25
| | | | | | | | | | | Use #defined paths for executables to remove win32/unix differences. Don't check for bbstored memory leaks on win32. Wrap long lines for readability. (refs #3)
* Use #defined paths for applications to fix cross unix/win32 compatibility.Chris Wilson2007-03-25
| | | | | | | | | Fix memory leak. Reformat comments. (refs #3)
* Fix unix path to bbstored (refs #3)Chris Wilson2007-03-25
|
* Added precompiled output from message compiler, for those who don'tChris Wilson2007-03-24
| | | | | have it, e.g. using MinGW instead of MSVC. (refs #3, merges [526])
* Indent cleanup (refs #3)Chris Wilson2007-03-24
|
* Merge new m4 from trunk. (refs #3, merges [1453])Chris Wilson2007-03-24
|
* Use logging framework to remove timer noise for those who don't want it.Chris Wilson2007-03-24
| | | | | (refs #3, merges [1448])
* Initialise logging framework and set our program name to Chris Wilson2007-03-24
| | | | | | "Box Backup (bbstored)". (refs #3, merges [1462])
* Add a quiet mode to compare command, to make test output easier to read.Chris Wilson2007-03-24
| | | | | (refs #3, merges [1460])