Commit b4e17650 authored by Wieland Morgenstern's avatar Wieland Morgenstern

CI: run tests w/ ctest

parent efb7f687
......@@ -32,6 +32,7 @@ matrix:
- cd build
- cmake -DCREATE_BOX_PACKAGE=OFF -DGPU_BACKEND_CUDA=OFF -DGPU_BACKEND_OPENCL=ON -DAPPLE_BREW=ON -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 -G Ninja ..
- ninja
- ctest -LE cmd --output-on-failure
- name: CUDA 8 Linux
dist: xenial
services:
......
......@@ -7,3 +7,4 @@ RUN echo ${CUDA_SHORT} > cuda.version
WORKDIR build
RUN cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_PKG=ON -DRTMP_NVENC=OFF -DCUDA_TARGET_ARCH="50" -G Ninja ..
RUN ninja
RUN ctest -LE cmd --output-on-failure
......@@ -9,6 +9,7 @@ function(add_cli_tests TESTS_TO_ADD)
COMMAND "behave" -t=-slow -D "BIN=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" -D GPU=${GPU_BACKEND_DEFAULT} "features/${test}")
set_property(TEST ${test} PROPERTY RUN_SERIAL TRUE)
set_property(TEST ${test} PROPERTY FOLDER "cli tests")
set_property(TEST ${test} PROPERTY LABELS "cmd")
endforeach()
endfunction(add_cli_tests TESTS_TO_ADD)
function(add_slow_cli_tests TESTS_TO_ADD)
......@@ -19,6 +20,7 @@ function(add_slow_cli_tests TESTS_TO_ADD)
COMMAND "behave" -D "BIN=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" -D GPU=${GPU_BACKEND_DEFAULT} "features/${test}")
set_property(TEST ${test} PROPERTY RUN_SERIAL TRUE)
set_property(TEST ${test} PROPERTY FOLDER "cli tests")
set_property(TEST ${test} PROPERTY LABELS "cmd")
endforeach()
endfunction(add_slow_cli_tests TESTS_TO_ADD)
......
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