summaryrefslogtreecommitdiff
path: root/src/mongo/unittest
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-15592 set default log component for all cppMatt Kangas2014-10-142-0/+4
|
* SERVER-15567 Allow streaming into unittest assertions.Andy Schwerin2014-10-094-167/+119
|
* SERVER-15147 move Date_t and OpTime ostreaming to unittestmatt dannenberg2014-09-054-1/+99
|
* SERVER-14925 Shutdown command should exit cleanlyMathias Stearn2014-08-201-1/+5
|
* SERVER-14825 Add utility methods to C++ unit tests for capturing and ↵Andy Schwerin2014-08-072-2/+70
| | | | examining log messages.
* SERVER-10431 Split synchronous signal handlers into new library; use them in ↵Andy Schwerin2014-08-062-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 frameworkKaloian Manassiev2014-07-281-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 Schwerin2014-07-223-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 Schwerin2014-07-141-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 Schwerin2014-07-142-9/+46
| | | | unittest framework.
* SERVER-14343 leaner include pathsAndrew Morrow2014-07-121-1/+1
|
* SERVER-14418 Introduce unittest::assertGet, use in replication_executor_test.Andy Schwerin2014-07-021-0/+10
|
* SERVER-13256: Remove pch - qualify std in headersMark Benvenuto2014-05-191-3/+3
|
* SERVER-13882 Replace boost::function with stdx::function and boost::bind ↵Andy Schwerin2014-05-161-4/+3
| | | | with stdx::bind.
* SERVER-13264 Move Apache-licensed files to AGPLIan Whalen2014-05-161-9/+21
| | | | Also update generators.
* SERVER-8886 Final set of license exceptions for OpenSSLIan Whalen2013-12-107-0/+84
|
* SERVER-11658 Consistently use Library targetAndrew Morrow2013-11-181-9/+9
|
* SERVER-10868 add --tempPath parameter to unittests and dbtestsMathias Stearn2013-11-122-2/+17
|
* SERVER-11637: Consolidate unittest crutches into crutch.cppShaun Verch2013-11-092-9/+25
|
* SERVER-11637: Move lasterror.cpp into its own library and add comment about ↵Shaun Verch2013-11-092-2/+8
| | | | dependency triangle
* SERVER-11637: Move some base files that libfoundation.a needs to link into ↵Shaun Verch2013-11-091-3/+0
| | | | libfoundation.a
* SERVER-11062 fixed runtime issue with unsupported printf width specifier z ↵Benety Goh2013-10-081-2/+2
| | | | on Windows
* SERVER-8937 added success/failure summary at end of executionBenety Goh2013-10-041-10/+32
|
* SERVER-10868 Step 1: Make an RAII TempDir class for unit testsMathias Stearn2013-09-274-1/+217
| | | | Prep for SERVER-10868: move external sort tests out of dbtests
* add time to unittest output and fix formattingEliot Horowitz2013-09-241-2/+12
|
* SERVER-10431 Add Windows unhandled exception filter to unit testsTad Marshall2013-08-061-0/+2
|
* SERVER-10084 New logging implementation.Andy Schwerin2013-07-093-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 Schwerin2013-06-271-0/+1
|
* Don't convert static strings (__FILE__ and macro #arg) to std::strings in ↵Mathias Stearn2013-05-132-11/+19
| | | | | | unittests Speeds up a test I'm writing by >3x
* Mark unit test fail as noreturn to help static analysis toolsAndrew Morrow2013-05-021-1/+1
|
* Namespace qualify Status in ASSERT_OKAndrew Morrow2013-03-081-3/+3
|
* SERVER-7767 Support extended privilege document format in the ↵Andy Schwerin2012-12-171-0/+5
| | | | | | AuthorizationManager. Includes unit but not integration tests.
* fix solaris build failure due to collision of template param and macroAndrea Lattuada2012-11-141-2/+2
|
* add approximate equality assertion to unittest frameworkAndrea Lattuada2012-11-132-0/+31
|
* Move ASSERT_OK macro into mongo/unittest/unittest.h.Andy Schwerin2012-11-061-0/+5
| | | | Previously, every test file that wanted it was defining it.
* improve performance of ASSERT_Eliot Horowitz2012-11-021-11/+22
|
* SERVER-7231 Use LOG(level) macro instead of log(level) functionShaun Verch2012-10-241-3/+3
|
* fix a lot of copyright noticesEliot Horowitz2012-10-151-0/+15
|
* Revert "Support templated unittest tests"Mathias Stearn2012-10-011-31/+0
| | | | This reverts commit 7ce347287c153ef15067e0e2f8039ea33f1d90df.
* Revert "Support templated unittest test suites."Mathias Stearn2012-10-012-72/+1
| | | | This reverts commit b897ff2d1d6c32e43f4efbcbd4956b645bd3eb8b.
* Support templated unittest test suites.Mathias Stearn2012-09-302-1/+72
|
* Support templated unittest testsMathias Stearn2012-09-301-0/+31
|
* SERVER-5112 Introduce runGlobalInitializers(), macros and tools for global ↵Andy Schwerin2012-09-252-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 Schwerin2012-07-171-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 pointersEric Milkie2012-07-161-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 Lerner2012-06-274-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 dbtestsEliot Horowitz2012-06-123-7/+8
|
* SERVER-5702 Respond to late-arriving codereview comments.Andy Schwerin2012-06-041-14/+11
|
* SERVER-5702 Whitespace fixup.Andy Schwerin2012-06-042-40/+40
|
* SERVER-5702: Add ability to register unit tests in SCons.Andy Schwerin2012-06-041-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.