aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: e687799083188f88b148de102fd27bf2829606a5 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =

TESTS = \
  test-auth-check \
  test-icaclient-wrapper

check_PROGRAMS = $(TESTS)

##########################
# Google Test Test Suite #
##########################
check_LIBRARIES = libgtest.a

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

AM_CFLAGS = \
	 -Wall \
	 -g

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

libgtest_a_CPPFLAGS = \
	$(GTEST_CPPFLAGS) -w \
	$(AM_CPPFLAGS)
libgtest_a_CXXFLAGS = \
	$(AM_CXXFLAGS)

test_auth_check_SOURCES = \
	test-auth-check.cc

test_auth_check_LDADD = \
	$(top_builddir)/src/pam_ica.la \
	libgtest.a

test_auth_check_CXXFLAGS = \
	$(AM_CXXFLAGS) \
	-I${top_srcdir}/src

test_auth_check_LDFLAGS = \
	-pthread

test_icaclient_wrapper_SOURCES = \
	mock_pam.c \
	mock_guest.c \
	test-icaclient-wrapper.cc

test_icaclient_wrapper_LDADD = \
	$(top_builddir)/src/pam_ica.la \
	libgtest.a

test_icaclient_wrapper_CXXFLAGS = \
	$(AM_CXXFLAGS) \
	-I${top_srcdir}/src

test_icaclient_wrapper_LDFLAGS = \
	-pthread