diff options
author | Randolph Tan <randolph@10gen.com> | 2012-09-19 16:32:42 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2012-10-04 12:04:53 -0400 |
commit | 997b1c3718b378e4096fb708e054644690b38c4d (patch) | |
tree | f171e24b3fed6c9cd0c1092b045532911365064f /src/mongo/SConscript | |
parent | 13535ff54d3db78de6fc06a137915f25506dd7bc (diff) | |
download | mongo-997b1c3718b378e4096fb708e054644690b38c4d.tar.gz |
SERVER-5175 Need "failpoints" system to facilitate testing core server
Step 1: Implement and test the FailPoint class
Diffstat (limited to 'src/mongo/SConscript')
-rw-r--r-- | src/mongo/SConscript | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/SConscript b/src/mongo/SConscript index c2c66783fb1..62ee03f409f 100644 --- a/src/mongo/SConscript +++ b/src/mongo/SConscript @@ -99,12 +99,15 @@ commonFiles = [ "pch.cpp", "client/distlock.cpp", ] +env.StaticLibrary("fail_point", "util/fail_point.cpp", LIBDEPS=["foundation", "bson"]) + env.StaticLibrary('mongocommon', commonFiles, LIBDEPS=['bson', 'foundation', 'md5', 'stacktrace', 'stringutils', + 'fail_point', '$BUILD_DIR/third_party/pcrecpp', '$BUILD_DIR/third_party/murmurhash3/murmurhash3', '$BUILD_DIR/third_party/shim_boost'],) @@ -353,6 +356,10 @@ env.CppUnitTest( "balancer_policy_test" , [ "s/balancer_policy_tests.cpp" ] , LIBDEPS=["mongoscore", "coreshard","mongocommon","coreserver","coredb","dbcmdline","mongodandmongos"] , NO_CRUTCH=True) +# Should only need stuff from util, unittest and platform +env.CppUnitTest("fail_point_test", [ "util/fail_point_test.cpp" ], + LIBDEPS=["fail_point"]) + serverOnlyFiles += [ "s/d_logic.cpp", "s/d_writeback.cpp", "s/d_migrate.cpp", |