Ejemplo n.º 1
0
def get_version():
    """
    Return autotest version.

    :return: String with version.
    """
    return version.get_version()
Ejemplo n.º 2
0
def get_version():
    """
    Return autotest version.

    :return: String with version.
    """
    return version.get_version()
Ejemplo n.º 3
0
def run():
    setup(name='autotest',
          description='Autotest test framework - common definitions',
          maintainer='Lucas Meneghel Rodrigues',
          author_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          packages=get_packages())
Ejemplo n.º 4
0
def run():
    setup(name='autotest',
          description='Autotest test framework - common definitions',
          maintainer='Lucas Meneghel Rodrigues',
          author_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          packages=get_packages())
Ejemplo n.º 5
0
 def initialize(self):
     super(Subtest, self).initialize()
     # Fail test if autotest is too old
     version.check_autotest_version(self.config, get_version())
     # Fail test if configuration being used doesn't match dockertest API
     version.check_version(self.config)
     msg = "Subtest %s configuration:\n" % self.__class__.__name__
     for key, value in self.config.items():
         msg += '\t\t%s = "%s"\n' % (key, value)
     self.logdebug(msg)
Ejemplo n.º 6
0
def run():
    setup(name='autotest',
          description='Autotest testing framework - mirror module',
          author='Autotest Team',
          author_email='*****@*****.**',
          version=version.get_version(),
          url='autotest.kernel.org',
          package_dir=get_package_dir(),
          packages=get_packages(),
          data_files=get_data_files())
Ejemplo n.º 7
0
def run():
    setup(name='autotest',
          description='Autotest testing framework - utility scripts',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages=get_packages(),
          data_files=get_data_files())
Ejemplo n.º 8
0
def run():
    setup(name='autotest',
          description='Autotest framework - CLI interface to the RPC server',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages=get_packages(),
          scripts=get_scripts())
Ejemplo n.º 9
0
def run():
    setup(name='autotest',
          description='Autotest testing framework - utility scripts',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages=get_packages(),
          data_files=get_data_files())
Ejemplo n.º 10
0
def run():
    setup(name='autotest',
          description='Autotest framework - CLI interface to the RPC server',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages=get_packages(),
          scripts=get_scripts())
Ejemplo n.º 11
0
def run():
    setup(name='autotest',
          description='Autotest test framework - results database module',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages=get_packages(),
          scripts=get_scripts())
Ejemplo n.º 12
0
def run():
    setup(
        name="autotest",
        description="Autotest testing framework - TKO module",
        maintainer="Lucas Meneghel Rodrigues",
        maintainer_email="*****@*****.**",
        version=version.get_version(),
        url="http://autotest.github.com",
        package_dir=get_package_dir(),
        packages=get_packages(),
        data_files=get_data_files(),
        scripts=get_scripts(),
    )
Ejemplo n.º 13
0
 def initialize(self):
     super(Subtest, self).initialize()
     # Fail test if autotest is too old
     version.check_autotest_version(self.config, get_version())
     # Fail test if configuration being used doesn't match dockertest API
     version.check_version(self.config)
     # Fail test if dockertest API does not match documentation version
     version.check_doc_version()
     # These two are unique to subtest & runtime state
     self.step_log_msgs['setup'] = ("setup() for subtest version %s" %
                                    self.version)
     self.step_log_msgs['postprocess_iteration'] = (
         "postprocess_iteration() #%d of #%d" %
         (self.iteration, self.iterations))
Ejemplo n.º 14
0
 def initialize(self):
     super(Subtest, self).initialize()
     # Fail test if autotest is too old
     version.check_autotest_version(self.config, get_version())
     # Fail test if configuration being used doesn't match dockertest API
     version.check_version(self.config)
     # Fail test if dockertest API does not match documentation version
     version.check_doc_version()
     # These two are unique to subtest & runtime state
     self.step_log_msgs['setup'] = ("setup() for subtest version %s"
                                    % self.version)
     self.step_log_msgs['postprocess_iteration'] = (
         "postprocess_iteration() #%d of #%d"
         % (self.iteration, self.iterations))
