1 ## Copyright (C) 1996-2019 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
28 LOADABLE_MODULES_SOURCES = \
34 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO proxyp
35 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO proxyp
39 AUTH_LIBS= auth/libauth.la
40 AUTH_ACL_LIBS= auth/libacls.la
44 SUBDIRS += http ip icmp ident log ipc mgr
45 DIST_SUBDIRS += http ip icmp ident log ipc mgr
54 DIST_SUBDIRS += ssl security
64 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
66 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
75 DIST_SUBDIRS += adaptation
81 $(top_builddir)/lib/libTrie/libTrie.a \
89 DELAY_POOL_ALL_SOURCE = \
115 MessageDelayPools.h \
116 MessageDelayPools.cc \
118 ClientDelayConfig.cc \
121 if ENABLE_DELAY_POOLS
122 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
127 if ENABLE_XPROF_STATS
128 XPROF_STATS_SOURCE = ProfStats.cc
134 HTCPSOURCE = htcp.cc htcp.h
138 LEAKFINDERSOURCE = LeakFinder.cc
144 UNLINKDSOURCE = unlinkd.h unlinkd.cc
147 UNLINKDSOURCE = unlinkd.h
156 if ENABLE_WIN32SPECIFIC
157 WIN32_SOURCE = win32.cc
158 WINSVC_SOURCE = WinSvc.cc
165 IPC_SOURCE = SquidIpc.h ipc_win32.cc
167 IPC_SOURCE = SquidIpc.h ipc.cc
170 noinst_LTLIBRARIES = libsquid.la
177 ## cfgen is used when building squid
178 ## ufsdump is a debug utility, it is possibly useful for end users with cache
179 ## corruption, but at this point we do not install it.
191 cf_gen_SOURCES = cf_gen.cc
192 nodist_cf_gen_HEADER = cf_gen_defines.cci
193 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
195 cf_gen.$(OBJEXT): cf_gen_defines.cci
197 ## cf_gen.cc needs src/cf_gen_defines.cci
198 AM_CPPFLAGS += -I$(top_builddir)/src
201 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
203 # common library for all the binaries and tests. This is kindof a catch all
204 # and smaller libraries split from this are encouraged. Using lt convenience
205 # libraries, dependencies should not be a problem either.
206 libsquid_la_SOURCES = \
217 $(ACL_REGISTRATION_SOURCES) \
229 NeighborTypeDomainList.h \
242 client_side_reply.cc \
243 client_side_reply.h \
244 client_side_request.cc \
245 client_side_request.h \
250 ClientRequestContext.h \
253 clientStreamForward.h \
254 CollapsedForwarding.cc \
255 CollapsedForwarding.h \
256 CollapsingHistory.h \
259 CompletionDispatcher.cc \
260 CompletionDispatcher.h \
274 $(DELAY_POOL_SOURCE) \
295 ExternalACLEntry.cc \
320 HierarchyLogEntry.h \
324 HttpHeaderFieldStat.h \
332 HttpHdrContRange.cc \
339 HttpHeaderFieldInfo.h \
365 $(LEAKFINDERSOURCE) \
390 $(XPROF_STATS_SOURCE) \
395 peer_proxy_negotiate_auth.h \
396 peer_proxy_negotiate_auth.cc \
421 sbuf/StringConvert.h \
461 StoreMetaUnpacker.cc \
462 StoreMetaUnpacker.h \
463 $(STOREMETA_SOURCE) \
467 StoreSwapLogData.cc \
492 XactionInitiator.cc \
496 EXTRA_squid_SOURCES = \
499 $(DELAY_POOL_ALL_SOURCE) \
509 $(WIN32_ALL_SOURCE) \
510 $(LOADABLE_MODULES_SOURCES)
529 CLEANFILES += $(BUILT_SOURCES)
531 nodist_squid_SOURCES = \
541 clients/libclients.la \
542 servers/libservers.la \
544 helper/libhelper.la \
551 DiskIO/libdiskio.la \
554 security/libsecurity.la \
558 proxyp/libproxyp.la \
559 parser/libparser.la \
563 format/libformat.la \
575 $(top_builddir)/lib/libmisccontainers.la \
576 $(top_builddir)/lib/libmiscencoding.la \
577 $(top_builddir)/lib/libmiscutil.la \
586 if ENABLE_LOADABLE_MODULES
587 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
588 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
589 squid_LDFLAGS = -export-dynamic -dlopen force
590 ## when static module linking is supported and enabled:
591 ## squid_LDFLAGS = -all-static -dlopen self
593 ## LTDL headers require their local include path...
594 AM_CPPFLAGS += $(INCLTDL)
597 ## Kerberos libraries require their include path...
598 AM_CPPFLAGS += $(KRB5INCS)
601 unlinkd_SOURCES = unlinkd_daemon.cc
606 recv_announce_SOURCES = recv-announce.cc
608 ## What requires what..
609 ## many things want ACLChecklist.cc
610 ## ACLChecklist.cc wants AuthUserRequest.cc
611 ## ACLChecklist.cc wants AuthScheme.cc
612 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
613 ## ACLProxyAuth.cc wants ACLUserData
614 ## ACLProxyAuth.cc wants ACLRegexData
615 ## cache_cf.cc wants $(AUTH_LIBS)
616 ## cache_cf.cc wants store/libstore.la
617 ## cache_cf.cc wants AnyP::PortCfg
618 ## client_side wants client_db
619 ## client_db wants SNMP_SOURCE
620 ## snmp_core wants ACLStringData
621 ## tools.cc wants ip/libip.la
622 ## client_side.cc wants ip/libip.la
623 ## libbase.la wants cbdata.*
624 ## libbase.la wants MemBuf.*
638 tests/stub_StoreMeta.cc \
639 StoreMetaUnpacker.cc \
646 helper/ChildConfig.h \
647 tests/stub_HelperChildConfig.cc \
674 ufsdump_DEPENDENCIES = \
686 DiskIO/libdiskio.la \
689 nodist_ufsdump_SOURCES = \
694 squid.conf.documented \
719 include $(srcdir)/tests/Stub.list
727 mk-string-arrays.awk \
733 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
735 globals.cc: globals.h mk-globals-c.awk
736 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
738 ## Generate files containing string arrays for various enums....
739 hier_code.cc: hier_code.h mk-string-arrays.awk
740 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
742 err_type.cc: err_type.h mk-string-arrays.awk
743 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
745 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
746 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
748 lookup_t.cc: lookup_t.h mk-string-arrays.awk
749 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
751 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
752 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
754 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
755 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
758 ## other generated files...
760 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
761 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
763 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
764 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
766 ## If autodependency works well this is not needed anymore
767 cache_cf.o: cf_parser.cci
769 # cf_gen builds the configuration files.
770 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
771 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
773 # squid.conf.default is built by cf_gen when making cf_parser.cci
774 squid.conf.default squid.conf.documented: cf_parser.cci
777 cf_parser.cci: cf.data cf_gen$(EXEEXT)
778 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
780 # The cf_gen_defines.cci is auto-generated and does not exist when the
781 # dependencies computed. We need to add its include files (autoconf.h) here
782 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
783 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
786 ## FIXME: generate a sed command file from configure. Then this doesn't
787 ## depend on the Makefile.
788 cf.data: cf.data.pre Makefile
790 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
791 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
792 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
793 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
794 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
795 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
796 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
797 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
798 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
799 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
800 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
801 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
802 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
803 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
804 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
805 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
806 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
807 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
808 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
809 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
810 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
811 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
812 -f $(srcdir)/cf.data.sed \
813 < $(srcdir)/cf.data.pre >$@
815 repl_modules.cc: repl_modules.sh Makefile
816 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
818 include $(top_srcdir)/doc/manuals/Substitute.am
820 squid.8: $(srcdir)/squid.8.in Makefile
821 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
824 EXTRA_DIST += squid.8.in
825 CLEANFILES += squid.8
827 install-data-local: install-sysconfDATA install-dataDATA
828 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
829 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
831 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
832 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
834 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
835 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
837 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
838 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
840 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
841 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
842 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
843 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
844 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
845 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
846 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
848 uninstall-local: squid.conf.default
849 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
850 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
852 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
855 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
856 cp $(top_srcdir)/test-suite/test_tools.cc .
858 # stock tools for unit tests - library independent versions of dlink_list
860 # globals.cc is needed by test_tools.cc.
861 # Neither of these should be disted from here.
867 ### Template for new Unit Test Program
868 ## - copy template below and substitute X for class name
869 ## - place code being tested in _SOURCES
870 ## - place stubs etc. requiredd to link in nodist_*_SOURCES
871 ## - add other component .(h|cc) files needed to link and run tests
873 #check_PROGRAMS += tests/testX
874 #tests_testX_SOURCES= \
877 #nodist_tests_testX_SOURCES= \
879 # tests/stubs_as_needed.cc
881 # $(LIBCPPUNIT_LIBS) \
884 #tests_testX_LDFLAGS = $(LIBADD_DL)
886 ## A demonstration test that does nothing but shows the salient points
887 ## involved in writing tests.
888 check_PROGRAMS += tests/testBoilerplate
889 tests_testBoilerplate_SOURCES = \
890 tests/testBoilerplate.cc \
891 tests/testBoilerplate.h
892 nodist_tests_testBoilerplate_SOURCES = \
894 tests_testBoilerplate_LDADD= \
898 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
900 # Unit Tests are listed below by sub-directory with order matching the SUBDIRS
901 # dependency-based list so that simpler code is tested before more complex code
906 check_PROGRAMS += tests/testMem
907 tests_testMem_SOURCES = \
910 nodist_tests_testMem_SOURCES = \
912 tests_testMem_LDADD = \
914 $(top_builddir)/lib/libmiscutil.la \
918 tests_testMem_LDFLAGS = $(LIBADD_DL)
922 check_PROGRAMS += tests/testCharacterSet
923 tests_testCharacterSet_SOURCES = \
924 tests/testCharacterSet.cc \
925 tests/testCharacterSet.h
926 nodist_tests_testCharacterSet_SOURCES = \
928 tests_testCharacterSet_LDADD = \
933 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
935 check_PROGRAMS += tests/testEnumIterator
936 tests_testEnumIterator_SOURCES = \
937 tests/testEnumIterator.cc \
938 tests/testEnumIterator.h
939 nodist_tests_testEnumIterator_SOURCES = \
941 tests_testEnumIterator_LDADD = \
945 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
947 check_PROGRAMS += tests/testLookupTable
948 tests_testLookupTable_SOURCES = \
949 tests/testLookupTable.cc \
950 tests/testLookupTable.h
951 nodist_tests_testLookupTable_SOURCES = \
953 tests/stub_debug.cc \
954 tests/stub_libmem.cc \
955 tests/stub_SBufDetailedStats.cc
956 tests_testLookupTable_LDADD = \
962 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
964 check_PROGRAMS += tests/testRefCount
965 tests_testRefCount_SOURCES = \
966 tests/testRefCount.cc \
968 nodist_tests_testRefCount_SOURCES = \
970 tests_testRefCount_LDADD = \
974 tests_testRefCount_LDFLAGS = $(LIBADD_DL)
976 check_PROGRAMS += tests/testYesNoNone
977 tests_testYesNoNone_SOURCES = \
978 tests/testYesNoNone.cc \
979 tests/testYesNoNone.h
980 nodist_tests_testYesNoNone_SOURCES = \
982 tests/stub_debug.cc \
984 tests_testYesNoNone_LDADD = \
989 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
993 check_PROGRAMS += tests/testURL
994 tests_testURL_SOURCES = \
997 tests/testUriScheme.cc \
998 tests/testUriScheme.h
999 nodist_tests_testURL_SOURCES = \
1003 tests/stub_access_log.cc \
1004 tests/stub_cbdata.cc \
1005 tests/stub_debug.cc \
1006 tests/stub_HelperChildConfig.cc \
1007 tests/stub_HttpHeader.cc \
1008 tests/stub_HttpRequest.cc \
1009 tests/stub_libhttp.cc \
1010 tests/stub_libmem.cc \
1011 tests/stub_StatHist.cc
1012 tests_testURL_LDADD = \
1014 proxyp/libproxyp.la \
1019 $(top_builddir)/lib/libmiscencoding.la \
1020 $(LIBCPPUNIT_LIBS) \
1023 tests_testURL_LDFLAGS = $(LIBADD_DL)
1027 check_PROGRAMS += tests/testDns
1028 tests_testDns_SOURCES = \
1029 tests/testRFC1035.cc \
1031 nodist_tests_testDns_SOURCES=
1032 tests_testDns_LDADD = \
1034 $(LIBCPPUNIT_LIBS) \
1037 tests_testDns_LDFLAGS = $(LIBADD_DL)
1039 ## Tests of parser/*
1041 check_PROGRAMS += tests/testTokenizer
1042 tests_testTokenizer_SOURCES = \
1043 tests/testTokenizer.cc \
1044 tests/testTokenizer.h
1045 nodist_tests_testTokenizer_SOURCES = \
1046 parser/Tokenizer.h \
1047 tests/stub_debug.cc \
1048 tests/stub_libmem.cc \
1049 tests/stub_StatHist.cc
1050 tests_testTokenizer_LDADD = \
1051 parser/libparser.la \
1054 $(LIBCPPUNIT_LIBS) \
1057 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
1059 ## Tests of sbuf/* and String handling objects
1061 check_PROGRAMS += tests/testSBuf
1062 tests_testSBuf_SOURCES = \
1063 tests/SBufFindTest.cc \
1064 tests/SBufFindTest.h \
1067 nodist_tests_testSBuf_SOURCES = \
1068 tests/stub_debug.cc \
1069 tests/stub_libmem.cc \
1070 tests/stub_StatHist.cc
1071 tests_testSBuf_LDADD = \
1074 $(LIBCPPUNIT_LIBS) \
1077 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
1079 check_PROGRAMS += tests/testSBufList
1080 tests_testSBufList_SOURCES = \
1081 tests/testSBufList.cc \
1082 tests/testSBufList.h
1083 nodist_tests_testSBufList_SOURCES = \
1084 tests/stub_debug.cc \
1085 tests/stub_libmem.cc \
1086 tests/stub_StatHist.cc
1087 tests_testSBufList_LDADD = \
1090 $(LIBCPPUNIT_LIBS) \
1093 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
1095 check_PROGRAMS += tests/testString
1096 tests_testString_SOURCES = \
1097 tests/testString.cc \
1099 nodist_tests_testString_SOURCES = \
1101 tests/stub_SBuf.cc \
1102 tests/stub_debug.cc \
1103 tests/stub_libmem.cc
1104 tests_testString_LDADD = \
1106 $(LIBCPPUNIT_LIBS) \
1109 tests_testString_LDFLAGS = $(LIBADD_DL)
1114 check_PROGRAMS += tests/testRock
1115 tests_testRock_SOURCES = \
1120 CollapsedForwarding.h \
1121 CollapsedForwarding.cc \
1122 tests/stub_CacheDigest.cc \
1139 HttpHeaderFieldStat.h \
1143 HttpHdrContRange.cc \
1146 HttpHdrScTarget.cc \
1149 HttpHeaderFieldInfo.h \
1151 HttpHeaderTools.cc \
1173 tests/stub_StatHist.cc \
1176 tests/stub_stat.cc \
1178 StoreFileSystem.cc \
1180 StoreMetaUnpacker.cc \
1181 $(STOREMETA_SOURCE) \
1182 StoreSwapLogData.cc \
1188 tests/stub_SBufDetailedStats.cc \
1196 tests/testStoreSupport.cc \
1197 tests/testStoreSupport.h \
1199 tests/stub_access_log.cc \
1201 tests/stub_cache_cf.cc \
1202 tests/stub_cache_manager.cc \
1203 tests/stub_client_db.cc \
1204 tests/stub_client_side_request.cc \
1205 tests/stub_debug.cc \
1206 tests/stub_errorpage.cc \
1207 tests/stub_HelperChildConfig.cc \
1208 tests/stub_http.cc \
1209 tests/stub_HttpRequest.cc \
1210 tests/stub_libauth.cc \
1213 tests/stub_ipcache.cc \
1214 tests/stub_libeui.cc \
1215 tests/stub_libformat.cc \
1216 tests/stub_libicmp.cc \
1217 tests/stub_liblog.cc \
1218 tests/stub_libmgr.cc \
1219 tests/stub_libsecurity.cc \
1221 tests/stub_mime.cc \
1222 tests/stub_neighbors.cc \
1223 tests/stub_Port.cc \
1224 tests/stub_pconn.cc \
1225 tests/stub_store_client.cc \
1227 tests/stub_store_rebuild.cc \
1228 tests/stub_store_stats.cc \
1230 tests/stub_tools.cc \
1232 tests/stub_libanyp.cc \
1235 $(DELAY_POOL_SOURCE) \
1237 nodist_tests_testRock_SOURCES = \
1243 tests_testRock_LDADD = \
1245 parser/libparser.la \
1252 DiskIO/libdiskio.la \
1263 $(ADAPTATION_LIBS) \
1265 $(top_builddir)/lib/libmisccontainers.la \
1266 $(top_builddir)/lib/libmiscencoding.la \
1267 $(top_builddir)/lib/libmiscutil.la \
1271 $(LIBCPPUNIT_LIBS) \
1274 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1279 tests/testStoreSupport.cc \
1280 tests/testStoreSupport.h
1284 check_PROGRAMS += tests/testUfs
1285 tests_testUfs_SOURCES = \
1290 tests/stub_cache_manager.cc \
1291 tests/stub_client_db.cc \
1292 tests/stub_CollapsedForwarding.cc \
1293 tests/stub_HelperChildConfig.cc \
1296 tests/stub_ipcache.cc \
1297 tests/stub_libeui.cc \
1298 tests/stub_libicmp.cc \
1299 tests/stub_liblog.cc \
1300 tests/stub_neighbors.cc \
1301 tests/stub_pconn.cc \
1302 tests/stub_Port.cc \
1303 tests/stub_UdsOp.cc \
1305 tests/stub_internal.cc \
1306 tests/stub_libformat.cc \
1307 tests/stub_libsecurity.cc \
1308 tests/stub_stat.cc \
1310 tests/stub_store_rebuild.cc \
1311 tests/stub_store_stats.cc \
1313 tests/stub_fatal.cc \
1339 StoreSwapLogData.cc \
1341 StoreMetaUnpacker.cc \
1342 $(STOREMETA_SOURCE) \
1343 StoreFileSystem.cc \
1350 $(DELAY_POOL_SOURCE) \
1352 tests/stub_CacheDigest.cc \
1364 tests/stub_cache_cf.cc \
1365 tests/stub_helper.cc \
1367 tests/stub_SBufDetailedStats.cc \
1369 tests/stub_debug.cc \
1370 tests/stub_client_side_request.cc \
1371 tests/stub_http.cc \
1372 tests/stub_libauth.cc \
1376 tests/stub_mime.cc \
1377 HttpHeaderFieldInfo.h \
1379 HttpHeaderTools.cc \
1384 HttpHdrContRange.cc \
1385 HttpHeaderFieldStat.h \
1389 HttpHdrScTarget.cc \
1390 tests/stub_libanyp.cc \
1399 tests/stub_errorpage.cc \
1400 tests/stub_HttpRequest.cc \
1402 tests/stub_access_log.cc \
1405 tests/stub_store_client.cc \
1407 tests/stub_tools.cc \
1408 tests/testStoreSupport.cc \
1409 tests/testStoreSupport.h \
1413 nodist_tests_testUfs_SOURCES = \
1419 tests_testUfs_LDADD = \
1421 parser/libparser.la \
1433 DiskIO/libdiskio.la \
1444 $(ADAPTATION_LIBS) \
1446 $(top_builddir)/lib/libmisccontainers.la \
1447 $(top_builddir)/lib/libmiscencoding.la \
1448 $(top_builddir)/lib/libmiscutil.la \
1452 $(LIBCPPUNIT_LIBS) \
1455 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1462 ## Tests of store/* and Store objects
1464 check_PROGRAMS += tests/testStore
1465 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1466 ## first line - what we are testing.
1467 tests_testStore_SOURCES= \
1469 tests/stub_CacheDigest.cc \
1472 tests/stub_CollapsedForwarding.cc \
1475 $(DELAY_POOL_SOURCE) \
1482 tests/stub_fatal.cc \
1485 HttpHeaderFieldStat.h \
1488 HttpHdrContRange.cc \
1491 HttpHdrScTarget.cc \
1492 HttpHeaderFieldInfo.h \
1494 HttpHeaderTools.cc \
1523 tests/stub_StoreMeta.cc \
1524 StoreMetaUnpacker.cc \
1525 StoreSwapLogData.cc \
1528 tests/stub_SBufDetailedStats.cc \
1532 tests/CapturingStoreEntry.h \
1534 tests/stub_access_log.cc \
1537 tests/stub_cache_cf.cc \
1538 tests/stub_cache_manager.cc \
1539 tests/stub_client_side_request.cc \
1540 tests/stub_comm.cc \
1541 tests/stub_debug.cc \
1542 tests/stub_errorpage.cc \
1546 tests/stub_helper.cc \
1547 tests/stub_HelperChildConfig.cc \
1548 tests/stub_http.cc \
1549 tests/stub_libauth.cc \
1550 tests/stub_libeui.cc \
1551 tests/stub_libdiskio.cc \
1552 tests/stub_libformat.cc \
1553 tests/stub_libsecurity.cc \
1554 tests/stub_libsslsquid.cc \
1557 tests/stub_HttpReply.cc \
1558 tests/stub_HttpRequest.cc \
1559 tests/stub_libcomm.cc \
1561 tests/stub_mime.cc \
1562 tests/stub_Port.cc \
1563 tests/stub_stat.cc \
1564 tests/stub_store_client.cc \
1565 tests/stub_store_stats.cc \
1567 tests/stub_store_rebuild.cc \
1568 tests/stub_store_swapout.cc \
1571 tests/stub_tools.cc \
1572 tests/stub_UdsOp.cc \
1573 tests/testPackableStream.cc \
1574 tests/testPackableStream.h \
1575 tests/testStore.cc \
1577 tests/testStoreController.cc \
1578 tests/testStoreController.h \
1579 tests/testStoreHashIndex.cc \
1580 tests/testStoreHashIndex.h \
1581 tests/testStoreSupport.cc \
1582 tests/testStoreSupport.h \
1583 tests/TestSwapDir.cc \
1584 tests/TestSwapDir.h \
1585 tests/stub_time.cc \
1586 tests/stub_libanyp.cc \
1589 nodist_tests_testStore_SOURCES= \
1594 tests_testStore_LDADD= \
1597 parser/libparser.la \
1612 DiskIO/libdiskio.la \
1613 $(top_builddir)/lib/libmisccontainers.la \
1614 $(top_builddir)/lib/libmiscencoding.la \
1615 $(top_builddir)/lib/libmiscutil.la \
1620 $(LIBCPPUNIT_LIBS) \
1623 tests_testStore_LDFLAGS = $(LIBADD_DL)
1625 ## Tests of DiskIO/*
1627 check_PROGRAMS += tests/testDiskIO
1628 tests_testDiskIO_SOURCES = \
1632 tests/stub_CacheDigest.cc \
1636 tests/stub_CollapsedForwarding.cc \
1639 $(DELAY_POOL_SOURCE) \
1643 tests/stub_ETag.cc \
1647 tests/stub_fatal.cc \
1656 HttpHeaderFieldStat.h \
1659 HttpHdrContRange.cc \
1661 HttpHdrScTarget.cc \
1663 HttpHeaderFieldInfo.h \
1665 HttpHeaderTools.cc \
1687 tests/stub_libsecurity.cc \
1691 tests/stub_StatHist.cc \
1693 tests/stub_SBufDetailedStats.cc \
1694 StoreFileSystem.cc \
1696 tests/stub_StoreMeta.cc \
1697 StoreMetaUnpacker.cc \
1698 StoreSwapLogData.cc \
1709 tests/stub_libstore.cc \
1712 tests/stub_access_log.cc \
1715 tests/stub_cache_cf.cc \
1716 tests/stub_cache_manager.cc \
1717 tests/stub_client_db.cc \
1718 client_side_request.h \
1719 tests/stub_client_side_request.cc \
1720 tests/stub_debug.cc \
1721 tests/stub_errorpage.cc \
1722 tests/stub_helper.cc \
1723 tests/stub_HelperChildConfig.cc \
1724 tests/stub_HttpRequest.cc \
1725 tests/stub_http.cc \
1728 tests/stub_internal.cc \
1730 tests/stub_ipcache.cc \
1731 tests/stub_libauth_acls.cc \
1732 tests/stub_libauth.cc \
1733 tests/stub_libeui.cc \
1734 tests/stub_libformat.cc \
1735 tests/stub_libicmp.cc \
1736 tests/stub_liblog.cc \
1737 tests/stub_MemStore.cc \
1739 tests/stub_mime.cc \
1740 tests/stub_neighbors.cc \
1741 tests/stub_pconn.cc \
1742 tests/stub_Port.cc \
1743 tests/stub_stat.cc \
1744 tests/stub_store_client.cc \
1745 tests/stub_store_stats.cc \
1747 tests/stub_store_rebuild.cc \
1748 tests/stub_UdsOp.cc \
1749 tests/testDiskIO.cc \
1750 tests/testDiskIO.h \
1751 tests/testStoreSupport.cc \
1752 tests/testStoreSupport.h \
1753 tests/stub_time.cc \
1755 tests/stub_libanyp.cc \
1761 nodist_tests_testDiskIO_SOURCES= \
1767 tests_testDiskIO_LDADD = \
1770 parser/libparser.la \
1781 $(ADAPTATION_LIBS) \
1782 DiskIO/libdiskio.la \
1793 $(top_builddir)/lib/libmisccontainers.la \
1794 $(top_builddir)/lib/libmiscencoding.la \
1795 $(top_builddir)/lib/libmiscutil.la \
1799 $(LIBCPPUNIT_LIBS) \
1802 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1807 check_PROGRAMS += tests/testACLMaxUserIP
1808 tests_testACLMaxUserIP_SOURCES = \
1809 tests/testACLMaxUserIP.cc \
1810 tests/testACLMaxUserIP.h
1811 nodist_tests_testACLMaxUserIP_SOURCES = \
1817 tests/stub_access_log.cc \
1818 tests/stub_cache_cf.cc \
1819 tests/stub_cbdata.cc \
1820 tests/stub_client_side.cc \
1821 tests/stub_debug.cc \
1822 tests/stub_errorpage.cc \
1823 tests/stub_fatal.cc \
1824 tests/stub_HelperChildConfig.cc \
1825 tests/stub_HttpHeader.cc \
1826 tests/stub_HttpRequest.cc \
1827 tests/stub_libauth.cc \
1828 tests/stub_libhttp.cc \
1829 tests/stub_libmem.cc \
1830 tests/stub_libsecurity.cc \
1831 tests/stub_MemBuf.cc \
1832 tests/stub_StatHist.cc
1833 tests_testACLMaxUserIP_LDADD = \
1840 parser/libparser.la \
1844 $(LIBCPPUNIT_LIBS) \
1847 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1850 tests/testACLMaxUserIP.cc \
1851 tests/testACLMaxUserIP.h
1854 ## Tests of http/* and HTTP Protocol objects
1856 check_PROGRAMS += tests/test_http_range
1857 tests_test_http_range_SOURCES = \
1868 tests/stub_CacheDigest.cc \
1870 tests/stub_carp.cc \
1872 tests/stub_client_db.cc \
1875 client_side_reply.cc \
1876 client_side_request.cc \
1879 tests/stub_CollapsedForwarding.cc \
1887 $(DELAY_POOL_SOURCE) \
1894 tests/stub_ETag.cc \
1898 tests/stub_libauth.cc \
1899 tests/stub_fatal.cc \
1910 tests/stub_gopher.cc \
1911 HappyConnOpener.cc \
1919 tests/stub_HttpControlMsg.cc \
1920 HttpHeaderFieldStat.h \
1923 HttpHdrContRange.cc \
1926 HttpHdrScTarget.cc \
1929 HttpHeaderFieldInfo.h \
1931 HttpHeaderTools.cc \
1951 tests/stub_libmem.cc \
1965 peer_proxy_negotiate_auth.h \
1966 peer_proxy_negotiate_auth.cc \
1969 peer_sourcehash.cc \
1976 tests/stub_redirect.cc \
1982 tests/stub_SBufDetailedStats.cc \
1998 tests/stub_store_digest.cc \
2010 StoreFileSystem.cc \
2012 tests/stub_StoreMeta.cc \
2013 StoreMetaUnpacker.cc \
2014 StoreSwapLogData.cc \
2018 tests/stub_libstore.cc \
2020 tests/test_http_range.cc \
2021 tests/stub_external_acl.cc \
2022 tests/stub_ipc_Forwarder.cc \
2023 tests/stub_libdiskio.cc \
2024 tests/stub_libeui.cc \
2025 tests/stub_libsecurity.cc \
2026 tests/stub_main_cc.cc \
2027 tests/stub_MemStore.cc \
2028 tests/stub_store_stats.cc \
2029 tests/stub_EventLoop.cc \
2033 tests/stub_tunnel.cc \
2038 tests/stub_wccp2.cc \
2040 tests/stub_whois.cc \
2044 nodist_tests_test_http_range_SOURCES = \
2046 tests_test_http_range_LDADD = \
2048 clients/libclients.la \
2049 servers/libservers.la \
2051 helper/libhelper.la \
2053 parser/libparser.la \
2058 proxyp/libproxyp.la \
2059 parser/libparser.la \
2066 format/libformat.la \
2068 $(ADAPTATION_LIBS) \
2078 $(top_builddir)/lib/libmisccontainers.la \
2079 $(top_builddir)/lib/libmiscencoding.la \
2080 $(top_builddir)/lib/libmiscutil.la \
2085 $(LIBCPPUNIT_LIBS) \
2088 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2090 check_PROGRAMS += tests/testHttp1Parser
2091 tests_testHttp1Parser_SOURCES = \
2095 tests/stub_MemObject.cc \
2100 tests/stub_SBufDetailedStats.cc \
2101 tests/stub_cache_cf.cc \
2102 tests/stub_cache_manager.cc \
2103 tests/stub_comm.cc \
2104 tests/stub_cbdata.cc \
2105 tests/stub_debug.cc \
2106 tests/stub_event.cc \
2107 tests/stub_HelperChildConfig.cc \
2108 tests/stub_libmem.cc \
2109 tests/stub_libsecurity.cc \
2110 tests/stub_stmem.cc \
2111 tests/stub_store.cc \
2112 tests/stub_store_stats.cc \
2114 tests/stub_tools.cc \
2115 tests/testHttp1Parser.cc \
2116 tests/testHttp1Parser.h \
2117 tests/stub_time.cc \
2118 tests/stub_libanyp.cc \
2121 nodist_tests_testHttp1Parser_SOURCES = \
2123 tests_testHttp1Parser_LDADD= \
2125 parser/libparser.la \
2131 $(top_builddir)/lib/libmiscutil.la \
2133 $(LIBCPPUNIT_LIBS) \
2136 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2138 check_PROGRAMS += tests/testHttpReply
2139 tests_testHttpReply_SOURCES=\
2143 tests/stub_ETag.cc \
2145 tests/stub_fatal.cc \
2148 HttpHeaderFieldStat.h \
2151 HttpHdrContRange.cc \
2152 HttpHdrContRange.h \
2156 HttpHdrScTarget.cc \
2161 HttpHeaderFieldInfo.h \
2163 HttpHeaderTools.cc \
2178 tests/stub_SBufDetailedStats.cc \
2183 tests/stub_access_log.cc \
2185 tests/stub_cache_cf.cc \
2186 tests/stub_cache_manager.cc \
2187 tests/stub_comm.cc \
2188 tests/stub_debug.cc \
2189 tests/stub_errorpage.cc \
2190 tests/stub_event.cc \
2192 tests/stub_HelperChildConfig.cc \
2193 tests/stub_libformat.cc \
2194 tests/stub_libauth.cc \
2195 tests/stub_libcomm.cc \
2196 tests/stub_libmgr.cc \
2197 tests/stub_libsecurity.cc \
2198 tests/stub_libsslsquid.cc \
2202 tests/stub_StatHist.cc \
2204 tests/stub_store.cc \
2205 tests/stub_store_stats.cc \
2207 tests/stub_tools.cc \
2208 tests/stub_HttpRequest.cc \
2209 tests/testHttpReply.cc \
2210 tests/testHttpReply.h \
2211 tests/stub_time.cc \
2212 tests/stub_libanyp.cc \
2215 nodist_tests_testHttpReply_SOURCES=\
2218 tests_testHttpReply_LDADD=\
2221 parser/libparser.la \
2231 $(top_builddir)/lib/libmisccontainers.la \
2232 $(top_builddir)/lib/libmiscencoding.la \
2233 $(top_builddir)/lib/libmiscutil.la \
2236 $(LIBCPPUNIT_LIBS) \
2239 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
2241 check_PROGRAMS += tests/testHttpRequest
2242 tests_testHttpRequest_SOURCES = \
2247 tests/stub_libmem.cc \
2249 tests/testHttpRequest.h \
2250 tests/testHttpRequest.cc \
2251 tests/testHttpRequestMethod.h \
2252 tests/testHttpRequestMethod.cc \
2253 tests/stub_libauth.cc \
2254 tests/stub_main_cc.cc \
2255 tests/stub_ipc_Forwarder.cc \
2256 tests/stub_libdiskio.cc \
2257 tests/stub_libeui.cc \
2258 tests/stub_store_stats.cc \
2259 tests/stub_EventLoop.cc \
2269 tests/stub_CacheDigest.cc \
2273 tests/stub_carp.cc \
2275 tests/stub_client_db.cc \
2278 client_side_reply.cc \
2279 client_side_request.cc \
2282 tests/stub_CollapsedForwarding.cc \
2289 $(DELAY_POOL_SOURCE) \
2296 tests/stub_ETag.cc \
2298 ExternalACLEntry.cc \
2300 tests/stub_fatal.cc \
2309 tests/stub_gopher.cc \
2310 HappyConnOpener.cc \
2318 tests/stub_HttpControlMsg.cc \
2321 HttpHeaderFieldInfo.h \
2323 HttpHeaderTools.cc \
2324 HttpHeaderFieldStat.h \
2327 HttpHdrContRange.cc \
2330 HttpHdrScTarget.cc \
2341 tests/stub_libsecurity.cc \
2360 peer_proxy_negotiate_auth.h \
2361 peer_proxy_negotiate_auth.cc \
2364 peer_sourcehash.cc \
2372 tests/stub_libauth_acls.cc \
2373 tests/stub_redirect.cc \
2379 tests/stub_SBufDetailedStats.cc \
2395 tests/stub_store_digest.cc \
2407 StoreFileSystem.cc \
2409 tests/stub_StoreMeta.cc \
2410 StoreMetaUnpacker.cc \
2411 StoreSwapLogData.cc \
2418 tests/stub_tunnel.cc \
2419 tests/stub_libstore.cc \
2424 tests/stub_wccp2.cc \
2426 tests/stub_whois.cc \
2431 nodist_tests_testHttpRequest_SOURCES = \
2433 tests_testHttpRequest_LDADD = \
2435 clients/libclients.la \
2436 servers/libservers.la \
2437 helper/libhelper.la \
2444 parser/libparser.la \
2449 proxyp/libproxyp.la \
2450 parser/libparser.la \
2459 format/libformat.la \
2463 $(ADAPTATION_LIBS) \
2465 $(top_builddir)/lib/libmisccontainers.la \
2466 $(top_builddir)/lib/libmiscencoding.la \
2467 $(top_builddir)/lib/libmiscutil.la \
2472 $(LIBCPPUNIT_LIBS) \
2475 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2479 check_PROGRAMS += tests/testIpAddress
2480 tests_testIpAddress_SOURCES = \
2481 tests/testIpAddress.cc \
2482 tests/testIpAddress.h
2483 nodist_tests_testIpAddress_SOURCES = \
2484 tests/stub_debug.cc \
2485 tests/stub_libmem.cc \
2486 tests/stub_SBuf.cc \
2488 tests_testIpAddress_LDADD = \
2491 $(LIBCPPUNIT_LIBS) \
2494 tests_testIpAddress_LDFLAGS = $(LIBADD_DL)
2498 check_PROGRAMS += tests/testIcmp
2499 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2500 tests_testIcmp_SOURCES = \
2503 nodist_tests_testIcmp_SOURCES = \
2506 tests/stub_debug.cc \
2507 tests/stub_libmem.cc \
2508 tests/stub_SBuf.cc \
2511 tests_testIcmp_LDADD=\
2512 icmp/libicmpcore.la \
2515 $(LIBCPPUNIT_LIBS) \
2518 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2520 check_PROGRAMS += tests/testNetDb
2521 tests_testNetDb_SOURCES = \
2522 tests/testNetDb.cc \
2524 nodist_tests_testNetDb_SOURCES = \
2526 tests/stub_debug.cc \
2527 tests/stub_libmem.cc \
2528 tests/stub_SBuf.cc \
2531 tests_testNetDb_LDADD = \
2535 $(top_builddir)/lib/libmisccontainers.la \
2536 $(LIBCPPUNIT_LIBS) \
2539 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2541 ## Tests of mgr/* and CacheManager objects
2543 check_PROGRAMS += tests/testCacheManager
2544 tests_testCacheManager_SOURCES = \
2551 tests/testCacheManager.cc \
2552 tests/testCacheManager.h \
2553 tests/stub_main_cc.cc \
2554 tests/stub_HttpControlMsg.cc \
2555 tests/stub_ipc_Forwarder.cc \
2556 tests/stub_store_stats.cc \
2557 tests/stub_EventLoop.cc \
2568 tests/stub_CacheDigest.cc \
2570 tests/stub_carp.cc \
2572 tests/stub_client_db.cc \
2575 client_side_reply.cc \
2576 client_side_request.cc \
2579 tests/stub_CollapsedForwarding.cc \
2586 $(DELAY_POOL_SOURCE) \
2593 tests/stub_ETag.cc \
2596 ExternalACLEntry.cc \
2598 tests/stub_fatal.cc \
2609 tests/stub_gopher.cc \
2610 HappyConnOpener.cc \
2620 HttpHeaderFieldInfo.h \
2622 HttpHeaderTools.cc \
2623 HttpHeaderFieldStat.h \
2626 HttpHdrContRange.cc \
2629 HttpHdrScTarget.cc \
2640 tests/stub_libsecurity.cc \
2659 peer_proxy_negotiate_auth.h \
2660 peer_proxy_negotiate_auth.cc \
2663 peer_sourcehash.cc \
2671 tests/stub_redirect.cc \
2677 tests/stub_SBufDetailedStats.cc \
2689 tests/stub_libauth_acls.cc \
2690 tests/stub_libauth.cc \
2691 tests/stub_libdiskio.cc \
2692 tests/stub_StatHist.cc \
2698 tests/stub_store_digest.cc \
2710 StoreFileSystem.cc \
2712 tests/stub_StoreMeta.cc \
2713 StoreMetaUnpacker.cc \
2714 StoreSwapLogData.cc \
2718 tests/stub_tunnel.cc \
2719 tests/stub_libstore.cc \
2725 tests/stub_wccp2.cc \
2727 tests/stub_whois.cc \
2732 nodist_tests_testCacheManager_SOURCES = \
2734 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
2735 tests_testCacheManager_LDADD = \
2737 clients/libclients.la \
2738 servers/libservers.la \
2740 helper/libhelper.la \
2742 proxyp/libproxyp.la \
2743 parser/libparser.la \
2756 format/libformat.la \
2758 $(ADAPTATION_LIBS) \
2768 $(top_builddir)/lib/libmisccontainers.la \
2769 $(top_builddir)/lib/libmiscencoding.la \
2770 $(top_builddir)/lib/libmiscutil.la \
2775 $(LIBCPPUNIT_LIBS) \
2778 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
2780 check_PROGRAMS += tests/testStatHist
2781 tests_testStatHist_SOURCES = \
2782 tests/stub_cbdata.cc \
2784 tests/stub_fatal.cc \
2785 tests/stub_MemBuf.cc \
2786 tests/stub_SBufDetailedStats.cc \
2790 tests/stub_cache_manager.cc \
2791 tests/stub_comm.cc \
2792 tests/stub_debug.cc \
2793 tests/stub_DelayId.cc \
2794 tests/stub_HelperChildConfig.cc \
2795 tests/stub_libmem.cc \
2796 tests/stub_MemObject.cc \
2798 tests/stub_mime.cc \
2799 tests/stub_pconn.cc \
2800 tests/stub_stmem.cc \
2802 tests/stub_store.cc \
2803 tests/stub_store_stats.cc \
2806 tests/stub_tools.cc \
2807 tests/testStatHist.cc \
2808 tests/testStatHist.h
2809 nodist_tests_testStatHist_SOURCES = \
2811 tests_testStatHist_LDADD = \
2814 $(top_builddir)/lib/libmiscutil.la \
2815 $(top_builddir)/lib/libmisccontainers.la \
2816 $(LIBCPPUNIT_LIBS) \
2818 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2820 ## Tests of ConfigParser
2822 check_PROGRAMS += tests/testConfigParser
2823 tests_testConfigParser_SOURCES = \
2825 tests/stub_MemBuf.cc \
2826 tests/stub_time.cc \
2827 tests/stub_SBufDetailedStats.cc \
2831 tests/stub_fatal.cc \
2832 tests/testConfigParser.cc \
2833 tests/testConfigParser.h \
2835 tests/stub_cache_cf.cc \
2836 tests/stub_cbdata.cc \
2837 tests/stub_debug.cc \
2838 tests/stub_libmem.cc \
2839 tests/stub_HelperChildConfig.cc \
2841 tests/stub_tools.cc \
2844 nodist_tests_testConfigParser_SOURCES = \
2846 tests_testConfigParser_LDADD = \
2851 $(top_builddir)/lib/libmiscutil.la \
2854 $(LIBCPPUNIT_LIBS) \
2857 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
2859 ## Tests of Event handling
2861 check_PROGRAMS += tests/testEvent
2862 tests_testEvent_SOURCES = \
2866 tests/stub_CacheDigest.cc \
2875 tests/stub_carp.cc \
2877 tests/stub_client_db.cc \
2880 client_side_reply.cc \
2881 client_side_request.cc \
2884 tests/stub_CollapsedForwarding.cc \
2892 $(DELAY_POOL_SOURCE) \
2899 tests/stub_ETag.cc \
2904 ExternalACLEntry.cc \
2907 tests/stub_fatal.cc \
2918 tests/stub_gopher.cc \
2919 HappyConnOpener.cc \
2927 tests/stub_HttpControlMsg.cc \
2930 HttpHeaderFieldInfo.h \
2932 HttpHeaderTools.cc \
2933 HttpHeaderFieldStat.h \
2936 HttpHdrContRange.cc \
2939 HttpHdrScTarget.cc \
2955 tests/stub_libsecurity.cc \
2958 tests/stub_libmem.cc \
2975 peer_proxy_negotiate_auth.h \
2976 peer_proxy_negotiate_auth.cc \
2979 peer_sourcehash.cc \
2985 tests/stub_redirect.cc \
2993 tests/stub_SBufDetailedStats.cc \
3009 tests/stub_store_digest.cc \
3021 StoreFileSystem.cc \
3023 tests/stub_StoreMeta.cc \
3024 StoreMetaUnpacker.cc \
3025 StoreSwapLogData.cc \
3027 tests/stub_libstore.cc \
3028 tests/CapturingStoreEntry.h \
3029 tests/testEvent.cc \
3031 tests/stub_main_cc.cc \
3032 tests/stub_ipc_Forwarder.cc \
3033 tests/stub_libauth_acls.cc \
3034 tests/stub_libauth.cc \
3035 tests/stub_libdiskio.cc \
3036 tests/stub_libeui.cc \
3037 tests/stub_store_stats.cc \
3042 tests/stub_tunnel.cc \
3048 tests/stub_wccp2.cc \
3050 tests/stub_whois.cc \
3054 nodist_tests_testEvent_SOURCES = \
3056 tests_testEvent_LDADD = \
3058 clients/libclients.la \
3059 servers/libservers.la \
3061 helper/libhelper.la \
3063 proxyp/libproxyp.la \
3064 parser/libparser.la \
3077 format/libformat.la \
3079 $(ADAPTATION_LIBS) \
3082 $(top_builddir)/lib/libmisccontainers.la \
3083 $(top_builddir)/lib/libmiscencoding.la \
3084 $(top_builddir)/lib/libmiscutil.la \
3094 $(LIBCPPUNIT_LIBS) \
3097 tests_testEvent_LDFLAGS = $(LIBADD_DL)
3099 check_PROGRAMS += tests/testEventLoop
3100 tests_testEventLoop_SOURCES = \
3104 tests/stub_CacheDigest.cc \
3113 tests/stub_carp.cc \
3115 tests/stub_client_db.cc \
3118 client_side_reply.cc \
3119 client_side_request.cc \
3122 tests/stub_CollapsedForwarding.cc \
3130 $(DELAY_POOL_SOURCE) \
3137 tests/stub_ETag.cc \
3142 ExternalACLEntry.cc \
3145 tests/stub_fatal.cc \
3156 tests/stub_gopher.cc \
3157 HappyConnOpener.cc \
3165 tests/stub_HttpControlMsg.cc \
3168 HttpHeaderFieldInfo.h \
3170 HttpHeaderTools.cc \
3171 HttpHeaderFieldStat.h \
3174 HttpHdrContRange.cc \
3177 HttpHdrScTarget.cc \
3197 tests/stub_libmem.cc \
3212 peer_proxy_negotiate_auth.h \
3213 peer_proxy_negotiate_auth.cc \
3216 peer_sourcehash.cc \
3225 tests/stub_redirect.cc \
3228 tests/stub_SBufDetailedStats.cc \
3244 tests/stub_store_digest.cc \
3256 StoreFileSystem.cc \
3258 tests/stub_StoreMeta.cc \
3259 StoreMetaUnpacker.cc \
3260 StoreSwapLogData.cc \
3264 tests/stub_libstore.cc \
3265 tests/testEventLoop.cc \
3266 tests/testEventLoop.h \
3267 tests/stub_main_cc.cc \
3268 tests/stub_ipc_Forwarder.cc \
3269 tests/stub_libauth_acls.cc \
3270 tests/stub_libauth.cc \
3271 tests/stub_libdiskio.cc \
3272 tests/stub_libeui.cc \
3273 tests/stub_libsecurity.cc \
3274 tests/stub_store_stats.cc \
3279 tests/stub_tunnel.cc \
3285 tests/stub_wccp2.cc \
3287 tests/stub_whois.cc \
3291 nodist_tests_testEventLoop_SOURCES = \
3293 tests_testEventLoop_LDADD = \
3295 clients/libclients.la \
3296 servers/libservers.la \
3298 helper/libhelper.la \
3300 proxyp/libproxyp.la \
3301 parser/libparser.la \
3314 format/libformat.la \
3316 $(ADAPTATION_LIBS) \
3319 $(top_builddir)/lib/libmisccontainers.la \
3320 $(top_builddir)/lib/libmiscencoding.la \
3321 $(top_builddir)/lib/libmiscutil.la \
3331 $(LIBCPPUNIT_LIBS) \
3334 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
3336 ## Run the unit tests. check_PROGRAMS only builds the binaries.
3337 TESTS += $(check_PROGRAMS) testHeaders
3339 ## Special Universal .h dependency test script
3340 ## aborts if error encountered
3341 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3342 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3343 ## src/repl/ has no .h files and its own makefile.
3345 CLEANFILES += testHeaders