Commit 113024b0 authored by Wieland Morgenstern's avatar Wieland Morgenstern

CI: run tests w/ ctest

parent 37ead7d4
...@@ -34,6 +34,7 @@ matrix: ...@@ -34,6 +34,7 @@ matrix:
- cd build - cd build
- cmake -DCREATE_BOX_PACKAGE=OFF -DGPU_BACKEND_CUDA=OFF -DGPU_BACKEND_OPENCL=ON -DMACPORTS=OFF -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 -G Ninja .. - cmake -DCREATE_BOX_PACKAGE=OFF -DGPU_BACKEND_CUDA=OFF -DGPU_BACKEND_OPENCL=ON -DMACPORTS=OFF -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 -G Ninja ..
- ninja - ninja
- ctest -LE cmd --output-on-failure
- name: CUDA 8 Linux - name: CUDA 8 Linux
dist: xenial dist: xenial
services: services:
......
...@@ -6,4 +6,5 @@ WORKDIR stitchEm ...@@ -6,4 +6,5 @@ WORKDIR stitchEm
RUN echo ${CUDA_SHORT} > cuda.version RUN echo ${CUDA_SHORT} > cuda.version
WORKDIR build WORKDIR build
RUN cmake -DCMAKE_BUILD_TYPE=Release -DRTMP_NVENC=OFF -DCUDA_TARGET_ARCH="50" -G Ninja .. RUN cmake -DCMAKE_BUILD_TYPE=Release -DRTMP_NVENC=OFF -DCUDA_TARGET_ARCH="50" -G Ninja ..
CMD ninja RUN ninja
RUN ctest -LE cmd --output-on-failure
...@@ -9,6 +9,7 @@ function(add_cli_tests TESTS_TO_ADD) ...@@ -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}") 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 RUN_SERIAL TRUE)
set_property(TEST ${test} PROPERTY FOLDER "cli tests") set_property(TEST ${test} PROPERTY FOLDER "cli tests")
set_property(TEST ${test} PROPERTY LABELS "cmd")
endforeach() endforeach()
endfunction(add_cli_tests TESTS_TO_ADD) endfunction(add_cli_tests TESTS_TO_ADD)
function(add_slow_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) ...@@ -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}") 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 RUN_SERIAL TRUE)
set_property(TEST ${test} PROPERTY FOLDER "cli tests") set_property(TEST ${test} PROPERTY FOLDER "cli tests")
set_property(TEST ${test} PROPERTY LABELS "cmd")
endforeach() endforeach()
endfunction(add_slow_cli_tests TESTS_TO_ADD) 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