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 parser comm eui acl format fs repl
50 DIST_SUBDIRS = base anyp parser 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)
191 if ENABLE_WIN32_AIOPS
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 \
489 SBufDetailedStats.h \
490 SBufDetailedStats.cc \
534 StoreMetaUnpacker.cc \
535 StoreMetaUnpacker.h \
536 $(STOREMETA_SOURCE) \
540 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) \
636 http/libsquid-http.la \
637 icmp/libicmp.la icmp/libicmp-core.la \
639 format/libformat.la \
650 parser/libsquid-parser.la \
651 $(top_builddir)/lib/libmisccontainers.la \
652 $(top_builddir)/lib/libmiscencoding.la \
653 $(top_builddir)/lib/libmiscutil.la \
660 squid_DEPENDENCIES = \
678 format/libformat.la \
682 if ENABLE_LOADABLE_MODULES
683 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
684 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
685 squid_LDFLAGS = -export-dynamic -dlopen force
686 ## when static module linking is supported and enabled:
687 ## squid_LDFLAGS = -all-static -dlopen self
689 ## LTDL headers require their local include path...
690 INCLUDES += $(INCLTDL)
693 ## Kerberos libraries require their include path...
694 INCLUDES += $(KRB5INCS)
697 unlinkd_SOURCES = unlinkd_daemon.cc
702 recv_announce_SOURCES = recv-announce.cc
704 ## What requires what..
705 ## many things want ACLChecklist.cc
706 ## ACLChecklist.cc wants AuthUserRequest.cc
707 ## ACLChecklist.cc wants AuthScheme.cc
708 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
709 ## ACLProxyAuth.cc wants ACLUserData
710 ## ACLProxyAuth.cc wants ACLRegexData
711 ## cache_cf.cc wants $(AUTH_LIBS)
712 ## cache_cf.cc wants Swapdir
713 ## cache_cf.cc wants AnyP::PortCfg
714 ## client_side wants client_db
715 ## client_db wants SNMP_SOURCE
716 ## snmp_core wants ACLStringData
717 ## SwapDir wants ConfigOption
718 ## tools.cc wants ip/libip.la
719 ## client_side.cc wants ip/libip.la
720 ## mem.cc wants ClientInfo.h
721 ## libbase.la wants cbdata.*
722 ## libbase.la wants MemBuf.*
738 tests/stub_StoreMeta.cc \
739 StoreMetaUnpacker.cc \
746 HelperChildConfig.h \
747 tests/stub_HelperChildConfig.cc \
748 HttpRequestMethod.cc \
775 ufsdump_DEPENDENCIES = \
791 nodist_ufsdump_SOURCES = \
796 squid.conf.documented \
821 include $(srcdir)/tests/Stub.list
830 mk-string-arrays.pl \
831 mk-string-arrays.awk \
838 $(AIO_WIN32_SOURCES) \
839 DiskIO/AIO/async_io.h \
840 DiskIO/AIO/AIODiskFile.cc \
841 DiskIO/AIO/AIODiskFile.h \
842 DiskIO/AIO/AIODiskIOStrategy.cc \
843 DiskIO/AIO/AIODiskIOStrategy.h \
844 DiskIO/AIO/AIODiskIOModule.cc \
845 DiskIO/AIO/AIODiskIOModule.h
847 libBlocking_a_SOURCES = \
848 DiskIO/Blocking/BlockingFile.cc \
849 DiskIO/Blocking/BlockingFile.h \
850 DiskIO/Blocking/BlockingIOStrategy.cc \
851 DiskIO/Blocking/BlockingIOStrategy.h \
852 DiskIO/Blocking/BlockingDiskIOModule.cc \
853 DiskIO/Blocking/BlockingDiskIOModule.h
855 libMmapped_a_SOURCES = \
856 DiskIO/Mmapped/MmappedFile.cc \
857 DiskIO/Mmapped/MmappedFile.h \
858 DiskIO/Mmapped/MmappedIOStrategy.cc \
859 DiskIO/Mmapped/MmappedIOStrategy.h \
860 DiskIO/Mmapped/MmappedDiskIOModule.cc \
861 DiskIO/Mmapped/MmappedDiskIOModule.h
863 libIpcIo_a_SOURCES = \
864 DiskIO/IpcIo/IpcIoFile.cc \
865 DiskIO/IpcIo/IpcIoFile.h \
866 DiskIO/IpcIo/IpcIoIOStrategy.cc \
867 DiskIO/IpcIo/IpcIoIOStrategy.h \
868 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
869 DiskIO/IpcIo/IpcIoDiskIOModule.h
871 libDiskDaemon_a_SOURCES = \
872 DiskIO/DiskDaemon/DiskdFile.cc \
873 DiskIO/DiskDaemon/DiskdFile.h \
874 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
875 DiskIO/DiskDaemon/DiskdIOStrategy.h \
876 DiskIO/DiskDaemon/diomsg.h \
877 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
878 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
879 DiskIO/DiskDaemon/DiskdAction.cc \
880 DiskIO/DiskDaemon/DiskdAction.h
882 libDiskThreads_a_SOURCES = \
884 DiskIO/DiskThreads/async_io.cc \
885 DiskIO/DiskThreads/DiskThreads.h \
886 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
887 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
888 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
889 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
890 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
891 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
893 EXTRA_libDiskThreads_a_SOURCES = \
894 DiskIO/DiskThreads/aiops.cc \
895 DiskIO/DiskThreads/aiops_win32.cc \
896 DiskIO/DiskThreads/CommIO.cc \
897 DiskIO/DiskThreads/CommIO.h
899 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
900 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
901 DiskIO_DiskDaemon_diskd_LDADD = \
902 $(top_builddir)/lib/libmisccontainers.la \
903 $(top_builddir)/lib/libmiscencoding.la \
904 $(top_builddir)/lib/libmiscutil.la \
909 DEFAULT_HTTP_PORT = 3128
910 DEFAULT_ICP_PORT = 3130
911 DEFAULT_PREFIX = $(prefix)
912 DEFAULT_CONFIG_DIR = $(sysconfdir)
913 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
914 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
915 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
917 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
918 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
919 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
920 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
921 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
922 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
923 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
924 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
925 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
926 DEFAULT_ICON_DIR = $(datadir)/icons
927 DEFAULT_ERROR_DIR = $(datadir)/errors
929 # Make location configure settings available to the code
930 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
932 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
934 globals.cc: globals.h mk-globals-c.awk
935 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
937 ## Generate files containing string arrays for various enums....
938 hier_code.cc: hier_code.h mk-string-arrays.awk
939 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
941 err_type.cc: err_type.h mk-string-arrays.awk
942 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
944 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
945 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
947 LogTags.cc: LogTags.h mk-string-arrays.awk
948 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
950 lookup_t.cc: lookup_t.h mk-string-arrays.awk
951 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
953 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
954 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
956 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
957 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
960 ## other generated files...
962 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
963 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
965 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
966 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
968 ## If autodependency works well this is not needed anymore
969 cache_cf.o: cf_parser.cci
971 # cf_gen builds the configuration files.
972 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
973 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
975 # squid.conf.default is built by cf_gen when making cf_parser.cci
976 squid.conf.default squid.conf.documented: cf_parser.cci
979 cf_parser.cci: cf.data cf_gen$(EXEEXT)
980 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
982 # The cf_gen_defines.cci is auto-generated and does not exist when the
983 # dependencies computed. We need to add its include files (autoconf.h) here
984 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
985 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
988 ## FIXME: generate a sed command file from configure. Then this doesn't
989 ## depend on the Makefile.
990 cf.data: cf.data.pre Makefile
992 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
993 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
994 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
995 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
996 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
997 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
998 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
999 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
1000 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
1001 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
1002 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1003 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1004 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1005 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1006 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1007 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1008 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1009 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1010 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1011 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1012 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1013 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1014 < $(srcdir)/cf.data.pre >$@
1016 repl_modules.cc: repl_modules.sh Makefile
1017 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1019 include $(top_srcdir)/doc/manuals/Substitute.am
1021 squid.8: $(srcdir)/squid.8.in Makefile
1022 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1025 EXTRA_DIST += squid.8.in
1026 CLEANFILES += squid.8
1028 install-data-local: install-sysconfDATA install-dataDATA
1029 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1030 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1032 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1033 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1035 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1036 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1038 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1039 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1041 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1042 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1043 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1044 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1045 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1046 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1047 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1049 uninstall-local: squid.conf.default
1050 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1051 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1053 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1054 DiskIO/DiskIOModules_gen.cc \
1057 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1058 cp $(top_srcdir)/test-suite/test_tools.cc .
1060 # stock tools for unit tests - library independent versions of dlink_list
1062 # globals.cc is needed by test_tools.cc.
1063 # Neither of these should be disted from here.
1070 tests/testBoilerplate \
1071 tests/testCacheManager \
1074 tests/testEventLoop \
1075 tests/test_http_range \
1076 tests/testHttpParser \
1077 tests/testHttpReply \
1078 tests/testHttpRequest \
1083 tests/testSBufList \
1084 tests/testConfigParser \
1088 check_PROGRAMS += tests/testRock
1091 check_PROGRAMS += tests/testUfs
1094 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1095 TESTS += $(check_PROGRAMS)
1097 ### Template for new Unit Test Program
1098 ## - add tests/testX to check_PROGRAMS above.
1099 ## - copy template below and substitue X for class name
1100 ## - add other component .(h|cc) files needed to link and run tests
1102 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1104 #tests_testX_SOURCES=\
1107 # tests/testMain.cc \
1110 #nodist_tests_testX_SOURCES=\
1112 #tests_testX_LDFLAGS = $(LIBADD_DL)
1113 #tests_testX_LDADD=\
1114 # $(SQUID_CPPUNIT_LIBS) \
1115 # $(SQUID_CPPUNIT_LA) \
1117 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1120 # - add other component .(h|cc) files needed to link and run tests
1121 tests_testHttpReply_SOURCES=\
1125 tests/stub_ETag.cc \
1127 tests/stub_fatal.cc \
1130 HttpHeaderFieldStat.h \
1134 HttpHdrContRange.cc \
1135 HttpHdrContRange.h \
1139 HttpHdrScTarget.cc \
1144 HttpHeaderFieldInfo.h \
1146 HttpHeaderTools.cc \
1167 SBufDetailedStats.h \
1168 tests/stub_SBufDetailedStats.cc \
1173 tests/stub_access_log.cc \
1176 tests/stub_cache_cf.cc \
1177 tests/stub_cache_manager.cc \
1178 tests/stub_debug.cc \
1179 tests/stub_errorpage.cc \
1180 tests/stub_HelperChildConfig.cc \
1181 tests/stub_libformat.cc \
1182 tests/stub_libauth.cc \
1186 tests/stub_StatHist.cc \
1188 tests/stub_store.cc \
1189 tests/stub_store_stats.cc \
1191 tests/stub_tools.cc \
1192 tests/stub_HttpRequest.cc \
1193 tests/testHttpReply.cc \
1194 tests/testHttpReply.h \
1196 tests/stub_time.cc \
1200 nodist_tests_testHttpReply_SOURCES=\
1202 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1203 tests_testHttpReply_LDADD=\
1204 http/libsquid-http.la \
1212 $(top_builddir)/lib/libmisccontainers.la \
1213 $(top_builddir)/lib/libmiscencoding.la \
1214 $(top_builddir)/lib/libmiscutil.la \
1215 $(SQUID_CPPUNIT_LIBS) \
1216 $(SQUID_CPPUNIT_LA) \
1221 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1223 tests_testACLMaxUserIP_SOURCES= \
1226 tests/stub_CollapsedForwarding.cc \
1229 DiskIO/ReadRequest.cc \
1230 DiskIO/WriteRequest.cc \
1231 tests/stub_ETag.cc \
1234 tests/stub_fatal.cc \
1237 HelperChildConfig.h \
1238 HelperChildConfig.cc \
1242 HttpHeaderFieldInfo.h \
1244 HttpHeaderTools.cc \
1245 HttpHdrContRange.cc \
1247 HttpHeaderFieldStat.h \
1252 HttpHdrScTarget.cc \
1254 HttpRequestMethod.cc \
1272 tests/stub_StatHist.cc \
1275 SBufDetailedStats.h \
1276 tests/stub_SBufDetailedStats.cc \
1280 tests/stub_StoreMeta.cc \
1281 StoreMetaUnpacker.cc \
1282 StoreSwapLogData.cc \
1287 tests/stub_SwapDir.cc \
1291 tests/stub_access_log.cc \
1294 tests/stub_cache_cf.cc \
1295 tests/stub_client_side.cc \
1296 tests/stub_debug.cc \
1297 tests/stub_DelayId.cc \
1298 tests/stub_DiskIOModule.cc \
1299 tests/stub_errorpage.cc \
1302 tests/stub_HttpRequest.cc \
1303 tests/stub_HttpReply.cc \
1304 tests/stub_ipc_TypedMsgHdr.cc \
1305 tests/stub_libauth.cc \
1306 tests/stub_libcomm.cc \
1307 tests/stub_libformat.cc \
1308 tests/stub_libsslsquid.cc \
1309 tests/stub_MemObject.cc \
1310 tests/stub_MemStore.cc \
1312 tests/stub_mime.cc \
1313 tests/stub_pconn.cc \
1314 tests/stub_Port.cc \
1316 tests/stub_store.cc \
1317 tests/stub_store_client.cc \
1319 tests/stub_store_rebuild.cc \
1320 tests/stub_store_stats.cc \
1321 tests/stub_store_swapout.cc \
1323 tests/stub_tools.cc \
1324 tests/stub_cache_manager.cc \
1325 tests/stub_UdsOp.cc \
1326 tests/testACLMaxUserIP.cc \
1327 tests/testACLMaxUserIP.h \
1329 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 \
1359 $(SQUID_CPPUNIT_LIBS) \
1363 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1364 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1365 ## $(SQUID_CPPUNIT_LA)
1367 ## a demonstration test that does nothing but shows the salient points
1368 ## involved in writing tests.
1369 tests_testBoilerplate_SOURCES = \
1370 tests/testBoilerplate.cc \
1372 tests/testBoilerplate.h \
1374 nodist_tests_testBoilerplate_SOURCES = \
1376 tests_testBoilerplate_LDADD= \
1377 $(SQUID_CPPUNIT_LIBS) \
1381 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1382 tests_testBoilerplate_DEPENDENCIES = \
1385 ## Tests of the CacheManager module.
1386 tests_testCacheManager_SOURCES = \
1394 HttpRequestMethod.cc \
1398 tests/testCacheManager.cc \
1399 tests/testCacheManager.h \
1401 tests/stub_main_cc.cc \
1402 tests/stub_ipc_Forwarder.cc \
1403 tests/stub_store_stats.cc \
1404 tests/stub_EventLoop.cc \
1415 tests/stub_CacheDigest.cc \
1417 tests/stub_carp.cc \
1419 ChunkedCodingParser.cc \
1424 client_side_reply.cc \
1425 client_side_request.cc \
1428 tests/stub_CollapsedForwarding.cc \
1435 $(DELAY_POOL_SOURCE) \
1443 tests/stub_ETag.cc \
1446 ExternalACLEntry.cc \
1448 tests/stub_fatal.cc \
1464 HelperChildConfig.h \
1465 HelperChildConfig.cc \
1475 HttpHeaderFieldInfo.h \
1477 HttpHeaderTools.cc \
1478 HttpHeaderFieldStat.h \
1482 HttpHdrContRange.cc \
1485 HttpHdrScTarget.cc \
1517 peer_proxy_negotiate_auth.h \
1518 peer_proxy_negotiate_auth.cc \
1521 peer_sourcehash.cc \
1527 tests/stub_redirect.cc \
1533 SBufDetailedStats.h \
1534 tests/stub_SBufDetailedStats.cc \
1546 tests/stub_libauth_acls.cc \
1547 tests/stub_libauth.cc \
1548 tests/stub_StatHist.cc \
1554 tests/stub_store_digest.cc \
1567 StoreFileSystem.cc \
1569 tests/stub_StoreMeta.cc \
1570 StoreMetaUnpacker.cc \
1571 StoreSwapLogData.cc \
1575 tests/stub_tunnel.cc \
1576 tests/stub_SwapDir.cc \
1583 tests/stub_wccp2.cc \
1585 tests/stub_whois.cc \
1590 nodist_tests_testCacheManager_SOURCES = \
1592 $(DISKIO_GEN_SOURCE)
1593 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1594 tests_testCacheManager_LDADD = \
1595 http/libsquid-http.la \
1606 icmp/libicmp.la icmp/libicmp-core.la \
1608 format/libformat.la \
1612 $(ADAPTATION_LIBS) \
1619 $(top_builddir)/lib/libmisccontainers.la \
1620 $(top_builddir)/lib/libmiscencoding.la \
1621 $(top_builddir)/lib/libmiscutil.la \
1624 $(SQUID_CPPUNIT_LIBS) \
1625 $(SQUID_CPPUNIT_LA) \
1630 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1631 tests_testCacheManager_DEPENDENCIES = \
1635 tests_testDiskIO_SOURCES = \
1637 tests/stub_CacheDigest.cc \
1641 tests/stub_CollapsedForwarding.cc \
1644 $(DELAY_POOL_SOURCE) \
1648 tests/stub_ETag.cc \
1652 tests/stub_fatal.cc \
1661 HttpHeaderFieldStat.h \
1665 HttpHdrContRange.cc \
1667 HttpHdrScTarget.cc \
1669 HttpHeaderFieldInfo.h \
1671 HttpHeaderTools.cc \
1676 HttpRequestMethod.cc \
1700 tests/stub_StatHist.cc \
1703 SBufDetailedStats.h \
1704 tests/stub_SBufDetailedStats.cc \
1705 StoreFileSystem.cc \
1707 tests/stub_StoreMeta.cc \
1708 StoreMetaUnpacker.cc \
1709 StoreSwapLogData.cc \
1721 tests/stub_SwapDir.cc \
1724 tests/stub_access_log.cc \
1728 tests/stub_cache_cf.cc \
1729 tests/stub_cache_manager.cc \
1730 tests/stub_client_db.cc \
1731 client_side_request.h \
1732 tests/stub_client_side_request.cc \
1733 tests/stub_debug.cc \
1734 tests/stub_errorpage.cc \
1735 tests/stub_helper.cc \
1736 tests/stub_HelperChildConfig.cc \
1737 tests/stub_HttpRequest.cc \
1738 tests/stub_http.cc \
1741 tests/stub_internal.cc \
1743 tests/stub_ipcache.cc \
1744 tests/stub_libauth_acls.cc \
1745 tests/stub_libauth.cc \
1746 tests/stub_libeui.cc \
1747 tests/stub_libformat.cc \
1748 tests/stub_libicmp.cc \
1749 tests/stub_MemStore.cc \
1751 tests/stub_mime.cc \
1752 tests/stub_neighbors.cc \
1753 tests/stub_pconn.cc \
1754 tests/stub_Port.cc \
1755 tests/stub_stat.cc \
1756 tests/stub_store_client.cc \
1757 tests/stub_store_stats.cc \
1759 tests/stub_store_rebuild.cc \
1760 tests/stub_UdsOp.cc \
1761 tests/testDiskIO.cc \
1762 tests/testDiskIO.h \
1764 tests/testStoreSupport.cc \
1765 tests/testStoreSupport.h \
1766 tests/stub_time.cc \
1774 nodist_tests_testDiskIO_SOURCES= \
1776 $(DISKIO_GEN_SOURCE) \
1780 tests_testDiskIO_LDADD = \
1781 http/libsquid-http.la \
1784 DnsLookupDetails.o \
1802 $(top_builddir)/lib/libmisccontainers.la \
1803 $(top_builddir)/lib/libmiscencoding.la \
1804 $(top_builddir)/lib/libmiscutil.la \
1807 $(SQUID_CPPUNIT_LIBS) \
1812 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1813 tests_testDiskIO_DEPENDENCIES = \
1818 ## Tests of the Even module.
1819 tests_testEvent_SOURCES = \
1823 tests/stub_CacheDigest.cc \
1832 tests/stub_carp.cc \
1834 ChunkedCodingParser.cc \
1839 client_side_reply.cc \
1840 client_side_request.cc \
1843 tests/stub_CollapsedForwarding.cc \
1851 $(DELAY_POOL_SOURCE) \
1859 tests/stub_ETag.cc \
1864 ExternalACLEntry.cc \
1867 tests/stub_fatal.cc \
1882 HelperChildConfig.h \
1883 HelperChildConfig.cc \
1893 HttpHeaderFieldInfo.h \
1895 HttpHeaderTools.cc \
1896 HttpHeaderFieldStat.h \
1900 HttpHdrContRange.cc \
1903 HttpHdrScTarget.cc \
1913 HttpRequestMethod.cc \
1945 peer_proxy_negotiate_auth.h \
1946 peer_proxy_negotiate_auth.cc \
1949 peer_sourcehash.cc \
1953 tests/stub_redirect.cc \
1961 SBufDetailedStats.h \
1962 tests/stub_SBufDetailedStats.cc \
1978 tests/stub_store_digest.cc \
1991 StoreFileSystem.cc \
1993 tests/stub_StoreMeta.cc \
1994 StoreMetaUnpacker.cc \
1995 StoreSwapLogData.cc \
1997 tests/stub_SwapDir.cc \
1998 tests/CapturingStoreEntry.h \
1999 tests/testEvent.cc \
2002 tests/stub_main_cc.cc \
2003 tests/stub_ipc_Forwarder.cc \
2004 tests/stub_libauth_acls.cc \
2005 tests/stub_libauth.cc \
2006 tests/stub_libeui.cc \
2007 tests/stub_store_stats.cc \
2012 tests/stub_tunnel.cc \
2019 tests/stub_wccp2.cc \
2021 tests/stub_whois.cc \
2025 nodist_tests_testEvent_SOURCES = \
2027 $(DISKIO_GEN_SOURCE)
2028 tests_testEvent_LDADD = \
2029 http/libsquid-http.la \
2039 icmp/libicmp.la icmp/libicmp-core.la \
2042 format/libformat.la \
2044 $(ADAPTATION_LIBS) \
2047 $(top_builddir)/lib/libmisccontainers.la \
2048 $(top_builddir)/lib/libmiscencoding.la \
2049 $(top_builddir)/lib/libmiscutil.la \
2057 $(SQUID_CPPUNIT_LIBS) \
2058 $(SQUID_CPPUNIT_LA) \
2063 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2064 tests_testEvent_DEPENDENCIES = \
2068 ## Tests of the EventLoop module.
2069 tests_testEventLoop_SOURCES = \
2073 tests/stub_CacheDigest.cc \
2082 tests/stub_carp.cc \
2084 ChunkedCodingParser.cc \
2089 client_side_reply.cc \
2090 client_side_request.cc \
2093 tests/stub_CollapsedForwarding.cc \
2101 $(DELAY_POOL_SOURCE) \
2109 tests/stub_ETag.cc \
2114 ExternalACLEntry.cc \
2117 tests/stub_fatal.cc \
2132 HelperChildConfig.h \
2133 HelperChildConfig.cc \
2143 HttpHeaderFieldInfo.h \
2145 HttpHeaderTools.cc \
2146 HttpHeaderFieldStat.h \
2150 HttpHdrContRange.cc \
2153 HttpHdrScTarget.cc \
2163 HttpRequestMethod.cc \
2195 peer_proxy_negotiate_auth.h \
2196 peer_proxy_negotiate_auth.cc \
2199 peer_sourcehash.cc \
2204 tests/stub_redirect.cc \
2209 SBufDetailedStats.h \
2210 tests/stub_SBufDetailedStats.cc \
2227 tests/stub_store_digest.cc \
2240 StoreFileSystem.cc \
2242 tests/stub_StoreMeta.cc \
2243 StoreMetaUnpacker.cc \
2244 StoreSwapLogData.cc \
2248 tests/stub_SwapDir.cc \
2249 tests/testEventLoop.cc \
2250 tests/testEventLoop.h \
2252 tests/stub_main_cc.cc \
2253 tests/stub_ipc_Forwarder.cc \
2254 tests/stub_libauth_acls.cc \
2255 tests/stub_libauth.cc \
2256 tests/stub_libeui.cc \
2257 tests/stub_store_stats.cc \
2262 tests/stub_tunnel.cc \
2269 tests/stub_wccp2.cc \
2271 tests/stub_whois.cc \
2275 nodist_tests_testEventLoop_SOURCES = \
2277 $(DISKIO_GEN_SOURCE)
2278 tests_testEventLoop_LDADD = \
2279 http/libsquid-http.la \
2289 icmp/libicmp.la icmp/libicmp-core.la \
2292 format/libformat.la \
2294 $(ADAPTATION_LIBS) \
2297 $(top_builddir)/lib/libmisccontainers.la \
2298 $(top_builddir)/lib/libmiscencoding.la \
2299 $(top_builddir)/lib/libmiscutil.la \
2307 $(SQUID_CPPUNIT_LIBS) \
2308 $(SQUID_CPPUNIT_LA) \
2313 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2314 tests_testEventLoop_DEPENDENCIES = \
2318 tests_test_http_range_SOURCES = \
2329 tests/stub_CacheDigest.cc \
2331 tests/stub_carp.cc \
2333 ChunkedCodingParser.cc \
2338 client_side_reply.cc \
2339 client_side_request.cc \
2342 tests/stub_CollapsedForwarding.cc \
2350 $(DELAY_POOL_SOURCE) \
2358 tests/stub_ETag.cc \
2362 tests/stub_libauth.cc \
2363 tests/stub_fatal.cc \
2378 HelperChildConfig.h \
2379 HelperChildConfig.cc \
2387 HttpHeaderFieldStat.h \
2391 HttpHdrContRange.cc \
2394 HttpHdrScTarget.cc \
2397 HttpHeaderFieldInfo.h \
2399 HttpHeaderTools.cc \
2409 HttpRequestMethod.cc \
2440 peer_proxy_negotiate_auth.h \
2441 peer_proxy_negotiate_auth.cc \
2444 peer_sourcehash.cc \
2449 tests/stub_redirect.cc \
2455 SBufDetailedStats.h \
2456 tests/stub_SBufDetailedStats.cc \
2472 tests/stub_store_digest.cc \
2485 StoreFileSystem.cc \
2487 tests/stub_StoreMeta.cc \
2488 StoreMetaUnpacker.cc \
2489 StoreSwapLogData.cc \
2493 tests/stub_SwapDir.cc \
2495 tests/test_http_range.cc \
2496 tests/stub_external_acl.cc \
2497 tests/stub_ipc_Forwarder.cc \
2498 tests/stub_libeui.cc \
2499 tests/stub_main_cc.cc \
2500 tests/stub_MemStore.cc \
2501 tests/stub_store_stats.cc \
2502 tests/stub_EventLoop.cc \
2506 tests/stub_tunnel.cc \
2512 tests/stub_wccp2.cc \
2514 tests/stub_whois.cc \
2518 nodist_tests_test_http_range_SOURCES = \
2520 $(DISKIO_GEN_SOURCE)
2521 tests_test_http_range_LDADD = \
2522 http/libsquid-http.la \
2531 icmp/libicmp.la icmp/libicmp-core.la \
2534 format/libformat.la \
2538 $(ADAPTATION_LIBS) \
2545 $(top_builddir)/lib/libmisccontainers.la \
2546 $(top_builddir)/lib/libmiscencoding.la \
2547 $(top_builddir)/lib/libmiscutil.la \
2550 $(SQUID_CPPUNIT_LIBS) \
2551 $(SQUID_CPPUNIT_LA) \
2556 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2557 tests_test_http_range_DEPENDENCIES = \
2560 tests_testHttpParser_SOURCES = \
2566 tests/stub_MemObject.cc \
2573 tests/stub_SBufDetailedStats.cc \
2574 tests/stub_cache_cf.cc \
2575 tests/stub_cache_manager.cc \
2576 tests/stub_comm.cc \
2577 tests/stub_cbdata.cc \
2578 tests/stub_debug.cc \
2579 tests/stub_event.cc \
2580 tests/stub_HelperChildConfig.cc \
2581 tests/stub_stmem.cc \
2582 tests/stub_store.cc \
2583 tests/stub_store_stats.cc \
2585 tests/stub_tools.cc \
2586 tests/testHttpParser.cc \
2587 tests/testHttpParser.h \
2589 tests/stub_time.cc \
2592 nodist_tests_testHttpParser_SOURCES = \
2594 tests_testHttpParser_LDADD= \
2595 http/libsquid-http.la \
2599 $(top_builddir)/lib/libmiscutil.la \
2600 $(SQUID_CPPUNIT_LIBS) \
2603 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2604 tests_testHttpParser_DEPENDENCIES = \
2607 ## Tests of the HttpRequest module.
2608 tests_testHttpRequest_SOURCES = \
2615 HttpRequestMethod.cc \
2619 tests/testHttpRequest.h \
2620 tests/testHttpRequest.cc \
2621 tests/testHttpRequestMethod.h \
2622 tests/testHttpRequestMethod.cc \
2624 tests/stub_DiskIOModule.cc \
2625 tests/stub_libauth.cc \
2626 tests/stub_main_cc.cc \
2627 tests/stub_ipc_Forwarder.cc \
2628 tests/stub_libeui.cc \
2629 tests/stub_store_stats.cc \
2630 tests/stub_EventLoop.cc \
2642 tests/stub_CacheDigest.cc \
2644 tests/stub_carp.cc \
2646 ChunkedCodingParser.cc \
2651 client_side_reply.cc \
2652 client_side_request.cc \
2655 tests/stub_CollapsedForwarding.cc \
2662 $(DELAY_POOL_SOURCE) \
2669 tests/stub_ETag.cc \
2671 ExternalACLEntry.cc \
2673 tests/stub_fatal.cc \
2686 HelperChildConfig.h \
2687 HelperChildConfig.cc \
2697 HttpHeaderFieldInfo.h \
2699 HttpHeaderTools.cc \
2700 HttpHeaderFieldStat.h \
2704 HttpHdrContRange.cc \
2707 HttpHdrScTarget.cc \
2739 peer_proxy_negotiate_auth.h \
2740 peer_proxy_negotiate_auth.cc \
2743 peer_sourcehash.cc \
2749 tests/stub_libauth_acls.cc \
2750 tests/stub_redirect.cc \
2756 SBufDetailedStats.h \
2757 tests/stub_SBufDetailedStats.cc \
2773 tests/stub_store_digest.cc \
2786 StoreFileSystem.cc \
2788 tests/stub_StoreMeta.cc \
2789 StoreMetaUnpacker.cc \
2790 StoreSwapLogData.cc \
2797 tests/stub_tunnel.cc \
2798 tests/stub_SwapDir.cc \
2804 tests/stub_wccp2.cc \
2806 tests/stub_whois.cc \
2811 nodist_tests_testHttpRequest_SOURCES = \
2813 tests_testHttpRequest_LDADD = \
2827 icmp/libicmp.la icmp/libicmp-core.la \
2830 format/libformat.la \
2831 http/libsquid-http.la \
2833 $(ADAPTATION_LIBS) \
2835 $(top_builddir)/lib/libmisccontainers.la \
2836 $(top_builddir)/lib/libmiscencoding.la \
2837 $(top_builddir)/lib/libmiscutil.la \
2841 $(SQUID_CPPUNIT_LIBS) \
2842 $(SQUID_CPPUNIT_LA) \
2847 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2848 tests_testHttpRequest_DEPENDENCIES = \
2852 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2853 ## first line - what we are testing.
2854 tests_testStore_SOURCES= \
2856 tests/stub_CacheDigest.cc \
2859 tests/stub_CollapsedForwarding.cc \
2862 $(DELAY_POOL_SOURCE) \
2865 DiskIO/ReadRequest.cc \
2866 DiskIO/WriteRequest.cc \
2871 tests/stub_fatal.cc \
2874 HttpHeaderFieldStat.h \
2878 HttpHdrContRange.cc \
2881 HttpHdrScTarget.cc \
2882 HttpHeaderFieldInfo.h \
2884 HttpHeaderTools.cc \
2888 HttpRequestMethod.cc \
2920 tests/stub_StoreMeta.cc \
2921 StoreMetaUnpacker.cc \
2922 StoreSwapLogData.cc \
2926 SBufDetailedStats.h \
2927 tests/stub_SBufDetailedStats.cc \
2932 tests/CapturingStoreEntry.h \
2934 tests/stub_access_log.cc \
2938 tests/stub_cache_cf.cc \
2939 tests/stub_cache_manager.cc \
2940 tests/stub_client_side_request.cc \
2941 tests/stub_comm.cc \
2942 tests/stub_debug.cc \
2943 tests/stub_DiskIOModule.cc \
2944 tests/stub_errorpage.cc \
2948 tests/stub_helper.cc \
2949 tests/stub_HelperChildConfig.cc \
2950 tests/stub_http.cc \
2951 tests/stub_libauth.cc \
2952 tests/stub_libeui.cc \
2953 tests/stub_libformat.cc \
2956 tests/stub_HttpReply.cc \
2957 tests/stub_HttpRequest.cc \
2958 tests/stub_libcomm.cc \
2959 tests/stub_MemStore.cc \
2961 tests/stub_mime.cc \
2962 tests/stub_Port.cc \
2963 tests/stub_stat.cc \
2964 tests/stub_store_client.cc \
2965 tests/stub_store_stats.cc \
2967 tests/stub_store_rebuild.cc \
2968 tests/stub_store_swapout.cc \
2971 tests/stub_tools.cc \
2972 tests/stub_UdsOp.cc \
2974 tests/testStore.cc \
2976 tests/testStoreEntryStream.cc \
2977 tests/testStoreEntryStream.h \
2978 tests/testStoreController.cc \
2979 tests/testStoreController.h \
2980 tests/testStoreHashIndex.cc \
2981 tests/testStoreHashIndex.h \
2982 tests/testStoreSupport.cc \
2983 tests/testStoreSupport.h \
2984 tests/TestSwapDir.cc \
2985 tests/TestSwapDir.h \
2986 tests/stub_time.cc \
2991 nodist_tests_testStore_SOURCES= \
2997 tests_testStore_LDADD= \
2998 http/libsquid-http.la \
3011 $(top_builddir)/lib/libmisccontainers.la \
3012 $(top_builddir)/lib/libmiscencoding.la \
3013 $(top_builddir)/lib/libmiscutil.la \
3016 $(SQUID_CPPUNIT_LIBS) \
3019 DnsLookupDetails.o \
3022 tests_testStore_LDFLAGS = $(LIBADD_DL)
3023 tests_testStore_DEPENDENCIES = \
3026 ## string needs mem.cc.
3027 ## mem.cc needs ClientInfo.h
3028 ## libsquid pulls in SquidConfig and children. stub them.
3029 tests_testString_SOURCES = \
3036 SBufDetailedStats.h \
3037 tests/stub_SBufDetailedStats.cc \
3039 tests/testString.cc \
3040 tests/testString.h \
3043 tests/stub_cache_cf.cc \
3044 tests/stub_cache_manager.cc \
3045 tests/stub_debug.cc \
3046 tests/stub_HelperChildConfig.cc \
3048 tests/stub_tools.cc \
3049 tests/stub_time.cc \
3052 nodist_tests_testString_SOURCES = \
3054 tests_testString_LDADD = \
3058 $(top_builddir)/lib/libmiscutil.la \
3060 $(SQUID_CPPUNIT_LIBS) \
3064 tests_testString_LDFLAGS = $(LIBADD_DL)
3065 tests_testString_DEPENDENCIES = \
3084 tests_testUfs_SOURCES = \
3088 tests/stub_cache_manager.cc \
3089 tests/stub_client_db.cc \
3090 tests/stub_CollapsedForwarding.cc \
3091 tests/stub_HelperChildConfig.cc \
3094 tests/stub_ipcache.cc \
3095 tests/stub_libeui.cc \
3096 tests/stub_libicmp.cc \
3097 tests/stub_MemStore.cc \
3098 tests/stub_neighbors.cc \
3099 tests/stub_pconn.cc \
3100 tests/stub_Port.cc \
3101 tests/stub_UdsOp.cc \
3103 tests/stub_internal.cc \
3104 tests/stub_libformat.cc \
3105 tests/stub_stat.cc \
3107 tests/stub_store_rebuild.cc \
3108 tests/stub_store_stats.cc \
3110 tests/stub_fatal.cc \
3135 StoreSwapLogData.cc \
3137 StoreMetaUnpacker.cc \
3138 $(STOREMETA_SOURCE) \
3139 StoreFileSystem.cc \
3146 $(DELAY_POOL_SOURCE) \
3148 tests/stub_CacheDigest.cc \
3156 HttpRequestMethod.cc \
3165 tests/stub_cache_cf.cc \
3166 tests/stub_helper.cc \
3169 SBufDetailedStats.h \
3170 tests/stub_SBufDetailedStats.cc \
3172 tests/stub_debug.cc \
3173 tests/stub_client_side_request.cc \
3174 tests/stub_http.cc \
3175 tests/stub_libauth.cc \
3179 tests/stub_mime.cc \
3180 HttpHeaderFieldInfo.h \
3182 HttpHeaderTools.cc \
3189 HttpHdrContRange.cc \
3191 HttpHeaderFieldStat.h \
3196 HttpHdrScTarget.cc \
3206 tests/stub_errorpage.cc \
3207 tests/stub_HttpRequest.cc \
3209 tests/stub_access_log.cc \
3212 tests/stub_store_client.cc \
3214 tests/stub_tools.cc \
3215 tests/testStoreSupport.cc \
3216 tests/testStoreSupport.h \
3222 nodist_tests_testUfs_SOURCES = \
3224 $(DISKIO_GEN_SOURCE) \
3228 tests_testUfs_LDADD = \
3229 http/libsquid-http.la \
3231 DnsLookupDetails.o \
3251 $(top_builddir)/lib/libmisccontainers.la \
3252 $(top_builddir)/lib/libmiscencoding.la \
3253 $(top_builddir)/lib/libmiscutil.la \
3256 $(SQUID_CPPUNIT_LIBS) \
3260 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3261 tests_testUfs_DEPENDENCIES = \
3264 check_PROGRAMS += testRefCount
3265 testRefCount_SOURCES= \
3268 tests/stub_cbdata.cc \
3269 tests/stub_debug.cc \
3270 tests/stub_MemBuf.cc \
3271 tests/testRefCount.cc
3272 testRefCount_LDADD = \
3274 $(top_builddir)/lib/libmiscutil.la \
3278 tests_testRock_SOURCES = \
3281 CollapsedForwarding.h \
3282 CollapsedForwarding.cc \
3283 tests/stub_CacheDigest.cc \
3299 HttpHeaderFieldStat.h \
3303 HttpHdrContRange.cc \
3306 HttpHdrScTarget.cc \
3309 HttpHeaderFieldInfo.h \
3311 HttpHeaderTools.cc \
3314 HttpRequestMethod.cc \
3336 tests/stub_StatHist.cc \
3339 tests/stub_stat.cc \
3341 StoreFileSystem.cc \
3343 StoreMetaUnpacker.cc \
3344 $(STOREMETA_SOURCE) \
3345 StoreSwapLogData.cc \
3353 SBufDetailedStats.h \
3354 tests/stub_SBufDetailedStats.cc \
3364 tests/testStoreSupport.cc \
3365 tests/testStoreSupport.h \
3367 tests/stub_access_log.cc \
3370 tests/stub_cache_cf.cc \
3372 tests/stub_cache_manager.cc \
3373 tests/stub_client_db.cc \
3374 tests/stub_client_side_request.cc \
3375 tests/stub_debug.cc \
3376 tests/stub_errorpage.cc \
3377 tests/stub_HelperChildConfig.cc \
3378 tests/stub_http.cc \
3379 tests/stub_HttpRequest.cc \
3380 tests/stub_libauth.cc \
3383 tests/stub_ipcache.cc \
3384 tests/stub_libeui.cc \
3385 tests/stub_libformat.cc \
3386 tests/stub_libicmp.cc \
3387 tests/stub_libmgr.cc \
3388 tests/stub_MemStore.cc \
3390 tests/stub_mime.cc \
3391 tests/stub_neighbors.cc \
3392 tests/stub_Port.cc \
3393 tests/stub_pconn.cc \
3394 tests/stub_store_client.cc \
3396 tests/stub_store_rebuild.cc \
3397 tests/stub_store_stats.cc \
3399 tests/stub_tools.cc \
3404 $(DELAY_POOL_SOURCE) \
3407 nodist_tests_testRock_SOURCES = \
3408 $(DISKIO_GEN_SOURCE) \
3413 tests_testRock_LDADD = \
3414 http/libsquid-http.la \
3431 $(top_builddir)/lib/libmisccontainers.la \
3432 $(top_builddir)/lib/libmiscencoding.la \
3433 $(top_builddir)/lib/libmiscutil.la \
3436 $(SQUID_CPPUNIT_LIBS) \
3440 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3441 tests_testRock_DEPENDENCIES = \
3444 ## Tests of the URL module.
3445 ## TODO: Trim this down once the insanity is over.
3446 tests_testURL_SOURCES = \
3455 tests/stub_cache_manager.cc \
3457 tests/stub_CacheDigest.cc \
3459 tests/stub_carp.cc \
3461 ChunkedCodingParser.cc \
3466 client_side_reply.cc \
3467 client_side_request.cc \
3470 tests/stub_CollapsedForwarding.cc \
3477 $(DELAY_POOL_SOURCE) \
3480 DiskIO/ReadRequest.cc \
3481 DiskIO/WriteRequest.cc \
3489 ExternalACLEntry.cc \
3491 tests/stub_fatal.cc \
3506 HelperChildConfig.h \
3507 HelperChildConfig.cc \
3515 HttpHeaderFieldStat.h \
3519 HttpHdrContRange.cc \
3522 HttpHdrScTarget.cc \
3525 HttpHeaderFieldInfo.h \
3527 HttpHeaderTools.cc \
3537 HttpRequestMethod.cc \
3569 peer_proxy_negotiate_auth.h \
3570 peer_proxy_negotiate_auth.cc \
3573 peer_sourcehash.cc \
3577 tests/stub_redirect.cc \
3583 SBufDetailedStats.h \
3584 tests/stub_SBufDetailedStats.cc \
3594 tests/stub_StatHist.cc \
3600 tests/stub_store_digest.cc \
3613 StoreFileSystem.cc \
3615 tests/stub_StoreMeta.cc \
3616 StoreMetaUnpacker.cc \
3617 StoreSwapLogData.cc \
3622 tests/stub_SwapDir.cc \
3624 tests/stub_debug.cc \
3625 tests/stub_DiskIOModule.cc \
3626 tests/stub_libauth_acls.cc \
3627 tests/stub_libauth.cc \
3628 tests/stub_main_cc.cc \
3629 tests/stub_ipc_Forwarder.cc \
3630 tests/stub_store_stats.cc \
3633 tests/testUriScheme.cc \
3634 tests/testUriScheme.h \
3636 tests/stub_time.cc \
3637 tests/stub_EventLoop.cc \
3640 tests/stub_tunnel.cc \
3645 tests/stub_wccp2.cc \
3647 tests/stub_whois.cc \
3652 nodist_tests_testURL_SOURCES = \
3654 tests_testURL_LDADD = \
3655 http/libsquid-http.la \
3670 icmp/libicmp.la icmp/libicmp-core.la \
3674 format/libformat.la \
3677 $(ADAPTATION_LIBS) \
3679 $(top_builddir)/lib/libmisccontainers.la \
3680 $(top_builddir)/lib/libmiscencoding.la \
3681 $(top_builddir)/lib/libmiscutil.la \
3684 $(SQUID_CPPUNIT_LIBS) \
3685 $(SQUID_CPPUNIT_LA) \
3690 tests_testURL_LDFLAGS = $(LIBADD_DL)
3691 tests_testURL_DEPENDENCIES = \
3695 tests_testSBuf_SOURCES= \
3699 tests/SBufFindTest.h \
3700 tests/SBufFindTest.cc \
3702 SBufDetailedStats.h \
3703 tests/stub_SBufDetailedStats.cc \
3705 tests/stub_time.cc \
3707 tests/stub_debug.cc \
3708 tests/stub_fatal.cc \
3709 tests/stub_HelperChildConfig.cc \
3710 tests/stub_cache_cf.cc \
3711 tests/stub_cache_manager.cc \
3712 tests/stub_store.cc \
3713 tests/stub_store_stats.cc \
3714 tests/stub_tools.cc \
3717 tests/stub_wordlist.cc \
3718 tests/stub_MemBuf.cc
3719 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3720 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3721 tests_testSBuf_LDADD=\
3726 $(top_builddir)/lib/libmiscutil.la \
3728 $(SQUID_CPPUNIT_LIBS) \
3731 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3733 tests_testSBufList_SOURCES= \
3734 tests/testSBufList.h \
3735 tests/testSBufList.cc \
3741 SBufDetailedStats.h \
3742 tests/stub_SBufDetailedStats.cc \
3744 tests/stub_time.cc \
3746 tests/stub_MemObject.cc \
3747 tests/stub_cbdata.cc \
3748 tests/stub_comm.cc \
3749 tests/stub_debug.cc \
3750 tests/stub_event.cc \
3751 tests/stub_fatal.cc \
3753 tests/stub_HelperChildConfig.cc \
3754 tests/stub_cache_cf.cc \
3755 tests/stub_cache_manager.cc \
3756 tests/stub_store.cc \
3757 tests/stub_stmem.cc \
3758 tests/stub_store_stats.cc \
3759 tests/stub_tools.cc \
3763 tests/stub_wordlist.cc \
3764 tests/stub_MemBuf.cc
3765 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3766 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3767 tests_testSBufList_LDADD=\
3772 $(top_builddir)/lib/libmiscutil.la \
3773 $(SQUID_CPPUNIT_LIBS) \
3776 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3778 tests_testConfigParser_SOURCES = \
3782 tests/stub_MemBuf.cc \
3783 tests/stub_time.cc \
3785 SBufDetailedStats.h \
3786 tests/stub_SBufDetailedStats.cc \
3790 tests/stub_fatal.cc \
3792 tests/testConfigParser.cc \
3793 tests/testConfigParser.h \
3796 tests/stub_cache_cf.cc \
3797 tests/stub_cache_manager.cc \
3798 tests/stub_debug.cc \
3799 tests/stub_HelperChildConfig.cc \
3801 tests/stub_tools.cc \
3804 nodist_tests_testConfigParser_SOURCES = \
3806 tests_testConfigParser_LDADD = \
3810 $(top_builddir)/lib/libmiscutil.la \
3812 $(SQUID_CPPUNIT_LIBS) \
3816 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3817 tests_testConfigParser_DEPENDENCIES = \
3820 tests_testStatHist_SOURCES = \
3821 tests/stub_cbdata.cc \
3823 tests/stub_fatal.cc \
3824 tests/stub_MemBuf.cc \
3826 SBufDetailedStats.h \
3827 tests/stub_SBufDetailedStats.cc \
3831 tests/stub_cache_manager.cc \
3832 tests/stub_comm.cc \
3833 tests/stub_debug.cc \
3834 tests/stub_DelayId.cc \
3835 tests/stub_HelperChildConfig.cc \
3838 tests/stub_MemObject.cc \
3840 tests/stub_mime.cc \
3841 tests/stub_pconn.cc \
3842 tests/stub_stmem.cc \
3844 tests/stub_store.cc \
3845 tests/stub_store_stats.cc \
3848 tests/stub_tools.cc \
3850 tests/testStatHist.cc \
3851 tests/testStatHist.h
3852 nodist_tests_testStatHist_SOURCES = \
3854 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3855 tests_testStatHist_LDADD = \
3857 $(top_builddir)/lib/libmiscutil.la \
3858 $(top_builddir)/lib/libmisccontainers.la \
3859 $(SQUID_CPPUNIT_LIBS) \
3860 $(SQUID_CPPUNIT_LA) \
3862 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3864 TESTS += testHeaders
3866 ## Special Universal .h dependency test script
3867 ## aborts if error encountered
3868 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3869 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3870 ## src/repl/ has no .h files and its own makefile.
3872 CLEANFILES += testHeaders