summaryrefslogtreecommitdiff
path: root/jstests/multiVersion/0_test_launching.js
blob: f7de8c2cfed145c4ee62ba870d9805bc258398c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Tests whether or not multi-version mongos/mongod instances can be launched
//

load('./jstests/multiVersion/libs/verify_versions.js');

// Check our oldest and newest versions
var versionsToCheck = [ "oldest-supported",
                        "latest"];

for( var i = 0; i < versionsToCheck.length; i++ ){

    var version = versionsToCheck[ i ]
    
    var mongod = MongoRunner.runMongod({ binVersion : version })
    var mongos = MongoRunner.runMongos({ binVersion : version, configdb : mongod })

    // Make sure the started versions are actually the correct versions
    assert.binVersion( mongod, version );
    assert.binVersion( mongos, version );

    MongoRunner.stopMongos( mongos )
    MongoRunner.stopMongod( mongod )
}
    
jsTest.log( "Done!" )

//
// End
//