Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny Ryan
ouinet
Commits
fb83a7ea
Commit
fb83a7ea
authored
Jun 25, 2020
by
Ivan Vilata-i-Balaguer
Browse files
Use patch to disable DNS parser tests.
parent
abc33034
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmake/dependencies/zdnsparser.cmake
View file @
fb83a7ea
...
...
@@ -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
...
...
cmake/dependencies/zdnsparser/disable-tests.patch
0 → 100644
View file @
fb83a7ea
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)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment