File tree Expand file tree Collapse file tree 3 files changed +5
-136
lines changed
Expand file tree Collapse file tree 3 files changed +5
-136
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,11 @@ function(config_test test tagname opttype)
5555 configure_file (python/test_${test} .py.in
5656 ${CMAKE_CURRENT_BINARY_DIR} /python/${py_file} )
5757 add_lib_unit_test(${MODNAME} )
58- add_python_unit_test("py-${test} -${tagname} " "unittest/python/${py_file} "
59- "unittest" )
58+ set (PYTHON_TEST_NAME "py-${test} -${tagname} " )
59+ add_test (NAME ${PYTHON_TEST_NAME}
60+ COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR} /python/${py_file} " )
61+ compute_pythonpath(ENV_VARIABLES "unittest" )
62+ set_tests_properties (${PYTHON_TEST_NAME} PROPERTIES ENVIRONMENT "${ENV_VARIABLES} " )
6063endfunction ()
6164
6265config_test(variant boost "boost::variant" )
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments