summaryrefslogtreecommitdiff
path: root/net-firewall/bpfilter/files/bpfilter-0.6.0-no-coverage.patch
blob: 5cc8a4821bab6c9d7bc85ac25a09ba5548445a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index b79820c..8e04af5 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -36,7 +36,6 @@
 #]]
 
 find_package(Doxygen REQUIRED)
-find_program(GENHTML_BIN genhtml REQUIRED)
 find_program(SPHINX_BIN sphinx-build REQUIRED)
 
 file(GLOB_RECURSE bf_srcs
@@ -114,10 +113,6 @@ add_custom_command(
 	# Update the modification time of the documentation's index, so the
 	# benchmark report will be generated (as external/benchmarks/index.html is
 	# now out-of-date).
-	COMMAND
-		${CMAKE_COMMAND}
-			-E touch
-			${CMAKE_CURRENT_BINARY_DIR}/html/external/benchmarks/index.html
 	DEPENDS
 		${CMAKE_CURRENT_BINARY_DIR}/conf.py
 		${CMAKE_CURRENT_BINARY_DIR}/xml/index.xml
@@ -126,39 +121,3 @@ add_custom_command(
 		${CMAKE_CURRENT_BINARY_DIR}/html/index.html
 	COMMENT "Generating the documentation"
 )
-
-add_custom_command(
-	COMMAND
-		${CMAKE_CURRENT_SOURCE_DIR}/benchreport
-			--sources ${CMAKE_SOURCE_DIR}
-			--results ${CMAKE_BINARY_DIR}/output/benchmarks
-			--template ${CMAKE_CURRENT_SOURCE_DIR}/benchmarks.html.template
-			--output ${CMAKE_CURRENT_BINARY_DIR}/html/external/benchmarks/index.html
-	DEPENDS
-		${CMAKE_CURRENT_SOURCE_DIR}/benchreport
-		${CMAKE_CURRENT_BINARY_DIR}/html/index.html
-		${CMAKE_CURRENT_SOURCE_DIR}/benchmarks.html.template
-	OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/external/benchmarks/index.html
-	COMMENT "Generate the benchmarks summary"
-)
-
-# covreport should not depend on lcov.out: it should generate a coverage report
-# if it exists, or skip the report generation if it doesn't.
-add_custom_command(
-	COMMAND
-		${CMAKE_CURRENT_SOURCE_DIR}/covreport
-			--genhtml ${GENHTML_BIN}
-			--tracefile ${CMAKE_BINARY_DIR}/output/tests/lcov.out
-			--output ${CMAKE_CURRENT_BINARY_DIR}/html/external/coverage
-	DEPENDS
-		${CMAKE_CURRENT_SOURCE_DIR}/covreport
-		${CMAKE_CURRENT_BINARY_DIR}/html/index.html
-	OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/external/coverage/index.html
-	COMMENT "Generate the coverage report"
-)
-
-add_custom_target(doc
-	DEPENDS
-		${CMAKE_CURRENT_BINARY_DIR}/html/external/benchmarks/index.html
-		${CMAKE_CURRENT_BINARY_DIR}/html/external/coverage/index.html
-)
diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt
index 074a3c3..d09def9 100644
--- a/tests/unit/CMakeLists.txt
+++ b/tests/unit/CMakeLists.txt
@@ -203,7 +203,7 @@ add_custom_target(unit
     COMMENT "Running unit tests"
 )
 
-if (NOT ${NO_DOCS})
+if (FALSE)
     include(ProcessorCount)
     find_program(LCOV_BIN lcov REQUIRED)