summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch')
-rw-r--r--meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch44
1 files changed, 22 insertions, 22 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch b/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch
index 7c8131b4be..3c87d4d8b3 100644
--- a/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch
+++ b/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch
@@ -1,4 +1,4 @@
1From 0d0155c4dd6c0b3305ea2ab0e10b0f84d024a6e1 Mon Sep 17 00:00:00 2001 1From e5a50db749b2b02e9e0cff9f7b639020e8ac76da Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 6 Nov 2018 13:54:43 +0100 3Date: Tue, 6 Nov 2018 13:54:43 +0100
4Subject: [PATCH] Add WITH_TESTS option 4Subject: [PATCH] Add WITH_TESTS option
@@ -14,36 +14,36 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14 2 files changed, 5 insertions(+) 14 2 files changed, 5 insertions(+)
15 15
16diff --git a/CMakeLists.txt b/CMakeLists.txt 16diff --git a/CMakeLists.txt b/CMakeLists.txt
17index b73a03d7..a9e0200f 100644 17index ce88b9e3..7a99320a 100644
18--- a/CMakeLists.txt 18--- a/CMakeLists.txt
19+++ b/CMakeLists.txt 19+++ b/CMakeLists.txt
20@@ -36,6 +36,7 @@ OPTION(WITH_MAN "Enables hawkey man page generation" ON) 20@@ -32,6 +32,7 @@ option(WITH_HTML "Enables hawkey HTML generation" ON)
21 OPTION(WITH_HTML "Enables hawkey HTML generation" ON) 21 option(WITH_MAN "Enables hawkey man page generation" ON)
22 option(ENABLE_RHSM_SUPPORT "Build with Red Hat Subscription Manager support?" OFF)
23 option(ENABLE_SOLV_URPMREORDER "Build with support for URPM-like solution reordering?" OFF)
24+option(WITH_TESTS "Enables unit tests" ON)
22 25
23 OPTION(WITH_BINDINGS "Enables python/SWIG bindings" ON)
24+OPTION(WITH_TESTS "Enables unit tests" ON)
25 26
26 OPTION (ENABLE_SOLV_URPMREORDER "Build with support for URPM-like solution reordering?" OFF) 27 # load pkg-config first; it's required by other modules
27 option (ENABLE_RHSM_SUPPORT "Build with Red Hat Subscription Manager support?" OFF) 28@@ -158,8 +159,10 @@ endif()
28@@ -122,8 +123,10 @@ IF (WITH_BINDINGS) 29
29 # ADD_SUBDIRECTORY (bindings/perl) 30
30 ADD_SUBDIRECTORY (bindings/python) 31 # build tests
31 ENDIF()
32+IF (WITH_TESTS) 32+IF (WITH_TESTS)
33 ENABLE_TESTING() 33 enable_testing()
34 ADD_SUBDIRECTORY (tests) 34 add_subdirectory(tests)
35+ENDIF() 35+ENDIF()
36 IF (WITH_BINDINGS) 36 if(WITH_BINDINGS)
37 ADD_SUBDIRECTORY (python/hawkey) 37 add_subdirectory(python/hawkey)
38 ADD_SUBDIRECTORY (docs/hawkey) 38 endif()
39diff --git a/python/hawkey/CMakeLists.txt b/python/hawkey/CMakeLists.txt 39diff --git a/python/hawkey/CMakeLists.txt b/python/hawkey/CMakeLists.txt
40index 3c0b3c0c..31466ed9 100644 40index d9645346..84d17204 100644
41--- a/python/hawkey/CMakeLists.txt 41--- a/python/hawkey/CMakeLists.txt
42+++ b/python/hawkey/CMakeLists.txt 42+++ b/python/hawkey/CMakeLists.txt
43@@ -49,4 +49,6 @@ TARGET_LINK_LIBRARIES(_hawkeymodule ${PYTHON_LIBRARY}) 43@@ -50,4 +50,6 @@ target_link_libraries(_hawkeymodule ${PYTHON_LIBRARY})
44 INSTALL(FILES __init__.py DESTINATION ${PYTHON_INSTALL_DIR}/hawkey) 44 install(FILES __init__.py DESTINATION ${PYTHON_INSTALL_DIR}/hawkey)
45 INSTALL(TARGETS _hawkeymodule LIBRARY DESTINATION ${PYTHON_INSTALL_DIR}/hawkey) 45 install(TARGETS _hawkeymodule LIBRARY DESTINATION ${PYTHON_INSTALL_DIR}/hawkey)
46 46
47+IF (WITH_TESTS) 47+IF (WITH_TESTS)
48 ADD_SUBDIRECTORY(tests) 48 add_subdirectory(tests)
49+ENDIF() 49+ENDIF()