File: enable-tests.patch

package info (click to toggle)
libkdtree%2B%2B 0.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 872 kB
  • sloc: cpp: 2,078; sh: 623; python: 597; makefile: 89
file content (34 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download
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
Description: Enable testing and add test cases
Author: Sebastian Ramacher <sramacher@debian.org>
Origin: vendor
Last-Update: 2026-02-28
Forwarded: https://lists.alioth.debian.org/pipermail/libkdtree-devel/2012-October/000363.html
Forwarded: https://github.com/nvmd/libkdtree/pull/10
Applied-Upstream: https://github.com/nvmd/libkdtree/commit/ab5118c86342d6bb195b4187f61f05911ebc0587

---
 CMakeLists.txt          |    1 +
 examples/CMakeLists.txt |    4 ++++
 2 files changed, 5 insertions(+)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,8 @@
 cmake_minimum_required (VERSION 3.5)
 project (libkdtree CXX)
 
+enable_testing()
+
 option (BUILD_PYTHON_BINDINGS "Build Python bindings (requires SWIG)")
 
 if (WIN32)
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,3 +1,7 @@
 add_executable (test_hayne test_hayne.cpp)
 add_executable (test_kdtree test_kdtree.cpp)
 add_executable (test_find_within_range test_find_within_range.cpp)
+
+add_test(test_hayne test_hayne)
+add_test(test_kdtree test_kdtree)
+add_test(test_find_within_range test_find_within_range)