summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/sdkmingw
Commit message (Collapse)AuthorAgeFilesLines
* oeqa: Set LANG in wine tests5.2_M1Joshua Watt2024-10-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | Glib likes to try and determine the local name using the Windows GetConsoleOutputCP(), which doesn't work well running under wine in our test cases (it seems to be linked to stdin not being a terminal). This results in the error message: GLib-WARNING (recursed) **: Failed to determine console output code page: Invalid access.. Falling back to UTF-8 and then Glib falls back to the locale "UTF-8", which is invalid and the program will likely crash. In particular, pkg-config seems to be sensitive to this on some hosts (e.g. Ubuntu 24.04) Set the LANG variable to a valid language to make sure that this codepath in Glib is not triggered. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* tests: Map WORKDIR to W: to shorten pathsJoshua Watt2022-12-083-4/+16
| | | | | | | | | | | | | 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>
* testsdk: enhance extract sdk part2.8_M1Changqing Li2019-05-051-2/+9
| | | | | | | | | | | | Current sdk type is tar.xz, but for mingw sdk, since we have symlink under the sdk folder, 7zip which used to extract tar.xz cannot handle it, refer 7zip upstream bug: https://sourceforge.net/p/sevenzip/discussion/45797/thread/c71d6b96/ so oe-core have add support of change SDK type to .zip, so correct the extract function. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
* oeqa/sdkmingw: Add test casesJoshua Watt2018-11-215-0/+144
| | | | | | | | | Adds test cases to verify that gcc, binutils, gdb, and pkg-config are functioning in the MinGW SDK [YOCTO #13020] Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
* Add SDK test case frameworkJoshua Watt2018-11-215-0/+198
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>