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