Ejemplo n.º 15
0
def run():
    setup(name='autotest',
          description='Autotest test framework',
          maintainer='Lucas Meneghel Rodrigues',
          maintainer_email='*****@*****.**',
          version=version.get_version(),
          url='http://autotest.github.com',
          package_dir=get_package_dir(),
          package_data=get_package_data(),
          packages=get_packages(),
          scripts=get_scripts(),
          data_files=get_data_files(),
          cmdclass=cmdclass,
          command_options=command_options,
          )
Ejemplo n.º 16
0
def run():
    setup(
        name="autotest",
        description="Autotest test framework",
        maintainer="Lucas Meneghel Rodrigues",
        maintainer_email="*****@*****.**",
        version=version.get_version(),
        url="http://autotest.github.com",
        package_dir=get_package_dir(),
        package_data=get_package_data(),
        packages=get_packages(),
        scripts=get_scripts(),
        data_files=get_data_files(),
        cmdclass=cmdclass,
        command_options={"build_doc": {"source_dir": ("setup.py", "documentation/source")}},
    )
Ejemplo n.º 17
0
 def initialize(self):
     super(Subtest, self).initialize()
     # Fail test if autotest is too old
     version.check_autotest_version(self.config, get_version())
     # Fail test if configuration being used doesn't match dockertest API
     version.check_version(self.config)
     # Fail test if dockertest API does not match documentation version
     version.check_doc_version()
     # These two are unique to subtest & runtime state
     self.step_log_msgs['setup'] = ("setup() for subtest version %s"
                                    % self.version)
     self.step_log_msgs['postprocess_iteration'] = (
         "postprocess_iteration() #%d of #%d"
         % (self.iteration, self.iterations))
     if self.config.get('verify_enforcing', True):
         self.failif(not selinux_is_enforcing(),
                     "SELinux mode != Enforcing and"
                     " verify_enforcing is set")
Ejemplo n.º 18
0
 def initialize(self):
     super(Subtest, self).initialize()
     # Fail test if autotest is too old
     version.check_autotest_version(self.config, get_version())
     # Fail test if configuration being used doesn't match dockertest API
     version.check_version(self.config)
     # Fail test if dockertest API does not match documentation version
     version.check_doc_version()
     # These two are unique to subtest & runtime state
     self.step_log_msgs['setup'] = ("setup() for subtest version %s" %
                                    self.version)
     self.step_log_msgs['postprocess_iteration'] = (
         "postprocess_iteration() #%d of #%d" %
         (self.iteration, self.iterations))
     if self.config.get('verify_enforcing', True):
         self.failif(
             not selinux_is_enforcing(), "SELinux mode != Enforcing and"
             " verify_enforcing is set")
Ejemplo n.º 19
0
def get_version():
    return version.get_version()
Ejemplo n.º 20
0
from autotest.client.shared.version import get_version

os.environ.setdefault("DJANGO_SETTINGS_MODULE",
                      "autotest.documentation.source.settings")

extensions = [
    'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx',
    'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.ifconfig',
    'sphinx.ext.viewcode'
]

master_doc = 'index'
project = u'autotest'
copyright = u'2013, Autotest Team'

v_parts = get_version().split('.')
version = "%s.%s" % (v_parts[0], v_parts[1])
release = '%s.%s.%s' % (v_parts[0], v_parts[1], v_parts[2])

# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd:  # only import and set the theme if we're building docs locally
    try:
        import sphinx_rtd_theme
        html_theme = 'sphinx_rtd_theme'
        html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
    except ImportError:
        html_theme = 'default'

pygments_style = 'sphinx'
Ejemplo n.º 21
0
def get_version():
    return version.get_version()
Ejemplo n.º 22
0

extensions = ['sphinx.ext.autodoc',
              'sphinx.ext.doctest',
              'sphinx.ext.intersphinx',
              'sphinx.ext.todo',
              'sphinx.ext.coverage',
              'sphinx.ext.ifconfig',
              'sphinx.ext.viewcode']


master_doc = 'index'
project = u'autotest'
copyright = u'2013, Autotest Team'

v_parts = get_version().split('.')
version = "%s.%s" % (v_parts[0], v_parts[1])
release = '%s.%s.%s' % (v_parts[0], v_parts[1], v_parts[2])

# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd:  # only import and set the theme if we're building docs locally
    try:
        import sphinx_rtd_theme
        html_theme = 'sphinx_rtd_theme'
        html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
    except ImportError:
        html_theme = 'default'

pygments_style = 'sphinx'