0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/_runner.js

29 lines
706 B
JavaScript
Raw Normal View History

//
// simple runner to run toplevel tests in jstests
//
var files = listFiles("jstests");
2010-06-21 19:17:05 +02:00
var runnerStart = new Date()
2009-02-01 00:06:10 +01:00
files.forEach(
function(x) {
2010-06-14 21:19:41 +02:00
if ( /[\/\\]_/.test(x.name) ||
2009-02-01 00:06:10 +01:00
! /\.js$/.test(x.name ) ){
print(" >>>>>>>>>>>>>>> skipping " + x.name);
return;
}
print(" *******************************************");
print(" Test : " + x.name + " ...");
print(" " + Date.timeFunc( function() { load(x.name); }, 1) + "ms");
2009-02-01 00:06:10 +01:00
}
2009-02-01 00:06:10 +01:00
);
2010-06-21 19:17:05 +02:00
var runnerEnd = new Date()
print( "total runner time: " + ( ( runnerEnd.getTime() - runnerStart.getTime() ) / 1000 ) + "secs" )