[EXPERIMENTAL] allow test_packages run in emulated environment#19983
Open
perseoGI wants to merge 2 commits into
Open
[EXPERIMENTAL] allow test_packages run in emulated environment#19983perseoGI wants to merge 2 commits into
perseoGI wants to merge 2 commits into
Conversation
5 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog: Feature: Allow running test_package in an emulated environment
Docs: https://github.com/conan-io/docs/pull/XXXX
Directly related to #19940
This PR makes use of the "incubating"
emulatorkey in order to allow running the test package in a cross compilation.This could be used in Conan Center Index in order to compile and test new configurations (e.g. emscripten, android).
Examples
Create a basic CMake library:
$ conan new cmake_lib -d name="cmake_lib" -d version=1.0 -o cmake_libAndroid NDK
android_emulator.sh-> wrapper to call Android Studio emulator (this could be far simpler if we useqemu-useremulator from a Linux environment (Macos only supportsqemu-systemwhich does not allow direct invokation)For this, we create a wrapper:
The test_package will be passed to the
emulatorwrapper, which will push the binary to the emulator and run from it!Emscripten/Node
An easier example will be to use emscripten toolchain to cross-compile to WASM and then, invoke
nodedirectly.