blob: f091c34500d2263bdfe0ecc557ff1ba977a15878 [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 );
6def prop = null
7prop = funcs.getProperties()
8
9def Tests = params.Test
10prop[ "ONOSBranch" ] = params.ONOSbranch
11
Devin Lim86e40532018-04-06 12:44:06 -070012funcs.additionalInitForSR( prop[ "ONOSBranch" ] )
13
14graph_generator_file = "~/OnosSystemTest/TestON/JenkinsFile/scripts/testCaseGraphGenerator.R"
15graph_saved_directory = "/var/jenkins/workspace/postjob-" + nodeCluster + funcs.fabricOn( prop[ "ONOSBranch" ] ) + "/"
16
Devin Lim61643762017-12-07 15:55:38 -080017def testsToRun = null
18testsToRun = funcs.getTestsToRun( Tests )
19
20def tests = [:]
21for( String test : testsToRun ){
22 println test
23 tests[ test ] = funcs.runTest( test, true, prop, test, true, [], graph_generator_file, graph_saved_directory )
24}
25
26for ( test in tests.keySet() ){
27 tests[ test ].call()
28}