Commit 8679221d authored by Baptiste Esteban's avatar Baptiste Esteban
Browse files

Add dependency to build-test and label it UnitTests

parent 6dfea59b
Pipeline #25613 failed with stages
in 14 minutes and 2 seconds
......@@ -8,6 +8,7 @@ pybind11_add_module(pylena_test pylena_test.cpp
${PYTHON_PYLENE_SRC}/core/numpy_format.cpp)
target_link_libraries(pylena_test PRIVATE Pylene ImagePath)
target_include_directories(pylena_test PRIVATE ${CMAKE_SOURCE_DIR}/pylene-python/include)
add_dependencies(build-tests pylena_test)
function(add_python_test filename)
file(COPY ${filename} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
......@@ -18,4 +19,5 @@ add_python_test(test_pylena_numpy.py)
add_test(NAME test_python
COMMAND ${PYTHON_EXECUTABLE} -m unittest discover
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
\ No newline at end of file
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set_tests_properties(test_python PROPERTIES LABELS UnitTests)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment