aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: c03af4c438cfdc2d428af27e7374ec619a8d9a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AM_CPPFLAGS = $(GTEST_CPPFLAGS) $(INDICATOR_CFLAGS) -I${top_srcdir}/src -Wall -Werror
AM_CXXFLAGS = $(GTEST_CXXFLAGS)

check_PROGRAMS = test-service
test_service_SOURCES = test-service.cc
test_service_LDADD = $(TEST_SERVICE_LIBS) libgtest.a
test_service_CPPFLAGS = $(TEST_SERVICE_CFLAGS) $(AM_CPPFLAGS)

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

check_SCRIPTS = test-service-runner.sh
test-service-runner.sh: Makefile.am
	@echo "#!/bin/sh" > $@
	@echo $(top_builddir)/tests/test-service $(top_builddir)/src/indicator-session-service$(EXEEXT) 2\>/dev/null >> $@
	@chmod +x $@

TESTS = ${check_SCRIPTS}