aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/Makefile.am
blob: b929995d94093d15fbb87042ceaefc5ac79becba (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
SUBDIRS = .

if USE_COVERAGE
  AM_CFLAGS = -fprofile-arcs -ftest-coverage
endif

AM_CPPFLAGS = \
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/daemon/https \
-I$(top_srcdir)/src/daemon/https/tls \
-I$(top_srcdir)/src/daemon/https/lgl \
-I$(top_srcdir)/src/daemon/https/x509 \
-I$(top_srcdir)/src/daemon \
$(LIBCURL_CPPFLAGS)

check_PROGRAMS = \
  tls_daemon_options_test \
  tls_authentication_test \
  mhds_multi_daemon_test \
  mhds_session_info_test

if MHD_DEBUG_TLS
  check_PROGRAMS += \
  tls_session_time_out_test \
  tls_cipher_change_test \
  tls_alert_test
endif  

EXTRA_DIST = cert.pem key.pem tls_test_keys.h

TESTS = $(check_PROGRAMS)

# cURL independent tests
tls_session_time_out_test_SOURCES = \
  tls_session_time_out_test.c
tls_session_time_out_test_LDADD  = \
  $(top_builddir)/src/testcurl/libcurl_version_check.a \
  $(top_builddir)/src/daemon/libmicrohttpd.la

tls_cipher_change_test_SOURCES = \
  tls_cipher_change_test.c
tls_cipher_change_test_LDADD  = \
  $(top_builddir)/src/testcurl/libcurl_version_check.a \
  $(top_builddir)/src/daemon/libmicrohttpd.la

tls_alert_test_SOURCES = \
  tls_alert_test.c
tls_alert_test_LDADD  = \
  $(top_builddir)/src/testcurl/libcurl_version_check.a \
  $(top_builddir)/src/daemon/libmicrohttpd.la

# cURL dependent tests
tls_daemon_options_test_SOURCES = \
  tls_daemon_options_test.c
tls_daemon_options_test_LDADD = \
  $(top_builddir)/src/testcurl/libcurl_version_check.a \
  $(top_builddir)/src/daemon/libmicrohttpd.la \
  @LIBCURL@

tls_authentication_test_SOURCES = \
  tls_authentication_test.c
tls_authentication_test_LDADD  = \
  $(top_builddir)/src/testcurl/libcurl_version_check.a \
  $(top_builddir)/src/daemon/libmicrohttpd.la \
  @LIBCURL@

mhds_session_info_test_SOURCES = \
  mhds_session_info_test.c
mhds_session_info_test_LDADD  = \
  $(top_builddir)/src/testcurl/libcurl_version_check.a \
  $(top_builddir)/src/daemon/libmicrohttpd.la \
  @LIBCURL@

mhds_multi_daemon_test_SOURCES = \
  mhds_multi_daemon_test.c
mhds_multi_daemon_test_LDADD  = \
  $(top_builddir)/src/testcurl/libcurl_version_check.a \
  $(top_builddir)/src/daemon/libmicrohttpd.la \
  @LIBCURL@