2019-05-23 08:22:46 +08:00
|
|
|
# Tests the data flow tracer.
|
|
|
|
REQUIRES: linux, x86_64
|
|
|
|
|
2021-06-19 05:10:49 +08:00
|
|
|
# Disabling due to dfs$ prefix to .dfsan suffix change in DFSan.
|
|
|
|
# TODO(kcc): re-enable.
|
|
|
|
RUN: false
|
|
|
|
XFAIL: *
|
|
|
|
|
2019-05-23 08:22:46 +08:00
|
|
|
# Build the tracer and the test.
|
2021-06-19 05:10:49 +08:00
|
|
|
DISABLED: %no_fuzzer_cpp_compiler -c -fno-sanitize=all -fsanitize=dataflow %S/../../lib/fuzzer/dataflow/DataFlow.cpp -o %t-DataFlow.o
|
|
|
|
DISABLED: %no_fuzzer_cpp_compiler -c -fno-sanitize=all -fPIC %S/../../lib/fuzzer/dataflow/DataFlowCallbacks.cpp -o %t-DataFlowCallbacks.o
|
|
|
|
DISABLED: %no_fuzzer_cpp_compiler -fno-sanitize=all -fsanitize=dataflow -fsanitize-coverage=trace-pc-guard,pc-table,bb,trace-cmp %S/OnlySomeBytesTest.cpp %t-DataFlow*.o -o %t-DFT
|
|
|
|
DISABLED: %cpp_compiler %S/OnlySomeBytesTest.cpp -o %t-Fuzz
|
2019-05-23 08:22:46 +08:00
|
|
|
|
|
|
|
# Test that the fork mode can collect and use the DFT
|
2021-06-19 05:10:49 +08:00
|
|
|
DISABLED: rm -rf %t && mkdir %t
|
|
|
|
DISABLED: not %t-Fuzz -collect_data_flow=%t-DFT -use_value_profile=1 -runs=100000000 -fork=20 2> %t/log
|
|
|
|
DISABLED: grep BINGO %t/log
|