From: Kostya Serebryany Date: Thu, 15 Sep 2016 05:17:39 +0000 (+0000) Subject: [libFuzzer] move the AFL driver build rule test into the uninstrumented dir X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f6d6753de851271c1676d66e7066fc0e45f9cdf;p=llvm [libFuzzer] move the AFL driver build rule test into the uninstrumented dir git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281583 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/test/CMakeLists.txt b/lib/Fuzzer/test/CMakeLists.txt index 1cc02d24272..4df13ad82f3 100644 --- a/lib/Fuzzer/test/CMakeLists.txt +++ b/lib/Fuzzer/test/CMakeLists.txt @@ -119,18 +119,6 @@ foreach(Test ${Tests}) add_libfuzzer_test(${Test} SOURCES ${Test}.cpp) endforeach() -############################################################################### -# AFL Driver test -############################################################################### - -add_executable(AFLDriverTest - AFLDriverTest.cpp ../afl/afl_driver.cpp) - -set_target_properties(AFLDriverTest - PROPERTIES RUNTIME_OUTPUT_DIRECTORY - "${CMAKE_BINARY_DIR}/lib/Fuzzer/test" - ) -set(TestBinaries ${TestBinaries} AFLDriverTest) ############################################################################### # Unit tests diff --git a/lib/Fuzzer/test/no-coverage/CMakeLists.txt b/lib/Fuzzer/test/no-coverage/CMakeLists.txt index 1dc7d15926c..07353a5c770 100644 --- a/lib/Fuzzer/test/no-coverage/CMakeLists.txt +++ b/lib/Fuzzer/test/no-coverage/CMakeLists.txt @@ -12,5 +12,18 @@ foreach(Test ${NoCoverageTests}) add_libfuzzer_test(${Test}-NoCoverage SOURCES ../${Test}.cpp) endforeach() + +############################################################################### +# AFL Driver test +############################################################################### + +add_executable(AFLDriverTest + ../AFLDriverTest.cpp ../../afl/afl_driver.cpp) + +set_target_properties(AFLDriverTest + PROPERTIES RUNTIME_OUTPUT_DIRECTORY + "${CMAKE_BINARY_DIR}/lib/Fuzzer/test" + ) + # Propagate value into parent directory set(TestBinaries ${TestBinaries} PARENT_SCOPE)