diff options
Diffstat (limited to 'src/testzzuf/Makefile.am')
-rw-r--r-- | src/testzzuf/Makefile.am | 121 |
1 files changed, 75 insertions, 46 deletions
diff --git a/src/testzzuf/Makefile.am b/src/testzzuf/Makefile.am index 5c5c00ea..23b96d66 100644 --- a/src/testzzuf/Makefile.am +++ b/src/testzzuf/Makefile.am | |||
@@ -1,17 +1,29 @@ | |||
1 | # This Makefile.am is in the public domain | 1 | # This Makefile.am is in the public domain |
2 | |||
2 | SUBDIRS = . | 3 | SUBDIRS = . |
3 | 4 | ||
5 | # ZZUF_SEED can be redefined to use other initial seeds | ||
6 | # for extended testing. E.g., | ||
7 | # make ZZUF_SEED=1234 check | ||
8 | ZZUF_SEED = 0 | ||
9 | |||
10 | # Additional flags for zzuf | ||
11 | ZZUF_FLAGS = | ||
12 | |||
4 | AM_CPPFLAGS = \ | 13 | AM_CPPFLAGS = \ |
5 | -I$(top_srcdir)/src/include \ | 14 | -I$(top_srcdir)/src/include \ |
6 | -I$(top_srcdir)/src/microhttpd \ | 15 | -I$(top_srcdir)/src/microhttpd \ |
7 | -DMHD_CPU_COUNT=$(CPU_COUNT) \ | 16 | -DMHD_CPU_COUNT=$(CPU_COUNT) \ |
8 | $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) | 17 | $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) |
9 | 18 | ||
10 | AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ | 19 | AM_CFLAGS = $(CFLAGS_ac) |
11 | 20 | ||
12 | AM_LDFLAGS = $(LDFLAGS_ac) | 21 | AM_LDFLAGS = $(LDFLAGS_ac) |
13 | 22 | ||
14 | AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) | 23 | AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) \ |
24 | ZZUF="$(ZZUF)" ; export ZZUF ; \ | ||
25 | ZZUF_SEED="$(ZZUF_SEED)" ; export ZZUF_SEED ; \ | ||
26 | ZZUF_FLAGS="$(ZZUF_FLAGS)" ; export ZZUF_FLAGS ; | ||
15 | 27 | ||
16 | if USE_COVERAGE | 28 | if USE_COVERAGE |
17 | AM_CFLAGS += -fprofile-arcs -ftest-coverage | 29 | AM_CFLAGS += -fprofile-arcs -ftest-coverage |
@@ -25,11 +37,6 @@ $(top_builddir)/src/microhttpd/libmicrohttpd.la: $(top_builddir)/src/microhttpd/ | |||
25 | @echo ' cd $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la'; \ | 37 | @echo ' cd $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la'; \ |
26 | $(am__cd) $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la | 38 | $(am__cd) $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la |
27 | 39 | ||
28 | EXTRA_DIST = README socat.c | ||
29 | |||
30 | THREAD_ONLY_TESTS = \ | ||
31 | test_long_header | ||
32 | |||
33 | check_PROGRAMS = \ | 40 | check_PROGRAMS = \ |
34 | test_get \ | 41 | test_get \ |
35 | test_get_chunked \ | 42 | test_get_chunked \ |
@@ -38,64 +45,86 @@ check_PROGRAMS = \ | |||
38 | test_put \ | 45 | test_put \ |
39 | test_put_chunked \ | 46 | test_put_chunked \ |
40 | test_put_large \ | 47 | test_put_large \ |
41 | test_get11 \ | 48 | test_get_long_uri \ |
42 | test_post11 \ | 49 | test_get_long_header \ |
43 | test_post_form11 \ | 50 | test_get_close \ |
44 | test_put11 \ | 51 | test_get_chunked_close \ |
45 | test_put_large11 | 52 | test_post_close \ |
53 | test_post_form_close \ | ||
54 | test_put_close \ | ||
55 | test_put_chunked_close \ | ||
56 | test_put_large_close \ | ||
57 | test_get_long_uri_close \ | ||
58 | test_get_long_header_close \ | ||
59 | test_get10 \ | ||
60 | test_get_chunked10 \ | ||
61 | test_post10 \ | ||
62 | test_post_form10 \ | ||
63 | test_put10 \ | ||
64 | test_put_large10 \ | ||
65 | test_get_long_uri10 \ | ||
66 | test_get_long_header10 | ||
46 | 67 | ||
47 | .NOTPARALLEL: | 68 | .NOTPARALLEL: |
48 | 69 | ||
49 | 70 | ||
50 | if USE_POSIX_THREADS | 71 | TESTS = $(check_PROGRAMS) |
51 | check_PROGRAMS += \ | ||
52 | $(THREAD_ONLY_TESTS) | ||
53 | endif | ||
54 | if USE_W32_THREADS | ||
55 | check_PROGRAMS += \ | ||
56 | $(THREAD_ONLY_TESTS) | ||
57 | endif | ||
58 | 72 | ||
73 | dist_check_SCRIPTS = zzuf_test_runner.sh | ||
59 | 74 | ||
60 | TESTS = $(check_PROGRAMS) | 75 | LOG_COMPILER = @SHELL@ $(srcdir)/zzuf_test_runner.sh |
76 | |||
77 | tests_common_sources = mhd_debug_funcs.h mhd_debug_funcs.c | ||
61 | 78 | ||
62 | test_get_SOURCES = \ | 79 | test_get_SOURCES = \ |
63 | test_get.c | 80 | test_get.c $(tests_common_sources) |
81 | |||
82 | test_get_chunked_SOURCES = $(test_get_SOURCES) | ||
83 | |||
84 | test_post_SOURCES = $(test_get_SOURCES) | ||
85 | |||
86 | test_post_form_SOURCES = $(test_get_SOURCES) | ||
87 | |||
88 | test_put_SOURCES = $(test_get_SOURCES) | ||
89 | |||
90 | test_put_chunked_SOURCES = $(test_get_SOURCES) | ||
91 | |||
92 | test_put_large_SOURCES = $(test_get_SOURCES) | ||
93 | |||
94 | test_get_long_uri_SOURCES = $(test_get_SOURCES) | ||
95 | |||
96 | test_get_long_header_SOURCES = $(test_get_SOURCES) | ||
97 | |||
98 | test_get_close_SOURCES = $(test_get_SOURCES) | ||
99 | |||
100 | test_get_chunked_close_SOURCES = $(test_get_chunked_SOURCES) | ||
101 | |||
102 | test_post_close_SOURCES = $(test_post_SOURCES) | ||
64 | 103 | ||
65 | test_get_chunked_SOURCES = \ | 104 | test_post_form_close_SOURCES = $(test_post_form_SOURCES) |
66 | test_get_chunked.c | ||
67 | 105 | ||
68 | test_post_SOURCES = \ | 106 | test_put_close_SOURCES = $(test_put_SOURCES) |
69 | test_post.c | ||
70 | 107 | ||
71 | test_post_form_SOURCES = \ | 108 | test_put_chunked_close_SOURCES = $(test_put_chunked_SOURCES) |
72 | test_post_form.c | ||
73 | 109 | ||
74 | test_put_SOURCES = \ | 110 | test_put_large_close_SOURCES = $(test_put_large_SOURCES) |
75 | test_put.c | ||
76 | 111 | ||
77 | test_put_chunked_SOURCES = \ | 112 | test_get_long_uri_close_SOURCES = $(test_get_long_uri_SOURCES) |
78 | test_put_chunked.c | ||
79 | 113 | ||
80 | test_put_large_SOURCES = \ | 114 | test_get_long_header_close_SOURCES = $(test_get_long_header_SOURCES) |
81 | test_put_large.c | ||
82 | 115 | ||
116 | test_get10_SOURCES = $(test_get_SOURCES) | ||
83 | 117 | ||
118 | test_get_chunked10_SOURCES = $(test_get_chunked_SOURCES) | ||
84 | 119 | ||
85 | test_get11_SOURCES = \ | 120 | test_post10_SOURCES = $(test_post_SOURCES) |
86 | test_get.c | ||
87 | 121 | ||
88 | test_post11_SOURCES = \ | 122 | test_post_form10_SOURCES = $(test_post_form_SOURCES) |
89 | test_post.c | ||
90 | 123 | ||
91 | test_post_form11_SOURCES = \ | 124 | test_put10_SOURCES = $(test_put_SOURCES) |
92 | test_post_form.c | ||
93 | 125 | ||
94 | test_put11_SOURCES = \ | 126 | test_put_large10_SOURCES = $(test_put_large_SOURCES) |
95 | test_put.c | ||
96 | 127 | ||
97 | test_put_large11_SOURCES = \ | 128 | test_get_long_uri10_SOURCES = $(test_get_long_uri_SOURCES) |
98 | test_put_large.c | ||
99 | 129 | ||
100 | test_long_header_SOURCES = \ | 130 | test_get_long_header10_SOURCES = $(test_get_long_header_SOURCES) |
101 | test_long_header.c | ||