generic-poky/meta/lib/oeqa/core
Mariano Lopez cf0b92f893 oeqa/runtime/context.py: Fix use of getTarget() with testexport
The idea on getTarget is to use kwargs to send custom variables
to different targets, instead of this, a new variable was added
(just used for custom targets) and this broke testexport. So
in order to fix it, just add the custom variable to kwargs.

This fixes the use of getTarget() in testexport class that was
introduced in 1dc8010afd71fe46fb28bb86fb7c07a5fbd3d7cf.

(From OE-Core rev: cf138029a1f18f991fc7a28c81d85884942e9d56)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23 12:49:48 -08:00
..
cases oeqa/core/cases: Add example test cases 2017-01-23 12:05:18 +00:00
decorator oeqa/core/decorator: Add skipIfNotDataVar and skipIfNotInDataVar 2017-01-23 12:05:20 +00:00
target oeqa/runtime/context.py: Fix use of getTarget() with testexport 2017-02-23 12:49:48 -08:00
tests oeqa/core: Add tests for the OEQA framework 2017-01-23 12:05:18 +00:00
utils meta: remove remaining True option to getVar calls 2017-01-31 14:43:02 +00:00
README oeqa/core: Add README 2017-01-23 12:05:18 +00:00
__init__.py oeqa/core: Add base OEQA framework 2017-01-23 12:05:18 +00:00
case.py oeqa/core: Add base OEQA framework 2017-01-23 12:05:18 +00:00
context.py oeqa/core/context.py: Add validation for run-tests option 2017-01-31 23:27:47 +00:00
exception.py oeqa/core: Add base OEQA framework 2017-01-23 12:05:18 +00:00
loader.py oeqa/loader.py: Avoid error in TypeError exception 2017-02-15 09:29:55 -08:00
runner.py oeqa/core/runner.py: OEStreamLogger fix logging 2017-02-15 09:29:55 -08:00

README

= OEQA Framework =

== Introduction ==

This is the new OEQA framework the base clases of the framework
are in this module oeqa/core the subsequent components needs to
extend this classes.

A new/unique runner was created called oe-test and is under scripts/
oe-test, this new runner scans over oeqa module searching for test
components that supports OETestContextExecutor implemented in context
module (i.e. oeqa/core/context.py).

For execute an example:

$ source oe-init-build-env
$ oe-test core

For list supported components:

$ oe-test -h

== Create new Test component ==

Usally for add a new Test component the developer needs to extend
OETestContext/OETestContextExecutor in context.py and OETestCase in
case.py.

== How to run the testing of the OEQA framework ==

Run all tests:

$ PATH=$PATH:../../ python3 -m unittest discover -s tests

Run some test:

$ cd tests/
$ ./test_data.py