diff options
author | Dan Pasette <dan@10gen.com> | 2013-01-17 18:01:07 -0500 |
---|---|---|
committer | Dan Pasette <dan@10gen.com> | 2013-01-17 18:21:36 -0500 |
commit | 664bdf3f3fd2c2388cea389c51632baa04a0ef9e (patch) | |
tree | 4e0bf3c960d1a759d31cc4ed417887854316d5f7 /jstests/dur | |
parent | 6ac6cc7204c7b3c44aa35ba399823f15b8d80cbd (diff) | |
download | mongo-664bdf3f3fd2c2388cea389c51632baa04a0ef9e.tar.gz |
Moved slowWeekly/dur_passthrough.js to dur/dur_passthrough.js
Diffstat (limited to 'jstests/dur')
-rw-r--r-- | jstests/dur/dur_passthrough.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/jstests/dur/dur_passthrough.js b/jstests/dur/dur_passthrough.js new file mode 100644 index 00000000000..1840fb72bbf --- /dev/null +++ b/jstests/dur/dur_passthrough.js @@ -0,0 +1,44 @@ +// +// simple runner to run toplevel tests in jstests +// + +//TODO(mathias) add --master or make another test +//conn = startMongodEmpty("--port", 30200, "--dbpath", "/data/db/dur_passthrough", "--dur", "--smallfiles", "--durOptions", "24"); +conn = startMongodEmpty("--port", 30200, "--dbpath", "/data/db/dur_passthrough", "--dur", "--smallfiles", "--durOptions", "8"); +db = conn.getDB("test"); + +var files = listFiles("jstests"); +files = files.sort(compareOn('name')); + +var runnerStart = new Date() + +files.forEach( + function (x) { + + if (/[\/\\]_/.test(x.name) || + !/\.js$/.test(x.name) || + /repair/.test(x.name) || // fails on recovery + /shellkillop/.test(x.name) || // takes forever and don't test anything new + false // placeholder so all real tests end in || + ) + { + print(" >>>>>>>>>>>>>>> skipping " + x.name); + return; + } + + print(); + print(" *******************************************"); + print(" Test : " + x.name + " ..."); + print(" " + Date.timeFunc(function () { load(x.name); }, 1) + "ms"); + + } +); + +stopMongod(30200); + +var runnerEnd = new Date() + +print( "total runner time: " + ( ( runnerEnd.getTime() - runnerStart.getTime() ) / 1000 ) + "secs" ) + +//TODO(mathias): test recovery here + |