1 ## Copyright (C) 1996-2020 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 \
322 HttpUpgradeProtocolAccess.cc \
323 HttpUpgradeProtocolAccess.h \
326 HttpHeaderFieldStat.h \
334 HttpHdrContRange.cc \
341 HttpHeaderFieldInfo.h \
367 $(LEAKFINDERSOURCE) \
392 $(XPROF_STATS_SOURCE) \
397 peer_proxy_negotiate_auth.h \
398 peer_proxy_negotiate_auth.cc \
423 sbuf/StringConvert.h \
463 StoreMetaUnpacker.cc \
464 StoreMetaUnpacker.h \
465 $(STOREMETA_SOURCE) \
469 StoreSwapLogData.cc \
494 XactionInitiator.cc \
499 EXTRA_squid_SOURCES = \
502 $(DELAY_POOL_ALL_SOURCE) \
512 $(WIN32_ALL_SOURCE) \
513 $(LOADABLE_MODULES_SOURCES)
532 CLEANFILES += $(BUILT_SOURCES)
534 nodist_squid_SOURCES = \
544 clients/libclients.la \
545 servers/libservers.la \
547 helper/libhelper.la \
554 DiskIO/libdiskio.la \
557 security/libsecurity.la \
561 proxyp/libproxyp.la \
562 parser/libparser.la \
566 format/libformat.la \
578 $(top_builddir)/lib/libmisccontainers.la \
579 $(top_builddir)/lib/libmiscencoding.la \
580 $(top_builddir)/lib/libmiscutil.la \
589 if ENABLE_LOADABLE_MODULES
590 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
591 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
592 squid_LDFLAGS = -export-dynamic -dlopen force
593 ## when static module linking is supported and enabled:
594 ## squid_LDFLAGS = -all-static -dlopen self
596 ## LTDL headers require their local include path...
597 AM_CPPFLAGS += $(INCLTDL)
600 ## Kerberos libraries require their include path...
601 AM_CPPFLAGS += $(KRB5INCS)
604 unlinkd_SOURCES = unlinkd_daemon.cc
609 recv_announce_SOURCES = recv-announce.cc
611 ## What requires what..
612 ## many things want ACLChecklist.cc
613 ## ACLChecklist.cc wants AuthUserRequest.cc
614 ## ACLChecklist.cc wants AuthScheme.cc
615 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
616 ## ACLProxyAuth.cc wants ACLUserData
617 ## ACLProxyAuth.cc wants ACLRegexData
618 ## cache_cf.cc wants $(AUTH_LIBS)
619 ## cache_cf.cc wants store/libstore.la
620 ## cache_cf.cc wants AnyP::PortCfg
621 ## client_side wants client_db
622 ## client_db wants SNMP_SOURCE
623 ## snmp_core wants ACLStringData
624 ## tools.cc wants ip/libip.la
625 ## client_side.cc wants ip/libip.la
626 ## libbase.la wants cbdata.*
627 ## libbase.la wants MemBuf.*
641 tests/stub_StoreMeta.cc \
642 StoreMetaUnpacker.cc \
649 helper/ChildConfig.h \
650 tests/stub_HelperChildConfig.cc \
677 ufsdump_DEPENDENCIES = \
689 DiskIO/libdiskio.la \
692 nodist_ufsdump_SOURCES = \
697 squid.conf.documented \
722 include $(srcdir)/tests/Stub.list
730 mk-string-arrays.awk \
736 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
738 globals.cc: globals.h mk-globals-c.awk
739 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
741 ## Generate files containing string arrays for various enums....
742 hier_code.cc: hier_code.h mk-string-arrays.awk
743 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
745 err_type.cc: err_type.h mk-string-arrays.awk
746 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
748 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
749 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
751 lookup_t.cc: lookup_t.h mk-string-arrays.awk
752 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
754 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
755 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
757 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
758 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
761 ## other generated files...
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 \
1016 parser/libparser.la \
1020 $(top_builddir)/lib/libmiscencoding.la \
1021 $(LIBCPPUNIT_LIBS) \
1024 tests_testURL_LDFLAGS = $(LIBADD_DL)
1028 check_PROGRAMS += tests/testDns
1029 tests_testDns_SOURCES = \
1030 tests/testRFC1035.cc \
1032 nodist_tests_testDns_SOURCES=
1033 tests_testDns_LDADD = \
1035 $(LIBCPPUNIT_LIBS) \
1038 tests_testDns_LDFLAGS = $(LIBADD_DL)
1040 ## Tests of parser/*
1042 check_PROGRAMS += tests/testTokenizer
1043 tests_testTokenizer_SOURCES = \
1044 tests/testTokenizer.cc \
1045 tests/testTokenizer.h
1046 nodist_tests_testTokenizer_SOURCES = \
1047 parser/Tokenizer.h \
1048 tests/stub_debug.cc \
1049 tests/stub_libmem.cc \
1050 tests/stub_StatHist.cc
1051 tests_testTokenizer_LDADD = \
1052 parser/libparser.la \
1055 $(LIBCPPUNIT_LIBS) \
1058 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
1060 ## Tests of sbuf/* and String handling objects
1062 check_PROGRAMS += tests/testSBuf
1063 tests_testSBuf_SOURCES = \
1064 tests/SBufFindTest.cc \
1065 tests/SBufFindTest.h \
1068 nodist_tests_testSBuf_SOURCES = \
1069 tests/stub_debug.cc \
1070 tests/stub_libmem.cc \
1071 tests/stub_StatHist.cc
1072 tests_testSBuf_LDADD = \
1075 $(LIBCPPUNIT_LIBS) \
1078 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
1080 check_PROGRAMS += tests/testSBufList
1081 tests_testSBufList_SOURCES = \
1082 tests/testSBufList.cc \
1083 tests/testSBufList.h
1084 nodist_tests_testSBufList_SOURCES = \
1085 tests/stub_debug.cc \
1086 tests/stub_libmem.cc \
1087 tests/stub_StatHist.cc
1088 tests_testSBufList_LDADD = \
1091 $(LIBCPPUNIT_LIBS) \
1094 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
1096 check_PROGRAMS += tests/testString
1097 tests_testString_SOURCES = \
1098 tests/testString.cc \
1100 nodist_tests_testString_SOURCES = \
1102 tests/stub_SBuf.cc \
1103 tests/stub_debug.cc \
1104 tests/stub_libmem.cc
1105 tests_testString_LDADD = \
1107 $(LIBCPPUNIT_LIBS) \
1110 tests_testString_LDFLAGS = $(LIBADD_DL)
1115 check_PROGRAMS += tests/testRock
1116 tests_testRock_SOURCES = \
1121 CollapsedForwarding.h \
1122 CollapsedForwarding.cc \
1123 tests/stub_CacheDigest.cc \
1140 HttpHeaderFieldStat.h \
1144 HttpHdrContRange.cc \
1147 HttpHdrScTarget.cc \
1150 HttpHeaderFieldInfo.h \
1152 HttpHeaderTools.cc \
1174 tests/stub_StatHist.cc \
1177 tests/stub_stat.cc \
1179 StoreFileSystem.cc \
1181 StoreMetaUnpacker.cc \
1182 $(STOREMETA_SOURCE) \
1183 StoreSwapLogData.cc \
1189 tests/stub_SBufDetailedStats.cc \
1197 tests/testStoreSupport.cc \
1198 tests/testStoreSupport.h \
1200 tests/stub_access_log.cc \
1202 tests/stub_cache_cf.cc \
1203 tests/stub_cache_manager.cc \
1204 tests/stub_client_db.cc \
1205 tests/stub_client_side_request.cc \
1206 tests/stub_debug.cc \
1207 tests/stub_errorpage.cc \
1208 tests/stub_HelperChildConfig.cc \
1209 tests/stub_http.cc \
1210 tests/stub_HttpRequest.cc \
1211 tests/stub_libauth.cc \
1214 tests/stub_ipcache.cc \
1215 tests/stub_libeui.cc \
1216 tests/stub_libformat.cc \
1217 tests/stub_libicmp.cc \
1218 tests/stub_liblog.cc \
1219 tests/stub_libmgr.cc \
1220 tests/stub_libsecurity.cc \
1222 tests/stub_mime.cc \
1223 tests/stub_neighbors.cc \
1224 tests/stub_Port.cc \
1225 tests/stub_pconn.cc \
1226 tests/stub_store_client.cc \
1228 tests/stub_store_rebuild.cc \
1229 tests/stub_store_stats.cc \
1231 tests/stub_tools.cc \
1233 tests/stub_libanyp.cc \
1236 $(DELAY_POOL_SOURCE) \
1238 nodist_tests_testRock_SOURCES = \
1244 tests_testRock_LDADD = \
1246 parser/libparser.la \
1253 DiskIO/libdiskio.la \
1264 $(ADAPTATION_LIBS) \
1266 $(top_builddir)/lib/libmisccontainers.la \
1267 $(top_builddir)/lib/libmiscencoding.la \
1268 $(top_builddir)/lib/libmiscutil.la \
1272 $(LIBCPPUNIT_LIBS) \
1275 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1280 tests/testStoreSupport.cc \
1281 tests/testStoreSupport.h
1285 check_PROGRAMS += tests/testUfs
1286 tests_testUfs_SOURCES = \
1291 tests/stub_cache_manager.cc \
1292 tests/stub_client_db.cc \
1293 tests/stub_CollapsedForwarding.cc \
1294 tests/stub_HelperChildConfig.cc \
1297 tests/stub_ipcache.cc \
1298 tests/stub_libeui.cc \
1299 tests/stub_libicmp.cc \
1300 tests/stub_liblog.cc \
1301 tests/stub_neighbors.cc \
1302 tests/stub_pconn.cc \
1303 tests/stub_Port.cc \
1304 tests/stub_UdsOp.cc \
1306 tests/stub_internal.cc \
1307 tests/stub_libformat.cc \
1308 tests/stub_libsecurity.cc \
1309 tests/stub_stat.cc \
1311 tests/stub_store_rebuild.cc \
1312 tests/stub_store_stats.cc \
1314 tests/stub_fatal.cc \
1340 StoreSwapLogData.cc \
1342 StoreMetaUnpacker.cc \
1343 $(STOREMETA_SOURCE) \
1344 StoreFileSystem.cc \
1351 $(DELAY_POOL_SOURCE) \
1353 tests/stub_CacheDigest.cc \
1365 tests/stub_cache_cf.cc \
1366 tests/stub_helper.cc \
1368 tests/stub_SBufDetailedStats.cc \
1370 tests/stub_debug.cc \
1371 tests/stub_client_side_request.cc \
1372 tests/stub_http.cc \
1373 tests/stub_libauth.cc \
1377 tests/stub_mime.cc \
1378 HttpHeaderFieldInfo.h \
1380 HttpHeaderTools.cc \
1385 HttpHdrContRange.cc \
1386 HttpHeaderFieldStat.h \
1390 HttpHdrScTarget.cc \
1391 tests/stub_libanyp.cc \
1400 tests/stub_errorpage.cc \
1401 tests/stub_HttpRequest.cc \
1403 tests/stub_access_log.cc \
1406 tests/stub_store_client.cc \
1408 tests/stub_tools.cc \
1409 tests/testStoreSupport.cc \
1410 tests/testStoreSupport.h \
1414 nodist_tests_testUfs_SOURCES = \
1420 tests_testUfs_LDADD = \
1422 parser/libparser.la \
1434 DiskIO/libdiskio.la \
1445 $(ADAPTATION_LIBS) \
1447 $(top_builddir)/lib/libmisccontainers.la \
1448 $(top_builddir)/lib/libmiscencoding.la \
1449 $(top_builddir)/lib/libmiscutil.la \
1453 $(LIBCPPUNIT_LIBS) \
1456 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1463 ## Tests of store/* and Store objects
1465 check_PROGRAMS += tests/testStore
1466 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1467 ## first line - what we are testing.
1468 tests_testStore_SOURCES= \
1470 tests/stub_CacheDigest.cc \
1473 tests/stub_CollapsedForwarding.cc \
1476 $(DELAY_POOL_SOURCE) \
1483 tests/stub_fatal.cc \
1486 HttpHeaderFieldStat.h \
1489 HttpHdrContRange.cc \
1492 HttpHdrScTarget.cc \
1493 HttpHeaderFieldInfo.h \
1495 HttpHeaderTools.cc \
1524 tests/stub_StoreMeta.cc \
1525 StoreMetaUnpacker.cc \
1526 StoreSwapLogData.cc \
1529 tests/stub_SBufDetailedStats.cc \
1533 tests/CapturingStoreEntry.h \
1535 tests/stub_access_log.cc \
1538 tests/stub_cache_cf.cc \
1539 tests/stub_cache_manager.cc \
1540 tests/stub_client_side_request.cc \
1541 tests/stub_comm.cc \
1542 tests/stub_debug.cc \
1543 tests/stub_errorpage.cc \
1547 tests/stub_helper.cc \
1548 tests/stub_HelperChildConfig.cc \
1549 tests/stub_http.cc \
1550 tests/stub_libauth.cc \
1551 tests/stub_libeui.cc \
1552 tests/stub_libdiskio.cc \
1553 tests/stub_libformat.cc \
1554 tests/stub_libsecurity.cc \
1555 tests/stub_libsslsquid.cc \
1558 tests/stub_HttpReply.cc \
1559 tests/stub_HttpRequest.cc \
1560 tests/stub_libcomm.cc \
1562 tests/stub_mime.cc \
1563 tests/stub_Port.cc \
1564 tests/stub_stat.cc \
1565 tests/stub_store_client.cc \
1566 tests/stub_store_stats.cc \
1568 tests/stub_store_rebuild.cc \
1569 tests/stub_store_swapout.cc \
1572 tests/stub_tools.cc \
1573 tests/stub_UdsOp.cc \
1574 tests/testPackableStream.cc \
1575 tests/testPackableStream.h \
1576 tests/testStore.cc \
1578 tests/testStoreController.cc \
1579 tests/testStoreController.h \
1580 tests/testStoreHashIndex.cc \
1581 tests/testStoreHashIndex.h \
1582 tests/testStoreSupport.cc \
1583 tests/testStoreSupport.h \
1584 tests/TestSwapDir.cc \
1585 tests/TestSwapDir.h \
1586 tests/stub_time.cc \
1587 tests/stub_libanyp.cc \
1590 nodist_tests_testStore_SOURCES= \
1595 tests_testStore_LDADD= \
1598 parser/libparser.la \
1613 DiskIO/libdiskio.la \
1614 $(top_builddir)/lib/libmisccontainers.la \
1615 $(top_builddir)/lib/libmiscencoding.la \
1616 $(top_builddir)/lib/libmiscutil.la \
1621 $(LIBCPPUNIT_LIBS) \
1624 tests_testStore_LDFLAGS = $(LIBADD_DL)
1626 ## Tests of DiskIO/*
1628 check_PROGRAMS += tests/testDiskIO
1629 tests_testDiskIO_SOURCES = \
1633 tests/stub_CacheDigest.cc \
1637 tests/stub_CollapsedForwarding.cc \
1640 $(DELAY_POOL_SOURCE) \
1644 tests/stub_ETag.cc \
1648 tests/stub_fatal.cc \
1657 HttpHeaderFieldStat.h \
1660 HttpHdrContRange.cc \
1662 HttpHdrScTarget.cc \
1664 HttpHeaderFieldInfo.h \
1666 HttpHeaderTools.cc \
1688 tests/stub_libsecurity.cc \
1692 tests/stub_StatHist.cc \
1694 tests/stub_SBufDetailedStats.cc \
1695 StoreFileSystem.cc \
1697 tests/stub_StoreMeta.cc \
1698 StoreMetaUnpacker.cc \
1699 StoreSwapLogData.cc \
1710 tests/stub_libstore.cc \
1713 tests/stub_access_log.cc \
1716 tests/stub_cache_cf.cc \
1717 tests/stub_cache_manager.cc \
1718 tests/stub_client_db.cc \
1719 client_side_request.h \
1720 tests/stub_client_side_request.cc \
1721 tests/stub_debug.cc \
1722 tests/stub_errorpage.cc \
1723 tests/stub_helper.cc \
1724 tests/stub_HelperChildConfig.cc \
1725 tests/stub_HttpRequest.cc \
1726 tests/stub_http.cc \
1729 tests/stub_internal.cc \
1731 tests/stub_ipcache.cc \
1732 tests/stub_libauth_acls.cc \
1733 tests/stub_libauth.cc \
1734 tests/stub_libeui.cc \
1735 tests/stub_libformat.cc \
1736 tests/stub_libicmp.cc \
1737 tests/stub_liblog.cc \
1738 tests/stub_MemStore.cc \
1740 tests/stub_mime.cc \
1741 tests/stub_neighbors.cc \
1742 tests/stub_pconn.cc \
1743 tests/stub_Port.cc \
1744 tests/stub_stat.cc \
1745 tests/stub_store_client.cc \
1746 tests/stub_store_stats.cc \
1748 tests/stub_store_rebuild.cc \
1749 tests/stub_UdsOp.cc \
1750 tests/testDiskIO.cc \
1751 tests/testDiskIO.h \
1752 tests/testStoreSupport.cc \
1753 tests/testStoreSupport.h \
1754 tests/stub_time.cc \
1756 tests/stub_libanyp.cc \
1762 nodist_tests_testDiskIO_SOURCES= \
1768 tests_testDiskIO_LDADD = \
1771 parser/libparser.la \
1782 $(ADAPTATION_LIBS) \
1783 DiskIO/libdiskio.la \
1794 $(top_builddir)/lib/libmisccontainers.la \
1795 $(top_builddir)/lib/libmiscencoding.la \
1796 $(top_builddir)/lib/libmiscutil.la \
1800 $(LIBCPPUNIT_LIBS) \
1803 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1808 check_PROGRAMS += tests/testACLMaxUserIP
1809 tests_testACLMaxUserIP_SOURCES = \
1810 tests/testACLMaxUserIP.cc \
1811 tests/testACLMaxUserIP.h
1812 nodist_tests_testACLMaxUserIP_SOURCES = \
1818 tests/stub_access_log.cc \
1819 tests/stub_cache_cf.cc \
1820 tests/stub_cbdata.cc \
1821 tests/stub_client_side.cc \
1822 tests/stub_debug.cc \
1823 tests/stub_errorpage.cc \
1824 tests/stub_fatal.cc \
1825 tests/stub_HelperChildConfig.cc \
1826 tests/stub_HttpHeader.cc \
1827 tests/stub_HttpRequest.cc \
1828 tests/stub_libauth.cc \
1829 tests/stub_libhttp.cc \
1830 tests/stub_libmem.cc \
1831 tests/stub_libsecurity.cc \
1832 tests/stub_MemBuf.cc \
1833 tests/stub_StatHist.cc
1834 tests_testACLMaxUserIP_LDADD = \
1841 parser/libparser.la \
1845 $(LIBCPPUNIT_LIBS) \
1848 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1851 tests/testACLMaxUserIP.cc \
1852 tests/testACLMaxUserIP.h
1855 ## Tests of http/* and HTTP Protocol objects
1857 check_PROGRAMS += tests/test_http_range
1858 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_cache_cf.cc \
2022 tests/stub_external_acl.cc \
2023 tests/stub_HttpUpgradeProtocolAccess.cc \
2024 tests/stub_ipc_Forwarder.cc \
2025 tests/stub_libdiskio.cc \
2026 tests/stub_libeui.cc \
2027 tests/stub_libsecurity.cc \
2028 tests/stub_main_cc.cc \
2029 tests/stub_MemStore.cc \
2030 tests/stub_store_stats.cc \
2031 tests/stub_EventLoop.cc \
2035 tests/stub_tunnel.cc \
2040 tests/stub_wccp2.cc \
2042 tests/stub_whois.cc \
2046 nodist_tests_test_http_range_SOURCES = \
2048 tests_test_http_range_LDADD = \
2050 clients/libclients.la \
2051 servers/libservers.la \
2053 helper/libhelper.la \
2055 parser/libparser.la \
2060 proxyp/libproxyp.la \
2061 parser/libparser.la \
2068 format/libformat.la \
2070 $(ADAPTATION_LIBS) \
2080 $(top_builddir)/lib/libmisccontainers.la \
2081 $(top_builddir)/lib/libmiscencoding.la \
2082 $(top_builddir)/lib/libmiscutil.la \
2087 $(LIBCPPUNIT_LIBS) \
2090 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2092 check_PROGRAMS += tests/testHttp1Parser
2093 tests_testHttp1Parser_SOURCES = \
2097 tests/stub_MemObject.cc \
2102 tests/stub_SBufDetailedStats.cc \
2103 tests/stub_cache_cf.cc \
2104 tests/stub_cache_manager.cc \
2105 tests/stub_comm.cc \
2106 tests/stub_cbdata.cc \
2107 tests/stub_debug.cc \
2108 tests/stub_event.cc \
2109 tests/stub_HelperChildConfig.cc \
2110 tests/stub_libmem.cc \
2111 tests/stub_libsecurity.cc \
2112 tests/stub_stmem.cc \
2113 tests/stub_store.cc \
2114 tests/stub_store_stats.cc \
2116 tests/stub_tools.cc \
2117 tests/testHttp1Parser.cc \
2118 tests/testHttp1Parser.h \
2119 tests/stub_time.cc \
2120 tests/stub_libanyp.cc \
2123 nodist_tests_testHttp1Parser_SOURCES = \
2125 tests_testHttp1Parser_LDADD= \
2127 parser/libparser.la \
2133 $(top_builddir)/lib/libmiscutil.la \
2135 $(LIBCPPUNIT_LIBS) \
2138 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2140 check_PROGRAMS += tests/testHttpReply
2141 tests_testHttpReply_SOURCES=\
2145 tests/stub_ETag.cc \
2147 tests/stub_fatal.cc \
2150 HttpHeaderFieldStat.h \
2153 HttpHdrContRange.cc \
2154 HttpHdrContRange.h \
2158 HttpHdrScTarget.cc \
2163 HttpHeaderFieldInfo.h \
2165 HttpHeaderTools.cc \
2180 tests/stub_SBufDetailedStats.cc \
2185 tests/stub_access_log.cc \
2187 tests/stub_cache_cf.cc \
2188 tests/stub_cache_manager.cc \
2189 tests/stub_comm.cc \
2190 tests/stub_debug.cc \
2191 tests/stub_errorpage.cc \
2192 tests/stub_event.cc \
2194 tests/stub_HelperChildConfig.cc \
2195 tests/stub_libformat.cc \
2196 tests/stub_libauth.cc \
2197 tests/stub_libcomm.cc \
2198 tests/stub_libmgr.cc \
2199 tests/stub_libsecurity.cc \
2200 tests/stub_libsslsquid.cc \
2204 tests/stub_StatHist.cc \
2206 tests/stub_store.cc \
2207 tests/stub_store_stats.cc \
2209 tests/stub_tools.cc \
2210 tests/stub_HttpRequest.cc \
2211 tests/testHttpReply.cc \
2212 tests/testHttpReply.h \
2213 tests/stub_time.cc \
2214 tests/stub_libanyp.cc \
2217 nodist_tests_testHttpReply_SOURCES=\
2220 tests_testHttpReply_LDADD=\
2223 parser/libparser.la \
2233 $(top_builddir)/lib/libmisccontainers.la \
2234 $(top_builddir)/lib/libmiscencoding.la \
2235 $(top_builddir)/lib/libmiscutil.la \
2238 $(LIBCPPUNIT_LIBS) \
2241 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
2243 check_PROGRAMS += tests/testHttpRequest
2244 tests_testHttpRequest_SOURCES = \
2249 tests/stub_libmem.cc \
2251 tests/testHttpRequest.h \
2252 tests/testHttpRequest.cc \
2253 tests/testHttpRequestMethod.h \
2254 tests/testHttpRequestMethod.cc \
2255 tests/stub_libauth.cc \
2256 tests/stub_main_cc.cc \
2257 tests/stub_ipc_Forwarder.cc \
2258 tests/stub_libdiskio.cc \
2259 tests/stub_libeui.cc \
2260 tests/stub_store_stats.cc \
2261 tests/stub_EventLoop.cc \
2270 tests/stub_CacheDigest.cc \
2274 tests/stub_carp.cc \
2276 tests/stub_client_db.cc \
2279 client_side_reply.cc \
2280 client_side_request.cc \
2283 tests/stub_CollapsedForwarding.cc \
2290 $(DELAY_POOL_SOURCE) \
2297 tests/stub_ETag.cc \
2299 ExternalACLEntry.cc \
2301 tests/stub_fatal.cc \
2310 tests/stub_gopher.cc \
2311 HappyConnOpener.cc \
2319 tests/stub_HttpControlMsg.cc \
2322 HttpHeaderFieldInfo.h \
2324 HttpHeaderTools.cc \
2325 HttpHeaderFieldStat.h \
2328 HttpHdrContRange.cc \
2331 HttpHdrScTarget.cc \
2342 tests/stub_libsecurity.cc \
2361 peer_proxy_negotiate_auth.h \
2362 peer_proxy_negotiate_auth.cc \
2365 peer_sourcehash.cc \
2373 tests/stub_libauth_acls.cc \
2374 tests/stub_redirect.cc \
2380 tests/stub_SBufDetailedStats.cc \
2396 tests/stub_store_digest.cc \
2408 StoreFileSystem.cc \
2410 tests/stub_StoreMeta.cc \
2411 StoreMetaUnpacker.cc \
2412 StoreSwapLogData.cc \
2419 tests/stub_cache_cf.cc \
2420 tests/stub_HttpUpgradeProtocolAccess.cc \
2421 tests/stub_tunnel.cc \
2422 tests/stub_libstore.cc \
2427 tests/stub_wccp2.cc \
2429 tests/stub_whois.cc \
2434 nodist_tests_testHttpRequest_SOURCES = \
2436 tests_testHttpRequest_LDADD = \
2438 clients/libclients.la \
2439 servers/libservers.la \
2440 helper/libhelper.la \
2447 parser/libparser.la \
2452 proxyp/libproxyp.la \
2453 parser/libparser.la \
2462 format/libformat.la \
2466 $(ADAPTATION_LIBS) \
2468 $(top_builddir)/lib/libmisccontainers.la \
2469 $(top_builddir)/lib/libmiscencoding.la \
2470 $(top_builddir)/lib/libmiscutil.la \
2475 $(LIBCPPUNIT_LIBS) \
2478 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2482 check_PROGRAMS += tests/testIpAddress
2483 tests_testIpAddress_SOURCES = \
2484 tests/testIpAddress.cc \
2485 tests/testIpAddress.h
2486 nodist_tests_testIpAddress_SOURCES = \
2487 tests/stub_debug.cc \
2488 tests/stub_libmem.cc \
2489 tests/stub_SBuf.cc \
2491 tests_testIpAddress_LDADD = \
2494 $(LIBCPPUNIT_LIBS) \
2497 tests_testIpAddress_LDFLAGS = $(LIBADD_DL)
2501 check_PROGRAMS += tests/testIcmp
2502 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2503 tests_testIcmp_SOURCES = \
2506 nodist_tests_testIcmp_SOURCES = \
2509 tests/stub_debug.cc \
2510 tests/stub_libmem.cc \
2511 tests/stub_SBuf.cc \
2514 tests_testIcmp_LDADD=\
2515 icmp/libicmpcore.la \
2518 $(LIBCPPUNIT_LIBS) \
2521 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2523 check_PROGRAMS += tests/testNetDb
2524 tests_testNetDb_SOURCES = \
2525 tests/testNetDb.cc \
2527 nodist_tests_testNetDb_SOURCES = \
2529 tests/stub_debug.cc \
2530 tests/stub_libmem.cc \
2531 tests/stub_SBuf.cc \
2534 tests_testNetDb_LDADD = \
2538 $(top_builddir)/lib/libmisccontainers.la \
2539 $(LIBCPPUNIT_LIBS) \
2542 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2544 ## Tests of mgr/* and CacheManager objects
2546 check_PROGRAMS += tests/testCacheManager
2547 tests_testCacheManager_SOURCES = \
2554 tests/testCacheManager.cc \
2555 tests/testCacheManager.h \
2556 tests/stub_main_cc.cc \
2557 tests/stub_HttpControlMsg.cc \
2558 tests/stub_ipc_Forwarder.cc \
2559 tests/stub_store_stats.cc \
2560 tests/stub_EventLoop.cc \
2570 tests/stub_CacheDigest.cc \
2572 tests/stub_carp.cc \
2574 tests/stub_client_db.cc \
2577 client_side_reply.cc \
2578 client_side_request.cc \
2581 tests/stub_CollapsedForwarding.cc \
2588 $(DELAY_POOL_SOURCE) \
2595 tests/stub_ETag.cc \
2598 ExternalACLEntry.cc \
2600 tests/stub_fatal.cc \
2611 tests/stub_gopher.cc \
2612 HappyConnOpener.cc \
2622 HttpHeaderFieldInfo.h \
2624 HttpHeaderTools.cc \
2625 HttpHeaderFieldStat.h \
2628 HttpHdrContRange.cc \
2631 HttpHdrScTarget.cc \
2642 tests/stub_libsecurity.cc \
2661 peer_proxy_negotiate_auth.h \
2662 peer_proxy_negotiate_auth.cc \
2665 peer_sourcehash.cc \
2673 tests/stub_redirect.cc \
2679 tests/stub_SBufDetailedStats.cc \
2691 tests/stub_libauth_acls.cc \
2692 tests/stub_libauth.cc \
2693 tests/stub_libdiskio.cc \
2694 tests/stub_StatHist.cc \
2700 tests/stub_store_digest.cc \
2712 StoreFileSystem.cc \
2714 tests/stub_StoreMeta.cc \
2715 StoreMetaUnpacker.cc \
2716 StoreSwapLogData.cc \
2720 tests/stub_cache_cf.cc \
2721 tests/stub_HttpUpgradeProtocolAccess.cc \
2722 tests/stub_tunnel.cc \
2723 tests/stub_libstore.cc \
2729 tests/stub_wccp2.cc \
2731 tests/stub_whois.cc \
2736 nodist_tests_testCacheManager_SOURCES = \
2738 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
2739 tests_testCacheManager_LDADD = \
2741 clients/libclients.la \
2742 servers/libservers.la \
2744 helper/libhelper.la \
2746 proxyp/libproxyp.la \
2747 parser/libparser.la \
2760 format/libformat.la \
2762 $(ADAPTATION_LIBS) \
2772 $(top_builddir)/lib/libmisccontainers.la \
2773 $(top_builddir)/lib/libmiscencoding.la \
2774 $(top_builddir)/lib/libmiscutil.la \
2779 $(LIBCPPUNIT_LIBS) \
2782 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
2784 check_PROGRAMS += tests/testStatHist
2785 tests_testStatHist_SOURCES = \
2786 tests/stub_cbdata.cc \
2788 tests/stub_fatal.cc \
2789 tests/stub_MemBuf.cc \
2790 tests/stub_SBufDetailedStats.cc \
2794 tests/stub_cache_manager.cc \
2795 tests/stub_comm.cc \
2796 tests/stub_debug.cc \
2797 tests/stub_DelayId.cc \
2798 tests/stub_HelperChildConfig.cc \
2799 tests/stub_libmem.cc \
2800 tests/stub_MemObject.cc \
2802 tests/stub_mime.cc \
2803 tests/stub_pconn.cc \
2804 tests/stub_stmem.cc \
2806 tests/stub_store.cc \
2807 tests/stub_store_stats.cc \
2810 tests/stub_tools.cc \
2811 tests/testStatHist.cc \
2812 tests/testStatHist.h
2813 nodist_tests_testStatHist_SOURCES = \
2815 tests_testStatHist_LDADD = \
2818 $(top_builddir)/lib/libmiscutil.la \
2819 $(top_builddir)/lib/libmisccontainers.la \
2820 $(LIBCPPUNIT_LIBS) \
2822 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2824 ## Tests of ConfigParser
2826 check_PROGRAMS += tests/testConfigParser
2827 tests_testConfigParser_SOURCES = \
2829 tests/stub_MemBuf.cc \
2830 tests/stub_time.cc \
2831 tests/stub_SBufDetailedStats.cc \
2835 tests/stub_fatal.cc \
2836 tests/testConfigParser.cc \
2837 tests/testConfigParser.h \
2839 tests/stub_cache_cf.cc \
2840 tests/stub_cbdata.cc \
2841 tests/stub_debug.cc \
2842 tests/stub_libmem.cc \
2843 tests/stub_HelperChildConfig.cc \
2845 tests/stub_tools.cc \
2848 nodist_tests_testConfigParser_SOURCES = \
2850 tests_testConfigParser_LDADD = \
2855 $(top_builddir)/lib/libmiscutil.la \
2858 $(LIBCPPUNIT_LIBS) \
2861 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
2863 ## Tests of Event handling
2865 check_PROGRAMS += tests/testEvent
2866 tests_testEvent_SOURCES = \
2870 tests/stub_CacheDigest.cc \
2878 tests/stub_carp.cc \
2880 tests/stub_client_db.cc \
2883 client_side_reply.cc \
2884 client_side_request.cc \
2887 tests/stub_CollapsedForwarding.cc \
2895 $(DELAY_POOL_SOURCE) \
2902 tests/stub_ETag.cc \
2907 ExternalACLEntry.cc \
2910 tests/stub_fatal.cc \
2921 tests/stub_gopher.cc \
2922 HappyConnOpener.cc \
2930 tests/stub_HttpControlMsg.cc \
2933 HttpHeaderFieldInfo.h \
2935 HttpHeaderTools.cc \
2936 HttpHeaderFieldStat.h \
2939 HttpHdrContRange.cc \
2942 HttpHdrScTarget.cc \
2958 tests/stub_libsecurity.cc \
2961 tests/stub_libmem.cc \
2978 peer_proxy_negotiate_auth.h \
2979 peer_proxy_negotiate_auth.cc \
2982 peer_sourcehash.cc \
2988 tests/stub_redirect.cc \
2996 tests/stub_SBufDetailedStats.cc \
3012 tests/stub_store_digest.cc \
3024 StoreFileSystem.cc \
3026 tests/stub_StoreMeta.cc \
3027 StoreMetaUnpacker.cc \
3028 StoreSwapLogData.cc \
3030 tests/stub_cache_cf.cc \
3031 tests/stub_HttpUpgradeProtocolAccess.cc \
3032 tests/stub_libstore.cc \
3033 tests/CapturingStoreEntry.h \
3034 tests/testEvent.cc \
3036 tests/stub_main_cc.cc \
3037 tests/stub_ipc_Forwarder.cc \
3038 tests/stub_libauth_acls.cc \
3039 tests/stub_libauth.cc \
3040 tests/stub_libdiskio.cc \
3041 tests/stub_libeui.cc \
3042 tests/stub_store_stats.cc \
3047 tests/stub_tunnel.cc \
3053 tests/stub_wccp2.cc \
3055 tests/stub_whois.cc \
3059 nodist_tests_testEvent_SOURCES = \
3061 tests_testEvent_LDADD = \
3063 clients/libclients.la \
3064 servers/libservers.la \
3066 helper/libhelper.la \
3068 proxyp/libproxyp.la \
3069 parser/libparser.la \
3082 format/libformat.la \
3084 $(ADAPTATION_LIBS) \
3087 $(top_builddir)/lib/libmisccontainers.la \
3088 $(top_builddir)/lib/libmiscencoding.la \
3089 $(top_builddir)/lib/libmiscutil.la \
3099 $(LIBCPPUNIT_LIBS) \
3102 tests_testEvent_LDFLAGS = $(LIBADD_DL)
3104 check_PROGRAMS += tests/testEventLoop
3105 tests_testEventLoop_SOURCES = \
3109 tests/stub_CacheDigest.cc \
3117 tests/stub_carp.cc \
3119 tests/stub_client_db.cc \
3122 client_side_reply.cc \
3123 client_side_request.cc \
3126 tests/stub_CollapsedForwarding.cc \
3134 $(DELAY_POOL_SOURCE) \
3141 tests/stub_ETag.cc \
3146 ExternalACLEntry.cc \
3149 tests/stub_fatal.cc \
3160 tests/stub_gopher.cc \
3161 HappyConnOpener.cc \
3169 tests/stub_HttpControlMsg.cc \
3172 HttpHeaderFieldInfo.h \
3174 HttpHeaderTools.cc \
3175 HttpHeaderFieldStat.h \
3178 HttpHdrContRange.cc \
3181 HttpHdrScTarget.cc \
3201 tests/stub_libmem.cc \
3216 peer_proxy_negotiate_auth.h \
3217 peer_proxy_negotiate_auth.cc \
3220 peer_sourcehash.cc \
3229 tests/stub_redirect.cc \
3232 tests/stub_SBufDetailedStats.cc \
3248 tests/stub_store_digest.cc \
3260 StoreFileSystem.cc \
3262 tests/stub_StoreMeta.cc \
3263 StoreMetaUnpacker.cc \
3264 StoreSwapLogData.cc \
3268 tests/stub_cache_cf.cc \
3269 tests/stub_HttpUpgradeProtocolAccess.cc \
3270 tests/stub_libstore.cc \
3271 tests/testEventLoop.cc \
3272 tests/testEventLoop.h \
3273 tests/stub_main_cc.cc \
3274 tests/stub_ipc_Forwarder.cc \
3275 tests/stub_libauth_acls.cc \
3276 tests/stub_libauth.cc \
3277 tests/stub_libdiskio.cc \
3278 tests/stub_libeui.cc \
3279 tests/stub_libsecurity.cc \
3280 tests/stub_store_stats.cc \
3285 tests/stub_tunnel.cc \
3291 tests/stub_wccp2.cc \
3293 tests/stub_whois.cc \
3297 nodist_tests_testEventLoop_SOURCES = \
3299 tests_testEventLoop_LDADD = \
3301 clients/libclients.la \
3302 servers/libservers.la \
3304 helper/libhelper.la \
3306 proxyp/libproxyp.la \
3307 parser/libparser.la \
3320 format/libformat.la \
3322 $(ADAPTATION_LIBS) \
3325 $(top_builddir)/lib/libmisccontainers.la \
3326 $(top_builddir)/lib/libmiscencoding.la \
3327 $(top_builddir)/lib/libmiscutil.la \
3337 $(LIBCPPUNIT_LIBS) \
3340 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
3342 ## Run the unit tests. check_PROGRAMS only builds the binaries.
3343 TESTS += $(check_PROGRAMS) testHeaders
3345 ## Special Universal .h dependency test script
3346 ## aborts if error encountered
3347 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3348 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3349 ## src/repl/ has no .h files and its own makefile.
3351 CLEANFILES += testHeaders