I have project in which I want to use check library for unit testing.
My current project is using CMake and has following structure:
. ├── CMakeLists.txt ├── COPYING ├── ChangeLog ├── README ├── src │ ├── core │ │ ├── CMakeLists.txt │ │ └── main.c │ ├── core-test │ │ ├── CMakeLists.txt │ │ └── main.c │ └── scrypt └── doc └── protocol.txt
In core-test
I have unit tests for core
module. In scrypt-test
I will have tests for scrypt
module and so on.
Does using check
with CTest make sense?
If yes: how do I connect unit test that use check
to CMake/CTest project? Do I need additional configuration for CTest to interpret results from check
-enabled executables?