Skip to content
Snippets Groups Projects
Commit d9dbc56b authored by Zoltan Mathe's avatar Zoltan Mathe
Browse files

Merge branch 'testFixesv8r8_1' into 'devel'

Test stuff (for certification)

See merge request !349
parents 1782bcb1 d501b11f
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,6 @@ class XMLSummaryAnalysisTestCase( unittest.TestCase ):
class XMLSummaryAnalysisDataReconstruction( XMLSummaryAnalysisTestCase ):
def setUp( self ):
super( XMLSummaryAnalysisDataReconstruction, self ).setUp()
def test_brunel_ok( self ):
self.generalTest( 'DataReconstruction', 'ok' )
def test_daVinci_ok( self ):
......@@ -53,9 +50,6 @@ class XMLSummaryAnalysisDataReconstruction( XMLSummaryAnalysisTestCase ):
class XMLSummaryAnalysisDataReprocessing( XMLSummaryAnalysisTestCase ):
def setUp( self ):
super( XMLSummaryAnalysisDataReprocessing, self ).setUp()
def test_brunel_ok( self ):
self.generalTest( 'DataReprocessing', 'ok' )
def test_daVinci_ok( self ):
......@@ -68,9 +62,6 @@ class XMLSummaryAnalysisDataReprocessing( XMLSummaryAnalysisTestCase ):
class XMLSummaryAnalysisDataStripping( XMLSummaryAnalysisTestCase ):
def setUp( self ):
super( XMLSummaryAnalysisDataStripping, self ).setUp()
def test_daVinci_ok( self ):
self.generalTest( 'DataStripping', 'ok' )
......@@ -79,9 +70,6 @@ class XMLSummaryAnalysisDataStripping( XMLSummaryAnalysisTestCase ):
class XMLSummaryAnalysisSelection( XMLSummaryAnalysisTestCase ):
def setUp( self ):
super( XMLSummaryAnalysisSelection, self ).setUp()
def test_daVinci_ok( self ):
self.generalTest( 'Selection', 'ok' )
......@@ -90,9 +78,6 @@ class XMLSummaryAnalysisSelection( XMLSummaryAnalysisTestCase ):
class XMLSummaryAnalysisMCSimulation( XMLSummaryAnalysisTestCase ):
def setUp( self ):
super( XMLSummaryAnalysisMCSimulation, self ).setUp()
def test_brunel_ok( self ):
self.generalTest( 'MCSimulation', 'ok' )
def test_boole_ok( self ):
......@@ -109,9 +94,6 @@ class XMLSummaryAnalysisMCSimulation( XMLSummaryAnalysisTestCase ):
class XMLSummaryAnalysisMerge( XMLSummaryAnalysisTestCase ):
def setUp( self ):
super( XMLSummaryAnalysisMerge, self ).setUp()
# def test_brunel_ok( self ):
# self.generalTest( 'Merge', 'ok' )
# def test_boole_ok( self ):
......
......@@ -5,20 +5,24 @@
import pyparsing
import PyQt4
#import PyQt5
import GSI
import XRootD
import gfal2
import stomp
import requests
import futures
#import futures
import certifi
import pexpect
import fts3
import arc
from distutils.spawn import find_executable
res = find_executable('voms-proxy-init')
if not res:
raise RuntimeError()
res = find_executable('ldapsearch')
if not res:
raise RuntimeError()
......@@ -24,8 +24,11 @@ class UserJobTestCase( IntegrationTest ):
def setUp( self ):
super( UserJobTestCase, self ).setUp()
print "\n \n ********************************* \n Running a new test \n *********************************"
self.dLHCb = DiracLHCb()
self.exeScriptLocation = find_all( 'exe-script.py', '..', 'Integration' )[0]
self.exeScriptLocation = find_all( 'exe-script.py', 'LHCbDIRAC/tests', 'Integration' )[0]
self.exeScriptFromDIRACLocation = find_all( 'exe-script-fromDIRAC.py', 'LHCbDIRAC/tests', 'Integration' )[0]
self.lhcbJobTemplate = LHCbJob()
self.lhcbJobTemplate.setLogLevel( 'DEBUG' )
self.lhcbJobTemplate.setInputSandbox( find_all( 'pilot.cfg', '..' )[0] )
......@@ -100,6 +103,17 @@ class HelloWorldSuccessOutputWithJobID( UserJobTestCase ):
del os.environ['JOBID']
class HelloWorldFromDIRACSuccess( UserJobTestCase ):
""" Simple hello world (but using DIRAC gLogger)
"""
def test_Integration_User( self ):
oJob = copy.deepcopy( self.lhcbJobTemplate )
oJob.setName( "helloWorldFROMDIRAC-test" )
oJob.setExecutable( self.exeScriptFromDIRACLocation )
res = oJob.runLocal( self.dLHCb )
self.assertTrue( res['OK'] )
class GaudirunSuccess( UserJobTestCase ):
def test_Integration_User_mc( self ):
""" A MC production job, run as a user job
......
#!/usr/bin/env python
'''Script to run Executable application'''
import os
print "This is the environment in which I am running"
print os.environ
print "Now I will try importing DIRAC"
import DIRAC
from DIRAC import gLogger
gLogger.always("Hello hello!")
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
from DIRAC import gConfig
setup = gConfig.getValue('/DIRAC/Setup')
gLogger.always("I am running on setup %s" % setup)
#!/usr/bin/env python
'''Script to run Executable application'''
from os import system
import sys
from os import system
# Main
if __name__ == '__main__':
sys.exit(system('''echo Hello World''')/256)
sys.exit(system('''echo Hello World''')/256)
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