From e2316a81b91f839496fa98bf4e6c21e7d9455469 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Wed, 14 Nov 2018 21:38:51 -0600 Subject: Add SDK test case framework Adds the framework for testing SDKs that ties into the oeqa test framework. This allows commands like: $ bitbake -c testsdk ... to be run for MinGW SDKs. The test framework currently executes all tests under Wine in lieu of having access to actual Windows machines. [YOCTO #13020] Signed-off-by: Joshua Watt --- conf/machine-sdk/i686-mingw32.conf | 1 + conf/machine-sdk/include/mingw32-common.inc | 7 +++++++ conf/machine-sdk/x86_64-mingw32.conf | 1 + 3 files changed, 9 insertions(+) (limited to 'conf') diff --git a/conf/machine-sdk/i686-mingw32.conf b/conf/machine-sdk/i686-mingw32.conf index 5090168..fef48b5 100644 --- a/conf/machine-sdk/i686-mingw32.conf +++ b/conf/machine-sdk/i686-mingw32.conf @@ -1,3 +1,4 @@ SDK_ARCH = "i686" +TESTSDK_WINEARCH = "win32" require conf/machine-sdk/include/mingw32-common.inc diff --git a/conf/machine-sdk/include/mingw32-common.inc b/conf/machine-sdk/include/mingw32-common.inc index 733d092..9011ded 100644 --- a/conf/machine-sdk/include/mingw32-common.inc +++ b/conf/machine-sdk/include/mingw32-common.inc @@ -26,6 +26,9 @@ SDKPKGSUFFIX = "nativesdk-mingw32" MACHINEOVERRIDES .= ":sdkmingw32" +TESTSDK_CLASS_NAME = "oeqa.sdkmingw.testsdk.TestSDKMinGW" +TESTSDKEXT_CLASS_NAME = "" + WINDRES_mingw32 = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}" RC_mingw32 = "${WINDRES}" @@ -39,3 +42,7 @@ DISABLE_STATIC_mingw32 = "" # disable security flags GCCPIE_mingw32 = "" + +# wine and wineserver are required to test MinGW SDKs +HOSTTOOLS += "${@'wine wineserver' if (bb.utils.contains_any('IMAGE_CLASSES', 'testsdk', True, False, d) or any(x in (d.getVar("BBINCLUDED") or "") for x in ["testsdk.bbclass"])) else ''}" + diff --git a/conf/machine-sdk/x86_64-mingw32.conf b/conf/machine-sdk/x86_64-mingw32.conf index fc53822..188debc 100644 --- a/conf/machine-sdk/x86_64-mingw32.conf +++ b/conf/machine-sdk/x86_64-mingw32.conf @@ -1,3 +1,4 @@ SDK_ARCH = "x86_64" +TESTSDK_WINEARCH = "win64" require conf/machine-sdk/include/mingw32-common.inc -- cgit v1.2.3-54-g00ecf