| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
BoxException::what() now contains the full details of the exception, so we
don't need to print the value returned by GetMessage() as well.
|
| |
|
|
|
|
|
|
|
| |
Refactor all common code from testbbackupd and testbackupstore to allow other
test suites to contain multiple tests and execute selected tests more easily.
Report all test results within a suite in a standard, easy to read summary.
|
| |
|
|
|
|
|
|
| |
Logging anything while checking for open file descriptors can reopen the
syslog connection that was closed before, resulting in a false positive.
|
| |
|
|
|
|
| |
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
|
|
|
|
| |
Allows it not to throw an exception if timers weren't initialised when
cleanup was requested. Normally we want an exception thrown, but not while
we're cleaning up a test that might have failed with timers uninitialised.
More timers fixes after cleanup no-exception option.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
| |
It's incompatible with having a logger that logs everything, regardless of
the global log level.
|
|
|
|
|
|
| |
Fix erroneous detection of leaked file descriptors by closing syslog before
compiling the initial list of file descriptors.
|
| |
|
|
|
|
| |
Otherwise we might detect the opened syslog socket as a leaked file descriptor.
|
|
|
|
|
|
|
|
| |
Our copy of getopt.h in lib/win32 was beating the system getopt.h in the
search path, and providing different definitions, which clang picked up.
Renamed our getopt.h to bsd_getopt.h, and added a box_getopt.h to decide
whether to include this one instead of the system getopt.h.
|
| |
|
|
|
|
|
| |
include them, to fix compile on Windows.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
well (e.g. wxWidgets) and it causes conflicts which are difficult to
resolve.
|
|
|
|
|
| |
Add -Q option which disables all logging instead.
|
|
|
|
|
|
| |
Add a new class, Logging::Tagger, which can be used to temporarily
add information to the program name, such as the client ID in bbstored.
|
|
|
|
|
| |
Add option to show PID in logs (-P) in tests.
|
| |
|
| |
|
|
|
|
|
|
| |
happens rarely and test output can end up below the PASSED line and
confuse the runtest script.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
the notification socket is open already on MacOS X, as it will be at
the end of the test because you can't close it.
|
| |
|
|
|
|
|
| |
(refs #3, merges [1698])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
| |
Improved error message
Improved comments
(refs #3, merges parts of [712], [1289] and [1337])
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Automatically initialise Windows sockets for all tests
|
|
|
|
|
|
|
| |
Record the file and line of first test failure, and print them
at the end of the test, useful for debugging when the first
failure has scrolled off screen (refs #3)
|
|
|
|
|
| |
- Revert to trunk
|
|
|
|
|
|
|
| |
- 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).
|
| |
|
|
|
|
| |
You may need a new checkout to see this.
|
|
|