aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/Makefile.am
blob: 324076ef02b5f07a1aed65bbaebbff2644c45c4c (plain) (blame)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# This Makefile.am is in the public domain
EMPTY_ITEM =

SUBDIRS = .

@HEAVY_TESTS_NOTPARALLEL@

AM_CPPFLAGS = \
  -I$(top_srcdir)/src/include \
  -I$(top_srcdir)/src/microhttpd \
  -DMHD_CPU_COUNT=$(CPU_COUNT) \
  -DSRCDIR=\"$(srcdir)\" \
  $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS)

AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@

AM_LDFLAGS = $(LDFLAGS_ac)

if USE_COVERAGE
  AM_CFLAGS += --coverage
endif

LDADD = \
  $(top_builddir)/src/microhttpd/libmicrohttpd.la \
  $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@

if HAVE_GNUTLS_SNI
  TEST_HTTPS_SNI = test_https_sni
endif

if HAVE_POSIX_THREADS
HTTPS_PARALLEL_TESTS = \
    test_https_get_parallel \
    test_https_get_parallel_threads
endif

THREAD_ONLY_TESTS = \
  test_tls_options \
  test_tls_authentication \
  $(HTTPS_PARALLEL_TESTS) \
  $(TEST_HTTPS_SNI) \
  test_https_session_info \
  test_https_session_info_append \
  test_https_multi_daemon \
  test_https_get \
  test_empty_response \
  test_https_get_iovec \
  $(EMPTY_ITEM)

if !HAVE_GNUTLS_MTHREAD_BROKEN
THREAD_ONLY_TESTS += \
  test_https_time_out \
  $(EMPTY_ITEM)
endif

check_PROGRAMS = \
  test_https_get_select

if USE_THREADS
check_PROGRAMS += \
  $(THREAD_ONLY_TESTS)
endif

EXTRA_DIST = \
  test-ca.crt test-ca.key \
  mhdhost1.crt mhdhost1.key \
  mhdhost2.crt mhdhost2.key

TESTS = \
  $(check_PROGRAMS)


test_https_time_out_SOURCES = \
  test_https_time_out.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_tls_options_SOURCES = \
  test_tls_options.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_get_parallel_SOURCES = \
  test_https_get_parallel.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c
test_https_get_parallel_CFLAGS = \
  $(AM_CFLAGS) $(PTHREAD_CFLAGS)
test_https_get_parallel_LDADD = \
  $(PTHREAD_LIBS) $(LDADD)

test_empty_response_SOURCES = \
  test_empty_response.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_get_parallel_threads_SOURCES = \
  test_https_get_parallel_threads.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c
test_https_get_parallel_threads_CFLAGS = \
  $(AM_CFLAGS) $(PTHREAD_CFLAGS)
test_https_get_parallel_threads_LDADD = \
  $(PTHREAD_LIBS) $(LDADD)

test_tls_authentication_SOURCES = \
  test_tls_authentication.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_session_info_SOURCES = \
  test_https_session_info.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_session_info_append_SOURCES = $(test_https_session_info_SOURCES)

test_https_multi_daemon_SOURCES = \
  test_https_multi_daemon.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_get_SOURCES = \
  test_https_get.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_get_iovec_SOURCES = \
  test_https_get_iovec.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_sni_SOURCES = \
  test_https_sni.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c

test_https_get_select_SOURCES = \
  test_https_get_select.c \
  tls_test_keys.h \
  tls_test_common.h \
  tls_test_common.c