summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-12-26 13:23:25 -0500
committerdwight <dwight@10gen.com>2010-12-26 13:23:25 -0500
commit7131d955e87980c26d39c84f7ceb6e7505931a89 (patch)
tree3329aa4ca0ed540087896a1917718cd443085790 /dbtests
parent8c3f13ddd3857e24427615cf2e9b6151e2a11932 (diff)
downloadmongo-7131d955e87980c26d39c84f7ceb6e7505931a89.tar.gz
largefiles option for dbtests
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/framework.cpp7
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();