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

slightly more readable test output

This commit is contained in:
dwight 2010-12-24 13:07:26 -05:00
parent 9594f14ef4
commit ee36889eef
3 changed files with 25 additions and 23 deletions

View File

@ -5,9 +5,10 @@
var debugging = false; var debugging = false;
var testname = "dur1"; var testname = "dur1";
var step = 1; var step = 1;
var conn = null; var conn = null;
function log(str) { function log(str) {
print();
if(str) if(str)
print(testname+" step " + step++ + " " + str); print(testname+" step " + step++ + " " + str);
else else

View File

@ -9,23 +9,23 @@ db = conn.getDB("test");
var files = listFiles("jstests"); var files = listFiles("jstests");
var runnerStart = new Date() var runnerStart = new Date()
files.forEach( files.forEach(
function(x) { function (x) {
if ( /[\/\\]_/.test(x.name) || if (/[\/\\]_/.test(x.name) ||
! /\.js$/.test(x.name ) ){ !/\.js$/.test(x.name)) {
print(" >>>>>>>>>>>>>>> skipping " + x.name); print(" >>>>>>>>>>>>>>> skipping " + x.name);
return; return;
} }
print();
print(" *******************************************"); print(" *******************************************");
print(" Test : " + x.name + " ..."); print(" Test : " + x.name + " ...");
print(" " + Date.timeFunc( function() { load(x.name); }, 1) + "ms"); print(" " + Date.timeFunc(function () { load(x.name); }, 1) + "ms");
} }
); );
stopMongod(30000); stopMongod(30000);

View File

@ -5,9 +5,10 @@
var debugging = false; var debugging = false;
var testname = "oplog"; var testname = "oplog";
var step = 1; var step = 1;
var conn = null; var conn = null;
function log(str) { function log(str) {
print();
if(str) if(str)
print(testname+" step " + step++ + " " + str); print(testname+" step " + step++ + " " + str);
else else