2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
22 OutOfBoundsException.h \
43 LOADABLE_MODULES_SOURCES = \
49 SUBDIRS = base anyp comm eui acl format fs repl
50 DIST_SUBDIRS = base anyp comm eui acl format fs repl
54 AUTH_LIBS= auth/libauth.la
55 AUTH_ACL_LIBS= auth/libacls.la
56 check_PROGRAMS+= tests/testACLMaxUserIP
60 SUBDIRS += http ip icmp ident log ipc mgr
61 DIST_SUBDIRS += http ip icmp ident log ipc mgr
80 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
82 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
91 DIST_SUBDIRS += adaptation
97 $(top_builddir)/lib/libTrie/libTrie.a
98 ESI_LIBS = $(ESI_LOCAL_LIBS) \
106 DELAY_POOL_ALL_SOURCE = \
108 CompositePoolNode.h \
130 ClientDelayConfig.cc \
133 if ENABLE_DELAY_POOLS
134 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
139 if ENABLE_XPROF_STATS
140 XPROF_STATS_SOURCE = ProfStats.cc
146 HTCPSOURCE = htcp.cc htcp.h
150 LEAKFINDERSOURCE = LeakFinder.cc
156 UNLINKDSOURCE = unlinkd.h unlinkd.cc
159 UNLINKDSOURCE = unlinkd.h
168 if ENABLE_WIN32SPECIFIC
169 WIN32_SOURCE = win32.cc
170 WINSVC_SOURCE = WinSvc.cc
177 IPC_SOURCE = SquidIpc.h ipc_win32.cc
179 IPC_SOURCE = SquidIpc.h ipc.cc
182 AIO_WIN32_ALL_SOURCES = \
183 DiskIO/AIO/aio_win32.cc \
184 DiskIO/AIO/aio_win32.h
186 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
192 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
193 DiskIO/DiskThreads/CommIO.cc \
194 DiskIO/DiskThreads/CommIO.h
196 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
197 DiskIO/DiskThreads/CommIO.cc \
198 DiskIO/DiskThreads/CommIO.h
201 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
202 libMmapped.a libIpcIo.a
203 noinst_LIBRARIES = $(DISK_LIBS)
204 noinst_LTLIBRARIES = libsquid.la
207 DiskIO/DiskDaemon/diskd \
214 ## cfgen is used when building squid
215 ## ufsdump is a debug utility, it is possibly useful for end users with cache
216 ## corruption, but at this point we do not install it.
230 cf_gen_SOURCES = cf_gen.cc
231 nodist_cf_gen_HEADER = cf_gen_defines.cci
232 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
234 cf_gen.$(OBJEXT): cf_gen_defines.cci
236 ## cf_gen.cc needs src/cf_gen_defines.cci
237 INCLUDES += -I$(top_builddir)/src
240 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
243 DiskIO/DiskIOModule.cc \
244 DiskIO/ReadRequest.cc \
245 DiskIO/ReadRequest.h \
246 DiskIO/WriteRequest.cc \
247 DiskIO/WriteRequest.h \
249 DiskIO/DiskIOStrategy.h \
250 DiskIO/IORequestor.h \
251 DiskIO/DiskIOModule.h \
254 DISKIO_GEN_SOURCE = \
255 DiskIO/DiskIOModules_gen.cc
257 DiskIO/DiskIOModules_gen.cc: Makefile
258 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
261 # common library for all the binaries and tests. This is kindof a catch all
262 # and smaller libraries split from this are encouraged. Using lt convenience
263 # libraries, dependencies should not be a problem either.
264 libsquid_la_SOURCES = \
276 $(ACL_REGISTRATION_SOURCES) \
290 NeighborTypeDomainList.h \
291 CachePeerDomainList.h \
298 ChunkedCodingParser.cc \
299 ChunkedCodingParser.h \
305 client_side_reply.cc \
306 client_side_reply.h \
307 client_side_request.cc \
308 client_side_request.h \
313 ClientRequestContext.h \
316 CollapsedForwarding.cc \
317 CollapsedForwarding.h \
318 CompletionDispatcher.cc \
319 CompletionDispatcher.h \
333 $(DELAY_POOL_SOURCE) \
353 ExternalACLEntry.cc \
377 HelperChildConfig.h \
378 HelperChildConfig.cc \
382 HierarchyLogEntry.h \
387 HttpHeaderFieldStat.h \
396 HttpHdrContRange.cc \
403 HttpHeaderFieldInfo.h \
419 HttpRequestMethod.cc \
420 HttpRequestMethod.h \
432 $(LEAKFINDERSOURCE) \
463 $(XPROF_STATS_SOURCE) \
468 peer_proxy_negotiate_auth.h \
469 peer_proxy_negotiate_auth.cc \
487 SBufDetailedStats.h \
488 SBufDetailedStats.cc \
532 StoreMetaUnpacker.cc \
533 StoreMetaUnpacker.h \
534 $(STOREMETA_SOURCE) \
538 StoreSwapLogData.cc \
573 EXTRA_squid_SOURCES = \
574 $(AIO_WIN32_ALL_SOURCES) \
577 $(DELAY_POOL_ALL_SOURCE) \
587 $(WIN32_ALL_SOURCE) \
588 $(LOADABLE_MODULES_SOURCES)
591 client_side_request.cci \
612 CLEANFILES += $(BUILT_SOURCES)
614 nodist_squid_SOURCES = \
615 $(DISKIO_GEN_SOURCE) \
635 http/libsquid-http.la \
636 icmp/libicmp.la icmp/libicmp-core.la \
638 format/libformat.la \
649 $(top_builddir)/lib/libmisccontainers.la \
650 $(top_builddir)/lib/libmiscencoding.la \
651 $(top_builddir)/lib/libmiscutil.la \
658 squid_DEPENDENCIES = \
676 format/libformat.la \
680 if USE_LOADABLE_MODULES
681 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
682 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
683 squid_LDFLAGS = -export-dynamic -dlopen force
684 ## when static module linking is supported and enabled:
685 ## squid_LDFLAGS = -all-static -dlopen self
687 ## LTDL headers require their local include path...
688 INCLUDES += $(INCLTDL)
691 ## Kerberos libraries require their include path...
692 INCLUDES += $(KRB5INCS)
695 unlinkd_SOURCES = unlinkd_daemon.cc
700 recv_announce_SOURCES = recv-announce.cc
702 ## What requires what..
703 ## many things want ACLChecklist.cc
704 ## ACLChecklist.cc wants AuthUserRequest.cc
705 ## ACLChecklist.cc wants AuthScheme.cc
706 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
707 ## ACLProxyAuth.cc wants ACLUserData
708 ## ACLProxyAuth.cc wants ACLRegexData
709 ## cache_cf.cc wants $(AUTH_LIBS)
710 ## cache_cf.cc wants Swapdir
711 ## cache_cf.cc wants AnyP::PortCfg
712 ## client_side wants client_db
713 ## client_db wants SNMP_SOURCE
714 ## snmp_core wants ACLStringData
715 ## SwapDir wants ConfigOption
716 ## tools.cc wants ip/libip.la
717 ## client_side.cc wants ip/libip.la
718 ## mem.cc wants ClientInfo.h
719 ## libbase.la wants cbdata.*
720 ## libbase.la wants MemBuf.*
736 tests/stub_StoreMeta.cc \
737 StoreMetaUnpacker.cc \
744 HelperChildConfig.h \
745 tests/stub_HelperChildConfig.cc \
746 HttpRequestMethod.cc \
772 ufsdump_DEPENDENCIES = \
788 nodist_ufsdump_SOURCES = \
793 squid.conf.documented \
818 include $(srcdir)/tests/Stub.list
827 mk-string-arrays.pl \
828 mk-string-arrays.awk \
835 $(AIO_WIN32_SOURCES) \
836 DiskIO/AIO/async_io.h \
837 DiskIO/AIO/AIODiskFile.cc \
838 DiskIO/AIO/AIODiskFile.h \
839 DiskIO/AIO/AIODiskIOStrategy.cc \
840 DiskIO/AIO/AIODiskIOStrategy.h \
841 DiskIO/AIO/AIODiskIOModule.cc \
842 DiskIO/AIO/AIODiskIOModule.h
844 libBlocking_a_SOURCES = \
845 DiskIO/Blocking/BlockingFile.cc \
846 DiskIO/Blocking/BlockingFile.h \
847 DiskIO/Blocking/BlockingIOStrategy.cc \
848 DiskIO/Blocking/BlockingIOStrategy.h \
849 DiskIO/Blocking/BlockingDiskIOModule.cc \
850 DiskIO/Blocking/BlockingDiskIOModule.h
852 libMmapped_a_SOURCES = \
853 DiskIO/Mmapped/MmappedFile.cc \
854 DiskIO/Mmapped/MmappedFile.h \
855 DiskIO/Mmapped/MmappedIOStrategy.cc \
856 DiskIO/Mmapped/MmappedIOStrategy.h \
857 DiskIO/Mmapped/MmappedDiskIOModule.cc \
858 DiskIO/Mmapped/MmappedDiskIOModule.h
860 libIpcIo_a_SOURCES = \
861 DiskIO/IpcIo/IpcIoFile.cc \
862 DiskIO/IpcIo/IpcIoFile.h \
863 DiskIO/IpcIo/IpcIoIOStrategy.cc \
864 DiskIO/IpcIo/IpcIoIOStrategy.h \
865 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
866 DiskIO/IpcIo/IpcIoDiskIOModule.h
868 libDiskDaemon_a_SOURCES = \
869 DiskIO/DiskDaemon/DiskdFile.cc \
870 DiskIO/DiskDaemon/DiskdFile.h \
871 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
872 DiskIO/DiskDaemon/DiskdIOStrategy.h \
873 DiskIO/DiskDaemon/diomsg.h \
874 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
875 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
876 DiskIO/DiskDaemon/DiskdAction.cc \
877 DiskIO/DiskDaemon/DiskdAction.h
879 libDiskThreads_a_SOURCES = \
881 DiskIO/DiskThreads/async_io.cc \
882 DiskIO/DiskThreads/DiskThreads.h \
883 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
884 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
885 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
886 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
887 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
888 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
890 EXTRA_libDiskThreads_a_SOURCES = \
891 DiskIO/DiskThreads/aiops.cc \
892 DiskIO/DiskThreads/aiops_win32.cc \
893 DiskIO/DiskThreads/CommIO.cc \
894 DiskIO/DiskThreads/CommIO.h
896 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
897 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
898 DiskIO_DiskDaemon_diskd_LDADD = \
899 $(top_builddir)/lib/libmisccontainers.la \
900 $(top_builddir)/lib/libmiscencoding.la \
901 $(top_builddir)/lib/libmiscutil.la \
906 DEFAULT_HTTP_PORT = 3128
907 DEFAULT_ICP_PORT = 3130
908 DEFAULT_PREFIX = $(prefix)
909 DEFAULT_CONFIG_DIR = $(sysconfdir)
910 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
911 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
912 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
913 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
914 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
915 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
916 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
917 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
918 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
919 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
921 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
922 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
923 DEFAULT_ICON_DIR = $(datadir)/icons
924 DEFAULT_ERROR_DIR = $(datadir)/errors
926 # Make location configure settings available to the code
927 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
929 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
931 globals.cc: globals.h mk-globals-c.awk
932 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
934 ## Generate files containing string arrays for various enums....
935 hier_code.cc: hier_code.h mk-string-arrays.awk
936 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
938 err_type.cc: err_type.h mk-string-arrays.awk
939 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
941 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
942 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
944 LogTags.cc: LogTags.h mk-string-arrays.awk
945 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
947 lookup_t.cc: lookup_t.h mk-string-arrays.awk
948 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
950 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
951 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
953 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
954 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
957 ## other generated files...
959 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
960 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
962 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
963 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
965 ## If autodependency works well this is not needed anymore
966 cache_cf.o: cf_parser.cci
968 # cf_gen builds the configuration files.
969 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
970 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
972 # squid.conf.default is built by cf_gen when making cf_parser.cci
973 squid.conf.default squid.conf.documented: cf_parser.cci
976 cf_parser.cci: cf.data cf_gen$(EXEEXT)
977 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
979 # The cf_gen_defines.cci is auto-generated and does not exist when the
980 # dependencies computed. We need to add its include files (autoconf.h) here
981 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
982 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
985 ## FIXME: generate a sed command file from configure. Then this doesn't
986 ## depend on the Makefile.
987 cf.data: cf.data.pre Makefile
989 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
990 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
991 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
992 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
993 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
994 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
995 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
996 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
997 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
998 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
999 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1000 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1001 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1002 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1003 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1004 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1005 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1006 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1007 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1008 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1009 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1010 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1011 < $(srcdir)/cf.data.pre >$@
1013 repl_modules.cc: repl_modules.sh Makefile
1014 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1016 include $(top_srcdir)/doc/manuals/Substitute.am
1018 squid.8: $(srcdir)/squid.8.in Makefile
1019 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1022 EXTRA_DIST += squid.8.in
1023 CLEANFILES += squid.8
1025 install-data-local: install-sysconfDATA install-dataDATA
1026 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1027 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1029 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1030 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1032 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1033 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1035 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1036 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1038 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1039 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1040 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1041 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1042 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1043 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1044 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1046 uninstall-local: squid.conf.default
1047 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1048 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1050 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1051 DiskIO/DiskIOModules_gen.cc \
1054 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1055 cp $(top_srcdir)/test-suite/test_tools.cc .
1057 # stock tools for unit tests - library independent versions of dlink_list
1059 # globals.cc is needed by test_tools.cc.
1060 # Neither of these should be disted from here.
1067 tests/testBoilerplate \
1068 tests/testCacheManager \
1071 tests/testEventLoop \
1072 tests/test_http_range \
1073 tests/testHttpParser \
1074 tests/testHttpReply \
1075 tests/testHttpRequest \
1080 tests/testSBufList \
1081 tests/testConfigParser \
1082 tests/testStatHist \
1086 check_PROGRAMS += tests/testRock
1089 check_PROGRAMS += tests/testUfs
1092 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1093 TESTS += $(check_PROGRAMS)
1095 ### Template for new Unit Test Program
1096 ## - add tests/testX to check_PROGRAMS above.
1097 ## - copy template below and substitue X for class name
1098 ## - add other component .(h|cc) files needed to link and run tests
1100 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1102 #tests_testX_SOURCES=\
1105 # tests/testMain.cc \
1108 #nodist_tests_testX_SOURCES=\
1110 #tests_testX_LDFLAGS = $(LIBADD_DL)
1111 #tests_testX_LDADD=\
1112 # $(SQUID_CPPUNIT_LIBS) \
1113 # $(SQUID_CPPUNIT_LA) \
1115 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1118 # - add other component .(h|cc) files needed to link and run tests
1119 tests_testHttpReply_SOURCES=\
1123 tests/stub_ETag.cc \
1125 tests/stub_fatal.cc \
1128 HttpHeaderFieldStat.h \
1132 HttpHdrContRange.cc \
1133 HttpHdrContRange.h \
1137 HttpHdrScTarget.cc \
1142 HttpHeaderFieldInfo.h \
1144 HttpHeaderTools.cc \
1165 SBufDetailedStats.h \
1166 tests/stub_SBufDetailedStats.cc \
1171 tests/stub_access_log.cc \
1174 tests/stub_cache_cf.cc \
1175 tests/stub_cache_manager.cc \
1176 tests/stub_debug.cc \
1177 tests/stub_errorpage.cc \
1178 tests/stub_HelperChildConfig.cc \
1179 tests/stub_libformat.cc \
1180 tests/stub_libauth.cc \
1184 tests/stub_StatHist.cc \
1186 tests/stub_store.cc \
1187 tests/stub_store_stats.cc \
1189 tests/stub_tools.cc \
1190 tests/stub_HttpRequest.cc \
1191 tests/testHttpReply.cc \
1192 tests/testHttpReply.h \
1194 tests/stub_time.cc \
1199 nodist_tests_testHttpReply_SOURCES=\
1201 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1202 tests_testHttpReply_LDADD=\
1203 http/libsquid-http.la \
1211 $(top_builddir)/lib/libmisccontainers.la \
1212 $(top_builddir)/lib/libmiscencoding.la \
1213 $(top_builddir)/lib/libmiscutil.la \
1214 $(SQUID_CPPUNIT_LIBS) \
1215 $(SQUID_CPPUNIT_LA) \
1219 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1221 tests_testACLMaxUserIP_SOURCES= \
1224 tests/stub_CollapsedForwarding.cc \
1227 DiskIO/ReadRequest.cc \
1228 DiskIO/WriteRequest.cc \
1229 tests/stub_ETag.cc \
1232 tests/stub_fatal.cc \
1235 HelperChildConfig.h \
1236 HelperChildConfig.cc \
1240 HttpHeaderFieldInfo.h \
1242 HttpHeaderTools.cc \
1243 HttpHdrContRange.cc \
1245 HttpHeaderFieldStat.h \
1250 HttpHdrScTarget.cc \
1252 HttpRequestMethod.cc \
1270 tests/stub_StatHist.cc \
1273 SBufDetailedStats.h \
1274 tests/stub_SBufDetailedStats.cc \
1278 tests/stub_StoreMeta.cc \
1279 StoreMetaUnpacker.cc \
1280 StoreSwapLogData.cc \
1285 tests/stub_SwapDir.cc \
1289 tests/stub_access_log.cc \
1292 tests/stub_cache_cf.cc \
1293 tests/stub_client_side.cc \
1294 tests/stub_debug.cc \
1295 tests/stub_DelayId.cc \
1296 tests/stub_DiskIOModule.cc \
1297 tests/stub_errorpage.cc \
1300 tests/stub_HttpRequest.cc \
1301 tests/stub_HttpReply.cc \
1302 tests/stub_ipc_TypedMsgHdr.cc \
1303 tests/stub_libauth.cc \
1304 tests/stub_libcomm.cc \
1305 tests/stub_libformat.cc \
1306 tests/stub_libsslsquid.cc \
1307 tests/stub_MemObject.cc \
1308 tests/stub_MemStore.cc \
1310 tests/stub_mime.cc \
1311 tests/stub_pconn.cc \
1312 tests/stub_Port.cc \
1314 tests/stub_store.cc \
1315 tests/stub_store_client.cc \
1317 tests/stub_store_rebuild.cc \
1318 tests/stub_store_stats.cc \
1319 tests/stub_store_swapout.cc \
1321 tests/stub_tools.cc \
1322 tests/stub_cache_manager.cc \
1323 tests/stub_UdsOp.cc \
1324 tests/testACLMaxUserIP.cc \
1325 tests/testACLMaxUserIP.h \
1327 tests/stub_time.cc \
1337 nodist_tests_testACLMaxUserIP_SOURCES= \
1339 tests_testACLMaxUserIP_LDADD= \
1340 http/libsquid-http.la \
1353 $(top_builddir)/lib/libmisccontainers.la \
1354 $(top_builddir)/lib/libmiscencoding.la \
1355 $(top_builddir)/lib/libmiscutil.la \
1358 $(SQUID_CPPUNIT_LIBS) \
1362 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1363 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1364 ## $(SQUID_CPPUNIT_LA)
1366 ## a demonstration test that does nothing but shows the salient points
1367 ## involved in writing tests.
1368 tests_testBoilerplate_SOURCES = \
1369 tests/testBoilerplate.cc \
1371 tests/testBoilerplate.h \
1373 nodist_tests_testBoilerplate_SOURCES = \
1375 tests_testBoilerplate_LDADD= \
1376 $(SQUID_CPPUNIT_LIBS) \
1380 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1381 tests_testBoilerplate_DEPENDENCIES = \
1384 ## Tests of the CacheManager module.
1385 tests_testCacheManager_SOURCES = \
1393 HttpRequestMethod.cc \
1397 tests/testCacheManager.cc \
1398 tests/testCacheManager.h \
1400 tests/stub_main_cc.cc \
1401 tests/stub_ipc_Forwarder.cc \
1402 tests/stub_store_stats.cc \
1403 tests/stub_EventLoop.cc \
1414 tests/stub_CacheDigest.cc \
1416 tests/stub_carp.cc \
1418 ChunkedCodingParser.cc \
1423 client_side_reply.cc \
1424 client_side_request.cc \
1427 tests/stub_CollapsedForwarding.cc \
1434 $(DELAY_POOL_SOURCE) \
1442 tests/stub_ETag.cc \
1445 ExternalACLEntry.cc \
1447 tests/stub_fatal.cc \
1463 HelperChildConfig.h \
1464 HelperChildConfig.cc \
1474 HttpHeaderFieldInfo.h \
1476 HttpHeaderTools.cc \
1477 HttpHeaderFieldStat.h \
1481 HttpHdrContRange.cc \
1484 HttpHdrScTarget.cc \
1516 peer_proxy_negotiate_auth.h \
1517 peer_proxy_negotiate_auth.cc \
1520 peer_sourcehash.cc \
1524 tests/stub_redirect.cc \
1530 SBufDetailedStats.h \
1531 tests/stub_SBufDetailedStats.cc \
1543 tests/stub_libauth_acls.cc \
1544 tests/stub_libauth.cc \
1545 tests/stub_StatHist.cc \
1551 tests/stub_store_digest.cc \
1564 StoreFileSystem.cc \
1566 tests/stub_StoreMeta.cc \
1567 StoreMetaUnpacker.cc \
1568 StoreSwapLogData.cc \
1572 tests/stub_tunnel.cc \
1573 tests/stub_SwapDir.cc \
1581 tests/stub_wccp2.cc \
1583 tests/stub_whois.cc \
1588 nodist_tests_testCacheManager_SOURCES = \
1590 $(DISKIO_GEN_SOURCE)
1591 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1592 tests_testCacheManager_LDADD = \
1593 http/libsquid-http.la \
1604 icmp/libicmp.la icmp/libicmp-core.la \
1606 format/libformat.la \
1610 $(ADAPTATION_LIBS) \
1617 $(top_builddir)/lib/libmisccontainers.la \
1618 $(top_builddir)/lib/libmiscencoding.la \
1619 $(top_builddir)/lib/libmiscutil.la \
1621 $(SQUID_CPPUNIT_LIBS) \
1622 $(SQUID_CPPUNIT_LA) \
1627 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1628 tests_testCacheManager_DEPENDENCIES = \
1632 tests_testDiskIO_SOURCES = \
1634 tests/stub_CacheDigest.cc \
1638 tests/stub_CollapsedForwarding.cc \
1641 $(DELAY_POOL_SOURCE) \
1645 tests/stub_ETag.cc \
1649 tests/stub_fatal.cc \
1658 HttpHeaderFieldStat.h \
1662 HttpHdrContRange.cc \
1664 HttpHdrScTarget.cc \
1666 HttpHeaderFieldInfo.h \
1668 HttpHeaderTools.cc \
1673 HttpRequestMethod.cc \
1697 tests/stub_StatHist.cc \
1700 SBufDetailedStats.h \
1701 tests/stub_SBufDetailedStats.cc \
1702 StoreFileSystem.cc \
1704 tests/stub_StoreMeta.cc \
1705 StoreMetaUnpacker.cc \
1706 StoreSwapLogData.cc \
1718 tests/stub_SwapDir.cc \
1721 tests/stub_access_log.cc \
1725 tests/stub_cache_cf.cc \
1726 tests/stub_cache_manager.cc \
1727 tests/stub_client_db.cc \
1728 client_side_request.h \
1729 tests/stub_client_side_request.cc \
1730 tests/stub_debug.cc \
1731 tests/stub_errorpage.cc \
1732 tests/stub_helper.cc \
1733 tests/stub_HelperChildConfig.cc \
1734 tests/stub_HttpRequest.cc \
1735 tests/stub_http.cc \
1738 tests/stub_internal.cc \
1740 tests/stub_ipcache.cc \
1741 tests/stub_libauth_acls.cc \
1742 tests/stub_libauth.cc \
1743 tests/stub_libeui.cc \
1744 tests/stub_libformat.cc \
1745 tests/stub_libicmp.cc \
1746 tests/stub_MemStore.cc \
1748 tests/stub_mime.cc \
1749 tests/stub_pconn.cc \
1750 tests/stub_Port.cc \
1751 tests/stub_stat.cc \
1752 tests/stub_store_client.cc \
1753 tests/stub_store_stats.cc \
1755 tests/stub_store_rebuild.cc \
1756 tests/stub_UdsOp.cc \
1757 tests/testDiskIO.cc \
1758 tests/testDiskIO.h \
1760 tests/testStoreSupport.cc \
1761 tests/testStoreSupport.h \
1762 tests/stub_time.cc \
1771 nodist_tests_testDiskIO_SOURCES= \
1773 $(DISKIO_GEN_SOURCE) \
1777 tests_testDiskIO_LDADD = \
1778 http/libsquid-http.la \
1781 DnsLookupDetails.o \
1799 $(top_builddir)/lib/libmisccontainers.la \
1800 $(top_builddir)/lib/libmiscencoding.la \
1801 $(top_builddir)/lib/libmiscutil.la \
1803 $(SQUID_CPPUNIT_LIBS) \
1808 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1809 tests_testDiskIO_DEPENDENCIES = \
1814 ## Tests of the Even module.
1815 tests_testEvent_SOURCES = \
1819 tests/stub_CacheDigest.cc \
1828 tests/stub_carp.cc \
1830 ChunkedCodingParser.cc \
1835 client_side_reply.cc \
1836 client_side_request.cc \
1839 tests/stub_CollapsedForwarding.cc \
1847 $(DELAY_POOL_SOURCE) \
1855 tests/stub_ETag.cc \
1860 ExternalACLEntry.cc \
1863 tests/stub_fatal.cc \
1878 HelperChildConfig.h \
1879 HelperChildConfig.cc \
1889 HttpHeaderFieldInfo.h \
1891 HttpHeaderTools.cc \
1892 HttpHeaderFieldStat.h \
1896 HttpHdrContRange.cc \
1899 HttpHdrScTarget.cc \
1907 HttpRequestMethod.cc \
1939 peer_proxy_negotiate_auth.h \
1940 peer_proxy_negotiate_auth.cc \
1943 peer_sourcehash.cc \
1947 tests/stub_redirect.cc \
1955 SBufDetailedStats.h \
1956 tests/stub_SBufDetailedStats.cc \
1972 tests/stub_store_digest.cc \
1985 StoreFileSystem.cc \
1987 tests/stub_StoreMeta.cc \
1988 StoreMetaUnpacker.cc \
1989 StoreSwapLogData.cc \
1991 tests/stub_SwapDir.cc \
1992 tests/CapturingStoreEntry.h \
1993 tests/testEvent.cc \
1996 tests/stub_main_cc.cc \
1997 tests/stub_ipc_Forwarder.cc \
1998 tests/stub_libauth_acls.cc \
1999 tests/stub_libauth.cc \
2000 tests/stub_libeui.cc \
2001 tests/stub_store_stats.cc \
2006 tests/stub_tunnel.cc \
2014 tests/stub_wccp2.cc \
2016 tests/stub_whois.cc \
2020 nodist_tests_testEvent_SOURCES = \
2022 $(DISKIO_GEN_SOURCE)
2023 tests_testEvent_LDADD = \
2024 http/libsquid-http.la \
2034 icmp/libicmp.la icmp/libicmp-core.la \
2037 format/libformat.la \
2039 $(ADAPTATION_LIBS) \
2042 $(top_builddir)/lib/libmisccontainers.la \
2043 $(top_builddir)/lib/libmiscencoding.la \
2044 $(top_builddir)/lib/libmiscutil.la \
2051 $(SQUID_CPPUNIT_LIBS) \
2052 $(SQUID_CPPUNIT_LA) \
2057 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2058 tests_testEvent_DEPENDENCIES = \
2062 ## Tests of the EventLoop module.
2063 tests_testEventLoop_SOURCES = \
2067 tests/stub_CacheDigest.cc \
2076 tests/stub_carp.cc \
2078 ChunkedCodingParser.cc \
2083 client_side_reply.cc \
2084 client_side_request.cc \
2087 tests/stub_CollapsedForwarding.cc \
2095 $(DELAY_POOL_SOURCE) \
2103 tests/stub_ETag.cc \
2108 ExternalACLEntry.cc \
2111 tests/stub_fatal.cc \
2126 HelperChildConfig.h \
2127 HelperChildConfig.cc \
2137 HttpHeaderFieldInfo.h \
2139 HttpHeaderTools.cc \
2140 HttpHeaderFieldStat.h \
2144 HttpHdrContRange.cc \
2147 HttpHdrScTarget.cc \
2155 HttpRequestMethod.cc \
2187 peer_proxy_negotiate_auth.h \
2188 peer_proxy_negotiate_auth.cc \
2191 peer_sourcehash.cc \
2196 tests/stub_redirect.cc \
2201 SBufDetailedStats.h \
2202 tests/stub_SBufDetailedStats.cc \
2219 tests/stub_store_digest.cc \
2232 StoreFileSystem.cc \
2234 tests/stub_StoreMeta.cc \
2235 StoreMetaUnpacker.cc \
2236 StoreSwapLogData.cc \
2240 tests/stub_SwapDir.cc \
2241 tests/testEventLoop.cc \
2242 tests/testEventLoop.h \
2244 tests/stub_main_cc.cc \
2245 tests/stub_ipc_Forwarder.cc \
2246 tests/stub_libauth_acls.cc \
2247 tests/stub_libauth.cc \
2248 tests/stub_libeui.cc \
2249 tests/stub_store_stats.cc \
2254 tests/stub_tunnel.cc \
2262 tests/stub_wccp2.cc \
2264 tests/stub_whois.cc \
2268 nodist_tests_testEventLoop_SOURCES = \
2270 $(DISKIO_GEN_SOURCE)
2271 tests_testEventLoop_LDADD = \
2272 http/libsquid-http.la \
2282 icmp/libicmp.la icmp/libicmp-core.la \
2285 format/libformat.la \
2287 $(ADAPTATION_LIBS) \
2290 $(top_builddir)/lib/libmisccontainers.la \
2291 $(top_builddir)/lib/libmiscencoding.la \
2292 $(top_builddir)/lib/libmiscutil.la \
2299 $(SQUID_CPPUNIT_LIBS) \
2300 $(SQUID_CPPUNIT_LA) \
2305 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2306 tests_testEventLoop_DEPENDENCIES = \
2310 tests_test_http_range_SOURCES = \
2321 tests/stub_CacheDigest.cc \
2323 tests/stub_carp.cc \
2325 ChunkedCodingParser.cc \
2330 client_side_reply.cc \
2331 client_side_request.cc \
2334 tests/stub_CollapsedForwarding.cc \
2342 $(DELAY_POOL_SOURCE) \
2350 tests/stub_ETag.cc \
2354 tests/stub_libauth.cc \
2355 tests/stub_fatal.cc \
2370 HelperChildConfig.h \
2371 HelperChildConfig.cc \
2379 HttpHeaderFieldStat.h \
2383 HttpHdrContRange.cc \
2386 HttpHdrScTarget.cc \
2389 HttpHeaderFieldInfo.h \
2391 HttpHeaderTools.cc \
2399 HttpRequestMethod.cc \
2430 peer_proxy_negotiate_auth.h \
2431 peer_proxy_negotiate_auth.cc \
2434 peer_sourcehash.cc \
2439 tests/stub_redirect.cc \
2445 SBufDetailedStats.h \
2446 tests/stub_SBufDetailedStats.cc \
2462 tests/stub_store_digest.cc \
2475 StoreFileSystem.cc \
2477 tests/stub_StoreMeta.cc \
2478 StoreMetaUnpacker.cc \
2479 StoreSwapLogData.cc \
2483 tests/stub_SwapDir.cc \
2485 tests/test_http_range.cc \
2486 tests/stub_external_acl.cc \
2487 tests/stub_ipc_Forwarder.cc \
2488 tests/stub_libeui.cc \
2489 tests/stub_main_cc.cc \
2490 tests/stub_MemStore.cc \
2491 tests/stub_store_stats.cc \
2492 tests/stub_EventLoop.cc \
2496 tests/stub_tunnel.cc \
2503 tests/stub_wccp2.cc \
2505 tests/stub_whois.cc \
2509 nodist_tests_test_http_range_SOURCES = \
2511 $(DISKIO_GEN_SOURCE)
2512 tests_test_http_range_LDADD = \
2513 http/libsquid-http.la \
2522 icmp/libicmp.la icmp/libicmp-core.la \
2525 format/libformat.la \
2529 $(ADAPTATION_LIBS) \
2536 $(top_builddir)/lib/libmisccontainers.la \
2537 $(top_builddir)/lib/libmiscencoding.la \
2538 $(top_builddir)/lib/libmiscutil.la \
2540 $(SQUID_CPPUNIT_LIBS) \
2541 $(SQUID_CPPUNIT_LA) \
2546 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2547 tests_test_http_range_DEPENDENCIES = \
2550 tests_testHttpParser_SOURCES = \
2556 tests/stub_MemObject.cc \
2563 tests/stub_SBufDetailedStats.cc \
2564 tests/stub_cache_cf.cc \
2565 tests/stub_cache_manager.cc \
2566 tests/stub_comm.cc \
2567 tests/stub_cbdata.cc \
2568 tests/stub_debug.cc \
2569 tests/stub_event.cc \
2570 tests/stub_HelperChildConfig.cc \
2571 tests/stub_stmem.cc \
2572 tests/stub_store.cc \
2573 tests/stub_store_stats.cc \
2575 tests/stub_tools.cc \
2576 tests/testHttpParser.cc \
2577 tests/testHttpParser.h \
2579 tests/stub_time.cc \
2582 nodist_tests_testHttpParser_SOURCES = \
2584 tests_testHttpParser_LDADD= \
2585 http/libsquid-http.la \
2589 $(top_builddir)/lib/libmiscutil.la \
2590 $(SQUID_CPPUNIT_LIBS) \
2593 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2594 tests_testHttpParser_DEPENDENCIES = \
2597 ## Tests of the HttpRequest module.
2598 tests_testHttpRequest_SOURCES = \
2605 HttpRequestMethod.cc \
2609 tests/testHttpRequest.h \
2610 tests/testHttpRequest.cc \
2611 tests/testHttpRequestMethod.h \
2612 tests/testHttpRequestMethod.cc \
2614 tests/stub_DiskIOModule.cc \
2615 tests/stub_libauth.cc \
2616 tests/stub_main_cc.cc \
2617 tests/stub_ipc_Forwarder.cc \
2618 tests/stub_libeui.cc \
2619 tests/stub_store_stats.cc \
2620 tests/stub_EventLoop.cc \
2632 tests/stub_CacheDigest.cc \
2634 tests/stub_carp.cc \
2636 ChunkedCodingParser.cc \
2641 client_side_reply.cc \
2642 client_side_request.cc \
2645 tests/stub_CollapsedForwarding.cc \
2652 $(DELAY_POOL_SOURCE) \
2659 tests/stub_ETag.cc \
2661 ExternalACLEntry.cc \
2663 tests/stub_fatal.cc \
2676 HelperChildConfig.h \
2677 HelperChildConfig.cc \
2687 HttpHeaderFieldInfo.h \
2689 HttpHeaderTools.cc \
2690 HttpHeaderFieldStat.h \
2694 HttpHdrContRange.cc \
2697 HttpHdrScTarget.cc \
2729 peer_proxy_negotiate_auth.h \
2730 peer_proxy_negotiate_auth.cc \
2733 peer_sourcehash.cc \
2737 tests/stub_libauth_acls.cc \
2738 tests/stub_redirect.cc \
2744 SBufDetailedStats.h \
2745 tests/stub_SBufDetailedStats.cc \
2761 tests/stub_store_digest.cc \
2774 StoreFileSystem.cc \
2776 tests/stub_StoreMeta.cc \
2777 StoreMetaUnpacker.cc \
2778 StoreSwapLogData.cc \
2785 tests/stub_tunnel.cc \
2786 tests/stub_SwapDir.cc \
2793 tests/stub_wccp2.cc \
2795 tests/stub_whois.cc \
2800 nodist_tests_testHttpRequest_SOURCES = \
2802 tests_testHttpRequest_LDADD = \
2815 icmp/libicmp.la icmp/libicmp-core.la \
2818 format/libformat.la \
2819 http/libsquid-http.la \
2821 $(ADAPTATION_LIBS) \
2824 $(top_builddir)/lib/libmisccontainers.la \
2825 $(top_builddir)/lib/libmiscencoding.la \
2826 $(top_builddir)/lib/libmiscutil.la \
2829 $(SQUID_CPPUNIT_LIBS) \
2830 $(SQUID_CPPUNIT_LA) \
2835 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2836 tests_testHttpRequest_DEPENDENCIES = \
2840 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2841 ## first line - what we are testing.
2842 tests_testStore_SOURCES= \
2844 tests/stub_CacheDigest.cc \
2847 tests/stub_CollapsedForwarding.cc \
2850 $(DELAY_POOL_SOURCE) \
2853 DiskIO/ReadRequest.cc \
2854 DiskIO/WriteRequest.cc \
2859 tests/stub_fatal.cc \
2862 HttpHeaderFieldStat.h \
2866 HttpHdrContRange.cc \
2869 HttpHdrScTarget.cc \
2870 HttpHeaderFieldInfo.h \
2872 HttpHeaderTools.cc \
2876 HttpRequestMethod.cc \
2908 tests/stub_StoreMeta.cc \
2909 StoreMetaUnpacker.cc \
2910 StoreSwapLogData.cc \
2914 SBufDetailedStats.h \
2915 tests/stub_SBufDetailedStats.cc \
2920 tests/CapturingStoreEntry.h \
2922 tests/stub_access_log.cc \
2926 tests/stub_cache_cf.cc \
2927 tests/stub_cache_manager.cc \
2928 tests/stub_client_side_request.cc \
2929 tests/stub_comm.cc \
2930 tests/stub_debug.cc \
2931 tests/stub_DiskIOModule.cc \
2932 tests/stub_errorpage.cc \
2936 tests/stub_helper.cc \
2937 tests/stub_HelperChildConfig.cc \
2938 tests/stub_http.cc \
2939 tests/stub_libauth.cc \
2940 tests/stub_libeui.cc \
2941 tests/stub_libformat.cc \
2944 tests/stub_HttpReply.cc \
2945 tests/stub_HttpRequest.cc \
2946 tests/stub_libcomm.cc \
2947 tests/stub_MemStore.cc \
2949 tests/stub_mime.cc \
2950 tests/stub_Port.cc \
2951 tests/stub_stat.cc \
2952 tests/stub_store_client.cc \
2953 tests/stub_store_stats.cc \
2955 tests/stub_store_rebuild.cc \
2956 tests/stub_store_swapout.cc \
2959 tests/stub_tools.cc \
2960 tests/stub_UdsOp.cc \
2962 tests/testStore.cc \
2964 tests/testStoreEntryStream.cc \
2965 tests/testStoreEntryStream.h \
2966 tests/testStoreController.cc \
2967 tests/testStoreController.h \
2968 tests/testStoreHashIndex.cc \
2969 tests/testStoreHashIndex.h \
2970 tests/testStoreSupport.cc \
2971 tests/testStoreSupport.h \
2972 tests/TestSwapDir.cc \
2973 tests/TestSwapDir.h \
2974 tests/stub_time.cc \
2980 nodist_tests_testStore_SOURCES= \
2986 tests_testStore_LDADD= \
2987 http/libsquid-http.la \
3000 $(top_builddir)/lib/libmisccontainers.la \
3001 $(top_builddir)/lib/libmiscencoding.la \
3002 $(top_builddir)/lib/libmiscutil.la \
3004 $(SQUID_CPPUNIT_LIBS) \
3007 DnsLookupDetails.o \
3010 tests_testStore_LDFLAGS = $(LIBADD_DL)
3011 tests_testStore_DEPENDENCIES = \
3014 ## string needs mem.cc.
3015 ## mem.cc needs ClientInfo.h
3016 ## libsquid pulls in SquidConfig and children. stub them.
3017 tests_testString_SOURCES = \
3024 SBufDetailedStats.h \
3025 tests/stub_SBufDetailedStats.cc \
3027 tests/testString.cc \
3028 tests/testString.h \
3031 tests/stub_cache_cf.cc \
3032 tests/stub_cache_manager.cc \
3033 tests/stub_debug.cc \
3034 tests/stub_HelperChildConfig.cc \
3036 tests/stub_tools.cc \
3037 tests/stub_time.cc \
3040 nodist_tests_testString_SOURCES = \
3042 tests_testString_LDADD = \
3046 $(top_builddir)/lib/libmiscutil.la \
3048 $(SQUID_CPPUNIT_LIBS) \
3052 tests_testString_LDFLAGS = $(LIBADD_DL)
3053 tests_testString_DEPENDENCIES = \
3072 tests_testUfs_SOURCES = \
3076 tests/stub_cache_manager.cc \
3077 tests/stub_client_db.cc \
3078 tests/stub_CollapsedForwarding.cc \
3079 tests/stub_HelperChildConfig.cc \
3082 tests/stub_ipcache.cc \
3083 tests/stub_libeui.cc \
3084 tests/stub_libicmp.cc \
3085 tests/stub_MemStore.cc \
3086 tests/stub_pconn.cc \
3087 tests/stub_Port.cc \
3088 tests/stub_UdsOp.cc \
3090 tests/stub_internal.cc \
3091 tests/stub_libformat.cc \
3092 tests/stub_stat.cc \
3094 tests/stub_store_rebuild.cc \
3095 tests/stub_store_stats.cc \
3097 tests/stub_fatal.cc \
3122 StoreSwapLogData.cc \
3124 StoreMetaUnpacker.cc \
3125 $(STOREMETA_SOURCE) \
3126 StoreFileSystem.cc \
3133 $(DELAY_POOL_SOURCE) \
3135 tests/stub_CacheDigest.cc \
3143 HttpRequestMethod.cc \
3152 tests/stub_cache_cf.cc \
3153 tests/stub_helper.cc \
3156 SBufDetailedStats.h \
3157 tests/stub_SBufDetailedStats.cc \
3159 tests/stub_debug.cc \
3160 tests/stub_client_side_request.cc \
3161 tests/stub_http.cc \
3162 tests/stub_libauth.cc \
3166 tests/stub_mime.cc \
3167 HttpHeaderFieldInfo.h \
3169 HttpHeaderTools.cc \
3176 HttpHdrContRange.cc \
3178 HttpHeaderFieldStat.h \
3183 HttpHdrScTarget.cc \
3193 tests/stub_errorpage.cc \
3194 tests/stub_HttpRequest.cc \
3196 tests/stub_access_log.cc \
3199 tests/stub_store_client.cc \
3201 tests/stub_tools.cc \
3202 tests/testStoreSupport.cc \
3203 tests/testStoreSupport.h \
3210 nodist_tests_testUfs_SOURCES = \
3212 $(DISKIO_GEN_SOURCE) \
3216 tests_testUfs_LDADD = \
3217 http/libsquid-http.la \
3219 DnsLookupDetails.o \
3239 $(top_builddir)/lib/libmisccontainers.la \
3240 $(top_builddir)/lib/libmiscencoding.la \
3241 $(top_builddir)/lib/libmiscutil.la \
3243 $(SQUID_CPPUNIT_LIBS) \
3247 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3248 tests_testUfs_DEPENDENCIES = \
3251 check_PROGRAMS += testRefCount
3252 testRefCount_SOURCES= \
3255 tests/stub_cbdata.cc \
3256 tests/stub_debug.cc \
3257 tests/stub_MemBuf.cc \
3258 tests/testRefCount.cc
3259 testRefCount_LDADD = \
3261 $(top_builddir)/lib/libmiscutil.la \
3265 tests_testRock_SOURCES = \
3268 CollapsedForwarding.h \
3269 CollapsedForwarding.cc \
3270 tests/stub_CacheDigest.cc \
3279 tests/stub_fatal.cc \
3286 HttpHeaderFieldStat.h \
3290 HttpHdrContRange.cc \
3293 HttpHdrScTarget.cc \
3296 HttpHeaderFieldInfo.h \
3298 HttpHeaderTools.cc \
3301 HttpRequestMethod.cc \
3323 tests/stub_StatHist.cc \
3326 tests/stub_stat.cc \
3328 StoreFileSystem.cc \
3330 StoreMetaUnpacker.cc \
3331 $(STOREMETA_SOURCE) \
3332 StoreSwapLogData.cc \
3340 SBufDetailedStats.h \
3341 tests/stub_SBufDetailedStats.cc \
3351 tests/testStoreSupport.cc \
3352 tests/testStoreSupport.h \
3354 tests/stub_access_log.cc \
3357 tests/stub_cache_cf.cc \
3359 tests/stub_cache_manager.cc \
3360 tests/stub_client_db.cc \
3361 tests/stub_client_side_request.cc \
3362 tests/stub_debug.cc \
3363 tests/stub_errorpage.cc \
3364 tests/stub_HelperChildConfig.cc \
3365 tests/stub_http.cc \
3366 tests/stub_HttpRequest.cc \
3367 tests/stub_libauth.cc \
3370 tests/stub_ipcache.cc \
3371 tests/stub_libeui.cc \
3372 tests/stub_libformat.cc \
3373 tests/stub_libicmp.cc \
3374 tests/stub_libmgr.cc \
3375 tests/stub_MemStore.cc \
3377 tests/stub_mime.cc \
3378 tests/stub_Port.cc \
3379 tests/stub_pconn.cc \
3380 tests/stub_store_client.cc \
3382 tests/stub_store_rebuild.cc \
3383 tests/stub_store_stats.cc \
3385 tests/stub_tools.cc \
3391 $(DELAY_POOL_SOURCE) \
3394 nodist_tests_testRock_SOURCES = \
3395 $(DISKIO_GEN_SOURCE) \
3400 tests_testRock_LDADD = \
3401 http/libsquid-http.la \
3417 $(top_builddir)/lib/libmisccontainers.la \
3418 $(top_builddir)/lib/libmiscencoding.la \
3419 $(top_builddir)/lib/libmiscutil.la \
3421 $(SQUID_CPPUNIT_LIBS) \
3425 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3426 tests_testRock_DEPENDENCIES = \
3429 ## Tests of the URL module.
3430 ## TODO: Trim this down once the insanity is over.
3431 tests_testURL_SOURCES = \
3440 tests/stub_cache_manager.cc \
3442 tests/stub_CacheDigest.cc \
3444 tests/stub_carp.cc \
3446 ChunkedCodingParser.cc \
3451 client_side_reply.cc \
3452 client_side_request.cc \
3455 tests/stub_CollapsedForwarding.cc \
3462 $(DELAY_POOL_SOURCE) \
3465 DiskIO/ReadRequest.cc \
3466 DiskIO/WriteRequest.cc \
3474 ExternalACLEntry.cc \
3476 tests/stub_fatal.cc \
3491 HelperChildConfig.h \
3492 HelperChildConfig.cc \
3500 HttpHeaderFieldStat.h \
3504 HttpHdrContRange.cc \
3507 HttpHdrScTarget.cc \
3510 HttpHeaderFieldInfo.h \
3512 HttpHeaderTools.cc \
3520 HttpRequestMethod.cc \
3552 peer_proxy_negotiate_auth.h \
3553 peer_proxy_negotiate_auth.cc \
3556 peer_sourcehash.cc \
3560 tests/stub_redirect.cc \
3566 SBufDetailedStats.h \
3567 tests/stub_SBufDetailedStats.cc \
3577 tests/stub_StatHist.cc \
3583 tests/stub_store_digest.cc \
3596 StoreFileSystem.cc \
3598 tests/stub_StoreMeta.cc \
3599 StoreMetaUnpacker.cc \
3600 StoreSwapLogData.cc \
3605 tests/stub_SwapDir.cc \
3607 tests/stub_debug.cc \
3608 tests/stub_DiskIOModule.cc \
3609 tests/stub_libauth_acls.cc \
3610 tests/stub_libauth.cc \
3611 tests/stub_main_cc.cc \
3612 tests/stub_ipc_Forwarder.cc \
3613 tests/stub_store_stats.cc \
3616 tests/testURLScheme.cc \
3617 tests/testURLScheme.h \
3619 tests/stub_time.cc \
3620 tests/stub_EventLoop.cc \
3623 tests/stub_tunnel.cc \
3629 tests/stub_wccp2.cc \
3631 tests/stub_whois.cc \
3636 nodist_tests_testURL_SOURCES = \
3638 tests_testURL_LDADD = \
3639 http/libsquid-http.la \
3653 icmp/libicmp.la icmp/libicmp-core.la \
3657 format/libformat.la \
3660 $(ADAPTATION_LIBS) \
3663 $(top_builddir)/lib/libmisccontainers.la \
3664 $(top_builddir)/lib/libmiscencoding.la \
3665 $(top_builddir)/lib/libmiscutil.la \
3667 $(SQUID_CPPUNIT_LIBS) \
3668 $(SQUID_CPPUNIT_LA) \
3673 tests_testURL_LDFLAGS = $(LIBADD_DL)
3674 tests_testURL_DEPENDENCIES = \
3678 tests_testSBuf_SOURCES= \
3682 tests/SBufFindTest.h \
3683 tests/SBufFindTest.cc \
3685 SBufDetailedStats.h \
3686 tests/stub_SBufDetailedStats.cc \
3688 tests/stub_time.cc \
3690 tests/stub_debug.cc \
3691 tests/stub_fatal.cc \
3692 tests/stub_HelperChildConfig.cc \
3693 tests/stub_cache_cf.cc \
3694 tests/stub_cache_manager.cc \
3695 tests/stub_store.cc \
3696 tests/stub_store_stats.cc \
3697 tests/stub_tools.cc \
3700 tests/stub_wordlist.cc \
3701 tests/stub_MemBuf.cc
3702 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3703 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3704 tests_testSBuf_LDADD=\
3709 $(top_builddir)/lib/libmiscutil.la \
3711 $(SQUID_CPPUNIT_LIBS) \
3714 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3716 tests_testSBufList_SOURCES= \
3717 tests/testSBufList.h \
3718 tests/testSBufList.cc \
3724 SBufDetailedStats.h \
3725 tests/stub_SBufDetailedStats.cc \
3727 tests/stub_time.cc \
3729 tests/stub_MemObject.cc \
3730 tests/stub_cbdata.cc \
3731 tests/stub_comm.cc \
3732 tests/stub_debug.cc \
3733 tests/stub_event.cc \
3734 tests/stub_fatal.cc \
3736 tests/stub_HelperChildConfig.cc \
3737 tests/stub_cache_cf.cc \
3738 tests/stub_cache_manager.cc \
3739 tests/stub_store.cc \
3740 tests/stub_stmem.cc \
3741 tests/stub_store_stats.cc \
3742 tests/stub_tools.cc \
3746 tests/stub_wordlist.cc \
3747 tests/stub_MemBuf.cc
3748 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3749 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3750 tests_testSBufList_LDADD=\
3755 $(top_builddir)/lib/libmiscutil.la \
3756 $(SQUID_CPPUNIT_LIBS) \
3759 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3761 tests_testConfigParser_SOURCES = \
3765 tests/stub_MemBuf.cc \
3766 tests/stub_time.cc \
3768 SBufDetailedStats.h \
3769 tests/stub_SBufDetailedStats.cc \
3773 tests/stub_fatal.cc \
3775 tests/testConfigParser.cc \
3776 tests/testConfigParser.h \
3779 tests/stub_cache_cf.cc \
3780 tests/stub_cache_manager.cc \
3781 tests/stub_debug.cc \
3782 tests/stub_HelperChildConfig.cc \
3784 tests/stub_tools.cc \
3787 nodist_tests_testConfigParser_SOURCES = \
3789 tests_testConfigParser_LDADD = \
3793 $(top_builddir)/lib/libmiscutil.la \
3795 $(SQUID_CPPUNIT_LIBS) \
3799 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3800 tests_testConfigParser_DEPENDENCIES = \
3803 tests_testStatHist_SOURCES = \
3804 tests/stub_cbdata.cc \
3806 tests/stub_fatal.cc \
3807 tests/stub_MemBuf.cc \
3811 tests/stub_cache_manager.cc \
3812 tests/stub_comm.cc \
3813 tests/stub_debug.cc \
3814 tests/stub_DelayId.cc \
3815 tests/stub_HelperChildConfig.cc \
3818 tests/stub_MemObject.cc \
3820 tests/stub_mime.cc \
3821 tests/stub_pconn.cc \
3822 tests/stub_stmem.cc \
3824 tests/stub_store.cc \
3825 tests/stub_store_stats.cc \
3827 tests/stub_tools.cc \
3829 tests/testStatHist.cc \
3830 tests/testStatHist.h
3831 nodist_tests_testStatHist_SOURCES = \
3833 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3834 tests_testStatHist_LDADD = \
3836 $(top_builddir)/lib/libmiscutil.la \
3837 $(top_builddir)/lib/libmisccontainers.la \
3838 $(SQUID_CPPUNIT_LIBS) \
3839 $(SQUID_CPPUNIT_LA) \
3841 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3843 tests_testVector_SOURCES = \
3844 tests/testVector.cc \
3847 nodist_tests_testVector_SOURCES = \
3849 tests_testVector_LDADD= \
3850 $(SQUID_CPPUNIT_LIBS) \
3853 tests_testVector_LDFLAGS = $(LIBADD_DL)
3854 tests_testVector_DEPENDENCIES = \
3858 TESTS += testHeaders
3860 ## Special Universal .h dependency test script
3861 ## aborts if error encountered
3862 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3863 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3864 ## src/repl/ has no .h files and its own makefile.
3866 CLEANFILES += testHeaders