mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
[libFuzzer] add a test that is built with -fsanitize-coverage=trace-bb
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254484 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0445c4d68b
commit
569415a25b
@ -38,6 +38,9 @@ set(UninstrumentedTests
|
||||
UninstrumentedTest
|
||||
)
|
||||
|
||||
set(TraceBBTests
|
||||
SimpleTest
|
||||
)
|
||||
|
||||
set(TestBinaries)
|
||||
|
||||
@ -99,6 +102,11 @@ foreach(Test ${UninstrumentedTests})
|
||||
set(TestBinaries ${TestBinaries} LLVMFuzzer-${Test}-Uninstrumented)
|
||||
endforeach()
|
||||
|
||||
add_subdirectory(trace-bb)
|
||||
|
||||
foreach(Test ${TraceBBTests})
|
||||
set(TestBinaries ${TestBinaries} LLVMFuzzer-${Test}-TraceBB)
|
||||
endforeach()
|
||||
|
||||
set_target_properties(${TestBinaries}
|
||||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
14
lib/Fuzzer/test/trace-bb/CMakeLists.txt
Normal file
14
lib/Fuzzer/test/trace-bb/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# These tests are not instrumented with coverage.
|
||||
|
||||
set(CMAKE_CXX_FLAGS_RELEASE
|
||||
"${LIBFUZZER_FLAGS_BASE} -fsanitize-coverage=edge,trace-bb")
|
||||
|
||||
foreach(Test ${TraceBBTests})
|
||||
add_executable(LLVMFuzzer-${Test}-TraceBB
|
||||
../${Test}.cpp
|
||||
)
|
||||
target_link_libraries(LLVMFuzzer-${Test}-TraceBB
|
||||
LLVMFuzzer
|
||||
)
|
||||
endforeach()
|
||||
|
Loading…
Reference in New Issue
Block a user