summaryrefslogtreecommitdiff
path: root/src/mongo/unittest/SConscript
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-05-30 17:48:52 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-06-04 13:08:27 -0400
commitc04922ad14ebe43d99ba056b7b3ae79860b8cd91 (patch)
tree5057ff729113f61028ed4c94ae96c26796d49c92 /src/mongo/unittest/SConscript
parent7cb8e1f11959d8cb45954fcb1cfe13cdc6caa169 (diff)
downloadmongo-c04922ad14ebe43d99ba056b7b3ae79860b8cd91.tar.gz
SERVER-5702: C++ unit test framework that can be compiled separately.
Includes a unit test of the unit test framework written in the unit test framework, itself.
Diffstat (limited to 'src/mongo/unittest/SConscript')
-rw-r--r--src/mongo/unittest/SConscript12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mongo/unittest/SConscript b/src/mongo/unittest/SConscript
index 9f434723991..43a945fe7ad 100644
--- a/src/mongo/unittest/SConscript
+++ b/src/mongo/unittest/SConscript
@@ -2,4 +2,14 @@
Import("env")
-env.StaticLibrary("unittest", ['unittest.cpp'])
+env.StaticLibrary("unittest", ['unittest.cpp'],
+ LIBDEPS=['$BUILD_DIR/mongo/foundation'])
+
+env.StaticLibrary("unittest_main", ['unittest_main.cpp'],
+ LIBDEPS=['unittest'])
+
+env.StaticLibrary("unittest_crutch", ['crutch.cpp'])
+
+env.Alias('unittests',
+ env.Program('unittest_test', 'unittest_test.cpp',
+ LIBDEPS=['unittest_main', 'unittest_crutch'])