This patch adds %run before invoking any executables. In conjunction with http://reviews.llvm.org/D3425, this allows us to test the sanitizers in cross-compiled environments by setting COMPILER_RT_EMULATOR to qemu-arm. Alternatively, the user may point COMPILER_RT_EMULATOR to a custom script that uploads the executable to a device and executes it remotely.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
This does not solve the issue of shared libraries (ex. in test/asan/TestCases/shared-lib-test.cc %t-so.so won't be copied to the device). I guess that's not an issue for qemu?
Comment Actions
IIRC, if the binaries are linked statically, qemu-user works fine, otherwise you need sysroots and co.