blob: 679ccd4a7c09930f57fe789af5d3cc7d1a095b11 [file] [log] [blame]
Devin Lim61643762017-12-07 15:55:38 -08001#!groovy
Devin Lim81ab48b2018-02-09 14:24:57 -08002SCPFfuncs = evaluate readTrusted( 'TestON/JenkinsFile/PerformanceFuncs.groovy' )
Devin Lim61643762017-12-07 15:55:38 -08003SCPFfuncs.init()
Devin Lim4575bad2018-02-09 15:57:24 -08004funcs = evaluate readTrusted( 'TestON/JenkinsFile/JenkinsCommonFuncs.groovy' )
Devin Lim61643762017-12-07 15:55:38 -08005funcs.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}