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:
parent
9594f14ef4
commit
ee36889eef
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user