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

i#2154 Android64: Get tests building #7201

Merged
merged 5 commits into from
Jan 22, 2025

Conversation

jackgallagher-arm
Copy link
Collaborator

@jackgallagher-arm jackgallagher-arm commented Jan 21, 2025

Made some tweaks to the CMake scripts to get the test suite building for Android:

  • Drmemtrace is not currently built for Android so we need to disable some tests which depend on it when building for Android (rseq).

  • Build linux.infloop test binary because it compiles fine for Android and other CMake code expects the target to exist.

  • Removed --dynamic-list-data because it is not needed with the latest NDK toolchains.

  • Copy run_in_bg tool to the Android test device because it is needed by some tests.

It should now be possible to build for Android64 with -DBUILD_TESTS=ON using the latest Android ndk (tested with r27c).

Issues: #2154, #1874

Made some tweaks to the CMake scripts to get the test suite building for
Android:

- Drmemtrace is not currently built for Android so we need to disable some
  tests which depend on it when building for Android (rseq).

- Disable linux.infloop test because we don't currently build the test
  binary for Android.

- Changed to --dynamic-list because --dynamic-list-data is not supported
  by lld which is the linker now used in the Android ndk.

It should now be possible to build for Android64 with -DBUILD_TESTS=ON
using the latest Android ndk (tested with r27c).

Issues: #2154, #1874
make/DynamoRIOConfig.cmake.in Outdated Show resolved Hide resolved
suite/tests/CMakeLists.txt Outdated Show resolved Hide resolved
suite/tests/CMakeLists.txt Outdated Show resolved Hide resolved
suite/tests/CMakeLists.txt Show resolved Hide resolved
suite/tests/CMakeLists.txt Show resolved Hide resolved
@jackgallagher-arm jackgallagher-arm merged commit 3521f0e into master Jan 22, 2025
17 checks passed
@jackgallagher-arm jackgallagher-arm deleted the i2154-android64-get-tests-building branch January 22, 2025 16:57
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.

2 participants