Commit fb83a7ea authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Use patch to disable DNS parser tests.

parent abc33034
......@@ -4,10 +4,16 @@ set(ZDNSPARSER_FILENAME
"${CMAKE_CURRENT_BINARY_DIR}/zdnsparser/src/zdnsparser-build/lib/${CMAKE_STATIC_LIBRARY_PREFIX}zdnsparser${CMAKE_STATIC_LIBRARY_SUFFIX}"
)
# Tests depend on libpcap, disable them.
set(PATCHES
${CMAKE_CURRENT_LIST_DIR}/zdnsparser/disable-tests.patch
)
set(PATCH_COMMAND
sed -i "/^add_subdirectory(test)/d" ${CMAKE_CURRENT_BINARY_DIR}/zdnsparser/src/zdnsparser/CMakeLists.txt
cd ${CMAKE_CURRENT_BINARY_DIR}/zdnsparser/src/zdnsparser
)
foreach (patch ${PATCHES})
set(PATCH_COMMAND ${PATCH_COMMAND} && patch -p1 -i ${patch})
endforeach()
externalproject_add(zdnsparser
GIT_REPOSITORY https://github.com/packetzero/dnsparser
......
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1fa1462..6e9e8d8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,5 +24,4 @@ include(cmake/cxx_flag_overrides.cmake)
# subdirs
add_subdirectory(src)
-add_subdirectory(test)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment