tests: split out reusable test code into a local static library
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 12 Aug 2024 08:22:22 +0000 (10:22 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 13 Aug 2024 08:38:40 +0000 (10:38 +0200)
commite60e38375c7a5b9a0bae99b27e9c5b4d9fe21f27
tree301a01dcfca3cf5214fda6975303aabbc93198b6
parent9fdd6e23faa5e0011d6ee047b25928e8ad4c3320
tests: split out reusable test code into a local static library

In order to allow the upcoming GLib and DBus bindings to reuse the test
code, let's put all common elements into reusable libtool objects and
export the relevant symbols in internal headers.

Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://lore.kernel.org/r/20240812-dbus-v5-1-ead288509217@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
27 files changed:
configure.ac
tests/Makefile.am
tests/gpiod-test-helpers.c [deleted file]
tests/gpiod-test-helpers.h [deleted file]
tests/gpiod-test-sim.c [deleted file]
tests/gpiod-test-sim.h [deleted file]
tests/gpiod-test.c [deleted file]
tests/gpiod-test.h [deleted file]
tests/gpiosim-glib/Makefile.am [new file with mode: 0644]
tests/gpiosim-glib/gpiosim-glib.c [new file with mode: 0644]
tests/gpiosim-glib/gpiosim-glib.h [new file with mode: 0644]
tests/harness/Makefile.am [new file with mode: 0644]
tests/harness/gpiod-test-common.h [new file with mode: 0644]
tests/harness/gpiod-test.c [new file with mode: 0644]
tests/harness/gpiod-test.h [new file with mode: 0644]
tests/helpers.h [new file with mode: 0644]
tests/tests-chip-info.c
tests/tests-chip.c
tests/tests-edge-event.c
tests/tests-info-event.c
tests/tests-kernel-uapi.c
tests/tests-line-config.c
tests/tests-line-info.c
tests/tests-line-request.c
tests/tests-line-settings.c
tests/tests-misc.c
tests/tests-request-config.c