• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This Makefile.am is in the public domain
2SUBDIRS = .
3
4if USE_COVERAGE
5  AM_CFLAGS = --coverage
6endif
7
8if HAVE_GNUTLS_SNI
9  TEST_HTTPS_SNI = test_https_sni
10endif
11
12if HAVE_POSIX_THREADS
13  HTTPS_PARALLEL_TESTS = test_https_get_parallel \
14  test_https_get_parallel_threads
15endif
16
17CPU_COUNT_DEF = -DCPU_COUNT=$(CPU_COUNT)
18
19AM_CPPFLAGS = \
20  -I$(top_srcdir)/src/include \
21  -I$(top_srcdir)/src/microhttpd \
22  -I$(top_srcdir)/src/platform \
23  $(LIBCURL_CPPFLAGS) $(GNUTLS_CPPFLAGS)
24
25check_PROGRAMS = \
26  test_tls_options \
27  test_tls_authentication \
28  test_https_multi_daemon \
29  test_https_get \
30  $(TEST_HTTPS_SNI) \
31  test_https_get_select \
32  $(HTTPS_PARALLEL_TESTS) \
33  test_https_session_info \
34  test_https_time_out \
35  test_empty_response
36
37EXTRA_DIST = cert.pem key.pem tls_test_keys.h tls_test_common.h \
38  host1.crt host1.key host2.crt host2.key
39
40TESTS = \
41  test_tls_options \
42  test_https_multi_daemon \
43  test_https_get \
44  $(TEST_HTTPS_SNI) \
45  test_https_get_select \
46  $(HTTPS_PARALLEL_TESTS) \
47  test_https_session_info \
48  test_https_time_out \
49  test_tls_authentication \
50  test_empty_response
51
52
53test_https_time_out_SOURCES = \
54  test_https_time_out.c \
55  tls_test_common.c
56test_https_time_out_LDADD  = \
57  $(top_builddir)/src/testcurl/libcurl_version_check.a \
58  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
59  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
60
61test_tls_options_SOURCES = \
62  test_tls_options.c \
63  tls_test_common.c
64test_tls_options_LDADD = \
65  $(top_builddir)/src/testcurl/libcurl_version_check.a \
66  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
67  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
68
69test_https_get_parallel_SOURCES = \
70  test_https_get_parallel.c \
71  tls_test_common.c
72test_https_get_parallel_CPPFLAGS = \
73  $(AM_CPPFLAGS) $(CPU_COUNT_DEF)
74test_https_get_parallel_CFLAGS = \
75  $(PTHREAD_CFLAGS) $(AM_CFLAGS)
76test_https_get_parallel_LDADD = \
77  $(top_builddir)/src/testcurl/libcurl_version_check.a \
78  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
79  $(PTHREAD_LIBS) $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
80
81test_empty_response_SOURCES = \
82  test_empty_response.c \
83  tls_test_common.c
84test_empty_response_LDADD = \
85  $(top_builddir)/src/testcurl/libcurl_version_check.a \
86  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
87  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
88
89test_https_get_parallel_threads_SOURCES = \
90  test_https_get_parallel_threads.c \
91  tls_test_common.c
92test_https_get_parallel_threads_CPPFLAGS = \
93  $(AM_CPPFLAGS) $(CPU_COUNT_DEF)
94test_https_get_parallel_threads_CFLAGS = \
95  $(PTHREAD_CFLAGS) $(AM_CFLAGS)
96test_https_get_parallel_threads_LDADD = \
97  $(top_builddir)/src/testcurl/libcurl_version_check.a \
98  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
99  $(PTHREAD_LIBS) $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
100
101test_tls_authentication_SOURCES = \
102  test_tls_authentication.c \
103  tls_test_common.c
104test_tls_authentication_LDADD  = \
105  $(top_builddir)/src/testcurl/libcurl_version_check.a \
106  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
107  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
108
109test_https_session_info_SOURCES = \
110  test_https_session_info.c \
111  tls_test_common.c
112test_https_session_info_LDADD  = \
113  $(top_builddir)/src/testcurl/libcurl_version_check.a \
114  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
115  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
116
117test_https_multi_daemon_SOURCES = \
118  test_https_multi_daemon.c \
119  tls_test_common.c
120test_https_multi_daemon_LDADD  = \
121  $(top_builddir)/src/testcurl/libcurl_version_check.a \
122  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
123  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
124
125test_https_get_SOURCES = \
126  test_https_get.c \
127  tls_test_common.c
128test_https_get_LDADD  = \
129  $(top_builddir)/src/testcurl/libcurl_version_check.a \
130  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
131  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
132
133if HAVE_GNUTLS_SNI
134test_https_sni_SOURCES = \
135  test_https_sni.c \
136  tls_test_common.c
137test_https_sni_CPPFLAGS = \
138  $(AM_CPPFLAGS) \
139  -DABS_SRCDIR=\"$(abs_srcdir)\"
140test_https_sni_LDADD  = \
141  $(top_builddir)/src/testcurl/libcurl_version_check.a \
142  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
143  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
144endif
145
146test_https_get_select_SOURCES = \
147  test_https_get_select.c \
148  tls_test_common.c
149test_https_get_select_LDADD  = \
150  $(top_builddir)/src/testcurl/libcurl_version_check.a \
151  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
152  $(GNUTLS_LDFLAGS) $(GNUTLS_LIBS) @LIBGCRYPT_LIBS@ @LIBCURL@
153
154