mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-13635 Make dbtest take --storageEngine
This commit is contained in:
parent
017d360814
commit
9f4ebf0e4f
@ -521,6 +521,10 @@ def runTest(test, result):
|
||||
if smoke_db_prefix:
|
||||
dir_name = smoke_db_prefix + '/unittests'
|
||||
argv.extend(["--dbpath", dir_name] )
|
||||
|
||||
if storage_engine:
|
||||
argv.extend(["--storageEngine", storage_engine])
|
||||
|
||||
# more blech
|
||||
elif os.path.basename(path) in ['mongos', 'mongos.exe']:
|
||||
argv = [path, "--test"]
|
||||
|
@ -77,6 +77,9 @@ namespace mongo {
|
||||
options->addOptionChaining("perfHist", "perfHist", moe::Unsigned,
|
||||
"number of back runs of perf stats to display");
|
||||
|
||||
options->addOptionChaining("storage.engine", "storageEngine", moe::String,
|
||||
"what storage engine to use")
|
||||
.setDefault(moe::Value(std::string("mmapv1")));
|
||||
|
||||
options->addOptionChaining("suites", "suites", moe::StringVector, "test suites to run")
|
||||
.hidden()
|
||||
@ -206,6 +209,8 @@ namespace mongo {
|
||||
}
|
||||
}
|
||||
|
||||
storageGlobalParams.engine = params["storage.engine"].as<string>();
|
||||
|
||||
if (params.count("suites")) {
|
||||
frameworkGlobalParams.suites = params["suites"].as< vector<string> >();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user