aboutsummaryrefslogtreecommitdiff
path: root/src/testspdy/Makefile.am
blob: 712ea0207d4d7379625b76dcefed448e259ed031 (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
SUBDIRS  = .

AM_CFLAGS = -DDATA_DIR=\"$(top_srcdir)/src/datadir/\"

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

if USE_PRIVATE_PLIBC_H
 PLIBC_INCLUDE = -I$(top_srcdir)/src/include/plibc
endif

AM_CPPFLAGS = \
  $(PLIBC_INCLUDE) \
 -I$(top_srcdir) \
 -I$(top_srcdir)/src/include \
 -I$(top_srcdir)/src/applicationlayer \
$(LIBCURL_CPPFLAGS)

if !HAVE_W32
PERF_GET_CONCURRENT=perf_get_concurrent
endif

check_PROGRAMS = \
  test_daemon_start_stop \
  test_daemon_start_stop_many \
  test_struct_namevalue \
  test_new_connection \
  test_request_response \
  test_notls \
  test_request_response_with_callback \
  test_requests_with_assets \
  test_misc \
  test_session_timeout

TESTS = $(check_PROGRAMS)

SPDY_SOURCES= \
 common.h common.c

SPDY_LDADD=  \
 $(top_builddir)/src/microspdy/libmicrospdy.la \
 -lssl \
 -lcrypto \
 -lz \
 -ldl

test_daemon_start_stop_SOURCES = \
 test_daemon_start_stop.c \
 $(SPDY_SOURCES) 
test_daemon_start_stop_LDADD =  $(SPDY_LDADD)

test_daemon_start_stop_many_SOURCES = \
 test_daemon_start_stop_many.c  \
 $(SPDY_SOURCES) 
test_daemon_start_stop_many_LDADD = $(SPDY_LDADD)

test_struct_namevalue_SOURCES = \
 test_struct_namevalue.c  \
 $(SPDY_SOURCES) 
test_struct_namevalue_LDADD = $(SPDY_LDADD)

test_new_connection_SOURCES = \
 test_new_connection.c  \
 $(SPDY_SOURCES) 
test_new_connection_LDADD = $(SPDY_LDADD) \
 -lspdylay

test_request_response_SOURCES = \
 test_request_response.c  \
 $(SPDY_SOURCES) 
test_request_response_LDADD = $(SPDY_LDADD) \
 -lspdylay

test_notls_SOURCES = \
 test_notls.c  \
 $(SPDY_SOURCES) 
test_notls_LDADD = $(SPDY_LDADD) \
 -lspdylay

test_request_response_with_callback_SOURCES = \
 test_request_response_with_callback.c  \
 $(SPDY_SOURCES) 
test_request_response_with_callback_LDADD = $(SPDY_LDADD)

test_requests_with_assets_SOURCES = \
 test_requests_with_assets.c  \
 $(SPDY_SOURCES) 
test_requests_with_assets_LDADD = $(SPDY_LDADD)

test_misc_SOURCES = \
 test_misc.c  \
 $(SPDY_SOURCES) 
test_misc_LDADD = $(SPDY_LDADD)

test_session_timeout_SOURCES = \
 test_session_timeout.c  \
 $(SPDY_SOURCES) 
test_session_timeout_LDADD = $(SPDY_LDADD)