diff options
author | Dan Crosta <dcrosta@10gen.com> | 2012-07-10 11:12:35 -0400 |
---|---|---|
committer | Dan Crosta <dcrosta@10gen.com> | 2012-07-10 11:13:00 -0400 |
commit | a6989ade6202cc24c2f08afcba800dd0e31d550c (patch) | |
tree | 02b7610ccb9cb2e5f1f1fe0a79b21822ba42143f /SConscript.smoke | |
parent | 0cd941df19c89518e7c940f40af4e06d8c5854be (diff) | |
download | mongo-a6989ade6202cc24c2f08afcba800dd0e31d550c.tar.gz |
allow db modules to declare scripts that are run as a test suite
Diffstat (limited to 'SConscript.smoke')
-rw-r--r-- | SConscript.smoke | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/SConscript.smoke b/SConscript.smoke index 6ef60ac5b0a..be234af6b62 100644 --- a/SConscript.smoke +++ b/SConscript.smoke @@ -53,6 +53,17 @@ def addSmoketest( name, deps, extraSmokeArgs=[] ): smokeArgs = smokeFlags + [target] + extraSmokeArgs addTest(name, deps, utils.run_smoke_command(*smokeArgs)) +def addSmokeSuite( name, suitefile ): + # Add a smoketest target which invokes smoke.py with + # --from-file, and passes the named suitefile as the + # command line argument. + + # resolve an initial # in the suitefile + suitefile = str(env.File(suitefile)) + + addTest(name, [suitefile], + utils.run_smoke_command('--mode', 'files', '--from-file', suitefile)) + addSmoketest( "smoke", [ add_exe( "test" ), add_exe( "mongod" ), add_exe( "mongo" ) ] ) addSmoketest( "smokePerf", [ add_exe("perftest") ] ) addSmoketest( "smokeClient", [ @@ -66,7 +77,8 @@ addSmoketest( "smokeClient", [ add_exe('clientTest'), ] ) addSmoketest( "mongosTest", [ add_exe( 'mongos' ) ]) -addSmoketest( "smokeCppUnittests", "$UNITTEST_LIST" ) +addSmokeSuite( "smokeCppUnittests", "$UNITTEST_LIST" ) +addSmokeSuite( "smokeModuleTests", "$MODULETEST_LIST" ) # These tests require the mongo shell if shellEnv is not None: |