diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-05-08 14:20:43 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-05-08 14:49:42 -0400 |
commit | 424314f65e2e0bd9af8f2962260014d1adc7011b (patch) | |
tree | ad435d7ad8484bd2000a45bcfa54162256c27e7e /site_scons/site_tools | |
parent | c7ce2e2c56c5d39530456fbbb0554517afe9ab14 (diff) | |
download | mongo-424314f65e2e0bd9af8f2962260014d1adc7011b.tar.gz |
SERVER-1424 Rewrite smoke.py.
Split out the passthrough tests into separate suites. The MongoDB
deployment is started up by resmoke.py so that we can record the
success/failure of each individual test in MCI.
Added support for parallel execution of tests by dispatching to
multiple MongoDB deployments.
Added support for grouping different kinds of tests (e.g. C++ unit
tests, dbtests, and jstests) so that they can be run together. This
allows for customizability in specifying what tests to execute when
changes are made to a particular part of the code.
Diffstat (limited to 'site_scons/site_tools')
-rw-r--r-- | site_scons/site_tools/mongo_unittest.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/site_scons/site_tools/mongo_unittest.py b/site_scons/site_tools/mongo_unittest.py index 70d66a02833..93ce02fefac 100644 --- a/site_scons/site_tools/mongo_unittest.py +++ b/site_scons/site_tools/mongo_unittest.py @@ -1,11 +1,6 @@ """Pseudo-builders for building and registering unit tests. """ -import os -import json - -from buildscripts import smoke - def exists(env): return True @@ -22,24 +17,8 @@ def unit_test_list_builder_action(env, target, source): ofile.write('%s\n' % s) finally: ofile.close() - - dir, filename = os.path.split(str(target[0])) - filebase, ext = os.path.splitext(filename) - - # Generate metadata file for unit tests - metadata_filename = os.path.join(dir, ".".join([filebase, "json"])) - print "Generating metadata file %s" % metadata_filename - - tests = [] - for s in source: - tests.append(smoke.tests.Test(filename=str(s), test_type="exe_test")) - print '\t' + str(s) - - # For now, write JSON to avoid YAML parsing dependency - smoke.tests.write_metadata(tests, metadata_filename, json_only=True) def build_cpp_unit_test(env, target, source, **kwargs): - libdeps = kwargs.get('LIBDEPS', []) libdeps.append( '$BUILD_DIR/mongo/unittest/unittest_main' ) |