Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame^] | 1 | #!groovy |
| 2 | SCPFfuncs = evaluate readTrusted( 'PerformanceFuncs.groovy' ) |
| 3 | SCPFfuncs.init() |
| 4 | funcs = evaluate readTrusted( 'JenkinsCommonFuncs.groovy' ) |
| 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 | } |