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
21 OutOfBoundsException.h \
42 LOADABLE_MODULES_SOURCES = \
48 SUBDIRS = base anyp comm eui acl format fs repl
49 DIST_SUBDIRS = base anyp comm eui acl format fs repl
53 AUTH_LIBS= auth/libauth.la
54 AUTH_ACL_LIBS= auth/libacls.la
55 check_PROGRAMS+= tests/testACLMaxUserIP
59 SUBDIRS += http ip icmp ident log ipc mgr
60 DIST_SUBDIRS += http ip icmp ident log ipc mgr
79 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
81 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
90 DIST_SUBDIRS += adaptation
96 $(top_builddir)/lib/libTrie/libTrie.a
97 ESI_LIBS = $(ESI_LOCAL_LIBS) \
105 DELAY_POOL_ALL_SOURCE = \
107 CompositePoolNode.h \
129 ClientDelayConfig.cc \
132 if ENABLE_DELAY_POOLS
133 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
138 if ENABLE_XPROF_STATS
139 XPROF_STATS_SOURCE = ProfStats.cc
145 HTCPSOURCE = htcp.cc htcp.h
149 LEAKFINDERSOURCE = LeakFinder.cc
155 UNLINKDSOURCE = unlinkd.h unlinkd.cc
158 UNLINKDSOURCE = unlinkd.h
167 if ENABLE_WIN32SPECIFIC
168 WIN32_SOURCE = win32.cc
169 WINSVC_SOURCE = WinSvc.cc
176 IPC_SOURCE = SquidIpc.h ipc_win32.cc
178 IPC_SOURCE = SquidIpc.h ipc.cc
181 AIO_WIN32_ALL_SOURCES = \
182 DiskIO/AIO/aio_win32.cc \
183 DiskIO/AIO/aio_win32.h
185 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
191 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
192 DiskIO/DiskThreads/CommIO.cc \
193 DiskIO/DiskThreads/CommIO.h
195 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
196 DiskIO/DiskThreads/CommIO.cc \
197 DiskIO/DiskThreads/CommIO.h
200 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
201 libMmapped.a libIpcIo.a
202 noinst_LIBRARIES = $(DISK_LIBS)
203 noinst_LTLIBRARIES = libsquid.la
206 DiskIO/DiskDaemon/diskd \
213 ## cfgen is used when building squid
214 ## ufsdump is a debug utility, it is possibly useful for end users with cache
215 ## corruption, but at this point we do not install it.
229 cf_gen_SOURCES = cf_gen.cc
230 nodist_cf_gen_HEADER = cf_gen_defines.cci
231 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
233 cf_gen.$(OBJEXT): cf_gen_defines.cci
235 ## cf_gen.cc needs src/cf_gen_defines.cci
236 INCLUDES += -I$(top_builddir)/src
239 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
242 DiskIO/DiskIOModule.cc \
243 DiskIO/ReadRequest.cc \
244 DiskIO/ReadRequest.h \
245 DiskIO/WriteRequest.cc \
246 DiskIO/WriteRequest.h \
248 DiskIO/DiskIOStrategy.h \
249 DiskIO/IORequestor.h \
250 DiskIO/DiskIOModule.h \
253 DISKIO_GEN_SOURCE = \
254 DiskIO/DiskIOModules_gen.cc
256 DiskIO/DiskIOModules_gen.cc: Makefile
257 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
260 # common library for all the binaries and tests. This is kindof a catch all
261 # and smaller libraries split from this are encouraged. Using lt convenience
262 # libraries, dependencies should not be a problem either.
263 libsquid_la_SOURCES = \
275 $(ACL_REGISTRATION_SOURCES) \
289 NeighborTypeDomainList.h \
290 CachePeerDomainList.h \
297 ChunkedCodingParser.cc \
298 ChunkedCodingParser.h \
304 client_side_reply.cc \
305 client_side_reply.h \
306 client_side_request.cc \
307 client_side_request.h \
312 ClientRequestContext.h \
315 CollapsedForwarding.cc \
316 CollapsedForwarding.h \
317 CompletionDispatcher.cc \
318 CompletionDispatcher.h \
332 $(DELAY_POOL_SOURCE) \
352 ExternalACLEntry.cc \
376 HelperChildConfig.h \
377 HelperChildConfig.cc \
381 HierarchyLogEntry.h \
386 HttpHeaderFieldStat.h \
395 HttpHdrContRange.cc \
402 HttpHeaderFieldInfo.h \
418 HttpRequestMethod.cc \
419 HttpRequestMethod.h \
431 $(LEAKFINDERSOURCE) \
462 $(XPROF_STATS_SOURCE) \
467 peer_proxy_negotiate_auth.h \
468 peer_proxy_negotiate_auth.cc \
486 SBufDetailedStats.h \
487 SBufDetailedStats.cc \
531 StoreMetaUnpacker.cc \
532 StoreMetaUnpacker.h \
533 $(STOREMETA_SOURCE) \
537 StoreSwapLogData.cc \
572 EXTRA_squid_SOURCES = \
573 $(AIO_WIN32_ALL_SOURCES) \
576 $(DELAY_POOL_ALL_SOURCE) \
586 $(WIN32_ALL_SOURCE) \
587 $(LOADABLE_MODULES_SOURCES)
590 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.a $(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/testConfigParser \
1081 tests/testStatHist \
1085 check_PROGRAMS += tests/testRock
1088 check_PROGRAMS += tests/testUfs
1091 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1092 TESTS += $(check_PROGRAMS)
1094 ### Template for new Unit Test Program
1095 ## - add tests/testX to check_PROGRAMS above.
1096 ## - copy template below and substitue X for class name
1097 ## - add other component .(h|cc) files needed to link and run tests
1099 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1101 #tests_testX_SOURCES=\
1104 # tests/testMain.cc \
1107 #nodist_tests_testX_SOURCES=\
1109 #tests_testX_LDFLAGS = $(LIBADD_DL)
1110 #tests_testX_LDADD=\
1111 # $(SQUID_CPPUNIT_LIBS) \
1112 # $(SQUID_CPPUNIT_LA) \
1114 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1117 # - add other component .(h|cc) files needed to link and run tests
1118 tests_testHttpReply_SOURCES=\
1122 tests/stub_ETag.cc \
1124 tests/stub_fatal.cc \
1127 HttpHeaderFieldStat.h \
1131 HttpHdrContRange.cc \
1132 HttpHdrContRange.h \
1136 HttpHdrScTarget.cc \
1141 HttpHeaderFieldInfo.h \
1143 HttpHeaderTools.cc \
1164 SBufDetailedStats.h \
1165 tests/stub_SBufDetailedStats.cc \
1170 tests/stub_access_log.cc \
1173 tests/stub_cache_cf.cc \
1174 tests/stub_cache_manager.cc \
1175 tests/stub_debug.cc \
1176 tests/stub_errorpage.cc \
1177 tests/stub_HelperChildConfig.cc \
1178 tests/stub_libformat.cc \
1179 tests/stub_libauth.cc \
1183 tests/stub_StatHist.cc \
1185 tests/stub_store.cc \
1186 tests/stub_store_stats.cc \
1188 tests/stub_tools.cc \
1189 tests/stub_HttpRequest.cc \
1190 tests/testHttpReply.cc \
1191 tests/testHttpReply.h \
1193 tests/stub_time.cc \
1198 nodist_tests_testHttpReply_SOURCES=\
1200 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1201 tests_testHttpReply_LDADD=\
1202 http/libsquid-http.la \
1210 $(top_builddir)/lib/libmisccontainers.la \
1211 $(top_builddir)/lib/libmiscencoding.la \
1212 $(top_builddir)/lib/libmiscutil.la \
1213 $(SQUID_CPPUNIT_LIBS) \
1214 $(SQUID_CPPUNIT_LA) \
1218 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1220 tests_testACLMaxUserIP_SOURCES= \
1223 tests/stub_CollapsedForwarding.cc \
1226 DiskIO/ReadRequest.cc \
1227 DiskIO/WriteRequest.cc \
1228 tests/stub_ETag.cc \
1231 tests/stub_fatal.cc \
1234 HelperChildConfig.h \
1235 HelperChildConfig.cc \
1239 HttpHeaderFieldInfo.h \
1241 HttpHeaderTools.cc \
1242 HttpHdrContRange.cc \
1244 HttpHeaderFieldStat.h \
1249 HttpHdrScTarget.cc \
1251 HttpRequestMethod.cc \
1269 tests/stub_StatHist.cc \
1272 SBufDetailedStats.h \
1273 tests/stub_SBufDetailedStats.cc \
1277 tests/stub_StoreMeta.cc \
1278 StoreMetaUnpacker.cc \
1279 StoreSwapLogData.cc \
1284 tests/stub_SwapDir.cc \
1288 tests/stub_access_log.cc \
1291 tests/stub_cache_cf.cc \
1292 tests/stub_client_side.cc \
1293 tests/stub_debug.cc \
1294 tests/stub_DelayId.cc \
1295 tests/stub_DiskIOModule.cc \
1296 tests/stub_errorpage.cc \
1299 tests/stub_HttpRequest.cc \
1300 tests/stub_HttpReply.cc \
1301 tests/stub_ipc_TypedMsgHdr.cc \
1302 tests/stub_libauth.cc \
1303 tests/stub_libcomm.cc \
1304 tests/stub_libformat.cc \
1305 tests/stub_libsslsquid.cc \
1306 tests/stub_MemObject.cc \
1307 tests/stub_MemStore.cc \
1309 tests/stub_mime.cc \
1310 tests/stub_pconn.cc \
1311 tests/stub_Port.cc \
1313 tests/stub_store.cc \
1314 tests/stub_store_client.cc \
1316 tests/stub_store_rebuild.cc \
1317 tests/stub_store_stats.cc \
1318 tests/stub_store_swapout.cc \
1320 tests/stub_tools.cc \
1321 tests/stub_cache_manager.cc \
1322 tests/stub_UdsOp.cc \
1323 tests/testACLMaxUserIP.cc \
1324 tests/testACLMaxUserIP.h \
1326 tests/stub_time.cc \
1336 nodist_tests_testACLMaxUserIP_SOURCES= \
1338 tests_testACLMaxUserIP_LDADD= \
1339 http/libsquid-http.la \
1352 $(top_builddir)/lib/libmisccontainers.la \
1353 $(top_builddir)/lib/libmiscencoding.la \
1354 $(top_builddir)/lib/libmiscutil.la \
1357 $(SQUID_CPPUNIT_LIBS) \
1361 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1362 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1363 ## $(SQUID_CPPUNIT_LA)
1365 ## a demonstration test that does nothing but shows the salient points
1366 ## involved in writing tests.
1367 tests_testBoilerplate_SOURCES = \
1368 tests/testBoilerplate.cc \
1370 tests/testBoilerplate.h \
1372 nodist_tests_testBoilerplate_SOURCES = \
1374 tests_testBoilerplate_LDADD= \
1375 $(SQUID_CPPUNIT_LIBS) \
1379 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1380 tests_testBoilerplate_DEPENDENCIES = \
1383 ## Tests of the CacheManager module.
1384 tests_testCacheManager_SOURCES = \
1392 HttpRequestMethod.cc \
1396 tests/testCacheManager.cc \
1397 tests/testCacheManager.h \
1399 tests/stub_main_cc.cc \
1400 tests/stub_ipc_Forwarder.cc \
1401 tests/stub_store_stats.cc \
1402 tests/stub_EventLoop.cc \
1413 tests/stub_CacheDigest.cc \
1415 tests/stub_carp.cc \
1417 ChunkedCodingParser.cc \
1422 client_side_reply.cc \
1423 client_side_request.cc \
1426 tests/stub_CollapsedForwarding.cc \
1433 $(DELAY_POOL_SOURCE) \
1441 tests/stub_ETag.cc \
1444 ExternalACLEntry.cc \
1446 tests/stub_fatal.cc \
1462 HelperChildConfig.h \
1463 HelperChildConfig.cc \
1473 HttpHeaderFieldInfo.h \
1475 HttpHeaderTools.cc \
1476 HttpHeaderFieldStat.h \
1480 HttpHdrContRange.cc \
1483 HttpHdrScTarget.cc \
1515 peer_proxy_negotiate_auth.h \
1516 peer_proxy_negotiate_auth.cc \
1519 peer_sourcehash.cc \
1523 tests/stub_redirect.cc \
1529 SBufDetailedStats.h \
1530 tests/stub_SBufDetailedStats.cc \
1542 tests/stub_libauth_acls.cc \
1543 tests/stub_libauth.cc \
1544 tests/stub_StatHist.cc \
1550 tests/stub_store_digest.cc \
1563 StoreFileSystem.cc \
1565 tests/stub_StoreMeta.cc \
1566 StoreMetaUnpacker.cc \
1567 StoreSwapLogData.cc \
1571 tests/stub_tunnel.cc \
1572 tests/stub_SwapDir.cc \
1580 tests/stub_wccp2.cc \
1582 tests/stub_whois.cc \
1587 nodist_tests_testCacheManager_SOURCES = \
1589 $(DISKIO_GEN_SOURCE)
1590 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1591 tests_testCacheManager_LDADD = \
1592 http/libsquid-http.la \
1603 icmp/libicmp.la icmp/libicmp-core.la \
1605 format/libformat.la \
1609 $(ADAPTATION_LIBS) \
1616 $(top_builddir)/lib/libmisccontainers.la \
1617 $(top_builddir)/lib/libmiscencoding.la \
1618 $(top_builddir)/lib/libmiscutil.la \
1620 $(SQUID_CPPUNIT_LIBS) \
1621 $(SQUID_CPPUNIT_LA) \
1626 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1627 tests_testCacheManager_DEPENDENCIES = \
1631 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 \
1661 HttpHdrContRange.cc \
1663 HttpHdrScTarget.cc \
1665 HttpHeaderFieldInfo.h \
1667 HttpHeaderTools.cc \
1672 HttpRequestMethod.cc \
1696 tests/stub_StatHist.cc \
1699 SBufDetailedStats.h \
1700 tests/stub_SBufDetailedStats.cc \
1701 StoreFileSystem.cc \
1703 tests/stub_StoreMeta.cc \
1704 StoreMetaUnpacker.cc \
1705 StoreSwapLogData.cc \
1717 tests/stub_SwapDir.cc \
1720 tests/stub_access_log.cc \
1724 tests/stub_cache_cf.cc \
1725 tests/stub_cache_manager.cc \
1726 tests/stub_client_db.cc \
1727 client_side_request.h \
1728 tests/stub_client_side_request.cc \
1729 tests/stub_debug.cc \
1730 tests/stub_errorpage.cc \
1731 tests/stub_helper.cc \
1732 tests/stub_HelperChildConfig.cc \
1733 tests/stub_HttpRequest.cc \
1734 tests/stub_http.cc \
1737 tests/stub_internal.cc \
1739 tests/stub_ipcache.cc \
1740 tests/stub_libauth_acls.cc \
1741 tests/stub_libauth.cc \
1742 tests/stub_libeui.cc \
1743 tests/stub_libformat.cc \
1744 tests/stub_libicmp.cc \
1745 tests/stub_MemStore.cc \
1747 tests/stub_mime.cc \
1748 tests/stub_pconn.cc \
1749 tests/stub_Port.cc \
1750 tests/stub_stat.cc \
1751 tests/stub_store_client.cc \
1752 tests/stub_store_stats.cc \
1754 tests/stub_store_rebuild.cc \
1755 tests/stub_UdsOp.cc \
1756 tests/testDiskIO.cc \
1757 tests/testDiskIO.h \
1759 tests/testStoreSupport.cc \
1760 tests/testStoreSupport.h \
1761 tests/stub_time.cc \
1770 nodist_tests_testDiskIO_SOURCES= \
1772 $(DISKIO_GEN_SOURCE) \
1776 tests_testDiskIO_LDADD = \
1777 http/libsquid-http.la \
1780 DnsLookupDetails.o \
1798 $(top_builddir)/lib/libmisccontainers.la \
1799 $(top_builddir)/lib/libmiscencoding.la \
1800 $(top_builddir)/lib/libmiscutil.la \
1802 $(SQUID_CPPUNIT_LIBS) \
1807 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1808 tests_testDiskIO_DEPENDENCIES = \
1813 ## Tests of the Even module.
1814 tests_testEvent_SOURCES = \
1818 tests/stub_CacheDigest.cc \
1827 tests/stub_carp.cc \
1829 ChunkedCodingParser.cc \
1834 client_side_reply.cc \
1835 client_side_request.cc \
1838 tests/stub_CollapsedForwarding.cc \
1846 $(DELAY_POOL_SOURCE) \
1854 tests/stub_ETag.cc \
1859 ExternalACLEntry.cc \
1862 tests/stub_fatal.cc \
1877 HelperChildConfig.h \
1878 HelperChildConfig.cc \
1888 HttpHeaderFieldInfo.h \
1890 HttpHeaderTools.cc \
1891 HttpHeaderFieldStat.h \
1895 HttpHdrContRange.cc \
1898 HttpHdrScTarget.cc \
1906 HttpRequestMethod.cc \
1938 peer_proxy_negotiate_auth.h \
1939 peer_proxy_negotiate_auth.cc \
1942 peer_sourcehash.cc \
1946 tests/stub_redirect.cc \
1954 SBufDetailedStats.h \
1955 tests/stub_SBufDetailedStats.cc \
1971 tests/stub_store_digest.cc \
1984 StoreFileSystem.cc \
1986 tests/stub_StoreMeta.cc \
1987 StoreMetaUnpacker.cc \
1988 StoreSwapLogData.cc \
1990 tests/stub_SwapDir.cc \
1991 tests/CapturingStoreEntry.h \
1992 tests/testEvent.cc \
1995 tests/stub_main_cc.cc \
1996 tests/stub_ipc_Forwarder.cc \
1997 tests/stub_libauth_acls.cc \
1998 tests/stub_libauth.cc \
1999 tests/stub_libeui.cc \
2000 tests/stub_store_stats.cc \
2005 tests/stub_tunnel.cc \
2013 tests/stub_wccp2.cc \
2015 tests/stub_whois.cc \
2019 nodist_tests_testEvent_SOURCES = \
2021 $(DISKIO_GEN_SOURCE)
2022 tests_testEvent_LDADD = \
2023 http/libsquid-http.la \
2033 icmp/libicmp.la icmp/libicmp-core.la \
2036 format/libformat.la \
2038 $(ADAPTATION_LIBS) \
2041 $(top_builddir)/lib/libmisccontainers.la \
2042 $(top_builddir)/lib/libmiscencoding.la \
2043 $(top_builddir)/lib/libmiscutil.la \
2050 $(SQUID_CPPUNIT_LIBS) \
2051 $(SQUID_CPPUNIT_LA) \
2056 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2057 tests_testEvent_DEPENDENCIES = \
2061 ## Tests of the EventLoop module.
2062 tests_testEventLoop_SOURCES = \
2066 tests/stub_CacheDigest.cc \
2075 tests/stub_carp.cc \
2077 ChunkedCodingParser.cc \
2082 client_side_reply.cc \
2083 client_side_request.cc \
2086 tests/stub_CollapsedForwarding.cc \
2094 $(DELAY_POOL_SOURCE) \
2102 tests/stub_ETag.cc \
2107 ExternalACLEntry.cc \
2110 tests/stub_fatal.cc \
2125 HelperChildConfig.h \
2126 HelperChildConfig.cc \
2136 HttpHeaderFieldInfo.h \
2138 HttpHeaderTools.cc \
2139 HttpHeaderFieldStat.h \
2143 HttpHdrContRange.cc \
2146 HttpHdrScTarget.cc \
2154 HttpRequestMethod.cc \
2186 peer_proxy_negotiate_auth.h \
2187 peer_proxy_negotiate_auth.cc \
2190 peer_sourcehash.cc \
2195 tests/stub_redirect.cc \
2200 SBufDetailedStats.h \
2201 tests/stub_SBufDetailedStats.cc \
2218 tests/stub_store_digest.cc \
2231 StoreFileSystem.cc \
2233 tests/stub_StoreMeta.cc \
2234 StoreMetaUnpacker.cc \
2235 StoreSwapLogData.cc \
2239 tests/stub_SwapDir.cc \
2240 tests/testEventLoop.cc \
2241 tests/testEventLoop.h \
2243 tests/stub_main_cc.cc \
2244 tests/stub_ipc_Forwarder.cc \
2245 tests/stub_libauth_acls.cc \
2246 tests/stub_libauth.cc \
2247 tests/stub_libeui.cc \
2248 tests/stub_store_stats.cc \
2253 tests/stub_tunnel.cc \
2261 tests/stub_wccp2.cc \
2263 tests/stub_whois.cc \
2267 nodist_tests_testEventLoop_SOURCES = \
2269 $(DISKIO_GEN_SOURCE)
2270 tests_testEventLoop_LDADD = \
2271 http/libsquid-http.la \
2281 icmp/libicmp.la icmp/libicmp-core.la \
2284 format/libformat.la \
2286 $(ADAPTATION_LIBS) \
2289 $(top_builddir)/lib/libmisccontainers.la \
2290 $(top_builddir)/lib/libmiscencoding.la \
2291 $(top_builddir)/lib/libmiscutil.la \
2298 $(SQUID_CPPUNIT_LIBS) \
2299 $(SQUID_CPPUNIT_LA) \
2304 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2305 tests_testEventLoop_DEPENDENCIES = \
2309 tests_test_http_range_SOURCES = \
2320 tests/stub_CacheDigest.cc \
2322 tests/stub_carp.cc \
2324 ChunkedCodingParser.cc \
2329 client_side_reply.cc \
2330 client_side_request.cc \
2333 tests/stub_CollapsedForwarding.cc \
2341 $(DELAY_POOL_SOURCE) \
2349 tests/stub_ETag.cc \
2353 tests/stub_libauth.cc \
2354 tests/stub_fatal.cc \
2369 HelperChildConfig.h \
2370 HelperChildConfig.cc \
2378 HttpHeaderFieldStat.h \
2382 HttpHdrContRange.cc \
2385 HttpHdrScTarget.cc \
2388 HttpHeaderFieldInfo.h \
2390 HttpHeaderTools.cc \
2398 HttpRequestMethod.cc \
2429 peer_proxy_negotiate_auth.h \
2430 peer_proxy_negotiate_auth.cc \
2433 peer_sourcehash.cc \
2438 tests/stub_redirect.cc \
2444 SBufDetailedStats.h \
2445 tests/stub_SBufDetailedStats.cc \
2461 tests/stub_store_digest.cc \
2474 StoreFileSystem.cc \
2476 tests/stub_StoreMeta.cc \
2477 StoreMetaUnpacker.cc \
2478 StoreSwapLogData.cc \
2482 tests/stub_SwapDir.cc \
2484 tests/test_http_range.cc \
2485 tests/stub_external_acl.cc \
2486 tests/stub_ipc_Forwarder.cc \
2487 tests/stub_libeui.cc \
2488 tests/stub_main_cc.cc \
2489 tests/stub_MemStore.cc \
2490 tests/stub_store_stats.cc \
2491 tests/stub_EventLoop.cc \
2495 tests/stub_tunnel.cc \
2502 tests/stub_wccp2.cc \
2504 tests/stub_whois.cc \
2508 nodist_tests_test_http_range_SOURCES = \
2510 $(DISKIO_GEN_SOURCE)
2511 tests_test_http_range_LDADD = \
2512 http/libsquid-http.la \
2521 icmp/libicmp.la icmp/libicmp-core.la \
2524 format/libformat.la \
2528 $(ADAPTATION_LIBS) \
2535 $(top_builddir)/lib/libmisccontainers.la \
2536 $(top_builddir)/lib/libmiscencoding.la \
2537 $(top_builddir)/lib/libmiscutil.la \
2539 $(SQUID_CPPUNIT_LIBS) \
2540 $(SQUID_CPPUNIT_LA) \
2545 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2546 tests_test_http_range_DEPENDENCIES = \
2549 tests_testHttpParser_SOURCES = \
2555 tests/stub_MemObject.cc \
2562 tests/stub_SBufDetailedStats.cc \
2563 tests/stub_cache_cf.cc \
2564 tests/stub_cache_manager.cc \
2565 tests/stub_comm.cc \
2566 tests/stub_cbdata.cc \
2567 tests/stub_debug.cc \
2568 tests/stub_event.cc \
2569 tests/stub_HelperChildConfig.cc \
2570 tests/stub_stmem.cc \
2571 tests/stub_store.cc \
2572 tests/stub_store_stats.cc \
2574 tests/stub_tools.cc \
2575 tests/testHttpParser.cc \
2576 tests/testHttpParser.h \
2578 tests/stub_time.cc \
2581 nodist_tests_testHttpParser_SOURCES = \
2583 tests_testHttpParser_LDADD= \
2584 http/libsquid-http.la \
2588 $(top_builddir)/lib/libmiscutil.la \
2589 $(SQUID_CPPUNIT_LIBS) \
2592 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2593 tests_testHttpParser_DEPENDENCIES = \
2596 ## Tests of the HttpRequest module.
2597 tests_testHttpRequest_SOURCES = \
2604 HttpRequestMethod.cc \
2608 tests/testHttpRequest.h \
2609 tests/testHttpRequest.cc \
2610 tests/testHttpRequestMethod.h \
2611 tests/testHttpRequestMethod.cc \
2613 tests/stub_DiskIOModule.cc \
2614 tests/stub_libauth.cc \
2615 tests/stub_main_cc.cc \
2616 tests/stub_ipc_Forwarder.cc \
2617 tests/stub_libeui.cc \
2618 tests/stub_store_stats.cc \
2619 tests/stub_EventLoop.cc \
2631 tests/stub_CacheDigest.cc \
2633 tests/stub_carp.cc \
2635 ChunkedCodingParser.cc \
2640 client_side_reply.cc \
2641 client_side_request.cc \
2644 tests/stub_CollapsedForwarding.cc \
2651 $(DELAY_POOL_SOURCE) \
2658 tests/stub_ETag.cc \
2660 ExternalACLEntry.cc \
2662 tests/stub_fatal.cc \
2675 HelperChildConfig.h \
2676 HelperChildConfig.cc \
2686 HttpHeaderFieldInfo.h \
2688 HttpHeaderTools.cc \
2689 HttpHeaderFieldStat.h \
2693 HttpHdrContRange.cc \
2696 HttpHdrScTarget.cc \
2728 peer_proxy_negotiate_auth.h \
2729 peer_proxy_negotiate_auth.cc \
2732 peer_sourcehash.cc \
2736 tests/stub_libauth_acls.cc \
2737 tests/stub_redirect.cc \
2743 SBufDetailedStats.h \
2744 tests/stub_SBufDetailedStats.cc \
2760 tests/stub_store_digest.cc \
2773 StoreFileSystem.cc \
2775 tests/stub_StoreMeta.cc \
2776 StoreMetaUnpacker.cc \
2777 StoreSwapLogData.cc \
2784 tests/stub_tunnel.cc \
2785 tests/stub_SwapDir.cc \
2792 tests/stub_wccp2.cc \
2794 tests/stub_whois.cc \
2799 nodist_tests_testHttpRequest_SOURCES = \
2801 tests_testHttpRequest_LDADD = \
2814 icmp/libicmp.la icmp/libicmp-core.la \
2817 format/libformat.la \
2818 http/libsquid-http.la \
2820 $(ADAPTATION_LIBS) \
2823 $(top_builddir)/lib/libmisccontainers.la \
2824 $(top_builddir)/lib/libmiscencoding.la \
2825 $(top_builddir)/lib/libmiscutil.la \
2828 $(SQUID_CPPUNIT_LIBS) \
2829 $(SQUID_CPPUNIT_LA) \
2834 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2835 tests_testHttpRequest_DEPENDENCIES = \
2839 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2840 ## first line - what we are testing.
2841 tests_testStore_SOURCES= \
2843 tests/stub_CacheDigest.cc \
2846 tests/stub_CollapsedForwarding.cc \
2849 $(DELAY_POOL_SOURCE) \
2852 DiskIO/ReadRequest.cc \
2853 DiskIO/WriteRequest.cc \
2858 tests/stub_fatal.cc \
2861 HttpHeaderFieldStat.h \
2865 HttpHdrContRange.cc \
2868 HttpHdrScTarget.cc \
2869 HttpHeaderFieldInfo.h \
2871 HttpHeaderTools.cc \
2875 HttpRequestMethod.cc \
2907 tests/stub_StoreMeta.cc \
2908 StoreMetaUnpacker.cc \
2909 StoreSwapLogData.cc \
2913 SBufDetailedStats.h \
2914 tests/stub_SBufDetailedStats.cc \
2919 tests/CapturingStoreEntry.h \
2921 tests/stub_access_log.cc \
2925 tests/stub_cache_cf.cc \
2926 tests/stub_cache_manager.cc \
2927 tests/stub_client_side_request.cc \
2928 tests/stub_comm.cc \
2929 tests/stub_debug.cc \
2930 tests/stub_DiskIOModule.cc \
2931 tests/stub_errorpage.cc \
2935 tests/stub_helper.cc \
2936 tests/stub_HelperChildConfig.cc \
2937 tests/stub_http.cc \
2938 tests/stub_libauth.cc \
2939 tests/stub_libeui.cc \
2940 tests/stub_libformat.cc \
2943 tests/stub_HttpReply.cc \
2944 tests/stub_HttpRequest.cc \
2945 tests/stub_libcomm.cc \
2946 tests/stub_MemStore.cc \
2948 tests/stub_mime.cc \
2949 tests/stub_Port.cc \
2950 tests/stub_stat.cc \
2951 tests/stub_store_client.cc \
2952 tests/stub_store_stats.cc \
2954 tests/stub_store_rebuild.cc \
2955 tests/stub_store_swapout.cc \
2958 tests/stub_tools.cc \
2959 tests/stub_UdsOp.cc \
2961 tests/testStore.cc \
2963 tests/testStoreEntryStream.cc \
2964 tests/testStoreEntryStream.h \
2965 tests/testStoreController.cc \
2966 tests/testStoreController.h \
2967 tests/testStoreHashIndex.cc \
2968 tests/testStoreHashIndex.h \
2969 tests/testStoreSupport.cc \
2970 tests/testStoreSupport.h \
2971 tests/TestSwapDir.cc \
2972 tests/TestSwapDir.h \
2973 tests/stub_time.cc \
2979 nodist_tests_testStore_SOURCES= \
2985 tests_testStore_LDADD= \
2986 http/libsquid-http.la \
2999 $(top_builddir)/lib/libmisccontainers.la \
3000 $(top_builddir)/lib/libmiscencoding.la \
3001 $(top_builddir)/lib/libmiscutil.la \
3003 $(SQUID_CPPUNIT_LIBS) \
3006 DnsLookupDetails.o \
3009 tests_testStore_LDFLAGS = $(LIBADD_DL)
3010 tests_testStore_DEPENDENCIES = \
3013 ## string needs mem.cc.
3014 ## mem.cc needs ClientInfo.h
3015 ## libsquid pulls in SquidConfig and children. stub them.
3016 tests_testString_SOURCES = \
3023 tests/testString.cc \
3024 tests/testString.h \
3027 tests/stub_cache_cf.cc \
3028 tests/stub_cache_manager.cc \
3029 tests/stub_debug.cc \
3030 tests/stub_HelperChildConfig.cc \
3032 tests/stub_tools.cc \
3033 tests/stub_time.cc \
3036 nodist_tests_testString_SOURCES = \
3038 tests_testString_LDADD = \
3042 $(top_builddir)/lib/libmiscutil.la \
3044 $(SQUID_CPPUNIT_LIBS) \
3048 tests_testString_LDFLAGS = $(LIBADD_DL)
3049 tests_testString_DEPENDENCIES = \
3068 tests_testUfs_SOURCES = \
3072 tests/stub_cache_manager.cc \
3073 tests/stub_client_db.cc \
3074 tests/stub_CollapsedForwarding.cc \
3075 tests/stub_HelperChildConfig.cc \
3078 tests/stub_ipcache.cc \
3079 tests/stub_libeui.cc \
3080 tests/stub_libicmp.cc \
3081 tests/stub_MemStore.cc \
3082 tests/stub_pconn.cc \
3083 tests/stub_Port.cc \
3084 tests/stub_UdsOp.cc \
3086 tests/stub_internal.cc \
3087 tests/stub_libformat.cc \
3088 tests/stub_stat.cc \
3090 tests/stub_store_rebuild.cc \
3091 tests/stub_store_stats.cc \
3093 tests/stub_fatal.cc \
3118 StoreSwapLogData.cc \
3120 StoreMetaUnpacker.cc \
3121 $(STOREMETA_SOURCE) \
3122 StoreFileSystem.cc \
3129 $(DELAY_POOL_SOURCE) \
3131 tests/stub_CacheDigest.cc \
3139 HttpRequestMethod.cc \
3148 tests/stub_cache_cf.cc \
3149 tests/stub_helper.cc \
3152 SBufDetailedStats.h \
3153 tests/stub_SBufDetailedStats.cc \
3155 tests/stub_debug.cc \
3156 tests/stub_client_side_request.cc \
3157 tests/stub_http.cc \
3158 tests/stub_libauth.cc \
3162 tests/stub_mime.cc \
3163 HttpHeaderFieldInfo.h \
3165 HttpHeaderTools.cc \
3172 HttpHdrContRange.cc \
3174 HttpHeaderFieldStat.h \
3179 HttpHdrScTarget.cc \
3189 tests/stub_errorpage.cc \
3190 tests/stub_HttpRequest.cc \
3192 tests/stub_access_log.cc \
3195 tests/stub_store_client.cc \
3197 tests/stub_tools.cc \
3198 tests/testStoreSupport.cc \
3199 tests/testStoreSupport.h \
3206 nodist_tests_testUfs_SOURCES = \
3208 $(DISKIO_GEN_SOURCE) \
3212 tests_testUfs_LDADD = \
3213 http/libsquid-http.la \
3215 DnsLookupDetails.o \
3235 $(top_builddir)/lib/libmisccontainers.la \
3236 $(top_builddir)/lib/libmiscencoding.la \
3237 $(top_builddir)/lib/libmiscutil.la \
3239 $(SQUID_CPPUNIT_LIBS) \
3243 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3244 tests_testUfs_DEPENDENCIES = \
3247 check_PROGRAMS += testRefCount
3248 testRefCount_SOURCES= \
3251 tests/stub_cbdata.cc \
3252 tests/stub_debug.cc \
3253 tests/stub_MemBuf.cc \
3254 tests/testRefCount.cc
3255 testRefCount_LDADD = \
3257 $(top_builddir)/lib/libmiscutil.la \
3261 tests_testRock_SOURCES = \
3264 CollapsedForwarding.h \
3265 CollapsedForwarding.cc \
3266 tests/stub_CacheDigest.cc \
3275 tests/stub_fatal.cc \
3282 HttpHeaderFieldStat.h \
3286 HttpHdrContRange.cc \
3289 HttpHdrScTarget.cc \
3292 HttpHeaderFieldInfo.h \
3294 HttpHeaderTools.cc \
3297 HttpRequestMethod.cc \
3319 tests/stub_StatHist.cc \
3322 tests/stub_stat.cc \
3324 StoreFileSystem.cc \
3326 StoreMetaUnpacker.cc \
3327 $(STOREMETA_SOURCE) \
3328 StoreSwapLogData.cc \
3336 SBufDetailedStats.h \
3337 tests/stub_SBufDetailedStats.cc \
3347 tests/testStoreSupport.cc \
3348 tests/testStoreSupport.h \
3350 tests/stub_access_log.cc \
3353 tests/stub_cache_cf.cc \
3355 tests/stub_cache_manager.cc \
3356 tests/stub_client_db.cc \
3357 tests/stub_client_side_request.cc \
3358 tests/stub_debug.cc \
3359 tests/stub_errorpage.cc \
3360 tests/stub_HelperChildConfig.cc \
3361 tests/stub_http.cc \
3362 tests/stub_HttpRequest.cc \
3363 tests/stub_libauth.cc \
3366 tests/stub_ipcache.cc \
3367 tests/stub_libeui.cc \
3368 tests/stub_libformat.cc \
3369 tests/stub_libicmp.cc \
3370 tests/stub_libmgr.cc \
3371 tests/stub_MemStore.cc \
3373 tests/stub_mime.cc \
3374 tests/stub_Port.cc \
3375 tests/stub_pconn.cc \
3376 tests/stub_store_client.cc \
3378 tests/stub_store_rebuild.cc \
3379 tests/stub_store_stats.cc \
3381 tests/stub_tools.cc \
3387 $(DELAY_POOL_SOURCE) \
3390 nodist_tests_testRock_SOURCES = \
3391 $(DISKIO_GEN_SOURCE) \
3396 tests_testRock_LDADD = \
3397 http/libsquid-http.la \
3413 $(top_builddir)/lib/libmisccontainers.la \
3414 $(top_builddir)/lib/libmiscencoding.la \
3415 $(top_builddir)/lib/libmiscutil.la \
3417 $(SQUID_CPPUNIT_LIBS) \
3421 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3422 tests_testRock_DEPENDENCIES = \
3425 ## Tests of the URL module.
3426 ## TODO: Trim this down once the insanity is over.
3427 tests_testURL_SOURCES = \
3436 tests/stub_cache_manager.cc \
3438 tests/stub_CacheDigest.cc \
3440 tests/stub_carp.cc \
3442 ChunkedCodingParser.cc \
3447 client_side_reply.cc \
3448 client_side_request.cc \
3451 tests/stub_CollapsedForwarding.cc \
3458 $(DELAY_POOL_SOURCE) \
3461 DiskIO/ReadRequest.cc \
3462 DiskIO/WriteRequest.cc \
3470 ExternalACLEntry.cc \
3472 tests/stub_fatal.cc \
3487 HelperChildConfig.h \
3488 HelperChildConfig.cc \
3496 HttpHeaderFieldStat.h \
3500 HttpHdrContRange.cc \
3503 HttpHdrScTarget.cc \
3506 HttpHeaderFieldInfo.h \
3508 HttpHeaderTools.cc \
3516 HttpRequestMethod.cc \
3548 peer_proxy_negotiate_auth.h \
3549 peer_proxy_negotiate_auth.cc \
3552 peer_sourcehash.cc \
3556 tests/stub_redirect.cc \
3562 SBufDetailedStats.h \
3563 tests/stub_SBufDetailedStats.cc \
3573 tests/stub_StatHist.cc \
3579 tests/stub_store_digest.cc \
3592 StoreFileSystem.cc \
3594 tests/stub_StoreMeta.cc \
3595 StoreMetaUnpacker.cc \
3596 StoreSwapLogData.cc \
3601 tests/stub_SwapDir.cc \
3603 tests/stub_debug.cc \
3604 tests/stub_DiskIOModule.cc \
3605 tests/stub_libauth_acls.cc \
3606 tests/stub_libauth.cc \
3607 tests/stub_main_cc.cc \
3608 tests/stub_ipc_Forwarder.cc \
3609 tests/stub_store_stats.cc \
3612 tests/testURLScheme.cc \
3613 tests/testURLScheme.h \
3615 tests/stub_time.cc \
3616 tests/stub_EventLoop.cc \
3619 tests/stub_tunnel.cc \
3625 tests/stub_wccp2.cc \
3627 tests/stub_whois.cc \
3632 nodist_tests_testURL_SOURCES = \
3634 tests_testURL_LDADD = \
3635 http/libsquid-http.la \
3649 icmp/libicmp.la icmp/libicmp-core.la \
3653 format/libformat.la \
3656 $(ADAPTATION_LIBS) \
3659 $(top_builddir)/lib/libmisccontainers.la \
3660 $(top_builddir)/lib/libmiscencoding.la \
3661 $(top_builddir)/lib/libmiscutil.la \
3663 $(SQUID_CPPUNIT_LIBS) \
3664 $(SQUID_CPPUNIT_LA) \
3669 tests_testURL_LDFLAGS = $(LIBADD_DL)
3670 tests_testURL_DEPENDENCIES = \
3674 tests_testSBuf_SOURCES= \
3678 tests/SBufFindTest.h \
3679 tests/SBufFindTest.cc \
3681 SBufDetailedStats.h \
3682 tests/stub_SBufDetailedStats.cc \
3684 tests/stub_time.cc \
3686 tests/stub_debug.cc \
3687 tests/stub_fatal.cc \
3688 tests/stub_HelperChildConfig.cc \
3689 tests/stub_cache_cf.cc \
3690 tests/stub_cache_manager.cc \
3691 tests/stub_store.cc \
3692 tests/stub_store_stats.cc \
3693 tests/stub_tools.cc \
3696 tests/stub_wordlist.cc \
3697 tests/stub_MemBuf.cc
3698 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3699 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3700 tests_testSBuf_LDADD=\
3701 $(SQUID_CPPUNIT_LIBS) \
3702 $(SQUID_CPPUNIT_LA) \
3708 $(top_builddir)/lib/libmiscutil.la \
3710 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3712 tests_testConfigParser_SOURCES = \
3716 tests/stub_MemBuf.cc \
3717 tests/stub_time.cc \
3721 tests/stub_fatal.cc \
3723 tests/testConfigParser.cc \
3724 tests/testConfigParser.h \
3727 tests/stub_cache_cf.cc \
3728 tests/stub_cache_manager.cc \
3729 tests/stub_debug.cc \
3730 tests/stub_HelperChildConfig.cc \
3732 tests/stub_tools.cc \
3735 nodist_tests_testConfigParser_SOURCES = \
3737 tests_testConfigParser_LDADD = \
3741 $(top_builddir)/lib/libmiscutil.la \
3743 $(SQUID_CPPUNIT_LIBS) \
3747 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3748 tests_testConfigParser_DEPENDENCIES = \
3751 tests_testStatHist_SOURCES = \
3752 tests/stub_cbdata.cc \
3754 tests/stub_fatal.cc \
3755 tests/stub_MemBuf.cc \
3759 tests/stub_cache_manager.cc \
3760 tests/stub_comm.cc \
3761 tests/stub_debug.cc \
3762 tests/stub_DelayId.cc \
3763 tests/stub_HelperChildConfig.cc \
3766 tests/stub_MemObject.cc \
3768 tests/stub_mime.cc \
3769 tests/stub_pconn.cc \
3770 tests/stub_stmem.cc \
3772 tests/stub_store.cc \
3773 tests/stub_store_stats.cc \
3775 tests/stub_tools.cc \
3777 tests/testStatHist.cc \
3778 tests/testStatHist.h
3779 nodist_tests_testStatHist_SOURCES = \
3781 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3782 tests_testStatHist_LDADD = \
3784 $(top_builddir)/lib/libmiscutil.la \
3785 $(top_builddir)/lib/libmisccontainers.la \
3786 $(SQUID_CPPUNIT_LIBS) \
3787 $(SQUID_CPPUNIT_LA) \
3789 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3791 tests_testVector_SOURCES = \
3792 tests/testVector.cc \
3795 nodist_tests_testVector_SOURCES = \
3797 tests_testVector_LDADD= \
3798 $(SQUID_CPPUNIT_LIBS) \
3801 tests_testVector_LDFLAGS = $(LIBADD_DL)
3802 tests_testVector_DEPENDENCIES = \
3806 TESTS += testHeaders
3808 ## Special Universal .h dependency test script
3809 ## aborts if error encountered
3810 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3811 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3812 ## src/repl/ has no .h files and its own makefile.
3814 CLEANFILES += testHeaders