bindings: cxx: split out catch's main()
authorAlexander Stein <alexander.stein@mailbox.org>
Wed, 7 Aug 2019 19:51:30 +0000 (21:51 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 9 Aug 2019 06:46:07 +0000 (08:46 +0200)
commit2ba7798a7bac4fc8268d34338e2c0988a3c67c59
tree78a97e61e213004faeb1b895f216df4962a988e9
parent1593d8062604b95751ffc833624429760b5fd042
bindings: cxx: split out catch's main()

Compiling the source using CATCH_CONFIG_MAIN to provide main() takes
several seconds, so split it out from any library testing code, so it
really needs to be built once only.

Signed-off-by: Alexander Stein <alexander.stein@mailbox.org>
[Bartosz: added the copyright notice for consistency with other files]
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/cxx/tests/Makefile.am
bindings/cxx/tests/gpiod-cxx-test-main.cpp [new file with mode: 0644]
bindings/cxx/tests/gpiod-cxx-test.cpp