summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-11-09 12:03:01 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:18 +0000
commit388503c032112259750eda4c14c537ab14bf684d (patch)
treeecb461ee2ab98a4c9fea1074770dcd8fc99b90b5
parent9a5f285fe3ad6ae174e4efb053f7fa3971526da0 (diff)
downloadpoky-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>
-rw-r--r--meta/lib/oeqa/core/README38
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
5This is the new OEQA framework the base clases of the framework
6are in this module oeqa/core the subsequent components needs to
7extend this classes.
8
9A new/unique runner was created called oe-test and is under scripts/
10oe-test, this new runner scans over oeqa module searching for test
11components that supports OETestContextExecutor implemented in context
12module (i.e. oeqa/core/context.py).
13
14For execute an example:
15
16$ source oe-init-build-env
17$ oe-test core
18
19For list supported components:
20
21$ oe-test -h
22
23== Create new Test component ==
24
25Usally for add a new Test component the developer needs to extend
26OETestContext/OETestContextExecutor in context.py and OETestCase in
27case.py.
28
29== How to run the testing of the OEQA framework ==
30
31Run all tests:
32
33$ PATH=$PATH:../../ python3 -m unittest discover -s tests
34
35Run some test:
36
37$ cd tests/
38$ ./test_data.py