summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
Diffstat (limited to 'jstests')
-rw-r--r--jstests/dur/dur_passthrough.js (renamed from jstests/slowWeekly/dur_passthrough.js)0
-rw-r--r--jstests/sharding/passthrough1.js10
-rw-r--r--jstests/slowNightly/dur_passthrough.js124
3 files changed, 0 insertions, 134 deletions
diff --git a/jstests/slowWeekly/dur_passthrough.js b/jstests/dur/dur_passthrough.js
index 1840fb72bbf..1840fb72bbf 100644
--- a/jstests/slowWeekly/dur_passthrough.js
+++ b/jstests/dur/dur_passthrough.js
diff --git a/jstests/sharding/passthrough1.js b/jstests/sharding/passthrough1.js
deleted file mode 100644
index d5df0d2fcfa..00000000000
--- a/jstests/sharding/passthrough1.js
+++ /dev/null
@@ -1,10 +0,0 @@
-
-s = new ShardingTest( "passthrough1" , 2 )
-
-db = s.getDB( "test" );
-db.foo.insert( { num : 1 , name : "eliot" } );
-db.foo.insert( { num : 2 , name : "sara" } );
-db.foo.insert( { num : -1 , name : "joe" } );
-assert.eq( 3 , db.foo.find().length() );
-
-s.stop();
diff --git a/jstests/slowNightly/dur_passthrough.js b/jstests/slowNightly/dur_passthrough.js
deleted file mode 100644
index 299240f150f..00000000000
--- a/jstests/slowNightly/dur_passthrough.js
+++ /dev/null
@@ -1,124 +0,0 @@
-// runs the toplevel jstests with --dur
-//
-// TODO(mathias) use paranoid mode (--durOptions 8) once we are reasonably sure it will pass
-
-// DEBUG : set this variable to debug by skipping to a specific test to start with and go from there
-//var skippingTo = /null.js/;
-var skippingTo = false;
-
-print("dur_passthrough.js starting mongod");
-conn = startMongodEmpty("--port", 30100, "--dbpath", "/data/db/dur_passthrough", "--dur", "--smallfiles");
-db = conn.getDB("test");
-print("dur_passthrough.js 0");
-
-var lastRan = null;
-
-function durPassThrough() {
-
- var runnerStart = new Date()
-
- var ran = {};
-
- /** run a test. won't run more than once. logs if fails and then throws.
- */
- function runTest(x) {
- function _run(x) {
- if (/[\/\\]_/.test(x.name) ||
- !/\.js$/.test(x.name) ||
- /repair/.test(x.name) ||
- // /numberlong/.test(x.name) ||
- false // placeholder so all real tests end in ||
- )
- {
- print("dur_passthrough.js >>>> skipping test " + x.name);
- return;
- }
- print();
- print("dur_passthrough.js run " + x.name);
- print("dur_passthrough.js end " + x.name + ' ' + Date.timeFunc(function () { load(x.name); }, 1) + "ms");
- print();
- }
- if (ran[x.name])
- return;
- ran[x.name] = true;
- printjson(x);
- try {
- lastRan = x;
- _run(x);
- }
- catch (e) {
- print("\n\n\n\ndur_passthrough.js FAIL");
- print("dur_passthrough.js failed test : " + x.name + "\n\n\n");
- throw e;
- }
- print("after run");
- }
-
- print("dur_passthrough.js 1");
- var files = listFiles("jstests");
- print("dur_passthrough.js 2");
-
- if( !skippingTo ) {
- // run something that will almost surely pass and is fast just to make sure our framework
- // here is really working
-
- runTest({ name: 'jstests/basic1.js' });
-
- runTest({ name: 'jstests/update.js' });
-
- // run "suspicious" tests early. these are tests that have ever failed in buildbot. we run them
- // early and try to get a fail fast
- runTest({ name: 'jstests/shellstartparallel.js' });
- runTest({ name: 'jstests/cursora.js' });
-
- // run the shell-oriented tests early. if the shell is broken the other tests aren't meaningful
- runTest({ name: 'jstests/run_program1.js' });
- runTest({ name: 'jstests/shellspawn.js' });
- runTest({ name: 'jstests/shellkillop.js' });
- }
-
- print("dur_passthrough.js 3");
-
- files = files.sort(compareOn('name'));
-
- print("dur_passthrough.js 4");
-
- files.forEach(
- function (x) {
- if (skippingTo && !skippingTo.test(x.name)) {
- print("dur_passthrough.js temp skip " + x.name);
- return;
- }
- skippingTo = false;
-
- // to keep memory usage low on 32 bit:
- try {
- db.adminCommand("closeAllDatabases");
- }
- catch(e) {
- print("dur_passthrough.js ERROR exception calling closeAllDatabases between tests : " + e);
- throw(e);
- }
- runTest(x);
- }
- );
-
- print("dur_passthrough.js ending, calling stopMongod");
- stopMongod(30100);
- var runnerEnd = new Date();
- print("dur_passthrough.js total runner time: " + ((runnerEnd.getTime() - runnerStart.getTime()) / 1000) + "secs")
-}
-
-try {
- durPassThrough();
-}
-catch(e) {
- print("\n\n\ndur_passthrough.js error, exception in dur_passthrough.js : " + e);
- print("dur_passthrough.js FAIL");
- print("dur_passthrough.js lastRan :");
- printjson(lastRan);
- print("\n\n\n");
- throw e;
-}
-
-print("\n\n\ndur_passthrough.js SUCCESS\n\n\n");