llvm-project/compiler-rt/test
Fangrui Song 9111635cb7 [test] Fix asan/scudo -shared-libsan tests with -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on
On x86_64-unknown-linux-gnu, `-m32` tests set LD_LIBRARY_PATH to
`config.compiler_rt_libdir` (`$build/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu`)
instead of i386-unknown-linux-gnu, so `-shared-libsan` executables
cannot find their runtime (e.g. `TestCases/replaceable_new_delete.cpp`).

Detect -m32 and -m64 in config.target_cflags, and adjust `config.compiler_rt_libdir`.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D108859
2021-09-15 09:07:47 -07:00
..
BlocksRuntime [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
asan Fix `asan/TestCases/Darwin/scrible.cpp` to work on platforms where `long` is not 64-bits. 2021-09-08 09:53:09 -07:00
builtins [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
cfi [compiler-rt] -fsanitize=cfi is not supported on Darwin 2021-03-17 13:28:42 -07:00
crt [CRT][LIT] split target_cflags using shlex 2021-08-19 21:44:20 -04:00
dfsan [DFSan] Add wrapper for getentropy(). 2021-08-24 15:10:13 -07:00
fuzzer Redistribute energy for Corpus 2021-09-08 09:22:45 -07:00
gwp_asan [compiler-rt][GWP-ASAN] Disable 2 tests on Armv7 Linux 2021-07-19 10:45:11 +00:00
hwasan [hwasan] Test use-after-scope with -fno-exceptions. 2021-09-06 10:10:09 +01:00
interception [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
lsan [sanitizer] Remove cpplint annotations 2021-07-30 18:20:40 -07:00
memprof [NFC][memprof] FIx delete[] usage in test 2021-06-04 23:17:23 -07:00
msan [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
orc [JITLink] Add initial native TLS support to ELFNix platform 2021-09-13 14:35:49 +08:00
profile Revert "[compiler-rt][Profile] Disable test on Arm/AArch64 Linux" 2021-09-06 08:45:06 +00:00
safestack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
sanitizer_common [Sanitizers] intercept fparseln on freebsd 2021-09-14 19:13:45 +01:00
scudo Revert "[Scudo] Make -fsanitize=scudo use standalone. Migrate tests." 2021-05-26 10:50:26 -07:00
shadowcallstack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
tsan [TSan][Darwin] Add integration tests for dyld interposition 2021-09-09 22:33:59 +02:00
ubsan [ubsan] warn inside the sigaction interceptor if static linking is suspected, and continue instead of crashing on null deref 2021-09-01 12:36:48 -07:00
ubsan_minimal [test] Fix unused FileCheck prefixes in compiler-rt 2021-02-01 22:32:13 -08:00
xray Fix xray fdr mode to allow multiple flushes 2021-02-10 12:57:24 +11:00
.clang-format [tests][sanitizers] Don't reflow comments 2021-08-03 12:54:00 -07:00
.clang-tidy [NFC][compiler-rt] Refine .clang-tidy checks 2020-09-05 15:42:15 -07:00
CMakeLists.txt [Compiler-rt] Distinguish between testing just built runtime libraries and the libraries shipped with the compiler. 2021-05-14 18:07:34 -07:00
lit.common.cfg.py [test] Fix asan/scudo -shared-libsan tests with -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on 2021-09-15 09:07:47 -07:00
lit.common.configured.in [Compiler-rt] Distinguish between testing just built runtime libraries and the libraries shipped with the compiler. 2021-05-14 18:07:34 -07:00