summaryrefslogtreecommitdiff
path: root/jstests/gle
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/gle')
-rw-r--r--jstests/gle/0_gle_basics_passthrough.js32
-rw-r--r--jstests/gle/1_sharding_gle_basics_passthrough.js49
2 files changed, 0 insertions, 81 deletions
diff --git a/jstests/gle/0_gle_basics_passthrough.js b/jstests/gle/0_gle_basics_passthrough.js
deleted file mode 100644
index ceb9b467612..00000000000
--- a/jstests/gle/0_gle_basics_passthrough.js
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// Tests the core GLE behavior
-//
-
-(function() {
- "use strict"
-
- 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);
- }()); \ No newline at end of file
diff --git a/jstests/gle/1_sharding_gle_basics_passthrough.js b/jstests/gle/1_sharding_gle_basics_passthrough.js
deleted file mode 100644
index 6b9f51c59cc..00000000000
--- a/jstests/gle/1_sharding_gle_basics_passthrough.js
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// Tests basic mongos GLE behavior
-//
-
-(function() {
- "use strict"
-
- var passST = new ShardingTest({ name : "passST", shards : 2, mongos : 1 });
- var passMongos = passST.s0;
- assert.commandWorked(passMongos.getDB("admin").runCommand({ enableSharding : "testSharded" }));
- passST.ensurePrimaryShard('testSharded', 'shard0001');
- // Remember the global 'db' var
- var lastDB = db;
-
- var coreTests = listFiles("jstests/gle/core");
-
- var testsToSkip = new RegExp('[\\/\\\\](' +
- 'error1|' + // getPrevError not supported in sharding
- 'remove5|' +
- 'unique2|' +
- 'update4' +
- ')\.js$');
-
- coreTests.forEach(
- function(file) {
-
- // Reset global 'db' var
- db = passMongos.getDB("testBasicMongosGLE");
-
- if (testsToSkip.test(file.name)) {
- print(" !!!!!!!!!!!!!!! skipping test " + file.name);
- return;
- }
-
- 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;
- passST.stop();
-
-}());