]> granicus.if.org Git - graphviz/commit
add optional ctest & catch2 based test infrastructure
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 5 Jul 2021 09:44:15 +0000 (11:44 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 7 Jul 2021 04:53:27 +0000 (06:53 +0200)
commita9daedd8bee1b5620a933b612c3335b90bde263d
tree87d33a30848d3ee8b86bacdcd4fd04d7a84a77a4
parent89a3b928083126342707ed78d23158513bbbdceb
add optional ctest & catch2 based test infrastructure

This commit adds a CMakeLists.txt in the tests directory containing
the foundation for easily creating new test executables. It includes
creation of a shared library that the individual test executables can
be linked to, allowing them to be as small as possible.

The tests are optional and can be enabled with the CMake option
with_cxx_tests.

Also added is a first simple test case that always passes to show how
to create test cases.
CMakeLists.txt
tests/CMakeLists.txt [new file with mode: 0644]
tests/catch2_main.cpp [new file with mode: 0644]
tests/test_simple.cpp [new file with mode: 0644]