Example #1
0
def __getExternalLibPath(current_path):
    """
    Get the external lib path needed to start individual test-cases
    This can be achieved also by setting RUNTIME_PATH=GangaTest in the configuration
    but in case of local tests this cannot be enforced, so we set the PYTHONPATH manually
    """

    external_path = []
    ganga_external_dir = previous_dir(current_path, 5)

    ganga_external_dir = os.path.join(ganga_external_dir, "external")

    ##set the libraries path to include external packages and test directory
    pyth_path = os.path.join(ganga_external_dir, "PYTF", PYTF_VERSION, "slc3_gcc323")
    if not os.path.isdir(pyth_path):
        pyth_path = "/afs/cern.ch/sw/ganga/external/PYTF/%s/slc3_gcc323" % PYTF_VERSION
    if pyth_path not in sys.path:
        sys.path.insert(0, pyth_path)
    external_path.append(pyth_path)

    figleaf_path = os.path.join(ganga_external_dir, "figleaf", FIGLEAF_VERSION, "slc3_gcc323")
    if not os.path.isdir(figleaf_path):
        figleaf_path = "/afs/cern.ch/sw/ganga/external/figleaf/%s/slc3_gcc323" % FIGLEAF_VERSION
    if figleaf_path not in sys.path:
        sys.path.insert(0, figleaf_path)
    external_path.append(figleaf_path)
    return external_path
Example #2
0
def __getExternalLibPath( current_path ):
    """
    Get the external lib path needed to start individual test-cases
    This can be achieved also by setting RUNTIME_PATH=GangaTest in the configuration
    but in case of local tests this cannot be enforced, so we set the PYTHONPATH manually
    """
    
    external_path = []
    ganga_external_dir = previous_dir(current_path,5)
   
    ganga_external_dir = os.path.join(ganga_external_dir,'external')    

    ##set the libraries path to include external packages and test directory
    pyth_path = os.path.join(ganga_external_dir,'PYTF',PYTF_VERSION,'slc3_gcc323')
    if not os.path.isdir(pyth_path):
        pyth_path = '/afs/cern.ch/sw/ganga/external/PYTF/%s/slc3_gcc323' % PYTF_VERSION      
    if pyth_path not in sys.path:
        sys.path.insert(0, pyth_path)
    external_path.append(pyth_path)
                    
    figleaf_path = os.path.join(ganga_external_dir,'figleaf',FIGLEAF_VERSION,'slc3_gcc323')
    if not os.path.isdir(figleaf_path):
        figleaf_path = '/afs/cern.ch/sw/ganga/external/figleaf/%s/slc3_gcc323' % FIGLEAF_VERSION
    if figleaf_path not in sys.path:
        sys.path.insert(0, figleaf_path)
    external_path.append(figleaf_path)
    return external_path
Example #3
0
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
################################################################################

__version__ = "1.0"
__author__ = "Adrian.Muraru[at]cern[dot]ch"

import os
import sys

## Configuration
from Ganga.Utility.Config import getConfig, makeConfig
from Ganga.Utility.files import previous_dir
from Ganga.Utility.logging import getLogger

myFullPath = os.path.abspath(os.path.dirname(__file__))
gangaReleaseTopDir = previous_dir(myFullPath, 3)

# testing framework configuration properties
myConfig = makeConfig("TestingFramework", "Configuration section for internal testing framework")

# Release testing mode:
# - xml/html reports are generated
# - coverage analysis tool enabled
myConfig.addOption("ReleaseTesting", False, "")

# enable/disable test-runner
myConfig.addOption("EnableTestRunner", True, "enable/disable test-runner")
# enable/disable html reporter
myConfig.addOption("EnableHTMLReporter", False, "enable/disable html reporter")
# enable/disable xml differencer
myConfig.addOption("EnableXMLDifferencer", "False", "enable/disable xml differencer")
Example #4
0
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
################################################################################

__version__ = "1.0"
__author__="Adrian.Muraru[at]cern[dot]ch"

import os
import sys

## Configuration
from Ganga.Utility.Config import getConfig, makeConfig
from Ganga.Utility.files import previous_dir
from Ganga.Utility.logging import getLogger

myFullPath =  os.path.abspath(os.path.dirname(__file__))
gangaReleaseTopDir = previous_dir(myFullPath,3)

# testing framework configuration properties
myConfig = makeConfig('TestingFramework','Configuration section for internal testing framework')

#Release testing mode:
# - xml/html reports are generated
# - coverage analysis tool enabled
myConfig.addOption('ReleaseTesting', False, '')

#enable/disable test-runner
myConfig.addOption('EnableTestRunner', True, 'enable/disable test-runner') 
#enable/disable html reporter
myConfig.addOption('EnableHTMLReporter', False, 'enable/disable html reporter')
#enable/disable xml differencer
myConfig.addOption('EnableXMLDifferencer','False', 'enable/disable xml differencer')