-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: Use build environment prefix.bat when running tests
Tests like tst_qmake need the build environment to be able to build apps / libraries. This is mostly needed for MSVC. Set the TESTS_ENV_PREFIX env var to point to the proper prefix.bat (host or target) and use that when running ctest. Task-number: QTBUG-85240 Task-number: QTBUG-78449 Task-number: QTBUG-81365 Change-Id: I6fa68714202ac7fc703973fc772e03b84790a043 Reviewed-by: Cristian Adam <[email protected]>
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
type: Group | ||
instructions: | ||
- type: Group | ||
instructions: | ||
- type: EnvironmentVariable | ||
variableName: TESTS_ENV_PREFIX | ||
variableValue: "{{.Env.ENV_PREFIX}}" | ||
enable_if: | ||
condition: and | ||
conditions: | ||
- condition: property | ||
property: host.os | ||
equals_property: target.os | ||
- condition: property | ||
property: target.osVersion | ||
not_equals_value: QEMU | ||
- type: Group | ||
instructions: | ||
- type: EnvironmentVariable | ||
variableName: TESTS_ENV_PREFIX | ||
variableValue: "{{.Env.TARGET_ENV_PREFIX}}" | ||
disable_if: | ||
condition: and | ||
conditions: | ||
- condition: property | ||
property: host.os | ||
equals_property: target.os | ||
- condition: property | ||
property: target.osVersion | ||
not_equals_value: QEMU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters