diff options
author | Aaron <aaron@10gen.com> | 2009-02-05 22:43:52 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-02-05 22:43:52 -0500 |
commit | be3cb87ba37db68fef6e1940aa5261d706ebcbe9 (patch) | |
tree | 7d7d5f1584830bf2e14ebca3856a7b26342b3c56 /jstests | |
parent | 2e6ce5ef12d61b65406fb5260720f74e1406acf3 (diff) | |
download | mongo-be3cb87ba37db68fef6e1940aa5261d706ebcbe9.tar.gz |
Add another runner. This one starts and stops the db on its own.
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/_lodeRunner.js | 4 | ||||
-rw-r--r-- | jstests/_runner.js | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/jstests/_lodeRunner.js b/jstests/_lodeRunner.js new file mode 100644 index 00000000000..6e23dbb974a --- /dev/null +++ b/jstests/_lodeRunner.js @@ -0,0 +1,4 @@ +// Start mongod and run jstests/_runner.js + +db = startMongod( "--port", "27018", "--dbpath", "/data/db/jstests" ).getDB( "test" ); +load( "jstests/_runner.js" ); diff --git a/jstests/_runner.js b/jstests/_runner.js index 9ca086d6d8e..f0ce49d21e2 100644 --- a/jstests/_runner.js +++ b/jstests/_runner.js @@ -6,7 +6,8 @@ var files = listFiles("jstests"); files.forEach( function(x) { - if ( /_runner/.test(x.name) || + if ( /_runner/.test(x.name) || + /_lodeRunner/.test(x.name) || ! /\.js$/.test(x.name ) ){ print(" >>>>>>>>>>>>>>> skipping " + x.name); return; |