diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2014-03-25 11:09:37 -0400 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2014-03-25 13:46:52 -0400 |
commit | 835a7cc8ea3c564d34876d20b90b37750d7e30c5 (patch) | |
tree | 69a51e618b6ce1955becff374d0d5a06e611c85d /jstests/parallel | |
parent | ce5a47a3b506cbd0154c60144deb5cd0e6a3aea9 (diff) | |
download | mongo-835a7cc8ea3c564d34876d20b90b37750d7e30c5.tar.gz |
SERVER-13297: convert parallel suite to use jsCore tests
Diffstat (limited to 'jstests/parallel')
-rw-r--r-- | jstests/parallel/allops.js | 1 | ||||
-rw-r--r-- | jstests/parallel/basic.js | 1 | ||||
-rw-r--r-- | jstests/parallel/basicPlus.js | 1 | ||||
-rw-r--r-- | jstests/parallel/checkMultiThread.js | 1 | ||||
-rw-r--r-- | jstests/parallel/del.js | 1 | ||||
-rw-r--r-- | jstests/parallel/insert.js | 1 | ||||
-rw-r--r-- | jstests/parallel/manyclients.js | 1 | ||||
-rw-r--r-- | jstests/parallel/repl.js | 1 | ||||
-rw-r--r-- | jstests/parallel/shellfork.js | 3 |
9 files changed, 11 insertions, 0 deletions
diff --git a/jstests/parallel/allops.js b/jstests/parallel/allops.js index 7eb0cb2e386..7f94fb5fa23 100644 --- a/jstests/parallel/allops.js +++ b/jstests/parallel/allops.js @@ -1,4 +1,5 @@ // test all operations in parallel +load('jstests/libs/parallelTester.js') f = db.jstests_parallel_allops; f.drop(); diff --git a/jstests/parallel/basic.js b/jstests/parallel/basic.js index bcb4d654ea0..c7d44142042 100644 --- a/jstests/parallel/basic.js +++ b/jstests/parallel/basic.js @@ -1,4 +1,5 @@ // perform basic js tests in parallel +load('jstests/libs/parallelTester.js') Random.setRandomSeed(); diff --git a/jstests/parallel/basicPlus.js b/jstests/parallel/basicPlus.js index 4d65d255486..c3d432ef600 100644 --- a/jstests/parallel/basicPlus.js +++ b/jstests/parallel/basicPlus.js @@ -1,4 +1,5 @@ // perform basic js tests in parallel & some other tasks as well +load('jstests/libs/parallelTester.js') var c = db.jstests_parallel_basicPlus; c.drop(); diff --git a/jstests/parallel/checkMultiThread.js b/jstests/parallel/checkMultiThread.js index d43b1ae5066..9210378ed9c 100644 --- a/jstests/parallel/checkMultiThread.js +++ b/jstests/parallel/checkMultiThread.js @@ -1,3 +1,4 @@ +load('jstests/libs/parallelTester.js') var start = new Date(); print("start: " + start); diff --git a/jstests/parallel/del.js b/jstests/parallel/del.js index fd4a3f13fe1..c2994924097 100644 --- a/jstests/parallel/del.js +++ b/jstests/parallel/del.js @@ -1,3 +1,4 @@ +load('jstests/libs/parallelTester.js') N = 1000; HOST = db.getMongo().host diff --git a/jstests/parallel/insert.js b/jstests/parallel/insert.js index fc1c750795a..86fa0258d39 100644 --- a/jstests/parallel/insert.js +++ b/jstests/parallel/insert.js @@ -1,4 +1,5 @@ // perform inserts in parallel from several clients +load('jstests/libs/parallelTester.js') f = db.jstests_parallel_insert; f.drop(); diff --git a/jstests/parallel/manyclients.js b/jstests/parallel/manyclients.js index daf13b5eefe..ce5172301a4 100644 --- a/jstests/parallel/manyclients.js +++ b/jstests/parallel/manyclients.js @@ -1,4 +1,5 @@ // perform inserts in parallel from a large number of clients +load('jstests/libs/parallelTester.js') f = db.jstests_parallel_manyclients; f.drop(); diff --git a/jstests/parallel/repl.js b/jstests/parallel/repl.js index 8cc8dcdbb9f..240002656e8 100644 --- a/jstests/parallel/repl.js +++ b/jstests/parallel/repl.js @@ -1,4 +1,5 @@ // test basic operations in parallel, with replication +load('jstests/libs/parallelTester.js') baseName = "parallel_repl" diff --git a/jstests/parallel/shellfork.js b/jstests/parallel/shellfork.js index 20a1d3df786..d89e6c5d547 100644 --- a/jstests/parallel/shellfork.js +++ b/jstests/parallel/shellfork.js @@ -1,3 +1,5 @@ +load('jstests/libs/parallelTester.js') + a = fork( function( a, b ) { return a / b; }, 10, 2 ); a.start(); b = fork( function( a, b, c ) { return a + b + c; }, 18, " is a ", "multiple of 3" ); @@ -13,6 +15,7 @@ assert.eq( "18 is a multiple of 3", b.returnData() ); assert.eq( "paisley ha ha!", c.returnData() ); z = fork( function( a ) { + load('jstests/libs/parallelTester.js'); var y = fork( function( a ) { return a + 1; }, 5 ); y.start(); |