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= \
1225 DiskIO/ReadRequest.cc \
1226 DiskIO/WriteRequest.cc \
1227 tests/stub_ETag.cc \
1230 tests/stub_fatal.cc \
1233 HelperChildConfig.h \
1234 HelperChildConfig.cc \
1238 HttpHeaderFieldInfo.h \
1240 HttpHeaderTools.cc \
1241 HttpHdrContRange.cc \
1243 HttpHeaderFieldStat.h \
1248 HttpHdrScTarget.cc \
1250 HttpRequestMethod.cc \
1268 tests/stub_StatHist.cc \
1271 SBufDetailedStats.h \
1272 tests/stub_SBufDetailedStats.cc \
1276 tests/stub_StoreMeta.cc \
1277 StoreMetaUnpacker.cc \
1278 StoreSwapLogData.cc \
1283 tests/stub_SwapDir.cc \
1286 tests/stub_access_log.cc \
1289 tests/stub_cache_cf.cc \
1290 tests/stub_client_side.cc \
1291 tests/stub_debug.cc \
1292 tests/stub_DelayId.cc \
1293 tests/stub_DiskIOModule.cc \
1294 tests/stub_errorpage.cc \
1297 tests/stub_HttpRequest.cc \
1298 tests/stub_HttpReply.cc \
1299 tests/stub_ipc_TypedMsgHdr.cc \
1300 tests/stub_libauth.cc \
1301 tests/stub_libcomm.cc \
1302 tests/stub_libformat.cc \
1303 tests/stub_libsslsquid.cc \
1304 tests/stub_MemObject.cc \
1305 tests/stub_MemStore.cc \
1307 tests/stub_mime.cc \
1308 tests/stub_pconn.cc \
1309 tests/stub_Port.cc \
1311 tests/stub_store.cc \
1313 tests/stub_store_rebuild.cc \
1314 tests/stub_store_stats.cc \
1315 tests/stub_store_swapout.cc \
1317 tests/stub_tools.cc \
1318 tests/stub_cache_manager.cc \
1319 tests/stub_UdsOp.cc \
1320 tests/testACLMaxUserIP.cc \
1321 tests/testACLMaxUserIP.h \
1323 tests/stub_time.cc \
1333 nodist_tests_testACLMaxUserIP_SOURCES= \
1335 tests_testACLMaxUserIP_LDADD= \
1336 http/libsquid-http.la \
1349 $(top_builddir)/lib/libmisccontainers.la \
1350 $(top_builddir)/lib/libmiscencoding.la \
1351 $(top_builddir)/lib/libmiscutil.la \
1354 $(SQUID_CPPUNIT_LIBS) \
1358 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1359 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1360 ## $(SQUID_CPPUNIT_LA)
1362 ## a demonstration test that does nothing but shows the salient points
1363 ## involved in writing tests.
1364 tests_testBoilerplate_SOURCES = \
1365 tests/testBoilerplate.cc \
1367 tests/testBoilerplate.h \
1369 nodist_tests_testBoilerplate_SOURCES = \
1371 tests_testBoilerplate_LDADD= \
1372 $(SQUID_CPPUNIT_LIBS) \
1376 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1377 tests_testBoilerplate_DEPENDENCIES = \
1380 ## Tests of the CacheManager module.
1381 tests_testCacheManager_SOURCES = \
1389 HttpRequestMethod.cc \
1393 tests/testCacheManager.cc \
1394 tests/testCacheManager.h \
1396 tests/stub_main_cc.cc \
1397 tests/stub_ipc_Forwarder.cc \
1398 tests/stub_store_stats.cc \
1399 tests/stub_EventLoop.cc \
1410 tests/stub_CacheDigest.cc \
1412 tests/stub_carp.cc \
1414 ChunkedCodingParser.cc \
1419 client_side_reply.cc \
1420 client_side_request.cc \
1423 tests/stub_CollapsedForwarding.cc \
1430 $(DELAY_POOL_SOURCE) \
1438 tests/stub_ETag.cc \
1441 ExternalACLEntry.cc \
1443 tests/stub_fatal.cc \
1459 HelperChildConfig.h \
1460 HelperChildConfig.cc \
1470 HttpHeaderFieldInfo.h \
1472 HttpHeaderTools.cc \
1473 HttpHeaderFieldStat.h \
1477 HttpHdrContRange.cc \
1480 HttpHdrScTarget.cc \
1512 peer_proxy_negotiate_auth.h \
1513 peer_proxy_negotiate_auth.cc \
1516 peer_sourcehash.cc \
1520 tests/stub_redirect.cc \
1526 SBufDetailedStats.h \
1527 tests/stub_SBufDetailedStats.cc \
1539 tests/stub_libauth_acls.cc \
1540 tests/stub_libauth.cc \
1541 tests/stub_StatHist.cc \
1547 tests/stub_store_digest.cc \
1560 StoreFileSystem.cc \
1562 tests/stub_StoreMeta.cc \
1563 StoreMetaUnpacker.cc \
1564 StoreSwapLogData.cc \
1568 tests/stub_tunnel.cc \
1569 tests/stub_SwapDir.cc \
1577 tests/stub_wccp2.cc \
1579 tests/stub_whois.cc \
1584 nodist_tests_testCacheManager_SOURCES = \
1586 $(DISKIO_GEN_SOURCE)
1587 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1588 tests_testCacheManager_LDADD = \
1589 http/libsquid-http.la \
1600 icmp/libicmp.la icmp/libicmp-core.la \
1602 format/libformat.la \
1606 $(ADAPTATION_LIBS) \
1613 $(top_builddir)/lib/libmisccontainers.la \
1614 $(top_builddir)/lib/libmiscencoding.la \
1615 $(top_builddir)/lib/libmiscutil.la \
1617 $(SQUID_CPPUNIT_LIBS) \
1618 $(SQUID_CPPUNIT_LA) \
1623 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1624 tests_testCacheManager_DEPENDENCIES = \
1628 tests_testDiskIO_SOURCES = \
1630 tests/stub_CacheDigest.cc \
1634 tests/stub_CollapsedForwarding.cc \
1637 $(DELAY_POOL_SOURCE) \
1641 tests/stub_ETag.cc \
1645 tests/stub_fatal.cc \
1654 HttpHeaderFieldStat.h \
1658 HttpHdrContRange.cc \
1660 HttpHdrScTarget.cc \
1662 HttpHeaderFieldInfo.h \
1664 HttpHeaderTools.cc \
1669 HttpRequestMethod.cc \
1693 tests/stub_StatHist.cc \
1696 SBufDetailedStats.h \
1697 tests/stub_SBufDetailedStats.cc \
1698 StoreFileSystem.cc \
1700 tests/stub_StoreMeta.cc \
1701 StoreMetaUnpacker.cc \
1702 StoreSwapLogData.cc \
1714 tests/stub_SwapDir.cc \
1717 tests/stub_access_log.cc \
1721 tests/stub_cache_cf.cc \
1722 tests/stub_cache_manager.cc \
1723 tests/stub_client_db.cc \
1724 client_side_request.h \
1725 tests/stub_client_side_request.cc \
1726 tests/stub_debug.cc \
1727 tests/stub_errorpage.cc \
1728 tests/stub_helper.cc \
1729 tests/stub_HelperChildConfig.cc \
1730 tests/stub_HttpRequest.cc \
1731 tests/stub_http.cc \
1734 tests/stub_internal.cc \
1736 tests/stub_ipcache.cc \
1737 tests/stub_libauth_acls.cc \
1738 tests/stub_libauth.cc \
1739 tests/stub_libeui.cc \
1740 tests/stub_libformat.cc \
1741 tests/stub_libicmp.cc \
1742 tests/stub_MemStore.cc \
1744 tests/stub_mime.cc \
1745 tests/stub_pconn.cc \
1746 tests/stub_Port.cc \
1747 tests/stub_store_client.cc \
1748 tests/stub_store_stats.cc \
1750 tests/stub_store_rebuild.cc \
1751 tests/stub_UdsOp.cc \
1752 tests/testDiskIO.cc \
1753 tests/testDiskIO.h \
1755 tests/testStoreSupport.cc \
1756 tests/testStoreSupport.h \
1757 tests/stub_time.cc \
1766 nodist_tests_testDiskIO_SOURCES= \
1768 $(DISKIO_GEN_SOURCE) \
1772 tests_testDiskIO_LDADD = \
1773 http/libsquid-http.la \
1776 DnsLookupDetails.o \
1794 $(top_builddir)/lib/libmisccontainers.la \
1795 $(top_builddir)/lib/libmiscencoding.la \
1796 $(top_builddir)/lib/libmiscutil.la \
1798 $(SQUID_CPPUNIT_LIBS) \
1803 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1804 tests_testDiskIO_DEPENDENCIES = \
1809 ## Tests of the Even module.
1810 tests_testEvent_SOURCES = \
1814 tests/stub_CacheDigest.cc \
1823 tests/stub_carp.cc \
1825 ChunkedCodingParser.cc \
1830 client_side_reply.cc \
1831 client_side_request.cc \
1834 tests/stub_CollapsedForwarding.cc \
1842 $(DELAY_POOL_SOURCE) \
1850 tests/stub_ETag.cc \
1855 ExternalACLEntry.cc \
1858 tests/stub_fatal.cc \
1873 HelperChildConfig.h \
1874 HelperChildConfig.cc \
1884 HttpHeaderFieldInfo.h \
1886 HttpHeaderTools.cc \
1887 HttpHeaderFieldStat.h \
1891 HttpHdrContRange.cc \
1894 HttpHdrScTarget.cc \
1902 HttpRequestMethod.cc \
1934 peer_proxy_negotiate_auth.h \
1935 peer_proxy_negotiate_auth.cc \
1938 peer_sourcehash.cc \
1942 tests/stub_redirect.cc \
1950 SBufDetailedStats.h \
1951 tests/stub_SBufDetailedStats.cc \
1967 tests/stub_store_digest.cc \
1980 StoreFileSystem.cc \
1982 tests/stub_StoreMeta.cc \
1983 StoreMetaUnpacker.cc \
1984 StoreSwapLogData.cc \
1986 tests/stub_SwapDir.cc \
1987 tests/CapturingStoreEntry.h \
1988 tests/testEvent.cc \
1991 tests/stub_main_cc.cc \
1992 tests/stub_ipc_Forwarder.cc \
1993 tests/stub_libauth_acls.cc \
1994 tests/stub_libauth.cc \
1995 tests/stub_libeui.cc \
1996 tests/stub_store_stats.cc \
2001 tests/stub_tunnel.cc \
2009 tests/stub_wccp2.cc \
2011 tests/stub_whois.cc \
2015 nodist_tests_testEvent_SOURCES = \
2017 $(DISKIO_GEN_SOURCE)
2018 tests_testEvent_LDADD = \
2019 http/libsquid-http.la \
2029 icmp/libicmp.la icmp/libicmp-core.la \
2032 format/libformat.la \
2034 $(ADAPTATION_LIBS) \
2037 $(top_builddir)/lib/libmisccontainers.la \
2038 $(top_builddir)/lib/libmiscencoding.la \
2039 $(top_builddir)/lib/libmiscutil.la \
2046 $(SQUID_CPPUNIT_LIBS) \
2047 $(SQUID_CPPUNIT_LA) \
2052 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2053 tests_testEvent_DEPENDENCIES = \
2057 ## Tests of the EventLoop module.
2058 tests_testEventLoop_SOURCES = \
2062 tests/stub_CacheDigest.cc \
2071 tests/stub_carp.cc \
2073 ChunkedCodingParser.cc \
2078 client_side_reply.cc \
2079 client_side_request.cc \
2082 tests/stub_CollapsedForwarding.cc \
2090 $(DELAY_POOL_SOURCE) \
2098 tests/stub_ETag.cc \
2103 ExternalACLEntry.cc \
2106 tests/stub_fatal.cc \
2121 HelperChildConfig.h \
2122 HelperChildConfig.cc \
2132 HttpHeaderFieldInfo.h \
2134 HttpHeaderTools.cc \
2135 HttpHeaderFieldStat.h \
2139 HttpHdrContRange.cc \
2142 HttpHdrScTarget.cc \
2150 HttpRequestMethod.cc \
2182 peer_proxy_negotiate_auth.h \
2183 peer_proxy_negotiate_auth.cc \
2186 peer_sourcehash.cc \
2191 tests/stub_redirect.cc \
2196 SBufDetailedStats.h \
2197 tests/stub_SBufDetailedStats.cc \
2214 tests/stub_store_digest.cc \
2227 StoreFileSystem.cc \
2229 tests/stub_StoreMeta.cc \
2230 StoreMetaUnpacker.cc \
2231 StoreSwapLogData.cc \
2235 tests/stub_SwapDir.cc \
2236 tests/testEventLoop.cc \
2237 tests/testEventLoop.h \
2239 tests/stub_main_cc.cc \
2240 tests/stub_ipc_Forwarder.cc \
2241 tests/stub_libauth_acls.cc \
2242 tests/stub_libauth.cc \
2243 tests/stub_libeui.cc \
2244 tests/stub_store_stats.cc \
2249 tests/stub_tunnel.cc \
2257 tests/stub_wccp2.cc \
2259 tests/stub_whois.cc \
2263 nodist_tests_testEventLoop_SOURCES = \
2265 $(DISKIO_GEN_SOURCE)
2266 tests_testEventLoop_LDADD = \
2267 http/libsquid-http.la \
2277 icmp/libicmp.la icmp/libicmp-core.la \
2280 format/libformat.la \
2282 $(ADAPTATION_LIBS) \
2285 $(top_builddir)/lib/libmisccontainers.la \
2286 $(top_builddir)/lib/libmiscencoding.la \
2287 $(top_builddir)/lib/libmiscutil.la \
2294 $(SQUID_CPPUNIT_LIBS) \
2295 $(SQUID_CPPUNIT_LA) \
2300 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2301 tests_testEventLoop_DEPENDENCIES = \
2305 tests_test_http_range_SOURCES = \
2316 tests/stub_CacheDigest.cc \
2318 tests/stub_carp.cc \
2320 ChunkedCodingParser.cc \
2325 client_side_reply.cc \
2326 client_side_request.cc \
2329 tests/stub_CollapsedForwarding.cc \
2337 $(DELAY_POOL_SOURCE) \
2345 tests/stub_ETag.cc \
2349 tests/stub_libauth.cc \
2350 tests/stub_fatal.cc \
2365 HelperChildConfig.h \
2366 HelperChildConfig.cc \
2374 HttpHeaderFieldStat.h \
2378 HttpHdrContRange.cc \
2381 HttpHdrScTarget.cc \
2384 HttpHeaderFieldInfo.h \
2386 HttpHeaderTools.cc \
2394 HttpRequestMethod.cc \
2425 peer_proxy_negotiate_auth.h \
2426 peer_proxy_negotiate_auth.cc \
2429 peer_sourcehash.cc \
2434 tests/stub_redirect.cc \
2440 SBufDetailedStats.h \
2441 tests/stub_SBufDetailedStats.cc \
2457 tests/stub_store_digest.cc \
2470 StoreFileSystem.cc \
2472 tests/stub_StoreMeta.cc \
2473 StoreMetaUnpacker.cc \
2474 StoreSwapLogData.cc \
2478 tests/stub_SwapDir.cc \
2480 tests/test_http_range.cc \
2481 tests/stub_external_acl.cc \
2482 tests/stub_ipc_Forwarder.cc \
2483 tests/stub_libeui.cc \
2484 tests/stub_main_cc.cc \
2485 tests/stub_MemStore.cc \
2486 tests/stub_store_stats.cc \
2487 tests/stub_EventLoop.cc \
2491 tests/stub_tunnel.cc \
2498 tests/stub_wccp2.cc \
2500 tests/stub_whois.cc \
2504 nodist_tests_test_http_range_SOURCES = \
2506 $(DISKIO_GEN_SOURCE)
2507 tests_test_http_range_LDADD = \
2508 http/libsquid-http.la \
2517 icmp/libicmp.la icmp/libicmp-core.la \
2520 format/libformat.la \
2524 $(ADAPTATION_LIBS) \
2531 $(top_builddir)/lib/libmisccontainers.la \
2532 $(top_builddir)/lib/libmiscencoding.la \
2533 $(top_builddir)/lib/libmiscutil.la \
2535 $(SQUID_CPPUNIT_LIBS) \
2536 $(SQUID_CPPUNIT_LA) \
2541 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2542 tests_test_http_range_DEPENDENCIES = \
2545 tests_testHttpParser_SOURCES = \
2551 tests/stub_MemObject.cc \
2558 tests/stub_SBufDetailedStats.cc \
2559 tests/stub_cache_cf.cc \
2560 tests/stub_cache_manager.cc \
2561 tests/stub_comm.cc \
2562 tests/stub_cbdata.cc \
2563 tests/stub_debug.cc \
2564 tests/stub_event.cc \
2565 tests/stub_HelperChildConfig.cc \
2566 tests/stub_stmem.cc \
2567 tests/stub_store.cc \
2568 tests/stub_store_stats.cc \
2570 tests/stub_tools.cc \
2571 tests/testHttpParser.cc \
2572 tests/testHttpParser.h \
2574 tests/stub_time.cc \
2577 nodist_tests_testHttpParser_SOURCES = \
2579 tests_testHttpParser_LDADD= \
2580 http/libsquid-http.la \
2584 $(top_builddir)/lib/libmiscutil.la \
2585 $(SQUID_CPPUNIT_LIBS) \
2588 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2589 tests_testHttpParser_DEPENDENCIES = \
2592 ## Tests of the HttpRequest module.
2593 tests_testHttpRequest_SOURCES = \
2600 HttpRequestMethod.cc \
2604 tests/testHttpRequest.h \
2605 tests/testHttpRequest.cc \
2606 tests/testHttpRequestMethod.h \
2607 tests/testHttpRequestMethod.cc \
2609 tests/stub_DiskIOModule.cc \
2610 tests/stub_libauth.cc \
2611 tests/stub_main_cc.cc \
2612 tests/stub_ipc_Forwarder.cc \
2613 tests/stub_libeui.cc \
2614 tests/stub_store_stats.cc \
2615 tests/stub_EventLoop.cc \
2627 tests/stub_CacheDigest.cc \
2629 tests/stub_carp.cc \
2631 ChunkedCodingParser.cc \
2636 client_side_reply.cc \
2637 client_side_request.cc \
2640 tests/stub_CollapsedForwarding.cc \
2647 $(DELAY_POOL_SOURCE) \
2654 tests/stub_ETag.cc \
2656 ExternalACLEntry.cc \
2658 tests/stub_fatal.cc \
2671 HelperChildConfig.h \
2672 HelperChildConfig.cc \
2682 HttpHeaderFieldInfo.h \
2684 HttpHeaderTools.cc \
2685 HttpHeaderFieldStat.h \
2689 HttpHdrContRange.cc \
2692 HttpHdrScTarget.cc \
2724 peer_proxy_negotiate_auth.h \
2725 peer_proxy_negotiate_auth.cc \
2728 peer_sourcehash.cc \
2732 tests/stub_libauth_acls.cc \
2733 tests/stub_redirect.cc \
2739 SBufDetailedStats.h \
2740 tests/stub_SBufDetailedStats.cc \
2756 tests/stub_store_digest.cc \
2769 StoreFileSystem.cc \
2771 tests/stub_StoreMeta.cc \
2772 StoreMetaUnpacker.cc \
2773 StoreSwapLogData.cc \
2780 tests/stub_tunnel.cc \
2781 tests/stub_SwapDir.cc \
2788 tests/stub_wccp2.cc \
2790 tests/stub_whois.cc \
2795 nodist_tests_testHttpRequest_SOURCES = \
2797 tests_testHttpRequest_LDADD = \
2810 icmp/libicmp.la icmp/libicmp-core.la \
2813 format/libformat.la \
2814 http/libsquid-http.la \
2816 $(ADAPTATION_LIBS) \
2819 $(top_builddir)/lib/libmisccontainers.la \
2820 $(top_builddir)/lib/libmiscencoding.la \
2821 $(top_builddir)/lib/libmiscutil.la \
2824 $(SQUID_CPPUNIT_LIBS) \
2825 $(SQUID_CPPUNIT_LA) \
2830 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2831 tests_testHttpRequest_DEPENDENCIES = \
2835 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2836 ## first line - what we are testing.
2837 tests_testStore_SOURCES= \
2839 tests/stub_CacheDigest.cc \
2842 tests/stub_CollapsedForwarding.cc \
2845 $(DELAY_POOL_SOURCE) \
2848 DiskIO/ReadRequest.cc \
2849 DiskIO/WriteRequest.cc \
2854 tests/stub_fatal.cc \
2857 HttpHeaderFieldStat.h \
2861 HttpHdrContRange.cc \
2864 HttpHdrScTarget.cc \
2865 HttpHeaderFieldInfo.h \
2867 HttpHeaderTools.cc \
2871 HttpRequestMethod.cc \
2903 tests/stub_StoreMeta.cc \
2904 StoreMetaUnpacker.cc \
2905 StoreSwapLogData.cc \
2909 SBufDetailedStats.h \
2910 tests/stub_SBufDetailedStats.cc \
2915 tests/CapturingStoreEntry.h \
2917 tests/stub_access_log.cc \
2921 tests/stub_cache_cf.cc \
2922 tests/stub_cache_manager.cc \
2923 tests/stub_client_side_request.cc \
2924 tests/stub_comm.cc \
2925 tests/stub_debug.cc \
2926 tests/stub_DiskIOModule.cc \
2927 tests/stub_errorpage.cc \
2931 tests/stub_helper.cc \
2932 tests/stub_HelperChildConfig.cc \
2933 tests/stub_http.cc \
2934 tests/stub_libauth.cc \
2935 tests/stub_libeui.cc \
2936 tests/stub_libformat.cc \
2939 tests/stub_HttpReply.cc \
2940 tests/stub_HttpRequest.cc \
2941 tests/stub_libcomm.cc \
2942 tests/stub_MemStore.cc \
2944 tests/stub_mime.cc \
2945 tests/stub_Port.cc \
2946 tests/stub_store_client.cc \
2947 tests/stub_store_stats.cc \
2949 tests/stub_store_rebuild.cc \
2950 tests/stub_store_swapout.cc \
2953 tests/stub_tools.cc \
2954 tests/stub_UdsOp.cc \
2956 tests/testStore.cc \
2958 tests/testStoreEntryStream.cc \
2959 tests/testStoreEntryStream.h \
2960 tests/testStoreController.cc \
2961 tests/testStoreController.h \
2962 tests/testStoreHashIndex.cc \
2963 tests/testStoreHashIndex.h \
2964 tests/testStoreSupport.cc \
2965 tests/testStoreSupport.h \
2966 tests/TestSwapDir.cc \
2967 tests/TestSwapDir.h \
2968 tests/stub_time.cc \
2974 nodist_tests_testStore_SOURCES= \
2980 tests_testStore_LDADD= \
2981 http/libsquid-http.la \
2994 $(top_builddir)/lib/libmisccontainers.la \
2995 $(top_builddir)/lib/libmiscencoding.la \
2996 $(top_builddir)/lib/libmiscutil.la \
2998 $(SQUID_CPPUNIT_LIBS) \
3001 DnsLookupDetails.o \
3004 tests_testStore_LDFLAGS = $(LIBADD_DL)
3005 tests_testStore_DEPENDENCIES = \
3008 ## string needs mem.cc.
3009 ## mem.cc needs ClientInfo.h
3010 ## libsquid pulls in SquidConfig and children. stub them.
3011 tests_testString_SOURCES = \
3018 tests/testString.cc \
3019 tests/testString.h \
3022 tests/stub_cache_cf.cc \
3023 tests/stub_cache_manager.cc \
3024 tests/stub_debug.cc \
3025 tests/stub_HelperChildConfig.cc \
3027 tests/stub_tools.cc \
3028 tests/stub_time.cc \
3031 nodist_tests_testString_SOURCES = \
3033 tests_testString_LDADD = \
3037 $(top_builddir)/lib/libmiscutil.la \
3039 $(SQUID_CPPUNIT_LIBS) \
3043 tests_testString_LDFLAGS = $(LIBADD_DL)
3044 tests_testString_DEPENDENCIES = \
3063 tests_testUfs_SOURCES = \
3067 tests/stub_cache_manager.cc \
3068 tests/stub_client_db.cc \
3069 tests/stub_CollapsedForwarding.cc \
3070 tests/stub_HelperChildConfig.cc \
3073 tests/stub_ipcache.cc \
3074 tests/stub_libeui.cc \
3075 tests/stub_libicmp.cc \
3076 tests/stub_MemStore.cc \
3077 tests/stub_pconn.cc \
3078 tests/stub_Port.cc \
3079 tests/stub_UdsOp.cc \
3081 tests/stub_internal.cc \
3082 tests/stub_libformat.cc \
3084 tests/stub_store_rebuild.cc \
3085 tests/stub_store_stats.cc \
3087 tests/stub_fatal.cc \
3112 StoreSwapLogData.cc \
3114 StoreMetaUnpacker.cc \
3115 $(STOREMETA_SOURCE) \
3116 StoreFileSystem.cc \
3123 $(DELAY_POOL_SOURCE) \
3125 tests/stub_CacheDigest.cc \
3133 HttpRequestMethod.cc \
3142 tests/stub_cache_cf.cc \
3143 tests/stub_helper.cc \
3146 SBufDetailedStats.h \
3147 tests/stub_SBufDetailedStats.cc \
3149 tests/stub_debug.cc \
3150 tests/stub_client_side_request.cc \
3151 tests/stub_http.cc \
3152 tests/stub_libauth.cc \
3156 tests/stub_mime.cc \
3157 HttpHeaderFieldInfo.h \
3159 HttpHeaderTools.cc \
3166 HttpHdrContRange.cc \
3168 HttpHeaderFieldStat.h \
3173 HttpHdrScTarget.cc \
3183 tests/stub_errorpage.cc \
3184 tests/stub_HttpRequest.cc \
3186 tests/stub_access_log.cc \
3189 tests/stub_store_client.cc \
3191 tests/stub_tools.cc \
3192 tests/testStoreSupport.cc \
3193 tests/testStoreSupport.h \
3200 nodist_tests_testUfs_SOURCES = \
3202 $(DISKIO_GEN_SOURCE) \
3206 tests_testUfs_LDADD = \
3207 http/libsquid-http.la \
3209 DnsLookupDetails.o \
3229 $(top_builddir)/lib/libmisccontainers.la \
3230 $(top_builddir)/lib/libmiscencoding.la \
3231 $(top_builddir)/lib/libmiscutil.la \
3233 $(SQUID_CPPUNIT_LIBS) \
3237 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3238 tests_testUfs_DEPENDENCIES = \
3241 check_PROGRAMS += testRefCount
3242 testRefCount_SOURCES= \
3245 tests/stub_cbdata.cc \
3246 tests/stub_debug.cc \
3247 tests/stub_MemBuf.cc \
3248 tests/testRefCount.cc
3249 testRefCount_LDADD = \
3251 $(top_builddir)/lib/libmiscutil.la \
3255 tests_testRock_SOURCES = \
3258 CollapsedForwarding.h \
3259 CollapsedForwarding.cc \
3260 tests/stub_CacheDigest.cc \
3269 tests/stub_fatal.cc \
3276 HttpHeaderFieldStat.h \
3280 HttpHdrContRange.cc \
3283 HttpHdrScTarget.cc \
3286 HttpHeaderFieldInfo.h \
3288 HttpHeaderTools.cc \
3291 HttpRequestMethod.cc \
3313 tests/stub_StatHist.cc \
3317 StoreFileSystem.cc \
3319 StoreMetaUnpacker.cc \
3320 $(STOREMETA_SOURCE) \
3321 StoreSwapLogData.cc \
3329 SBufDetailedStats.h \
3330 tests/stub_SBufDetailedStats.cc \
3340 tests/testStoreSupport.cc \
3341 tests/testStoreSupport.h \
3343 tests/stub_access_log.cc \
3346 tests/stub_cache_cf.cc \
3348 tests/stub_cache_manager.cc \
3349 tests/stub_client_db.cc \
3350 tests/stub_client_side_request.cc \
3351 tests/stub_debug.cc \
3352 tests/stub_errorpage.cc \
3353 tests/stub_HelperChildConfig.cc \
3354 tests/stub_http.cc \
3355 tests/stub_HttpRequest.cc \
3356 tests/stub_libauth.cc \
3359 tests/stub_ipcache.cc \
3360 tests/stub_libeui.cc \
3361 tests/stub_libformat.cc \
3362 tests/stub_libicmp.cc \
3363 tests/stub_libmgr.cc \
3364 tests/stub_MemStore.cc \
3366 tests/stub_mime.cc \
3367 tests/stub_Port.cc \
3368 tests/stub_pconn.cc \
3369 tests/stub_store_client.cc \
3371 tests/stub_store_rebuild.cc \
3372 tests/stub_store_stats.cc \
3374 tests/stub_tools.cc \
3380 $(DELAY_POOL_SOURCE) \
3383 nodist_tests_testRock_SOURCES = \
3384 $(DISKIO_GEN_SOURCE) \
3389 tests_testRock_LDADD = \
3390 http/libsquid-http.la \
3406 $(top_builddir)/lib/libmisccontainers.la \
3407 $(top_builddir)/lib/libmiscencoding.la \
3408 $(top_builddir)/lib/libmiscutil.la \
3410 $(SQUID_CPPUNIT_LIBS) \
3414 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3415 tests_testRock_DEPENDENCIES = \
3418 ## Tests of the URL module.
3419 ## TODO: Trim this down once the insanity is over.
3420 tests_testURL_SOURCES = \
3429 tests/stub_cache_manager.cc \
3431 tests/stub_CacheDigest.cc \
3433 tests/stub_carp.cc \
3435 ChunkedCodingParser.cc \
3440 client_side_reply.cc \
3441 client_side_request.cc \
3444 tests/stub_CollapsedForwarding.cc \
3451 $(DELAY_POOL_SOURCE) \
3454 DiskIO/ReadRequest.cc \
3455 DiskIO/WriteRequest.cc \
3463 ExternalACLEntry.cc \
3465 tests/stub_fatal.cc \
3480 HelperChildConfig.h \
3481 HelperChildConfig.cc \
3489 HttpHeaderFieldStat.h \
3493 HttpHdrContRange.cc \
3496 HttpHdrScTarget.cc \
3499 HttpHeaderFieldInfo.h \
3501 HttpHeaderTools.cc \
3509 HttpRequestMethod.cc \
3541 peer_proxy_negotiate_auth.h \
3542 peer_proxy_negotiate_auth.cc \
3545 peer_sourcehash.cc \
3549 tests/stub_redirect.cc \
3555 SBufDetailedStats.h \
3556 tests/stub_SBufDetailedStats.cc \
3566 tests/stub_StatHist.cc \
3572 tests/stub_store_digest.cc \
3585 StoreFileSystem.cc \
3587 tests/stub_StoreMeta.cc \
3588 StoreMetaUnpacker.cc \
3589 StoreSwapLogData.cc \
3594 tests/stub_SwapDir.cc \
3596 tests/stub_debug.cc \
3597 tests/stub_DiskIOModule.cc \
3598 tests/stub_libauth_acls.cc \
3599 tests/stub_libauth.cc \
3600 tests/stub_main_cc.cc \
3601 tests/stub_ipc_Forwarder.cc \
3602 tests/stub_store_stats.cc \
3605 tests/testURLScheme.cc \
3606 tests/testURLScheme.h \
3608 tests/stub_time.cc \
3609 tests/stub_EventLoop.cc \
3612 tests/stub_tunnel.cc \
3618 tests/stub_wccp2.cc \
3620 tests/stub_whois.cc \
3625 nodist_tests_testURL_SOURCES = \
3627 tests_testURL_LDADD = \
3628 http/libsquid-http.la \
3642 icmp/libicmp.la icmp/libicmp-core.la \
3646 format/libformat.la \
3649 $(ADAPTATION_LIBS) \
3652 $(top_builddir)/lib/libmisccontainers.la \
3653 $(top_builddir)/lib/libmiscencoding.la \
3654 $(top_builddir)/lib/libmiscutil.la \
3656 $(SQUID_CPPUNIT_LIBS) \
3657 $(SQUID_CPPUNIT_LA) \
3662 tests_testURL_LDFLAGS = $(LIBADD_DL)
3663 tests_testURL_DEPENDENCIES = \
3667 tests_testSBuf_SOURCES= \
3671 tests/SBufFindTest.h \
3672 tests/SBufFindTest.cc \
3674 SBufDetailedStats.h \
3675 tests/stub_SBufDetailedStats.cc \
3677 tests/stub_time.cc \
3679 tests/stub_debug.cc \
3680 tests/stub_fatal.cc \
3681 tests/stub_HelperChildConfig.cc \
3682 tests/stub_cache_cf.cc \
3683 tests/stub_cache_manager.cc \
3684 tests/stub_store.cc \
3685 tests/stub_store_stats.cc \
3686 tests/stub_tools.cc \
3689 tests/stub_wordlist.cc \
3690 tests/stub_MemBuf.cc
3691 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3692 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3693 tests_testSBuf_LDADD=\
3694 $(SQUID_CPPUNIT_LIBS) \
3695 $(SQUID_CPPUNIT_LA) \
3701 $(top_builddir)/lib/libmiscutil.la \
3703 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3705 tests_testConfigParser_SOURCES = \
3709 tests/stub_MemBuf.cc \
3710 tests/stub_time.cc \
3714 tests/stub_fatal.cc \
3716 tests/testConfigParser.cc \
3717 tests/testConfigParser.h \
3720 tests/stub_cache_cf.cc \
3721 tests/stub_cache_manager.cc \
3722 tests/stub_debug.cc \
3723 tests/stub_HelperChildConfig.cc \
3725 tests/stub_tools.cc \
3728 nodist_tests_testConfigParser_SOURCES = \
3730 tests_testConfigParser_LDADD = \
3734 $(top_builddir)/lib/libmiscutil.la \
3736 $(SQUID_CPPUNIT_LIBS) \
3740 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3741 tests_testConfigParser_DEPENDENCIES = \
3744 tests_testStatHist_SOURCES = \
3745 tests/stub_cbdata.cc \
3747 tests/stub_fatal.cc \
3748 tests/stub_MemBuf.cc \
3752 tests/stub_cache_manager.cc \
3753 tests/stub_comm.cc \
3754 tests/stub_debug.cc \
3755 tests/stub_DelayId.cc \
3756 tests/stub_HelperChildConfig.cc \
3759 tests/stub_MemObject.cc \
3761 tests/stub_mime.cc \
3762 tests/stub_pconn.cc \
3763 tests/stub_stmem.cc \
3765 tests/stub_store.cc \
3766 tests/stub_store_stats.cc \
3768 tests/stub_tools.cc \
3770 tests/testStatHist.cc \
3771 tests/testStatHist.h
3772 nodist_tests_testStatHist_SOURCES = \
3774 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3775 tests_testStatHist_LDADD = \
3777 $(top_builddir)/lib/libmiscutil.la \
3778 $(top_builddir)/lib/libmisccontainers.la \
3779 $(SQUID_CPPUNIT_LIBS) \
3780 $(SQUID_CPPUNIT_LA) \
3782 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3784 tests_testVector_SOURCES = \
3785 tests/testVector.cc \
3788 nodist_tests_testVector_SOURCES = \
3790 tests_testVector_LDADD= \
3791 $(SQUID_CPPUNIT_LIBS) \
3794 tests_testVector_LDFLAGS = $(LIBADD_DL)
3795 tests_testVector_DEPENDENCIES = \
3799 TESTS += testHeaders
3801 ## Special Universal .h dependency test script
3802 ## aborts if error encountered
3803 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3804 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3805 ## src/repl/ has no .h files and its own makefile.
3807 CLEANFILES += testHeaders