bindings: cxx: Migrate C++ tests to use Catch2 v3
authorKhem Raj <raj.khem@gmail.com>
Fri, 31 May 2024 18:42:23 +0000 (11:42 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 3 Jun 2024 09:36:22 +0000 (11:36 +0200)
commit95a2eb76bf634264e56523d3215d1be6c42761f0
tree7ccd9256655f02c45e105d29fdba739152063a53
parentb569b91ce1e1749a4e4832e636721d3c05712593
bindings: cxx: Migrate C++ tests to use Catch2 v3

Catch2 v3.x has API changes which needs to be addressed
in the tests themselves, hence this changeset is to fix
those.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Link: https://lore.kernel.org/r/20240531184223.3949069-1-raj.khem@gmail.com
[Bartosz: added a version requirement (>= 3.0) for catch2 to configure.ac]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
16 files changed:
TODO
bindings/cxx/tests/Makefile.am
bindings/cxx/tests/gpiod-cxx-test-main.cpp
bindings/cxx/tests/helpers.hpp
bindings/cxx/tests/tests-chip-info.cpp
bindings/cxx/tests/tests-chip.cpp
bindings/cxx/tests/tests-edge-event.cpp
bindings/cxx/tests/tests-info-event.cpp
bindings/cxx/tests/tests-line-config.cpp
bindings/cxx/tests/tests-line-info.cpp
bindings/cxx/tests/tests-line-request.cpp
bindings/cxx/tests/tests-line-settings.cpp
bindings/cxx/tests/tests-line.cpp
bindings/cxx/tests/tests-misc.cpp
bindings/cxx/tests/tests-request-config.cpp
configure.ac