summaryrefslogtreecommitdiffstats
path: root/testfiles/CMakeLists.txt
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-10-28 10:32:03 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-10-28 10:32:03 +0000
commit15fe5b74c46cbe12da26ef3c5543c5e0bd8d64c1 (patch)
tree07481affb35715fac99c101a33a5a66c1212cbcb /testfiles/CMakeLists.txt
parentPreferences: cleanup (diff)
downloadinkscape-15fe5b74c46cbe12da26ef3c5543c5e0bd8d64c1.tar.gz
inkscape-15fe5b74c46cbe12da26ef3c5543c5e0bd8d64c1.zip
Trying libFuzzer
Diffstat (limited to 'testfiles/CMakeLists.txt')
-rw-r--r--testfiles/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/testfiles/CMakeLists.txt b/testfiles/CMakeLists.txt
index 554ab8fda..5dba0258b 100644
--- a/testfiles/CMakeLists.txt
+++ b/testfiles/CMakeLists.txt
@@ -31,3 +31,11 @@ foreach(source ${TEST_SOURCES})
add_dependencies(tests ${source})
endforeach()
add_subdirectory(rendering_tests)
+
+if(WITH_FUZZ)
+ add_executable(fuzz fuzzer.cpp)
+ target_link_libraries(fuzz inkscape_base -lFuzzer "-fsanitize=address"
+ "-fsanitize-coverage=edge,trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep"
+ "-fno-omit-frame-pointer")
+
+endif()