aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 071f684029d70c3b5746f59979816e2c3457c88b (plain)
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
TESTS =
CLEANFILES =
BUILT_SOURCES =
check_PROGRAMS =

integrationcheckdir = .
integrationcheck_PROGRAMS =

###
###
###

# stock UMB tests on user-visible strings
include $(srcdir)/Makefile.am.strings

check_LIBRARIES = libgtest.a
nodist_libgtest_a_SOURCES = \
  $(GTEST_SOURCE)/gtest-all.cc \
  $(GTEST_SOURCE)/gtest_main.cc

AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror
AM_CXXFLAGS = $(GTEST_CXXFLAGS)

###
###
###

BUILT_SOURCES += gschemas.compiled
CLEANFILES += gschemas.compiled
gschemas.compiled: Makefile
	$(AM_V_at) cp -f $(top_builddir)/data/*gschema.xml .
	$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --targetdir=. .


integrationcheck:
	./test-service

integrationcheck_PROGRAMS += test-service
test_service_SOURCES = test-service.cc
test_service_LDADD = \
	$(TEST_SERVICE_LIBS) \
	$(XORG_GTEST_LDFLAGS) \
	libgtest.a
test_service_CPPFLAGS = \
	-DSCHEMA_DIR="\"$(top_builddir)/tests/\"" \
	-DINDICATOR_SERVICE_DIR="\"$(abs_builddir)\"" \
	-DINDICATOR_SERVICE_PATH="\"$(top_builddir)/src/indicator-session-service\"" \
	$(TEST_SERVICE_CFLAGS) \
	$(AM_CPPFLAGS)