mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
28 lines
606 B
JavaScript
28 lines
606 B
JavaScript
//
|
|
// Tests the core GLE behavior
|
|
//
|
|
|
|
var conn = MongoRunner.runMongod({});
|
|
|
|
// Remember the global 'db' var
|
|
var lastDB = db;
|
|
|
|
var coreTests = listFiles("jstests/gle/core");
|
|
|
|
coreTests.forEach( function(file) {
|
|
|
|
// Reset global 'db' var
|
|
db = conn.getDB("testBasicGLE");
|
|
|
|
print(" *******************************************");
|
|
print(" Test : " + file.name + " ...");
|
|
|
|
var testTime = Date.timeFunc( function() { load(file.name); }, 1);
|
|
print(" " + testTime + "ms");
|
|
});
|
|
|
|
print("Tests completed.");
|
|
|
|
// Restore 'db' var
|
|
db = lastDB;
|
|
MongoRunner.stopMongod(conn); |