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 | SCPFfuncs = evaluate readTrusted( 'TestON/JenkinsFile/PerformanceFuncs.groovy' ) |
Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 3 | SCPFfuncs.init() |
Devin Lim | 4575bad | 2018-02-09 15:57:24 -0800 | [diff] [blame] | 4 | funcs = evaluate readTrusted( 'TestON/JenkinsFile/JenkinsCommonFuncs.groovy' ) |
Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 5 | funcs.initialize( "SCPF", SCPFfuncs ); |
| 6 | |
| 7 | def prop = null |
| 8 | prop = funcs.getProperties() |
| 9 | |
| 10 | def Tests = params.Test |
| 11 | isOldFlow = params.isOldFlow |
| 12 | prop[ "ONOSBranch" ] = params.ONOSbranch |
| 13 | |
| 14 | SCPFfuncs.oldFlowRuleCheck( isOldFlow, prop[ "ONOSBranch" ] ) |
| 15 | |
| 16 | def testsToRun = null |
| 17 | testsToRun = funcs.getTestsToRun( Tests ) |
| 18 | |
| 19 | def tests = [:] |
| 20 | for( String test : testsToRun ){ |
| 21 | println test |
| 22 | pureTestName = test.replaceAll( "WithFlowObj", "" ) |
| 23 | tests[ test ] = funcs.runTest( test, true, prop, pureTestName, true, [], "", "" ) |
| 24 | } |
| 25 | |
| 26 | for ( test in tests.keySet() ){ |
| 27 | tests[ test ].call() |
| 28 | } |