blob: c7d4414204213a32938c3fe5d2b3e182a6891319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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 ) );
} );
|