[PATCH libevdev 4/6] test: split some non-root tests into separate binaries

Peter Hutterer peter.hutterer at who-t.net
Fri Jun 15 05:22:51 UTC 2018


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/Makefile.am | 34 +++++++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 5 deletions(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index eb6932b..78950e9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -24,7 +24,13 @@ test_static_link_LDFLAGS = $(AM_LDFLAGS) -static
 check_local_deps =
 
 if ENABLE_RUNTIME_TESTS
-run_tests = test-libevdev test-kernel
+run_tests = \
+	    test-libevdev \
+	    test-kernel \
+	    test-uinput \
+	    test-event-codes \
+	    test-libevdev-internals \
+	    $(NULL)
 
 .NOTPARALLEL:
 
@@ -44,15 +50,33 @@ common_sources = \
 AM_CPPFLAGS += $(CHECK_CFLAGS) $(GCOV_CFLAGS)
 AM_LDFLAGS += $(GCOV_LDFLAGS)
 
-test_libevdev_SOURCES = \
+test_event_codes_SOURCES = \
 			test-main.c \
-			test-event-names.c \
 			test-event-codes.c \
+			test-event-names.c \
+			$(common_sources)
+test_event_codes_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
+test_event_codes_LDFLAGS = -no-install
+
+test_libevdev_internals_SOURCES = \
+			test-main.c \
+			test-int-queue.c \
+			$(common_sources)
+test_libevdev_internals_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
+test_libevdev_internals_LDFLAGS = -no-install
+
+test_uinput_SOURCES = \
+			test-main.c \
+			test-uinput.c \
+			$(common_sources)
+test_uinput_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
+test_uinput_LDFLAGS = -no-install
+
+test_libevdev_SOURCES = \
+			test-main.c \
 			test-libevdev-init.c \
 			test-libevdev-has-event.c \
-			test-int-queue.c \
 			test-libevdev-events.c \
-			test-uinput.c \
 			$(common_sources)
 
 test_libevdev_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
-- 
2.14.4



More information about the Input-tools mailing list