Permalink
Browse files

CMake: use add_test to create a test

This checks the calling from "make tests" to "make test", but lets CMake handle
all the rest.
  • Loading branch information...
DerDakon authored and Rolf Eike Beer committed Oct 20, 2017
1 parent ca7e60e commit b54b843accb97105ae4afaf24136e33bfd1ea9d4
Showing with 3 additions and 5 deletions.
  1. +1 −1 .travis.yml
  2. +2 −4 testing/CMakeLists.txt
View
@@ -19,5 +19,5 @@ script:
- cd build
- cmake -G "Unix Makefiles" -Dbuild_doc=ON -Dbuild_wizard=ON ..
- make
- make tests
- ctest -V
- make docs
View
@@ -1,6 +1,4 @@
add_custom_target(tests
COMMENT "Running doxygen tests..."
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py --all --doxygen ${PROJECT_BINARY_DIR}/bin/doxygen --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing
DEPENDS doxygen
add_test(NAME suite
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py --all --doxygen $<TARGET_FILE:doxygen> --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing
)

0 comments on commit b54b843

Please sign in to comment.