mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
17 lines
552 B
JavaScript
17 lines
552 B
JavaScript
// perform basic js tests in parallel
|
|
load('jstests/libs/parallelTester.js')
|
|
|
|
Random.setRandomSeed();
|
|
|
|
var params = ParallelTester.createJstestsLists( 4 );
|
|
var t = new ParallelTester();
|
|
for( i in params ) {
|
|
t.add( ParallelTester.fileTester, params[ i ] );
|
|
}
|
|
|
|
t.run( "one or more tests failed", true );
|
|
|
|
db.getCollectionNames().forEach( function( x ) {
|
|
v = db[ x ].validate();
|
|
assert( v.valid, "validate failed for " + x + " with " + tojson( v ) );
|
|
} ); |