Hi,
I have a strange issue with set_tests_properties() and several ENVIRONMENT
definitions. Only the last one shows up in the generated ctest file.
So this:
add_cmocka_test(testsuite testsuite.c ${CMOCKA_LIBRARY})
set_tests_properties(
testsuite
PROPERTIES
ENVIRONMENT LD_PRELOAD=${CMAKE_BINARY_DIR}/src/libnss_wrapper.so
ENVIRONMENT NSS_WRAPPER_PASSWD=${CMAKE_CURRENT_BINARY_DIR}/passwd
ENVIRONMENT NSS_WRAPPER_GROUP=${CMAKE_CURRENT_BINARY_DIR}/group
ENVIRONMENT NSS_WRAPPER_HOSTS=${CMAKE_CURRENT_BINARY_DIR}/hosts)
results in:
asn@magrathea:~/workspace/projects/nss_wrapper/build> cat
tests/CTestTestfile.cmake
# CMake generated Testfile for
# Source directory: /home/asn/workspace/projects/nss_wrapper/tests
# Build directory: /home/asn/workspace/projects/nss_wrapper/build/tests
#
# This file includes the relevent testing commands required for
# testing this directory and lists subdirectories to be tested as well.
ADD_TEST(testsuite
"/home/asn/workspace/projects/nss_wrapper/build/tests/testsuite")
SET_TESTS_PROPERTIES(testsuite PROPERTIES ENVIRONMENT
"NSS_WRAPPER_GROUP=/home/asn/workspace/projects/nss_wrapper/build/tests/group")
I miss three env variables, so my test fails ...
Should I open a bug or is this knows?
cmake version 2.8.11.1
http://git.cryptomilk.org/projects/nss_wrapper.git/tree/
-- andreas
--
Andreas Schneider GPG-ID: F33E3FC6
www.cryptomilk.org [email protected]
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers