aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/Makefile.am
blob: d82d04e49d995209c5e0f0119bb1283bea5c1fe0 (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
# This Makefile.am is in the public domain
SUBDIRS  = .

AM_CPPFLAGS = \
  -I$(top_srcdir)/src/include \
  -DMHD_CPU_COUNT=$(CPU_COUNT) \
  $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS)

AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@

AM_LDFLAGS = $(LDFLAGS_ac)

AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)

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

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

EXTRA_DIST = README socat.c

THREAD_ONLY_TESTS = \
  test_long_header

check_PROGRAMS = \
  test_get \
  test_get_chunked \
  test_post \
  test_post_form \
  test_put \
  test_put_chunked \
  test_put_large \
  test_get11 \
  test_post11 \
  test_post_form11 \
  test_put11 \
  test_put_large11

.NOTPARALLEL:


if USE_POSIX_THREADS
check_PROGRAMS += \
  $(THREAD_ONLY_TESTS)
endif
if USE_W32_THREADS
check_PROGRAMS += \
  $(THREAD_ONLY_TESTS)
endif


TESTS = $(check_PROGRAMS)

test_get_SOURCES = \
  test_get.c

test_get_chunked_SOURCES = \
  test_get_chunked.c

test_post_SOURCES = \
  test_post.c

test_post_form_SOURCES = \
  test_post_form.c

test_put_SOURCES = \
  test_put.c

test_put_chunked_SOURCES = \
  test_put_chunked.c

test_put_large_SOURCES = \
  test_put_large.c



test_get11_SOURCES = \
  test_get.c

test_post11_SOURCES = \
  test_post.c

test_post_form11_SOURCES = \
  test_post_form.c

test_put11_SOURCES = \
  test_put.c

test_put_large11_SOURCES = \
  test_put_large.c

test_long_header_SOURCES = \
  test_long_header.c