summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix getting files with uncertain size (over 2GB) from the store. FailureChris Wilson2007-04-28
| | | | | | to drain the stream will leave the EOF byte in it, which breaks further communications with the store over the same connection. (refs #2, refs #3)
* Improve error messages when Getting a file fails with an exception.Chris Wilson2007-04-28
| | | | | (refs #3)
* Fix formatting bugs. (refs #3)Chris Wilson2007-04-28
|
* Notify about full file uploads. (refs #3)Chris Wilson2007-04-28
|
* Improve log message for NotifyFileUploading(). (refs #3)Chris Wilson2007-04-28
|
* Don't fork to handle requests when running as a single process (veryChris Wilson2007-04-28
| | | | | useful for debugging). (refs #3)
* Remove comments accidentally left in [1591]. (refs #3)Chris Wilson2007-04-28
|
* Make Daemon remember whether we're supposed to run in a single process,Chris Wilson2007-04-28
| | | | | or not. (refs #3)
* Use ReadLoggingStream to log progress of file uploads. (refs #3)Chris Wilson2007-04-28
|
* Add a stream which logs progress of reading data from another (child)Chris Wilson2007-04-28
| | | | | | stream, and estimated time of completion, useful for upload progress monitoring. (refs #3)
* Keep a copy of the program name, in case the original goes away, whichChris Wilson2007-04-28
| | | | | causes syslog() to write nonsense for the program name. (refs #3)
* Test that PartialReadStream and ReadGatherStream can handle streamsChris Wilson2007-04-28
| | | | | over 2GB in size. (refs #3)
* Fix inability to handle streams over 2GB properly. (refs #3)Chris Wilson2007-04-28
|
* Add a stream which provides a source of zero bytes of arbitrary size,Chris Wilson2007-04-28
| | | | | useful for testing support for files over 2GB. (refs #3)
* Test that locked files behave as expected on Win32 (refs #3, mergesChris Wilson2007-04-22
| | | | | parts of [649], [694], [1461])
* Test that file attributes are backed up and compared correctly on Win32Chris Wilson2007-04-22
| | | | | (refs #3, merges part of 694])
* Compare restored files as part of restore test (refs #3, merges part Chris Wilson2007-04-22
| | | | | of [623])
* Check that Exclude and AlwaysInclude configurations actually work asChris Wilson2007-04-22
| | | | | they should. (refs #3, merges [711])
* Use wait_for_sync_end() to synchronise the test more accurately withChris Wilson2007-04-22
| | | | | bbackupd, hopefully reducing random failures. (refs #3)
* Use Cygwin chmod command-line tool to make the read-only file writableChris Wilson2007-04-22
| | | | | on Win32, instead of our own chmod() (which does nothing). (refs #3)
* Ignore attempts to listen on a Unix socket on Win32, so that we can shareChris Wilson2007-04-22
| | | | | config files for the unit tests (refs #3)
* Use wait_for_sync_end() rather than calling bbackupquery ourselves (refs #3)Chris Wilson2007-04-22
|
* Use LaunchServer to remove the need for some #ifdefs.Chris Wilson2007-04-22
| | | | | | | Use directory separator constant instead of forward slash. Add some blank lines for readability. (refs #3)
* Fix accidental passing of object to printf() (refs #3)Chris Wilson2007-04-22
|
* Merge [1566] from chris/general:Chris Wilson2007-04-22
| | | | | | | | | Use Sleep() instead of nanosleep again on win32 (lost in merge [1562]). Fix reference to pCommandLine which no longer exists after [1562]. Fix signed/unsigned comparison warning. (refs #3)
* Compile fix for Win32, where no localtime_r is available and localtimeChris Wilson2007-04-22
| | | | | is thread safe. (refs #3)
* Display file and line where memory leak test failed. (refs #3)Chris Wilson2007-04-22
|
* Start using svnmerge.pyChris Wilson2007-04-22
|
* 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)