llvm-project/compiler-rt/lib/xray/tests/unit
Michal Gorny 1e8e4fc834 [xray] [tests] Detect and handle missing LLVMTestingSupport gracefully
Add a code to properly test for presence of LLVMTestingSupport library
when performing a stand-alone build, and skip tests requiring it when
it is not present.  Since the library is not installed, llvm-config
reported empty --libs for it and the tests failed to link with undefined
references.  Skipping the two fdr_* test files is better than failing to
build, and should be good enough until we find a better solution.

NB: both installing LLVMTestingSupport and building it automatically
from within compiler-rt sources are non-trivial.  The former due to
dependency on gtest, the latter due to tight integration with LLVM
source tree.

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

llvm-svn: 349899
2018-12-21 13:37:30 +00:00
..
CMakeLists.txt [xray] [tests] Detect and handle missing LLVMTestingSupport gracefully 2018-12-21 13:37:30 +00:00
allocator_test.cc [XRay] Use preallocated memory for XRay profiling 2018-12-07 06:23:06 +00:00
buffer_queue_test.cc [XRay] Use more portable control block 2018-10-29 02:18:14 +00:00
fdr_controller_test.cc [XRay] Add a test for function id encoding/decoding (NFC) 2018-11-09 07:43:30 +00:00
fdr_log_writer_test.cc [XRay] Fix TSC and atomic custom/typed event accounting 2018-11-01 22:57:50 +00:00
function_call_trie_test.cc Re-land "[XRay] Move-only Allocator, FunctionCallTrie, and Array" 2018-12-07 03:19:13 +00:00
profile_collector_test.cc [XRay] Use preallocated memory for XRay profiling 2018-12-07 06:23:06 +00:00
segmented_array_test.cc [XRay] Use preallocated memory for XRay profiling 2018-12-07 06:23:06 +00:00
test_helpers.cc [XRay] Move buffer extents back to the heap 2018-11-20 01:00:26 +00:00
test_helpers.h [XRay] Fix TSC and atomic custom/typed event accounting 2018-11-01 22:57:50 +00:00
xray_unit_test_main.cc [XRay][compiler-rt] XRay Buffer Queue 2016-12-06 06:24:08 +00:00