Skip to content

Commit

Permalink
cmake: Use add_test, so tests are compatible with ctest
Browse files Browse the repository at this point in the history
Only for clazy plugin for now. Debugging why clazy-standalone's
tests are failing.
  • Loading branch information
Sergio Martins committed Jul 18, 2021
1 parent 697faae commit bd2ef80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -38,3 +38,4 @@ checks.json.h
.cmake
file.hh.gch
/build-*
*.o.tmp
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -337,4 +337,11 @@ file(READ checks.json SUPPORTED_CHECKS_JSON_STR)
to_raw_string_literal(${SUPPORTED_CHECKS_JSON_STR} SUPPORTED_CHECKS_JSON_STR)
configure_file(checks.json.h.in checks.json.h)

enable_testing()

# Tests for the clazy clang plugin
add_test(NAME clazy-plugin
COMMAND python3 run_tests.py --no-standalone
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests/)

install(FILES org.kde.clazy.metainfo.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo)

0 comments on commit bd2ef80

Please sign in to comment.