diff options
author | dwight <dwight@10gen.com> | 2010-12-26 13:23:25 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2010-12-26 13:23:25 -0500 |
commit | 7131d955e87980c26d39c84f7ceb6e7505931a89 (patch) | |
tree | 3329aa4ca0ed540087896a1917718cd443085790 /dbtests | |
parent | 8c3f13ddd3857e24427615cf2e9b6151e2a11932 (diff) | |
download | mongo-7131d955e87980c26d39c84f7ceb6e7505931a89.tar.gz |
largefiles option for dbtests
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/framework.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dbtests/framework.cpp b/dbtests/framework.cpp index b2c431adbf8..153c931dd62 100644 --- a/dbtests/framework.cpp +++ b/dbtests/framework.cpp @@ -162,6 +162,7 @@ namespace mongo { "directory will be overwritten if it already exists") ("debug", "run tests with verbose output") ("list,l", "list available test suites") + ("bigfiles", "use big datafiles instead of smallfiles which is the default") ("filter,f" , po::value<string>() , "string substring filter on test name" ) ("verbose,v", "verbose") ("dur", "enable journaling") @@ -239,7 +240,13 @@ namespace mongo { dbpath = dbpathString.c_str(); cmdLine.prealloc = false; + + // dbtest defaults to smallfiles cmdLine.smallfiles = true; + if( params.count("bigfiles") ) { + cmdLine.dur = true; + } + cmdLine.oplogSize = 10 * 1024 * 1024; Client::initThread("testsuite"); acquirePathLock(); |