Ejemplo n.º 1
0
__docformat__ = "reStructuredText en"

import sys
import os
import unittest

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

class SanityAcceptSuite(unittest.TestSuite):
    """Sanity test suite."""
    def __init__(self):
        super().__init__()
        tl = unittest.defaultTestLoader
        pwd = os.path.dirname(__file__)
        for path in os.listdir(pwd):
            fpath = os.path.join(pwd, path)
            ipath = os.path.join(fpath, '__init__.py')
            if path.endswith('TestSuite') and os.path.isfile(ipath):
                m = __import__(path)
                for t in m.sanity_suite():
                    self.addTest(t)

if __name__ == '__main__':
    from TestSuite import utils

    utils.set_accept_level(utils.SANITY)
    suite = SanityAcceptSuite()
    unittest.TextTestRunner(verbosity=2).run(suite)


Ejemplo n.º 2
0
__docformat__ = "reStructuredText en"

import sys
import os
import unittest

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))


class SmokeAcceptSuite(unittest.TestSuite):
    """Smoke test suite."""
    def __init__(self):
        super().__init__()
        tl = unittest.defaultTestLoader
        pwd = os.path.dirname(__file__)
        for path in os.listdir(pwd):
            fpath = os.path.join(pwd, path)
            ipath = os.path.join(fpath, '__init__.py')
            if path.endswith('TestSuite') and os.path.isfile(ipath):
                m = __import__(path)
                for t in m.smoke_suite():
                    self.addTest(t)


if __name__ == '__main__':
    from TestSuite import utils

    utils.set_accept_level(utils.SMOKE)
    suite = SmokeAcceptSuite()
    unittest.TextTestRunner(verbosity=2).run(suite)
Ejemplo n.º 3
0
"""
__docformat__ = "reStructuredText en"

import sys
import os
import unittest

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

class ShakedownAcceptSuite(unittest.TestSuite):
    """Shakedown test suite."""
    def __init__(self):
        super().__init__()
        tl = unittest.defaultTestLoader
        pwd = os.path.dirname(__file__)
        for path in os.listdir(pwd):
            fpath = os.path.join(pwd, path)
            ipath = os.path.join(fpath, '__init__.py')
            if path.endswith('TestSuite') and os.path.isfile(ipath):
                m = __import__(path)
                for t in m.shakedown_suite():
                    self.addTest(t)

if __name__ == '__main__':
    from TestSuite import utils

    utils.set_accept_level(utils.SHAKEDOWN)
    suite = SanityAcceptSuite()
    unittest.TextTestRunner(verbosity=2).run(suite)

Ejemplo n.º 4
0
__docformat__ = "reStructuredText en"

import sys
import os
import unittest

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))


class ShakedownAcceptSuite(unittest.TestSuite):
    """Shakedown test suite."""
    def __init__(self):
        super().__init__()
        tl = unittest.defaultTestLoader
        pwd = os.path.dirname(__file__)
        for path in os.listdir(pwd):
            fpath = os.path.join(pwd, path)
            ipath = os.path.join(fpath, '__init__.py')
            if path.endswith('TestSuite') and os.path.isfile(ipath):
                m = __import__(path)
                for t in m.shakedown_suite():
                    self.addTest(t)


if __name__ == '__main__':
    from TestSuite import utils

    utils.set_accept_level(utils.SHAKEDOWN)
    suite = SanityAcceptSuite()
    unittest.TextTestRunner(verbosity=2).run(suite)
Ejemplo n.º 5
0
"""
__docformat__ = "reStructuredText en"

import sys
import os
import unittest

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

class SmokeAcceptSuite(unittest.TestSuite):
    """Smoke test suite."""
    def __init__(self):
        super().__init__()
        tl = unittest.defaultTestLoader
        pwd = os.path.dirname(__file__)
        for path in os.listdir(pwd):
            fpath = os.path.join(pwd, path)
            ipath = os.path.join(fpath, '__init__.py')
            if path.endswith('TestSuite') and os.path.isfile(ipath):
                m = __import__(path)
                for t in m.smoke_suite():
                    self.addTest(t)

if __name__ == '__main__':
    from TestSuite import utils

    utils.set_accept_level(utils.SMOKE)
    suite = SmokeAcceptSuite()
    unittest.TextTestRunner(verbosity=2).run(suite)

Ejemplo n.º 6
0
__docformat__ = "reStructuredText en"

import sys
import os
import unittest

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))


class SanityAcceptSuite(unittest.TestSuite):
    """Sanity test suite."""
    def __init__(self):
        super().__init__()
        tl = unittest.defaultTestLoader
        pwd = os.path.dirname(__file__)
        for path in os.listdir(pwd):
            fpath = os.path.join(pwd, path)
            ipath = os.path.join(fpath, '__init__.py')
            if path.endswith('TestSuite') and os.path.isfile(ipath):
                m = __import__(path)
                for t in m.sanity_suite():
                    self.addTest(t)


if __name__ == '__main__':
    from TestSuite import utils

    utils.set_accept_level(utils.SANITY)
    suite = SanityAcceptSuite()
    unittest.TextTestRunner(verbosity=2).run(suite)