Changeset 7e5cdea in rtems-tools for rtemstoolkit/__init__.py


Ignore:
Timestamp:
Nov 23, 2018, 4:02:52 AM (11 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
f632bd8
Parents:
6fa0965
Message:

rtemstoolkit: Add unit testing for the python modules

  • Add support to run the unit tests for the rtemstoolkit python modules from waf. Enter './waf test' for the tests to be run on python2 and python3.
  • Update the importing of rtemstoolkit modules to the standard method which works on python2 and python3.
  • Update the README.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/__init__.py

    r6fa0965 r7e5cdea  
    4747       'version']
    4848
    49 from . import check
    50 from . import config
    51 from . import configuration
    52 from . import error
    53 from . import execute
    54 from . import git
    55 from . import host
    56 from . import log
    57 from . import macros
    58 from . import mailer
    59 from . import options
    60 from . import path
    61 from . import reraise
    62 from . import rtems
    63 from . import stacktraces
    64 from . import textbox
    65 from . import version
     49args = {
     50    'config': ['--file', 'tester/rtems/version.cfg',
     51               '--jobs', 'half',
     52               '--no-clean'],
     53    'mailer': ['--smtp-host', '1.2.3.4',
     54               '--mail-to',   'foo@bar.none',
     55               '--mail-from', 'me@here.there']
     56
     57}
Note: See TracChangeset for help on using the changeset viewer.