mirror of https://github.com/oxen-io/lokinet
parent
d44e7a95a3
commit
11bd776e18
@ -1,38 +0,0 @@
|
|||||||
From: Jason Rhinelander <jason@imaginary.ca>
|
|
||||||
Date: Thu, 25 Jul 2019 18:32:13 -0300
|
|
||||||
Subject: 'make check' runs test suite
|
|
||||||
|
|
||||||
debhelper prefers a make test target, but that target is heavily
|
|
||||||
restricted in cmake; this removes it and adds a check target that works
|
|
||||||
instead to run the test suite in the build.
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 4 ----
|
|
||||||
test/CMakeLists.txt | 3 +++
|
|
||||||
2 files changed, 3 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index 2a8a950..3faea51 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -260,10 +260,6 @@ add_subdirectory(llarp)
|
|
||||||
add_subdirectory(libabyss)
|
|
||||||
add_subdirectory(daemon)
|
|
||||||
|
|
||||||
-if(WITH_TESTS)
|
|
||||||
- enable_testing()
|
|
||||||
-endif()
|
|
||||||
-
|
|
||||||
if (NOT SHADOW)
|
|
||||||
if(WITH_TESTS)
|
|
||||||
add_subdirectory(test)
|
|
||||||
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
|
||||||
index 7dea76f..a8e155e 100644
|
|
||||||
--- a/test/CMakeLists.txt
|
|
||||||
+++ b/test/CMakeLists.txt
|
|
||||||
@@ -72,3 +72,6 @@ endif(NOT WIN32)
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
||||||
target_link_directories(${TEST_EXE} PRIVATE /usr/local/lib)
|
|
||||||
endif()
|
|
||||||
+
|
|
||||||
+add_custom_target(check COMMAND ${TEST_EXE})
|
|
||||||
+
|
|
Loading…
Reference in New Issue