]> 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>
Tue, 20 Nov 2018 14:07:48 +0000 (14:07 +0000)
commita06d53928b22d5f88276023c4d57b206db2f27f9
tree7376b311f71feae22183e3e9bc98aef18c8423ac
parent19c9842644b7b0a599437fd394111f161c8b1f1e
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]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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]