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 testname = "dur1";
var step = 1;
var conn = null;
function log(str) {
var conn = null;
function log(str) {
print();
if(str)
print(testname+" step " + step++ + " " + str);
else

View File

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

View File

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