diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2018-11-14 21:38:51 -0600 |
---|---|---|
committer | Joshua Watt <JPEWhacker@gmail.com> | 2018-11-21 11:11:41 -0600 |
commit | e2316a81b91f839496fa98bf4e6c21e7d9455469 (patch) | |
tree | 123611d18d227f5537e2a3db586e788c1fcd735d /conf | |
parent | 1e20bc01111f5867f5a3d9c0905e31d3d7554ba5 (diff) | |
download | meta-mingw-e2316a81b91f839496fa98bf4e6c21e7d9455469.tar.gz |
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 <JPEWhacker@gmail.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine-sdk/i686-mingw32.conf | 1 | ||||
-rw-r--r-- | conf/machine-sdk/include/mingw32-common.inc | 7 | ||||
-rw-r--r-- | conf/machine-sdk/x86_64-mingw32.conf | 1 |
3 files changed, 9 insertions, 0 deletions
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 @@ | |||
1 | SDK_ARCH = "i686" | 1 | SDK_ARCH = "i686" |
2 | TESTSDK_WINEARCH = "win32" | ||
2 | 3 | ||
3 | require conf/machine-sdk/include/mingw32-common.inc | 4 | 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" | |||
26 | 26 | ||
27 | MACHINEOVERRIDES .= ":sdkmingw32" | 27 | MACHINEOVERRIDES .= ":sdkmingw32" |
28 | 28 | ||
29 | TESTSDK_CLASS_NAME = "oeqa.sdkmingw.testsdk.TestSDKMinGW" | ||
30 | TESTSDKEXT_CLASS_NAME = "" | ||
31 | |||
29 | WINDRES_mingw32 = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}" | 32 | WINDRES_mingw32 = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}" |
30 | RC_mingw32 = "${WINDRES}" | 33 | RC_mingw32 = "${WINDRES}" |
31 | 34 | ||
@@ -39,3 +42,7 @@ DISABLE_STATIC_mingw32 = "" | |||
39 | 42 | ||
40 | # disable security flags | 43 | # disable security flags |
41 | GCCPIE_mingw32 = "" | 44 | GCCPIE_mingw32 = "" |
45 | |||
46 | # wine and wineserver are required to test MinGW SDKs | ||
47 | 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 ''}" | ||
48 | |||
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 @@ | |||
1 | SDK_ARCH = "x86_64" | 1 | SDK_ARCH = "x86_64" |
2 | TESTSDK_WINEARCH = "win64" | ||
2 | 3 | ||
3 | require conf/machine-sdk/include/mingw32-common.inc | 4 | require conf/machine-sdk/include/mingw32-common.inc |