tests: add button test
[platform/upstream/weston.git] / tests / Makefile.am
1 TESTS = surface-test.la client-test.la  \
2         event-test.la text-test.la      \
3         surface-global-test.la          \
4         button-test.la
5
6 TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/weston-test
7
8 export abs_builddir
9
10 AM_CFLAGS = $(GCC_CFLAGS)
11 AM_CPPFLAGS = -I$(top_srcdir)/src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
12
13
14 check_LTLIBRARIES = $(TESTS)
15 check_PROGRAMS = test-client test-text-client
16
17 AM_LDFLAGS = -module -avoid-version -rpath $(libdir)
18
19 test_runner_src = test-runner.c test-runner.h
20
21 surface_global_test_la_SOURCES = surface-global-test.c $(test_runner_src)
22 surface_test_la_SOURCES = surface-test.c $(test_runner_src)
23 client_test_la_SOURCES = client-test.c $(test_runner_src)
24 event_test_la_SOURCES = event-test.c $(test_runner_src)
25 text_test_la_SOURCES = text-test.c $(test_runner_src)
26 button_test_la_SOURCES = button-test.c $(test_runner_src)
27
28 test_client_SOURCES = test-client.c
29 test_client_LDADD = $(SIMPLE_CLIENT_LIBS)
30
31 test_text_client_SOURCES = test-text-client.c  ../clients/text-protocol.c
32 test_text_client_LDADD = $(SIMPLE_CLIENT_LIBS)
33
34 noinst_PROGRAMS = $(setbacklight) matrix-test
35
36 matrix_test_SOURCES =                           \
37         matrix-test.c                           \
38         $(top_srcdir)/src/matrix.c              \
39         $(top_srcdir)/src/matrix.h
40 matrix_test_LDADD = -lm -lrt
41
42 setbacklight_SOURCES =                          \
43         setbacklight.c                          \
44         $(top_srcdir)/src/libbacklight.c        \
45         $(top_srcdir)/src/libbacklight.h
46
47 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
48 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
49
50 if BUILD_SETBACKLIGHT
51 setbacklight = setbacklight
52 endif
53
54 EXTRA_DIST = weston-test