blob: 5f3ccfd6a75b593374d913668ce343cb4bf43ac6 [file] [log] [blame]
Devin Lim61643762017-12-07 15:55:38 -08001#!groovy
Devin Lim81ab48b2018-02-09 14:24:57 -08002funcs = evaluate readTrusted( 'TestON/JenkinsFile/JenkinsCommonFuncs.groovy' )
Devin Lim61643762017-12-07 15:55:38 -08003nodeCluster = params.NodeCluster
4
Devin Lim61643762017-12-07 15:55:38 -08005funcs.initializeTrend( nodeCluster );
Devin Lim981f80b2018-04-09 11:25:59 -07006if( nodeCluster == "Fabric" )
7 funcs.additionalInitForSR( params.ONOSbranch )
Devin Lim61643762017-12-07 15:55:38 -08008def prop = null
9prop = funcs.getProperties()
10
11def Tests = params.Test
12prop[ "ONOSBranch" ] = params.ONOSbranch
13
Devin Lim86e40532018-04-06 12:44:06 -070014
15graph_generator_file = "~/OnosSystemTest/TestON/JenkinsFile/scripts/testCaseGraphGenerator.R"
Devin Lim981f80b2018-04-09 11:25:59 -070016graph_saved_directory = "/var/jenkins/workspace/postjob-" + nodeCluster + ( nodeCluster == "Fabric" ? funcs.fabricOn( prop[ "ONOSBranch" ] ) : "" ) + "/"
Devin Lim86e40532018-04-06 12:44:06 -070017
Devin Lim61643762017-12-07 15:55:38 -080018def testsToRun = null
19testsToRun = funcs.getTestsToRun( Tests )
20
21def tests = [:]
22for( String test : testsToRun ){
23 println test
24 tests[ test ] = funcs.runTest( test, true, prop, test, true, [], graph_generator_file, graph_saved_directory )
25}
26
27for ( test in tests.keySet() ){
28 tests[ test ].call()
Devin Lim981f80b2018-04-09 11:25:59 -070029}