llvm-project/compiler-rt/test/profile/Linux
Roman Lebedev d45054dbd2 [ubsan] Re-commit: lit changes for lld testing, future lto testing.
Summary:
As discussed in https://github.com/google/oss-fuzz/issues/933,
it would be really awesome to be able to use ThinLTO for fuzzing.
However, as @kcc has pointed out, it is currently undefined (untested)
whether the sanitizers actually function properly with LLD and/or LTO.

This patch is inspired by the cfi test, which already do test with LTO
(and/or LLD), since LTO is required for CFI to function.

I started with UBSan, because it's cmakelists / lit.* files appeared
to be the cleanest. This patch adds the infrastructure to easily add
LLD and/or LTO sub-variants of the existing lit test configurations.

Also, this patch adds the LLD flavor, that explicitly does use LLD to link.
The check-ubsan does pass on my machine. And to minimize the [initial]
potential buildbot breakage i have put some restrictions on this flavour.

Please review carefully, i have not worked with lit/sanitizer tests before.

The original attempt, r319525 was reverted in r319526 due
to the failures in compiler-rt standalone builds.

Reviewers: eugenis, vitalybuka

Reviewed By: eugenis

Subscribers: #sanitizers, pcc, kubamracek, mgorny, llvm-commits, mehdi_amini, inglorion, kcc

Differential Revision: https://reviews.llvm.org/D39508

llvm-svn: 319575
2017-12-01 19:36:29 +00:00
..
comdat_rename.test [PGO] Update the test cases after r291588. 2017-01-10 20:07:01 +00:00
counter_promo_for.c [PGO] Implementate profile counter regiser promotion (test case) 2017-06-25 00:27:09 +00:00
counter_promo_nest.c Fix broken test 2017-07-13 00:22:01 +00:00
counter_promo_while.c [PGO] Implementate profile counter regiser promotion (test case) 2017-06-25 00:27:09 +00:00
coverage_ctors.cpp [llvm-cov] Fix compiler-rt tests failing in build bots after rL310827. 2017-08-14 12:43:05 +00:00
coverage_dtor.cpp [llvm-cov] Fix compiler-rt tests failing in build bots after rL310827. 2017-08-14 12:43:05 +00:00
coverage_shared.test
coverage_test.cpp [profile] Update Linux-only tests after r313597 2017-09-19 00:15:18 +00:00
extern_template.test Fix the following tests when running under cross-compilation: 2016-09-23 17:40:40 +00:00
instrprof-alloc.test Minor clean up of profile rt tests 2017-06-09 21:14:19 +00:00
instrprof-basic.c
instrprof-comdat.test [llvm-cov] Fix compiler-rt tests failing in build bots after rL310827. 2017-08-14 12:43:05 +00:00
instrprof-cs.c Fix the following tests when running under cross-compilation: 2016-09-23 17:40:40 +00:00
instrprof-dir.c [PGO] Delay profile dir creation until write 2017-02-14 21:39:55 +00:00
instrprof-dlopen.test
instrprof-dynamic-one-shared.test
instrprof-dynamic-two-shared.test
instrprof-file_ex.test add -f to rm so the test passes the first time it's run the file file is not present 2016-06-06 23:31:58 +00:00
instrprof-merge-vp.c [profile] initialize static pool properly 2016-05-22 16:36:03 +00:00
instrprof-value-prof-warn.test Minor clean up of profile rt tests 2017-06-09 21:14:19 +00:00
lit.local.cfg [ubsan] Re-commit: lit changes for lld testing, future lto testing. 2017-12-01 19:36:29 +00:00