blob: 0cd424c52adf38f0e47b9c40c8b2ccdc932498b9 [file] [log] [blame]
Devin Limd1fb8e92018-02-28 16:29:33 -08001#!groovy
Devin Limf5bf9b52018-02-28 18:16:21 -08002funcs = evaluate readTrusted( 'TestON/JenkinsFile/JenkinsCommonFuncs.groovy' )
Jeremy Ronquillo14ecc172018-03-05 09:57:17 -08003test_lists = evaluate readTrusted( 'TestON/JenkinsFile/JenkinsTestONTests.groovy' )
4
Devin Limd1fb8e92018-02-28 16:29:33 -08005funcs.initialize( "SR" );
6// This is a Jenkinsfile for a scripted pipeline for the SR tests
7def prop = null
8prop = funcs.getProperties()
Jeremy Ronquillo14ecc172018-03-05 09:57:17 -08009SR = test_lists.getAllTheTests( prop[ "WikiPrefix" ] )[ "SR" ]
10
Devin Limd1fb8e92018-02-28 16:29:33 -080011graph_generator_file = "~/OnosSystemTest/TestON/JenkinsFile/scripts/testCaseGraphGenerator.R"
12graph_saved_directory = "/var/jenkins/workspace/postjob-VM/"
Jeremy Ronquillo14ecc172018-03-05 09:57:17 -080013
Devin Limd1fb8e92018-02-28 16:29:33 -080014echo( "Testcases:" )
15def testsToRun = null
16testsToRun = funcs.getTestsToRun( prop[ "Tests" ] )
17funcs.printTestToRun( testsToRun )
18
19def tests = [:]
20for( String test : SR.keySet() ){
21 toBeRun = testsToRun.contains( test )
22 def stepName = ( toBeRun ? "" : "Not " ) + "Running $test"
23 tests[stepName] = funcs.runTest( test, toBeRun, prop, test, false, SR, graph_generator_file, graph_saved_directory )
24}
25
26start = funcs.getCurrentTime()
27// run the tests
28for ( test in tests.keySet() ){
29 tests[ test ].call()
30}
31//funcs.generateOverallGraph( prop, SR, graph_saved_directory )
32funcs.sendResultToSlack( start, prop[ "manualRun" ], prop[ "WikiPrefix" ] )