Makefile.am (3715B)
1 # This Makefile.am is in the public domain 2 3 SUBDIRS = . 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 13 # Additional flags for socat (if socat is used) 14 SOCAT_FLAGS = 15 16 if FORCE_USE_ZZUF_SOCAT 17 TEST_RUNNER_SCRIPT = zzuf_socat_test_runner.sh 18 else 19 TEST_RUNNER_SCRIPT = zzuf_test_runner.sh 20 endif 21 22 AM_CPPFLAGS = \ 23 -I$(top_srcdir)/src/include \ 24 -I$(top_srcdir)/src/microhttpd \ 25 -DMHD_CPU_COUNT=$(CPU_COUNT) \ 26 $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) 27 28 AM_CFLAGS = $(CFLAGS_ac) 29 30 AM_LDFLAGS = $(LDFLAGS_ac) 31 32 AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) \ 33 ZZUF="$(ZZUF)" ; export ZZUF ; \ 34 ZZUF_SEED="$(ZZUF_SEED)" ; export ZZUF_SEED ; \ 35 ZZUF_FLAGS="$(ZZUF_FLAGS)" ; export ZZUF_FLAGS ; \ 36 SOCAT="$(SOCAT)" ; export SOCAT ; \ 37 SOCAT_FLAGS="$(SOCAT_FLAGS)" ; export SOCAT_FLAGS ; 38 39 if USE_COVERAGE 40 AM_CFLAGS += -fprofile-arcs -ftest-coverage 41 endif 42 43 LDADD = \ 44 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 45 @LIBCURL@ 46 47 $(top_builddir)/src/microhttpd/libmicrohttpd.la: $(top_builddir)/src/microhttpd/Makefile 48 @echo ' cd $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la'; \ 49 $(am__cd) $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la 50 51 check_PROGRAMS = \ 52 test_get \ 53 test_get_chunked \ 54 test_post \ 55 test_post_form \ 56 test_put \ 57 test_put_chunked \ 58 test_put_large \ 59 test_get_long_uri \ 60 test_get_long_header \ 61 test_get_close \ 62 test_get_chunked_close \ 63 test_post_close \ 64 test_post_form_close \ 65 test_put_close \ 66 test_put_chunked_close \ 67 test_put_large_close \ 68 test_get_long_uri_close \ 69 test_get_long_header_close \ 70 test_get10 \ 71 test_get_chunked10 \ 72 test_post10 \ 73 test_post_form10 \ 74 test_put10 \ 75 test_put_large10 \ 76 test_get_long_uri10 \ 77 test_get_long_header10 78 79 .NOTPARALLEL: 80 81 82 TESTS = $(check_PROGRAMS) 83 84 dist_check_SCRIPTS = zzuf_test_runner.sh zzuf_socat_test_runner.sh 85 86 LOG_COMPILER = @SHELL@ "$(srcdir)/$(TEST_RUNNER_SCRIPT)" 87 88 if VHEAVY_TESTS 89 check_SCRIPTS = warn_vheavy_use 90 91 .PHONY: warn_vheavy_use 92 endif 93 94 warn_vheavy_use: 95 @echo "NOTICE" ; \ 96 echo "NOTICE: Full heavy tests are enabled. Each test may take up to several minutes to complete." ; \ 97 echo "NOTICE" 98 99 100 tests_common_sources = mhd_debug_funcs.h mhd_debug_funcs.c 101 102 test_get_SOURCES = \ 103 test_get.c $(tests_common_sources) 104 105 test_get_chunked_SOURCES = $(test_get_SOURCES) 106 107 test_post_SOURCES = $(test_get_SOURCES) 108 109 test_post_form_SOURCES = $(test_get_SOURCES) 110 111 test_put_SOURCES = $(test_get_SOURCES) 112 113 test_put_chunked_SOURCES = $(test_get_SOURCES) 114 115 test_put_large_SOURCES = $(test_get_SOURCES) 116 117 test_get_long_uri_SOURCES = $(test_get_SOURCES) 118 119 test_get_long_header_SOURCES = $(test_get_SOURCES) 120 121 test_get_close_SOURCES = $(test_get_SOURCES) 122 123 test_get_chunked_close_SOURCES = $(test_get_chunked_SOURCES) 124 125 test_post_close_SOURCES = $(test_post_SOURCES) 126 127 test_post_form_close_SOURCES = $(test_post_form_SOURCES) 128 129 test_put_close_SOURCES = $(test_put_SOURCES) 130 131 test_put_chunked_close_SOURCES = $(test_put_chunked_SOURCES) 132 133 test_put_large_close_SOURCES = $(test_put_large_SOURCES) 134 135 test_get_long_uri_close_SOURCES = $(test_get_long_uri_SOURCES) 136 137 test_get_long_header_close_SOURCES = $(test_get_long_header_SOURCES) 138 139 test_get10_SOURCES = $(test_get_SOURCES) 140 141 test_get_chunked10_SOURCES = $(test_get_chunked_SOURCES) 142 143 test_post10_SOURCES = $(test_post_SOURCES) 144 145 test_post_form10_SOURCES = $(test_post_form_SOURCES) 146 147 test_put10_SOURCES = $(test_put_SOURCES) 148 149 test_put_large10_SOURCES = $(test_put_large_SOURCES) 150 151 test_get_long_uri10_SOURCES = $(test_get_long_uri_SOURCES) 152 153 test_get_long_header10_SOURCES = $(test_get_long_header_SOURCES)