summaryrefslogtreecommitdiff
path: root/infrastructure/buildenv-testmain-template.cpp
Commit message (Collapse)AuthorAge
* Remove duplicate printing of exception details on test errors.Chris Wilson2015-12-24
| | | | | BoxException::what() now contains the full details of the exception, so we don't need to print the value returned by GetMessage() as well.
* Remove unused headers to aid compilation on Windows (MSVC).Chris Wilson2015-12-08
|
* Major test refactor to support test suites.Chris Wilson2015-07-01
| | | | | | | 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.
* Add command-line help to test executables.Chris Wilson2015-06-10
|
* Refactor file descriptor checks to avoid false alarms on NetBSD.Chris Wilson2014-12-12
| | | | | | Logging anything while checking for open file descriptors can reopen the syslog connection that was closed before, resulting in a false positive.
* Remove unused code.Chris Wilson2014-12-06
|
* Add support for all logging options in test executables.Chris Wilson2014-09-04
| | | | Merged back changes from the test refactor branch to reduce diffs.
* Backport Timers::Cleanup that's safe to use in test cleanup.Chris Wilson2014-09-04
| | | | | | | | | | 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.
* 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.
* Fix compile error caused by missing std::list prototype.Chris Wilson2014-02-07
| | | | | | Fix erroneous detection of leaked file descriptors by closing syslog before compiling the initial list of file descriptors.
* Allow running only named tests in test suites that support it.Chris Wilson2014-02-07
|
* Close syslog before checking for files left open in tests.Chris Wilson2014-02-07
| | | | Otherwise we might detect the opened syslog socket as a leaked file descriptor.
* Fix getopt header confusion.Chris Wilson2013-09-30
| | | | | | | | 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.
* Add support for the -W option to test runner executable.Chris Wilson2013-08-21
|
* Don't use getpeername(), sys/socket.h or sys/un.h on platforms that don'tChris Wilson2012-11-14
| | | | | include them, to fix compile on Windows.
* Don't flag an error if the only sockets "leaked" are syslog sockets.Chris Wilson2012-11-08
|
* Check for /dev/log and don't report if fds to it are leaked.Chris Wilson2012-11-08
|
* Set console log level as well as global level in tests.Chris Wilson2012-02-02
|
* Print the message of the exception that caused a test to fail.Chris Wilson2012-01-22
|
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Remove -K option which now does nothing on Windows.Chris Wilson2008-10-03
| | | | | Add -Q option which disables all logging instead.
* Unify program name and console logging tags.Chris Wilson2008-09-13
| | | | | | 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.
* Set program name in tests to module name (e.g. test/bbackupd).Chris Wilson2008-05-28
| | | | | Add option to show PID in logs (-P) in tests.
* Reorganise includes in test main template.Chris Wilson2008-04-09
|
* Run daemons quietly (with -K) in tests under Windows.Chris Wilson2008-03-13
|
* Flush standard output when finishing test, useful on Windows where it Chris Wilson2008-03-01
| | | | | | happens rarely and test output can end up below the PASSED line and confuse the runtest script.
* Add support for verbosity control in tests.Chris Wilson2008-01-31
|
* Better way to pass arguments to test daemons, with --test-daemon-args.Chris Wilson2007-12-18
|
* Pass test options to test daemons.Chris Wilson2007-12-16
|
* Add -U option to enable logging microsecond timestampsChris Wilson2007-12-15
|
* Don't add a superfluous leading space to bbackupd_args.Chris Wilson2007-11-06
|
* Compile fix for [1903].Chris Wilson2007-11-04
|
* Log something before checking open file descriptors, to ensure thatChris Wilson2007-11-03
| | | | | | 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.
* Log exactly which file descriptors have been left open and what they are.Chris Wilson2007-11-03
|
* Include <string> to avoid compile failures on BSD, thanks James O'Gorman.Chris Wilson2007-06-20
| | | | | (refs #3, merges [1698])
* 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)
* #include Test.h to fix compile (needed for TEST_THAT)Chris Wilson2007-03-04
| | | | | | | | | Improved error message Improved comments (refs #3, merges parts of [712], [1289] and [1337])
* Compile fix: include std::string definition (refs #3)Chris Wilson2006-12-12
|
* Initialise timers in all unit tests (refs #9)Chris Wilson2006-11-13
|
* Initialise memory leak finder in all unit tests (refs #3)Chris Wilson2006-11-13
|
* (refs #3)Chris Wilson2006-09-02
| | | | | Automatically initialise Windows sockets for all tests
* * infrastructure/buildenv-testmain-template.cppChris Wilson2006-08-31
| | | | | | | 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)
* * buildenv-testmain-template.cppChris Wilson2006-08-31
| | | | | - Revert to trunk
* * mergeChris Wilson2006-07-27
| | | | | | | - 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).
* Merged 210:218 from chris/win32/merge/07-win32-fixes to trunkMartin Ebourne2005-12-12
|
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14