def getImplId(): return IMPL_ID def setSoftPkg(soft_pkg): global SOFT_PKG SOFT_PKG = soft_pkg def getSoftPkg(): return SOFT_PKG # this variable is used by the sandbox to kick off a component through the IDE #IDE_REF_ENV = os.getenv('IDE_REF') IDE_REF_ENV = None if IDE_REF_ENV != None: sb.setIDE_REF(CORBA.ORB_init().string_to_object(IDE_REF_ENV)._narrow(ExtendedCF.Sandbox)) class ScaComponentTestCase(unittest.TestCase): """ Class used to test independent implementations of a component. It starts an implementation and runs tests that are common among components. """ STOP_SIGNALS = ((signal.SIGINT, 1), (signal.SIGTERM, 5), (signal.SIGKILL, None)) # Stores the implementation ID of the implementation specific test SPC_ID = None # def __init__(self):
def getImplId(): return IMPL_ID def setSoftPkg(soft_pkg): global SOFT_PKG SOFT_PKG = soft_pkg def getSoftPkg(): return SOFT_PKG # this variable is used by the sandbox to kick off a component through the IDE #IDE_REF_ENV = os.getenv('IDE_REF') IDE_REF_ENV = None if IDE_REF_ENV != None: sb.setIDE_REF(sb.orb.string_to_object(IDE_REF_ENV)._narrow(ExtendedCF.Sandbox)) def stringToComplex(value, type): real, imag = parseComplexString(value, type) if isinstance(real, basestring): real = int(real) imag = int(imag) return complex(real, imag) class ScaComponentTestCase(unittest.TestCase): """ Class used to test independent implementations of a component. It starts an implementation and runs tests that are common among components. """ STOP_SIGNALS = ((signal.SIGINT, 1),
def setSoftPkg(soft_pkg): global SOFT_PKG SOFT_PKG = soft_pkg def getSoftPkg(): return SOFT_PKG # this variable is used by the sandbox to kick off a component through the IDE #IDE_REF_ENV = os.getenv('IDE_REF') IDE_REF_ENV = None if IDE_REF_ENV != None: sb.setIDE_REF( sb.orb.string_to_object(IDE_REF_ENV)._narrow(ExtendedCF.Sandbox)) def stringToComplex(value, type): real, imag = parseComplexString(value, type) if isinstance(real, basestring): real = int(real) imag = int(imag) return complex(real, imag) class ScaComponentTestCase(unittest.TestCase): """ Class used to test independent implementations of a component. It starts an implementation and runs tests that are common among components.
def setSoftPkg(soft_pkg): global SOFT_PKG SOFT_PKG = soft_pkg def getSoftPkg(): return SOFT_PKG # this variable is used by the sandbox to kick off a component through the IDE #IDE_REF_ENV = os.getenv('IDE_REF') IDE_REF_ENV = None if IDE_REF_ENV != None: sb.setIDE_REF(CORBA.ORB_init().string_to_object(IDE_REF_ENV)._narrow( ExtendedCF.Sandbox)) def stringToComplex(value, type): real, imag = parseComplexString(value, type) if isinstance(real, basestring): real = int(real) imag = int(imag) return complex(real, imag) class ScaComponentTestCase(unittest.TestCase): """ Class used to test independent implementations of a component. It starts an implementation and runs tests that are common among components.