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:05:18 +0000 |
commit | 388503c032112259750eda4c14c537ab14bf684d (patch) | |
tree | ecb461ee2ab98a4c9fea1074770dcd8fc99b90b5 /meta | |
parent | 9a5f285fe3ad6ae174e4efb053f7fa3971526da0 (diff) | |
download | poky-388503c032112259750eda4c14c537ab14bf684d.tar.gz |
oeqa/core: Add README
The README has an introduction and explains how to run the test suite
and creates a new Test component.
(From OE-Core rev: 9d474172c47695be1a61538f5b87ca8d9db25fa7)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 @@ | |||
1 | = OEQA Framework = | ||
2 | |||
3 | == Introduction == | ||
4 | |||
5 | This is the new OEQA framework the base clases of the framework | ||
6 | are in this module oeqa/core the subsequent components needs to | ||
7 | extend this classes. | ||
8 | |||
9 | A new/unique runner was created called oe-test and is under scripts/ | ||
10 | oe-test, this new runner scans over oeqa module searching for test | ||
11 | components that supports OETestContextExecutor implemented in context | ||
12 | module (i.e. oeqa/core/context.py). | ||
13 | |||
14 | For execute an example: | ||
15 | |||
16 | $ source oe-init-build-env | ||
17 | $ oe-test core | ||
18 | |||
19 | For list supported components: | ||
20 | |||
21 | $ oe-test -h | ||
22 | |||
23 | == Create new Test component == | ||
24 | |||
25 | Usally for add a new Test component the developer needs to extend | ||
26 | OETestContext/OETestContextExecutor in context.py and OETestCase in | ||
27 | case.py. | ||
28 | |||
29 | == How to run the testing of the OEQA framework == | ||
30 | |||
31 | Run all tests: | ||
32 | |||
33 | $ PATH=$PATH:../../ python3 -m unittest discover -s tests | ||
34 | |||
35 | Run some test: | ||
36 | |||
37 | $ cd tests/ | ||
38 | $ ./test_data.py | ||