This is an archive of the discontinued LLVM Phabricator instance.

lnt runtest test-suite: add --qemu-user-mode support
Needs RevisionPublic

Authored by kristof.beyls on May 6 2019, 7:06 AM.

Details

Summary

To make user more emulation with qemu work well, a specific cmake option
needs to be set when running the test suite under it.
This introduces the --qemu-user-mode option to make this straightforward
from a lnt runtest test-suite command line.

An example command line using this:

lnt runtest test-suite --sandbox lnt_sandbox \

--test-suite ~/dev/llvm.org/test-suite -j40 \
--qemu-user-mode=$HOME/dev/aarch64-emu/aarch64-qemu.sh \
--cppflags="-O3" \
--use-lit llvm-lit \
--cmake-define=CMAKE_TOOLCHAIN_FILE:FILEPATH=$HOME/dev/llvm.org/clang_aarch64_linux.cmake

Note that I haven't written regression tests yet for this - I thought I'd first ask for review on the general design before implementing tests.

Diff Detail