Cppcheck tests don't run as expected
lguyot opened this issue · 1 comments
lguyot commented
Although Cppcheck targets are built and run as expected, the corresponding CMake tests (see CppcheckTargets.cmake) don't.
Precisely, only one class of tests appears as being processed in the console after typing "make test", namely the tests corresponding to the targets in Buildyard/src/Myproject/tests/, but they are not actually executed. For any other target (e.g. Buildyard/src/Myproject/apps/Myapp/main.cpp), the test is missing.
eile commented
Confirmed: add_test adds tests to the current directory, and ctest then only runs tests in tests/...
Working on it.