1# Programs which are written in C, and are test programs, 2# ie they exit with status 0 if some test is verified. 3common_check_programs = \ 4 test-gskbase64 \ 5 test-gskbuffer \ 6 test-gskdate \ 7 test-gskhash \ 8 test-gskhook \ 9 test-concat \ 10 test-debugalloc \ 11 test-dnsrrcache \ 12 test-gsklistmacros \ 13 test-gskmodule \ 14 test-gsktable-file \ 15 test-hangup \ 16 test-http-content \ 17 test-http-header \ 18 test-http-serverclient \ 19 test-io-error \ 20 test-mempool \ 21 test-mime-multipart-decoder \ 22 test-mime-encdec \ 23 test-passfd \ 24 test-prefix-tree \ 25 test-qsortmacro \ 26 test-signal-handling \ 27 test-stream-fd-pipe \ 28 test-wait-source \ 29 test-gskstreamexternal \ 30 test-rbtree-macros \ 31 test-serverclient \ 32 test-store \ 33 test-streamfd-guess-flags \ 34 test-thread-pool \ 35 test-timer \ 36 test-xmlrpc \ 37 test-url \ 38 test-utils \ 39 test-zlib \ 40 test-tree 41 42#### Once we get xml working again, add: test-xml 43 44makecheck_scripts = \ 45 $(srcdir)/test-name-resolver \ 46 $(srcdir)/test-url-download 47 48if HAVE_OPENSSL 49ssl_check_programs = test-ssl 50ssl_tests = 51else 52ssl_check_programs = 53ssl_tests = 54endif 55 56makecheck_programs = \ 57 $(common_check_programs) \ 58 $(ssl_check_programs) 59 60# Programs which are written in C and are intended to explore 61# an area of GSK, however, they are not test programs 62# and will usually print a usage message if run with no arguments. 63diagnostic_programs = \ 64 test-echo \ 65 gsk-hash \ 66 test-gsklog \ 67 get-network-interfaces \ 68 get-process-info \ 69 dns-stress-test \ 70 mk-inputs--gsk-table-test \ 71 name-resolver \ 72 name-resolver-filter \ 73 url-download \ 74 test-http-server \ 75 test-persistent-connection \ 76 test-http-redirect \ 77 test-stdio-rotation \ 78 test-gsktable-helper \ 79 time-0 \ 80 test-zlib-stream \ 81 $(ssl_tests) 82 83# all programs to build. 84check_PROGRAMS = \ 85 $(diagnostic_programs) \ 86 $(makecheck_programs) 87 88noinst_HEADERS = testobject.h 89 90# all programs and scripts to run when 'make check' is run. 91TESTS = $(makecheck_programs) $(makecheck_scripts) 92 93# Extra files which must be copied into the distribution .tar.gz file. 94EXTRA_DIST = $(makecheck_scripts) \ 95client-key.pem client.pem server-key.pem server.pem \ 96make-ssl-pem-files 97 98# --- How to build the programs. --- 99INCLUDES = @GLIB_CFLAGS@ @GSK_DEBUG_CFLAGS@ 100 101# GLIB_LIBS should not be necessary, EXCEPT that 102# on BSD -pthread is lost by libtool. hack it up thusly. 103LDADD = ../libgsk-1.0.la @GLIB_LIBS@ 104 105test_echo_SOURCES = test-echo.c 106test_concat_SOURCES = test-concat.c 107test_debugalloc_SOURCES = test-debugalloc.c 108test_dnsrrcache_SOURCES = test-dnsrrcache.c 109name_resolver_SOURCES = name-resolver.c 110test_tree_SOURCES = test-tree.c 111test_hangup_SOURCES = test-hangup.c 112url_download_SOURCES = url-download.c 113test_stream_fd_pipe_SOURCES = test-stream-fd-pipe.c 114test_http_server_SOURCES = test-http-server.c 115test_http_header_SOURCES = test-http-header.c 116test_http_content_SOURCES = test-http-content.c 117test_http_redirect_SOURCES = test-http-redirect.c 118test_http_serverclient_SOURCES = test-http-serverclient.c 119test_passfd_SOURCES = test-passfd.c 120test_persistent_connection_SOURCES = test-persistent-connection.c 121test_prefix_tree_SOURCES = test-prefix-tree.c 122test_serverclient_SOURCES = test-serverclient.c 123test_gskstreamexternal_SOURCES = test-gskstreamexternal.c 124test_qsortmacro_SOURCES = test-qsortmacro.c 125test_store_SOURCES = test-store.c testobject.c 126test_streamfd_guess_flags_SOURCES = test-streamfd-guess-flags.c 127test_url_SOURCES = test-url.c 128test_utils_SOURCES = test-utils.c 129test_zlib_stream_SOURCES = test-zlib-stream.c 130test_stdio_rotation_SOURCES = test-stdio-rotation.c 131test_gsktable_helper_SOURCES = test-gsktable-helper.c 132time_0_SOURCES = time-0.c 133mk_inputs__gsk_table_test_SOURCES = mk-inputs--gsk-table-test.c 134test_gsktable_file_SOURCES = test-gsktable-file.c 135 136# HACK: print list of undefined functions, useful when writing tons of new code 137missing-refs: 138 $(MAKE) all 2>&1 | grep 'undefined reference' | sed -e 's/.*`//;' -e "s/'.*//" | sort -u 139