Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SERVER-15592 set default log component for all cpp | Matt Kangas | 2014-10-14 | 2 | -0/+4 |
| | |||||
* | SERVER-15567 Allow streaming into unittest assertions. | Andy Schwerin | 2014-10-09 | 4 | -167/+119 |
| | |||||
* | SERVER-15147 move Date_t and OpTime ostreaming to unittest | matt dannenberg | 2014-09-05 | 4 | -1/+99 |
| | |||||
* | SERVER-14925 Shutdown command should exit cleanly | Mathias Stearn | 2014-08-20 | 1 | -1/+5 |
| | |||||
* | SERVER-14825 Add utility methods to C++ unit tests for capturing and ↵ | Andy Schwerin | 2014-08-07 | 2 | -2/+70 |
| | | | | examining log messages. | ||||
* | SERVER-10431 Split synchronous signal handlers into new library; use them in ↵ | Andy Schwerin | 2014-08-06 | 2 | -4/+7 |
| | | | | | | unit tests. With this change, unit tests that segfault or abort will correctly print stack traces. | ||||
* | SERVER-13961 Pass through OperationContext in the JS framework | Kaloian Manassiev | 2014-07-28 | 1 | -1/+3 |
| | | | | | | | | The JS framework uses DBDirectClient, which requires OperationContext in order to not conflict with locks, which have already been acquired. This change also makes dbEval not use pooled scopes and create a new scope instead. | ||||
* | SERVER-14653 Allow streaming into ASSERT_TRUE and ASSERT_FALSE. | Andy Schwerin | 2014-07-22 | 3 | -37/+99 |
| | | | | | Also contains some basic simplifications of the internal unittest code to facilitate the change. | ||||
* | SERVER-14533 Break the foundation-lasterror-network circular dependence in ↵ | Andy Schwerin | 2014-07-14 | 1 | -6/+0 |
| | | | | | | | | build system. The dependence was most glaringly reflected in the unittest library's dependence list, and removing it from there required adding some missing library dependences to a few other C++ unittests. | ||||
* | SERVER-14526 Introduce ASSERT_THROWS_WHAT and ASSERT_THROWS_PRED to the ↵ | Andy Schwerin | 2014-07-14 | 2 | -9/+46 |
| | | | | unittest framework. | ||||
* | SERVER-14343 leaner include paths | Andrew Morrow | 2014-07-12 | 1 | -1/+1 |
| | |||||
* | SERVER-14418 Introduce unittest::assertGet, use in replication_executor_test. | Andy Schwerin | 2014-07-02 | 1 | -0/+10 |
| | |||||
* | SERVER-13256: Remove pch - qualify std in headers | Mark Benvenuto | 2014-05-19 | 1 | -3/+3 |
| | |||||
* | SERVER-13882 Replace boost::function with stdx::function and boost::bind ↵ | Andy Schwerin | 2014-05-16 | 1 | -4/+3 |
| | | | | with stdx::bind. | ||||
* | SERVER-13264 Move Apache-licensed files to AGPL | Ian Whalen | 2014-05-16 | 1 | -9/+21 |
| | | | | Also update generators. | ||||
* | SERVER-8886 Final set of license exceptions for OpenSSL | Ian Whalen | 2013-12-10 | 7 | -0/+84 |
| | |||||
* | SERVER-11658 Consistently use Library target | Andrew Morrow | 2013-11-18 | 1 | -9/+9 |
| | |||||
* | SERVER-10868 add --tempPath parameter to unittests and dbtests | Mathias Stearn | 2013-11-12 | 2 | -2/+17 |
| | |||||
* | SERVER-11637: Consolidate unittest crutches into crutch.cpp | Shaun Verch | 2013-11-09 | 2 | -9/+25 |
| | |||||
* | SERVER-11637: Move lasterror.cpp into its own library and add comment about ↵ | Shaun Verch | 2013-11-09 | 2 | -2/+8 |
| | | | | dependency triangle | ||||
* | SERVER-11637: Move some base files that libfoundation.a needs to link into ↵ | Shaun Verch | 2013-11-09 | 1 | -3/+0 |
| | | | | libfoundation.a | ||||
* | SERVER-11062 fixed runtime issue with unsupported printf width specifier z ↵ | Benety Goh | 2013-10-08 | 1 | -2/+2 |
| | | | | on Windows | ||||
* | SERVER-8937 added success/failure summary at end of execution | Benety Goh | 2013-10-04 | 1 | -10/+32 |
| | |||||
* | SERVER-10868 Step 1: Make an RAII TempDir class for unit tests | Mathias Stearn | 2013-09-27 | 4 | -1/+217 |
| | | | | Prep for SERVER-10868: move external sort tests out of dbtests | ||||
* | add time to unittest output and fix formatting | Eliot Horowitz | 2013-09-24 | 1 | -2/+12 |
| | |||||
* | SERVER-10431 Add Windows unhandled exception filter to unit tests | Tad Marshall | 2013-08-06 | 1 | -0/+2 |
| | |||||
* | SERVER-10084 New logging implementation. | Andy Schwerin | 2013-07-09 | 3 | -1/+28 |
| | | | | | | | | | | | | | | | | This change-set: * Introduces a new top-level directory, mongo/logger, containing most of the implementation of logging functionality formerly found in log.cpp/log.h. * Cleans up existing, unusual uses of the logging system that were not trivially compatible with the new implementation. * Replaces Logstream/Nulstream with a LogstreamBuilder object, whose destructor writes log messages. This new LogstreamBuilder is reentrant, unlike the old logging code, which was thread-safe but not reentrant. Additionally, std::endl is no longer required to terminate a log line. When a LogstreamBuilder goes out of scope, the log message gets committed. * Separates the log system into several components: a global LogManager, several LogDomains, various kinds of Appenders (e.g., SyslogAppender) and Encoders (for formatting messages). * Allows unit tests to capture and examine log output. This patch does _not_ introduce support for hierarchical log domains, or for enabling and disabling specific log domains when the server is running in a multi-threaded mode. This is future work. | ||||
* | Include what you use: mongo/util/concurrency/mutex.h. | Andy Schwerin | 2013-06-27 | 1 | -0/+1 |
| | |||||
* | Don't convert static strings (__FILE__ and macro #arg) to std::strings in ↵ | Mathias Stearn | 2013-05-13 | 2 | -11/+19 |
| | | | | | | unittests Speeds up a test I'm writing by >3x | ||||
* | Mark unit test fail as noreturn to help static analysis tools | Andrew Morrow | 2013-05-02 | 1 | -1/+1 |
| | |||||
* | Namespace qualify Status in ASSERT_OK | Andrew Morrow | 2013-03-08 | 1 | -3/+3 |
| | |||||
* | SERVER-7767 Support extended privilege document format in the ↵ | Andy Schwerin | 2012-12-17 | 1 | -0/+5 |
| | | | | | | AuthorizationManager. Includes unit but not integration tests. | ||||
* | fix solaris build failure due to collision of template param and macro | Andrea Lattuada | 2012-11-14 | 1 | -2/+2 |
| | |||||
* | add approximate equality assertion to unittest framework | Andrea Lattuada | 2012-11-13 | 2 | -0/+31 |
| | |||||
* | Move ASSERT_OK macro into mongo/unittest/unittest.h. | Andy Schwerin | 2012-11-06 | 1 | -0/+5 |
| | | | | Previously, every test file that wanted it was defining it. | ||||
* | improve performance of ASSERT_ | Eliot Horowitz | 2012-11-02 | 1 | -11/+22 |
| | |||||
* | SERVER-7231 Use LOG(level) macro instead of log(level) function | Shaun Verch | 2012-10-24 | 1 | -3/+3 |
| | |||||
* | fix a lot of copyright notices | Eliot Horowitz | 2012-10-15 | 1 | -0/+15 |
| | |||||
* | Revert "Support templated unittest tests" | Mathias Stearn | 2012-10-01 | 1 | -31/+0 |
| | | | | This reverts commit 7ce347287c153ef15067e0e2f8039ea33f1d90df. | ||||
* | Revert "Support templated unittest test suites." | Mathias Stearn | 2012-10-01 | 2 | -72/+1 |
| | | | | This reverts commit b897ff2d1d6c32e43f4efbcbd4956b645bd3eb8b. | ||||
* | Support templated unittest test suites. | Mathias Stearn | 2012-09-30 | 2 | -1/+72 |
| | |||||
* | Support templated unittest tests | Mathias Stearn | 2012-09-30 | 1 | -0/+31 |
| | |||||
* | SERVER-5112 Introduce runGlobalInitializers(), macros and tools for global ↵ | Andy Schwerin | 2012-09-25 | 2 | -2/+5 |
| | | | | | | | | | initializer declaration. These utilities simplify adding global (process-wide) initializers that run at the beginning of main(). Also, run the global initializers in the main() of unittests. | ||||
* | Break a few more libraries off of "mongocommon". | Andy Schwerin | 2012-07-17 | 1 | -0/+3 |
| | | | | | | | Supports building all build products using _LIBDEPS=_LIBDEPS_OBJS instead of a mix of _LIBDEPS_OBJS and _LIBDEPS_LIBS. Necessitated in the short term by SERVER-6461, and in the long term by SERVER-5112. | ||||
* | do not compare raw pointers | Eric Milkie | 2012-07-16 | 1 | -4/+0 |
| | | | | | | If you compare string literals, their addresses are compared. This can fail if the compiler decides not to share .data space between string literals with the same values. | ||||
* | Added fixtures to new unit test framework. | Alberto Lerner | 2012-06-27 | 4 | -7/+140 |
| | | | | | | | | | | | | | | | | | | | | Here's how this take on fixtures with exception handling works: (Basically, setUp/tearDown mimic the expectations we have for constructors/ destructors in our coding guidelines.) + If the fixture throws on setUp() (for instance, because of an ASSERT), then that test case would be considered failed and tearDown() would not run. The remainder of the test suite should run fine, assuming calling setUp again in each test case would build the fixture properly. + If the test body code throws because of an ASSERT, then tearDown() will be issued and the test case would be considered failed. The remainder of the suite should run fine. + If the test body code throws an unexpected assertion, then tearDown() will NOT run and the entire suite is compromised. + tearDown() should be treated as a destructor and therefore should not throw. | ||||
* | add a --runs option to dbtests | Eliot Horowitz | 2012-06-12 | 3 | -7/+8 |
| | |||||
* | SERVER-5702 Respond to late-arriving codereview comments. | Andy Schwerin | 2012-06-04 | 1 | -14/+11 |
| | |||||
* | SERVER-5702 Whitespace fixup. | Andy Schwerin | 2012-06-04 | 2 | -40/+40 |
| | |||||
* | SERVER-5702: Add ability to register unit tests in SCons. | Andy Schwerin | 2012-06-04 | 1 | -3/+3 |
| | | | | | | | | Tests are registered with env.RegisterUnitTest(), or by compiling a C++ unit test with env.CppUnitTest('test_name', [test_source_list], LIBDEPS=[...]) The result is that SCons knows how to build a file "build/unittests.txt", one line per test. |