aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: a88cea86135e9ea5b701c62577a93c33ff754d4e (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
NULL =

CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =

TESTS =								\
        test-x2go-wrapper					\
        $(NULL)

check_PROGRAMS =						\
        test-x2go-auth						\
        $(TESTS)						\
        $(NULL)

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

AM_CXXFLAGS = $(GTEST_CXXFLAGS)					\
        $(REMOTE_APPS_MANAGER_CFLAGS)				\
        $(NULL)

AM_CFLAGS =							\
        -Wall							\
        -g							\
        $(NULL)

##########################
# Google Test Test Suite #
##########################

check_LIBRARIES = libgtest.a

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

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

##########################
# Wrapper
##########################

test_x2go_wrapper: test-x2go-auth

test_x2go_wrapper_SOURCES =					\
        mock_pam.c mock_pam.h					\
        mock_guest.c mock_guest.h				\
        test-x2go-wrapper.cc					\
        $(NULL)

test_x2go_wrapper_LDADD =					\
        $(top_builddir)/src/libssh.la				\
        libgtest.a						\
        $(NULL)

test_x2go_wrapper_CXXFLAGS =					\
        $(AM_CXXFLAGS)						\
        -DAUTH_CHECK="\"$(abs_builddir)/test-x2go-auth\""	\
        -I${top_srcdir}/src					\
        $(NULL)

test_x2go_wrapper_LDFLAGS =					\
        -pthread						\
        $(NULL)

##########################
# Auth tool
##########################

test_x2go_auth_SOURCES =					\
        test-x2go-auth.c					\
        $(NULL)