]> code.ossystems Code Review - openembedded-core.git/commit
classes/testsdk: Split implementation into classes
authorJoshua Watt <jpewhacker@gmail.com>
Mon, 19 Nov 2018 18:11:13 +0000 (12:11 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Jan 2019 16:56:31 +0000 (16:56 +0000)
commitd0828522fc3a4bd3f86488edcedcce10833c18dc
tree94ba36787b3bd7eea21aecadadebd89454892232
parent310a2b137f2cb249885844fa12830365f94866f0
classes/testsdk: Split implementation into classes

Splits the SDK test implementation into configurable Python classes. The
classes used for the normal and extensible SDKs are
${TESTSDK_CLASS_NAME} and ${TESTSDKEXT_CLASS_NAME} respectively.

This allows SDK machines to override the classes used to implement the
tests. For the traditional SDK, a common "run()" function is provided by
the class (oeqa.sdk.testsdk.TestSDK), with several hook member functions
that can be overridden in child classes, making it easier to have
consistent behavior. The extensible SDK class
(oeqa.sdkext.testsdk.TestSDKEXT) also has a common "run()" function, but
no hooks have yet been added as there is not currently a known use case
for create derived classes.

These changes should be purely organizational; no functional changes
have been made to either the standard SDK or extensible SDK tests.

[YOCTO #13020]

(From OE-Core rev: a06d53928b22d5f88276023c4d57b206db2f27f9)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/testsdk.bbclass
meta/lib/oeqa/sdk/testsdk.py [new file with mode: 0644]
meta/lib/oeqa/sdkext/testsdk.py [new file with mode: 0644]