File: use-system-libevdev-for-tests.patch

package info (click to toggle)
libevdev 1.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,516 kB
  • ctags: 1,563
  • sloc: sh: 14,301; ansic: 7,744; makefile: 179; python: 163
file content (55 lines) | stat: -rw-r--r-- 1,772 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Description: Enforce the use of the installed libevdev for tests
Author: Stephen Kitt <skitt@debian.org>

Note that this is only intended for running the autopkgtest
test-suite; if used for the build it requires libevdev-dev to be
installed...

--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -6,14 +6,6 @@
 
 TESTS = $(run_tests)
 
-libevdev_sources = $(top_srcdir)/libevdev/libevdev.c \
-		   $(top_srcdir)/libevdev/libevdev.h \
-		   $(top_srcdir)/libevdev/libevdev-names.c \
-		   $(top_srcdir)/libevdev/libevdev-uinput.h \
-		   $(top_srcdir)/libevdev/libevdev-uinput.c \
-		   $(top_srcdir)/libevdev/libevdev-uinput-int.h \
-		   $(top_srcdir)/libevdev/libevdev-util.h \
-		   $(top_srcdir)/libevdev/libevdev-int.h
 common_sources = $(libevdev_sources) \
 		 test-common-uinput.c \
 		 test-common-uinput.h \
@@ -21,7 +13,7 @@
 		 test-common.h
 
 # include builddir for event-names.h
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/libevdev $(CHECK_CFLAGS) $(GCOV_CFLAGS)
+AM_CPPFLAGS = $(CHECK_CFLAGS) $(GCOV_CFLAGS)
 
 test_libevdev_SOURCES = \
 			test-main.c \
@@ -34,19 +26,17 @@
 			test-uinput.c \
 			$(common_sources)
 
-test_libevdev_LDADD =  $(CHECK_LIBS) $(GCOV_LDFLAGS)
+test_libevdev_LDADD =  $(CHECK_LIBS) $(GCOV_LDFLAGS) -levdev
 
 test_compile_pedantic_SOURCES = test-compile-pedantic.c
 test_compile_pedantic_CFLAGS = $(AM_CPPFLAGS) -pedantic -Werror -std=c90
 
 test_link_SOURCES = test-link.c
-test_link_CFLAGS = -I$(top_srcdir)
-test_link_LDADD = $(top_builddir)/libevdev/libevdev.la
+test_link_LDADD = -levdev
 
 test_kernel_SOURCES = \
 		      test-kernel.c \
 		      $(common_sources)
-test_kernel_CFLAGS = -I$(top_srcdir)
 test_kernel_LDADD = \
 		    $(CHECK_LIBS) \
 		    $(top_builddir)/libevdev/libevdev.la