blob: 4169cff143040693174b3806a9135b5e71e0af3d [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 Lim5b22fbb2018-04-06 15:30:45 -07006funcs.additionalInitForSR( params.ONOSbranch )
Devin Lim61643762017-12-07 15:55:38 -08007def prop = null
8prop = funcs.getProperties()
9
10def Tests = params.Test
11prop[ "ONOSBranch" ] = params.ONOSbranch
12
Devin Lim86e40532018-04-06 12:44:06 -070013
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}