diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-11-09 12:03:01 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:03:53 +0000 |
commit | 9d474172c47695be1a61538f5b87ca8d9db25fa7 (patch) | |
tree | 41671a221882e182475ddf82ecedafe93d2f2294 /meta/lib/oeqa | |
parent | 115f80adf1b230c5d0392e7833e9aeb274642bcb (diff) | |
download | openembedded-core-9d474172c47695be1a61538f5b87ca8d9db25fa7.tar.gz openembedded-core-9d474172c47695be1a61538f5b87ca8d9db25fa7.tar.bz2 openembedded-core-9d474172c47695be1a61538f5b87ca8d9db25fa7.zip |
oeqa/core: Add README
The README has an introduction and explains how to run the test suite
and creates a new Test component.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/core/README | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/README b/meta/lib/oeqa/core/README new file mode 100644 index 0000000000..0c859fd788 --- /dev/null +++ b/meta/lib/oeqa/core/README @@ -0,0 +1,38 @@ += 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 |