Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 1 | #!groovy |
Devin Lim | 81ab48b | 2018-02-09 14:24:57 -0800 | [diff] [blame] | 2 | funcs = evaluate readTrusted( 'TestON/JenkinsFile/JenkinsCommonFuncs.groovy' ) |
Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 3 | nodeCluster = params.NodeCluster |
| 4 | |
Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 5 | funcs.initializeTrend( nodeCluster ); |
Devin Lim | 981f80b | 2018-04-09 11:25:59 -0700 | [diff] [blame] | 6 | if( nodeCluster == "Fabric" ) |
| 7 | funcs.additionalInitForSR( params.ONOSbranch ) |
Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 8 | def prop = null |
| 9 | prop = funcs.getProperties() |
| 10 | |
| 11 | def Tests = params.Test |
| 12 | prop[ "ONOSBranch" ] = params.ONOSbranch |
| 13 | |
Devin Lim | 86e4053 | 2018-04-06 12:44:06 -0700 | [diff] [blame] | 14 | |
| 15 | graph_generator_file = "~/OnosSystemTest/TestON/JenkinsFile/scripts/testCaseGraphGenerator.R" |
Devin Lim | 981f80b | 2018-04-09 11:25:59 -0700 | [diff] [blame] | 16 | graph_saved_directory = "/var/jenkins/workspace/postjob-" + nodeCluster + ( nodeCluster == "Fabric" ? funcs.fabricOn( prop[ "ONOSBranch" ] ) : "" ) + "/" |
Devin Lim | 86e4053 | 2018-04-06 12:44:06 -0700 | [diff] [blame] | 17 | |
Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 18 | def testsToRun = null |
| 19 | testsToRun = funcs.getTestsToRun( Tests ) |
| 20 | |
| 21 | def tests = [:] |
| 22 | for( String test : testsToRun ){ |
| 23 | println test |
| 24 | tests[ test ] = funcs.runTest( test, true, prop, test, true, [], graph_generator_file, graph_saved_directory ) |
| 25 | } |
| 26 | |
| 27 | for ( test in tests.keySet() ){ |
| 28 | tests[ test ].call() |
Devin Lim | 981f80b | 2018-04-09 11:25:59 -0700 | [diff] [blame] | 29 | } |