diff options
Diffstat (limited to 'meta/lib')
| -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 | ||
