[osmium-tool] 83/97: Set MANPATH before running tests.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Tue Jul 21 20:15:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to tag v1.0.0
in repository osmium-tool.
commit 724dd3bab2256bb6aaa4e1c81d3c92d48b8ee97c
Author: Jochen Topf <jochen at topf.org>
Date: Fri Jan 30 16:58:31 2015 +0100
Set MANPATH before running tests.
---
CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b84447..f1850c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -199,7 +199,10 @@ enable_testing()
function(do_test _name _command _regex)
separate_arguments(_command)
add_test(NAME ${_name} COMMAND ${_command})
- set_tests_properties(${_name} PROPERTIES PASS_REGULAR_EXPRESSION ${_regex})
+ set_tests_properties(${_name} PROPERTIES
+ ENVIRONMENT "MANPATH=${PROJECT_BINARY_DIR}/man"
+ PASS_REGULAR_EXPRESSION ${_regex}
+ )
endfunction()
do_test(version "osmium --version" "^osmium version ${OSMIUM_VERSION}\n")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmium-tool.git
More information about the Pkg-grass-devel
mailing list