[med-svn] [libbpp-seq-omics] 01/01: Fixed unit tests for more portability.

Julien Dutheil jdutheil-guest at moszumanska.debian.org
Mon Jul 17 21:02:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

jdutheil-guest pushed a commit to branch master
in repository libbpp-seq-omics.

commit ba1b73625cbed0badaf8552815a7e983daa4e45a
Author: Julien Y. Dutheil <dutheil at evolbio.mpg.de>
Date:   Mon Jul 17 22:57:56 2017 +0200

    Fixed unit tests for more portability.
---
 debian/changelog                        |  6 ++++++
 debian/patches/fix_test_cmakelist.patch | 16 ++++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 780e9a1..b3ec609 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libbpp-seq-omics (2.3.1-4) unstable; urgency=medium
+
+  * Fixed unit test CMake file for more portability.
+
+ -- Julien Dutheil <julien.dutheil at univ-montp2.fr>  Mon, 17 Jul 2017 22:56:32 +0200
+
 libbpp-seq-omics (2.3.1-3) unstable; urgency=medium
 
   * cmake files belong to /usr/lib/$(DEB_HOST_MULTIARCH)
diff --git a/debian/patches/fix_test_cmakelist.patch b/debian/patches/fix_test_cmakelist.patch
new file mode 100644
index 0000000..5f59d37
--- /dev/null
+++ b/debian/patches/fix_test_cmakelist.patch
@@ -0,0 +1,16 @@
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index adba586..b41c082 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -16,9 +16,11 @@ foreach (test_cpp_file ${test_cpp_files})
+   get_filename_component (test_name ${test_cpp_file} NAME_WE)
+   add_executable (${test_name} ${test_cpp_file})
+   target_link_libraries (${test_name} ${PROJECT_NAME}-shared)
++  set_target_properties (${test_name} PROPERTIES POSITION_INDEPENDENT_CODE TRUE) 
+   add_test (
+     NAME ${test_name}
+     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+     COMMAND ${test_name}
+     )
++  set_tests_properties (${test_name} PROPERTIES TIMEOUT 60000)
+ endforeach (test_cpp_file)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7df8ea5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_test_cmakelist.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libbpp-seq-omics.git



More information about the debian-med-commit mailing list