Skip to content
Snippets Groups Projects
Commit d2448e42 authored by Federico Stagni's avatar Federico Stagni
Browse files

split regression tests

parent 44fc2e8d
No related branches found
No related tags found
No related merge requests found
......@@ -31,19 +31,6 @@ class RegressionTestCase( IntegrationTest ):
# def tearDown( self ):
# pass
class MCSuccess( RegressionTestCase ):
def test_Regression_Production( self ):
location40651 = find_all( '40651.xml', '..', 'Regression' )[0]
j_mc_40651 = LHCbJob( location40651 )
j_mc_40651.setConfigArgs( 'pilot.cfg' )
res = j_mc_40651.runLocal( self.diracLHCb, self.bkkClient )
self.assertTrue( res['OK'] )
# for found, expected in getOutput( 'MC' ):
# self.assertEqual( found, expected )
class MCReconstructionSuccess( RegressionTestCase ):
def test_Regression_Production( self ):
location40652 = find_all( '40652.xml', '..', 'Regression' )[0]
......@@ -53,8 +40,6 @@ class MCReconstructionSuccess( RegressionTestCase ):
res = j_mc_40652.runLocal( self.diracLHCb, self.bkkClient )
self.assertTrue( res['OK'] )
# for found, expected in getOutput( 'MC' ):
# self.assertEqual( found, expected )
class RecoSuccess( RegressionTestCase ):
def test_Regression_Production( self ):
......@@ -66,8 +51,6 @@ class RecoSuccess( RegressionTestCase ):
res = j_reco_46146.runLocal( self.diracLHCb, self.bkkClient )
self.assertTrue( res['OK'] )
# for found, expected in getOutput( 'Reco' ):
# self.assertEqual( found, expected )
class StrippSuccess( RegressionTestCase ):
def test_Regression_Production( self ):
......@@ -79,8 +62,6 @@ class StrippSuccess( RegressionTestCase ):
res = j_stripp_46403.runLocal( self.diracLHCb, self.bkkClient )
self.assertTrue( res['OK'] )
# for found, expected in getOutput( 'Stripp' ):
# self.assertEqual( found, expected )
class MCMergeSuccess( RegressionTestCase ):
def test_Regression_Production( self ):
......@@ -91,8 +72,6 @@ class MCMergeSuccess( RegressionTestCase ):
res = j_MCmerge_51753.runLocal( self.diracLHCb, self.bkkClient )
self.assertTrue( res['OK'] )
# for found, expected in getOutput( 'Merge' ):
# self.assertEqual( found, expected )
# FIXME: to update
class MergeMultStreamsSuccess( RegressionTestCase ):
......@@ -104,8 +83,6 @@ class MergeMultStreamsSuccess( RegressionTestCase ):
res = j_merge_21211.runLocal( self.diracLHCb, self.bkkClient )
self.assertTrue( res['OK'] )
# for found, expected in getOutput( 'MergeM' ):
# self.assertEqual( found, expected )
class MergeMDFSuccess( RegressionTestCase ):
def test_Regression_Production( self ):
......@@ -133,7 +110,6 @@ class SwimmingSuccess( RegressionTestCase ):
if __name__ == '__main__':
suite = unittest.defaultTestLoader.loadTestsFromTestCase( RegressionTestCase )
suite.addTest( unittest.defaultTestLoader.loadTestsFromTestCase( MCSuccess ) )
suite.addTest( unittest.defaultTestLoader.loadTestsFromTestCase( MCReconstructionSuccess ) )
suite.addTest( unittest.defaultTestLoader.loadTestsFromTestCase( RecoSuccess ) )
suite.addTest( unittest.defaultTestLoader.loadTestsFromTestCase( StrippSuccess ) )
......
#!/usr/bin/env python
""" Regression production jobs are "real" XMLs of production jobs that ran in production
"""
#pylint: disable=missing-docstring,invalid-name,wrong-import-position
import unittest
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
from DIRAC.tests.Utilities.utils import find_all
from tests.Utilities.IntegrationTest import IntegrationTest
from LHCbDIRAC.Interfaces.API.LHCbJob import LHCbJob
from LHCbDIRAC.Interfaces.API.DiracLHCb import DiracLHCb
from LHCbDIRAC.BookkeepingSystem.Client.BookkeepingClient import BookkeepingClient
class RegressionTestCase( IntegrationTest ):
""" Base class for the Regression test cases
"""
def setUp( self ):
super( RegressionTestCase, self ).setUp()
self.diracLHCb = DiracLHCb()
self.bkkClient = BookkeepingClient()
# def tearDown( self ):
# pass
class MCSuccess( RegressionTestCase ):
def test_Regression_Production( self ):
location40651 = find_all( '40651.xml', '..', 'Regression' )[0]
j_mc_40651 = LHCbJob( location40651 )
j_mc_40651.setConfigArgs( 'pilot.cfg' )
res = j_mc_40651.runLocal( self.diracLHCb, self.bkkClient )
self.assertTrue( res['OK'] )
#############################################################################
# Test Suite run
#############################################################################
if __name__ == '__main__':
suite = unittest.defaultTestLoader.loadTestsFromTestCase( RegressionTestCase )
suite.addTest( unittest.defaultTestLoader.loadTestsFromTestCase( MCSuccess ) )
testResult = unittest.TextTestRunner( verbosity = 2 ).run( suite )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment