Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Add driver script for running tests in emulator when cross-compiling #855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

weliveindetail
Copy link
Member

When building for the host, ctest is a fast and straightforward test driver. When cross-compiling and running in an emulator like the one for Android, it causes some issues though:

  • We need a different ctest binary for each target arch (and build it from source in many cases)
  • The config file CTestTestfile.cmake uses absolute paths from the host machine to refer to the executables
  • We still have to travers all executables and chmod +x them in the emulator manually

Given that the task of ctest is simple here, it seems reasonable to provide a script for that. With CMake filling in the test targets at configuration time, we can simply push the binary directory to the emulator and run the script in order to execute all tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant