blob: 435283cf12558baeb985cce0be30ef198db14685 [file] [log] [blame]
Devin Lim61643762017-12-07 15:55:38 -08001#!groovy
2SCPFfuncs = evaluate readTrusted( 'PerformanceFuncs.groovy' )
3SCPFfuncs.init()
4funcs = evaluate readTrusted( 'JenkinsCommonFuncs.groovy' )
5funcs.initialize( "SCPF", SCPFfuncs );
6
7def prop = null
8prop = funcs.getProperties()
9
10def Tests = params.Test
11isOldFlow = params.isOldFlow
12prop[ "ONOSBranch" ] = params.ONOSbranch
13
14SCPFfuncs.oldFlowRuleCheck( isOldFlow, prop[ "ONOSBranch" ] )
15
16def testsToRun = null
17testsToRun = funcs.getTestsToRun( Tests )
18
19def tests = [:]
20for( String test : testsToRun ){
21 println test
22 pureTestName = test.replaceAll( "WithFlowObj", "" )
23 tests[ test ] = funcs.runTest( test, true, prop, pureTestName, true, [], "", "" )
24}
25
26for ( test in tests.keySet() ){
27 tests[ test ].call()
28}