diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2022-12-08 10:48:19 -0600 |
---|---|---|
committer | Joshua Watt <JPEWhacker@gmail.com> | 2022-12-08 10:49:05 -0600 |
commit | f40731611e9682928db78c83db72d384c2edee10 (patch) | |
tree | 457ee5aeeb7a81944e350f8aa3891a3a5d11b110 /lib/oeqa/sdkmingw/testsdk.py | |
parent | 4a066511a944ec946efa7a4571029c992cf0ae00 (diff) | |
download | meta-mingw-f40731611e9682928db78c83db72d384c2edee10.tar.gz |
tests: Map WORKDIR to W: to shorten paths
In some cases Wine (and Windows proper) struggle with very long paths;
in particular the way that gcc invokes the 'cc1' subprogram is limited
in how deep the path to the subprogram can be. This can cause issues
when testing the SDK under wine, as the paths can easily get quite long
and exceed this limit. In order to work around this, setup the Wine test
context so that the W: drive maps to the SDK image ${WORKDIR}, which
allows wine to effectively use paths relative to this directory making
them significantly shorter.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Diffstat (limited to 'lib/oeqa/sdkmingw/testsdk.py')
-rw-r--r-- | lib/oeqa/sdkmingw/testsdk.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oeqa/sdkmingw/testsdk.py b/lib/oeqa/sdkmingw/testsdk.py index 173cfd9..5c80bb4 100644 --- a/lib/oeqa/sdkmingw/testsdk.py +++ b/lib/oeqa/sdkmingw/testsdk.py | |||
@@ -44,6 +44,9 @@ class TestSDKMinGW(TestSDK): | |||
44 | 44 | ||
45 | return { | 45 | return { |
46 | 'wine_prefix': wine_prefix, | 46 | 'wine_prefix': wine_prefix, |
47 | 'wine_arch': d.getVar('TESTSDK_WINEARCH') or 'win64' | 47 | 'wine_arch': d.getVar('TESTSDK_WINEARCH') or 'win64', |
48 | 'wine_devices': { | ||
49 | 'w:': d.getVar("WORKDIR"), | ||
48 | } | 50 | } |
51 | } | ||
49 | 52 | ||