]> code.ossystems Code Review - openembedded-core.git/commit
scripts/oe-selftest: Migrate to new framework into oeqa.selftest.context
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Thu, 25 May 2017 20:20:56 +0000 (15:20 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Jun 2017 16:59:40 +0000 (17:59 +0100)
commit3b2a20eee4a39f40287bf67545839eaa09fc892d
tree46bf8820da5e001dfb901168a20128d4840cea8a
parent8441da8fbc7ff2237d9ccd3a5c5117345f5c87b2
scripts/oe-selftest: Migrate to new framework into oeqa.selftest.context

The new OEQA framework aims to re-use code into the different Test
components.

The previous oe-selftest implements it-self loading, run, and list test
cases in a non-standard way (unittest base) and other functionalities
like logging that is now on oeqa core. This ends on a compact oe-selftest
script.

All needed command line options was migrated but there are some of them
pending of implementation and others deprecated.

Deprecated options:

list-tags: The tag functionality into the old oeqa framework isn't
    work, the selftest doesn't has tag decorators.
{run, list}-tests-by: Ambiguos options it accepts all the posibilites module,
    class, name, id or tag.

Remaining to implement:

coverage: It enables covrage reports over a test run, currently isn't on
    on use and some bugs [1], i filed a bug to add support to OEQA core module in
    this way other Test components could enable it.
repository: It push XML results into a git repository and isn't in use,
    i filed a bug to implement this into OEQA core module. [2]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=11582#c0
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=11583#c0

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
meta/lib/oeqa/selftest/context.py [new file with mode: 0644]
scripts/oe-selftest