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 AM_CPPFLAGS += -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 = \
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 \
488 SBufDetailedStats.h \
489 SBufDetailedStats.cc \
533 StoreMetaUnpacker.cc \
534 StoreMetaUnpacker.h \
535 $(STOREMETA_SOURCE) \
539 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 \
611 CLEANFILES += $(BUILT_SOURCES)
613 nodist_squid_SOURCES = \
614 $(DISKIO_GEN_SOURCE) \
635 http/libsquid-http.la \
636 icmp/libicmp.la icmp/libicmp-core.la \
638 format/libformat.la \
649 parser/libsquid-parser.la \
650 $(top_builddir)/lib/libmisccontainers.la \
651 $(top_builddir)/lib/libmiscencoding.la \
652 $(top_builddir)/lib/libmiscutil.la \
659 squid_DEPENDENCIES = \
677 format/libformat.la \
681 if ENABLE_LOADABLE_MODULES
682 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
683 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
684 squid_LDFLAGS = -export-dynamic -dlopen force
685 ## when static module linking is supported and enabled:
686 ## squid_LDFLAGS = -all-static -dlopen self
688 ## LTDL headers require their local include path...
689 AM_CPPFLAGS += $(INCLTDL)
692 ## Kerberos libraries require their include path...
693 AM_CPPFLAGS += $(KRB5INCS)
696 unlinkd_SOURCES = unlinkd_daemon.cc
701 recv_announce_SOURCES = recv-announce.cc
703 ## What requires what..
704 ## many things want ACLChecklist.cc
705 ## ACLChecklist.cc wants AuthUserRequest.cc
706 ## ACLChecklist.cc wants AuthScheme.cc
707 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
708 ## ACLProxyAuth.cc wants ACLUserData
709 ## ACLProxyAuth.cc wants ACLRegexData
710 ## cache_cf.cc wants $(AUTH_LIBS)
711 ## cache_cf.cc wants Swapdir
712 ## cache_cf.cc wants AnyP::PortCfg
713 ## client_side wants client_db
714 ## client_db wants SNMP_SOURCE
715 ## snmp_core wants ACLStringData
716 ## SwapDir wants ConfigOption
717 ## tools.cc wants ip/libip.la
718 ## client_side.cc wants ip/libip.la
719 ## mem.cc wants ClientInfo.h
720 ## libbase.la wants cbdata.*
721 ## libbase.la wants MemBuf.*
737 tests/stub_StoreMeta.cc \
738 StoreMetaUnpacker.cc \
745 HelperChildConfig.h \
746 tests/stub_HelperChildConfig.cc \
747 HttpRequestMethod.cc \
774 ufsdump_DEPENDENCIES = \
790 nodist_ufsdump_SOURCES = \
795 squid.conf.documented \
820 include $(srcdir)/tests/Stub.list
829 mk-string-arrays.pl \
830 mk-string-arrays.awk \
837 $(AIO_WIN32_SOURCES) \
838 DiskIO/AIO/async_io.h \
839 DiskIO/AIO/AIODiskFile.cc \
840 DiskIO/AIO/AIODiskFile.h \
841 DiskIO/AIO/AIODiskIOStrategy.cc \
842 DiskIO/AIO/AIODiskIOStrategy.h \
843 DiskIO/AIO/AIODiskIOModule.cc \
844 DiskIO/AIO/AIODiskIOModule.h
846 libBlocking_a_SOURCES = \
847 DiskIO/Blocking/BlockingFile.cc \
848 DiskIO/Blocking/BlockingFile.h \
849 DiskIO/Blocking/BlockingIOStrategy.cc \
850 DiskIO/Blocking/BlockingIOStrategy.h \
851 DiskIO/Blocking/BlockingDiskIOModule.cc \
852 DiskIO/Blocking/BlockingDiskIOModule.h
854 libMmapped_a_SOURCES = \
855 DiskIO/Mmapped/MmappedFile.cc \
856 DiskIO/Mmapped/MmappedFile.h \
857 DiskIO/Mmapped/MmappedIOStrategy.cc \
858 DiskIO/Mmapped/MmappedIOStrategy.h \
859 DiskIO/Mmapped/MmappedDiskIOModule.cc \
860 DiskIO/Mmapped/MmappedDiskIOModule.h
862 libIpcIo_a_SOURCES = \
863 DiskIO/IpcIo/IpcIoFile.cc \
864 DiskIO/IpcIo/IpcIoFile.h \
865 DiskIO/IpcIo/IpcIoIOStrategy.cc \
866 DiskIO/IpcIo/IpcIoIOStrategy.h \
867 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
868 DiskIO/IpcIo/IpcIoDiskIOModule.h
870 libDiskDaemon_a_SOURCES = \
871 DiskIO/DiskDaemon/DiskdFile.cc \
872 DiskIO/DiskDaemon/DiskdFile.h \
873 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
874 DiskIO/DiskDaemon/DiskdIOStrategy.h \
875 DiskIO/DiskDaemon/diomsg.h \
876 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
877 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
878 DiskIO/DiskDaemon/DiskdAction.cc \
879 DiskIO/DiskDaemon/DiskdAction.h
881 libDiskThreads_a_SOURCES = \
883 DiskIO/DiskThreads/async_io.cc \
884 DiskIO/DiskThreads/DiskThreads.h \
885 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
886 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
887 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
888 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
889 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
890 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
892 EXTRA_libDiskThreads_a_SOURCES = \
893 DiskIO/DiskThreads/aiops.cc \
894 DiskIO/DiskThreads/aiops_win32.cc \
895 DiskIO/DiskThreads/CommIO.cc \
896 DiskIO/DiskThreads/CommIO.h
898 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
899 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
900 DiskIO_DiskDaemon_diskd_LDADD = \
901 $(top_builddir)/lib/libmisccontainers.la \
902 $(top_builddir)/lib/libmiscencoding.la \
903 $(top_builddir)/lib/libmiscutil.la \
908 DEFAULT_HTTP_PORT = 3128
909 DEFAULT_ICP_PORT = 3130
910 DEFAULT_PREFIX = $(prefix)
911 DEFAULT_CONFIG_DIR = $(sysconfdir)
912 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
913 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
914 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
915 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
916 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
917 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
918 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
919 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
920 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
921 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
922 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
923 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
924 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
925 DEFAULT_ICON_DIR = $(datadir)/icons
926 DEFAULT_ERROR_DIR = $(datadir)/errors
928 # Make location configure settings available to the code
929 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
931 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
933 globals.cc: globals.h mk-globals-c.awk
934 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
936 ## Generate files containing string arrays for various enums....
937 hier_code.cc: hier_code.h mk-string-arrays.awk
938 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
940 err_type.cc: err_type.h mk-string-arrays.awk
941 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
943 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
944 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
946 LogTags.cc: LogTags.h mk-string-arrays.awk
947 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
949 lookup_t.cc: lookup_t.h mk-string-arrays.awk
950 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
952 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
953 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
955 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
956 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
959 ## other generated files...
961 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
962 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
964 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
965 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
967 ## If autodependency works well this is not needed anymore
968 cache_cf.o: cf_parser.cci
970 # cf_gen builds the configuration files.
971 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
972 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
974 # squid.conf.default is built by cf_gen when making cf_parser.cci
975 squid.conf.default squid.conf.documented: cf_parser.cci
978 cf_parser.cci: cf.data cf_gen$(EXEEXT)
979 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
981 # The cf_gen_defines.cci is auto-generated and does not exist when the
982 # dependencies computed. We need to add its include files (autoconf.h) here
983 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
984 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
987 ## FIXME: generate a sed command file from configure. Then this doesn't
988 ## depend on the Makefile.
989 cf.data: cf.data.pre Makefile
991 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
992 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
993 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
994 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
995 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
996 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
997 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
998 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
999 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
1000 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
1001 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1002 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1003 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1004 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1005 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1006 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1007 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1008 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1009 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1010 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1011 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1012 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1013 < $(srcdir)/cf.data.pre >$@
1015 repl_modules.cc: repl_modules.sh Makefile
1016 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1018 include $(top_srcdir)/doc/manuals/Substitute.am
1020 squid.8: $(srcdir)/squid.8.in Makefile
1021 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1024 EXTRA_DIST += squid.8.in
1025 CLEANFILES += squid.8
1027 install-data-local: install-sysconfDATA install-dataDATA
1028 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1029 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1031 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1032 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1034 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1035 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1037 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1038 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1040 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1041 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1042 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1043 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1044 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1045 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1046 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1048 uninstall-local: squid.conf.default
1049 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1050 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1052 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1053 DiskIO/DiskIOModules_gen.cc \
1056 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1057 cp $(top_srcdir)/test-suite/test_tools.cc .
1059 # stock tools for unit tests - library independent versions of dlink_list
1061 # globals.cc is needed by test_tools.cc.
1062 # Neither of these should be disted from here.
1069 tests/testBoilerplate \
1070 tests/testCacheManager \
1073 tests/testEventLoop \
1074 tests/test_http_range \
1075 tests/testHttpParser \
1076 tests/testHttpReply \
1077 tests/testHttpRequest \
1082 tests/testSBufList \
1083 tests/testConfigParser \
1087 check_PROGRAMS += tests/testRock
1090 check_PROGRAMS += tests/testUfs
1093 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1094 TESTS += $(check_PROGRAMS)
1096 ### Template for new Unit Test Program
1097 ## - add tests/testX to check_PROGRAMS above.
1098 ## - copy template below and substitue X for class name
1099 ## - add other component .(h|cc) files needed to link and run tests
1101 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1103 #tests_testX_SOURCES=\
1106 # tests/testMain.cc \
1109 #nodist_tests_testX_SOURCES=\
1111 #tests_testX_LDFLAGS = $(LIBADD_DL)
1112 #tests_testX_LDADD=\
1113 # $(SQUID_CPPUNIT_LIBS) \
1114 # $(SQUID_CPPUNIT_LA) \
1116 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1119 # - add other component .(h|cc) files needed to link and run tests
1120 tests_testHttpReply_SOURCES=\
1124 tests/stub_ETag.cc \
1126 tests/stub_fatal.cc \
1129 HttpHeaderFieldStat.h \
1133 HttpHdrContRange.cc \
1134 HttpHdrContRange.h \
1138 HttpHdrScTarget.cc \
1143 HttpHeaderFieldInfo.h \
1145 HttpHeaderTools.cc \
1168 SBufDetailedStats.h \
1169 tests/stub_SBufDetailedStats.cc \
1174 tests/stub_access_log.cc \
1177 tests/stub_cache_cf.cc \
1178 tests/stub_cache_manager.cc \
1179 tests/stub_comm.cc \
1180 tests/stub_debug.cc \
1181 tests/stub_errorpage.cc \
1182 tests/stub_event.cc \
1184 tests/stub_HelperChildConfig.cc \
1185 tests/stub_libformat.cc \
1186 tests/stub_libauth.cc \
1187 tests/stub_libcomm.cc \
1188 tests/stub_libmgr.cc \
1189 tests/stub_libsslsquid.cc \
1193 tests/stub_StatHist.cc \
1195 tests/stub_store.cc \
1196 tests/stub_store_stats.cc \
1198 tests/stub_tools.cc \
1199 tests/stub_HttpRequest.cc \
1200 tests/testHttpReply.cc \
1201 tests/testHttpReply.h \
1203 tests/stub_time.cc \
1207 nodist_tests_testHttpReply_SOURCES=\
1209 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1210 tests_testHttpReply_LDADD=\
1212 http/libsquid-http.la \
1220 $(top_builddir)/lib/libmisccontainers.la \
1221 $(top_builddir)/lib/libmiscencoding.la \
1222 $(top_builddir)/lib/libmiscutil.la \
1223 $(SQUID_CPPUNIT_LIBS) \
1224 $(SQUID_CPPUNIT_LA) \
1229 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1231 tests_testACLMaxUserIP_SOURCES= \
1234 tests/stub_CollapsedForwarding.cc \
1237 DiskIO/ReadRequest.cc \
1238 DiskIO/WriteRequest.cc \
1239 tests/stub_ETag.cc \
1242 tests/stub_fatal.cc \
1245 HelperChildConfig.h \
1246 HelperChildConfig.cc \
1250 HttpHeaderFieldInfo.h \
1252 HttpHeaderTools.cc \
1253 HttpHdrContRange.cc \
1255 HttpHeaderFieldStat.h \
1260 HttpHdrScTarget.cc \
1262 HttpRequestMethod.cc \
1280 tests/stub_StatHist.cc \
1283 SBufDetailedStats.h \
1284 tests/stub_SBufDetailedStats.cc \
1288 tests/stub_StoreMeta.cc \
1289 StoreMetaUnpacker.cc \
1290 StoreSwapLogData.cc \
1295 tests/stub_SwapDir.cc \
1299 tests/stub_access_log.cc \
1302 tests/stub_cache_cf.cc \
1303 tests/stub_client_side.cc \
1304 tests/stub_debug.cc \
1305 tests/stub_DelayId.cc \
1306 tests/stub_DiskIOModule.cc \
1307 tests/stub_errorpage.cc \
1310 tests/stub_HttpRequest.cc \
1311 tests/stub_HttpReply.cc \
1312 tests/stub_ipc_TypedMsgHdr.cc \
1313 tests/stub_libauth.cc \
1314 tests/stub_libcomm.cc \
1315 tests/stub_libformat.cc \
1316 tests/stub_libsslsquid.cc \
1317 tests/stub_MemObject.cc \
1318 tests/stub_MemStore.cc \
1320 tests/stub_mime.cc \
1321 tests/stub_pconn.cc \
1322 tests/stub_Port.cc \
1324 tests/stub_store.cc \
1325 tests/stub_store_client.cc \
1327 tests/stub_store_rebuild.cc \
1328 tests/stub_store_stats.cc \
1329 tests/stub_store_swapout.cc \
1331 tests/stub_tools.cc \
1332 tests/stub_cache_manager.cc \
1333 tests/stub_UdsOp.cc \
1334 tests/testACLMaxUserIP.cc \
1335 tests/testACLMaxUserIP.h \
1337 tests/stub_time.cc \
1345 nodist_tests_testACLMaxUserIP_SOURCES= \
1347 tests_testACLMaxUserIP_LDADD= \
1348 http/libsquid-http.la \
1361 $(top_builddir)/lib/libmisccontainers.la \
1362 $(top_builddir)/lib/libmiscencoding.la \
1363 $(top_builddir)/lib/libmiscutil.la \
1367 $(SQUID_CPPUNIT_LIBS) \
1371 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1372 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1373 ## $(SQUID_CPPUNIT_LA)
1375 ## a demonstration test that does nothing but shows the salient points
1376 ## involved in writing tests.
1377 tests_testBoilerplate_SOURCES = \
1378 tests/testBoilerplate.cc \
1380 tests/testBoilerplate.h \
1381 tests/stub_debug.cc \
1383 nodist_tests_testBoilerplate_SOURCES = \
1385 tests_testBoilerplate_LDADD= \
1386 $(SQUID_CPPUNIT_LIBS) \
1391 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1392 tests_testBoilerplate_DEPENDENCIES = \
1395 ## Tests of the CacheManager module.
1396 tests_testCacheManager_SOURCES = \
1404 HttpRequestMethod.cc \
1408 tests/testCacheManager.cc \
1409 tests/testCacheManager.h \
1411 tests/stub_main_cc.cc \
1412 tests/stub_ipc_Forwarder.cc \
1413 tests/stub_store_stats.cc \
1414 tests/stub_EventLoop.cc \
1425 tests/stub_CacheDigest.cc \
1427 tests/stub_carp.cc \
1429 ChunkedCodingParser.cc \
1434 client_side_reply.cc \
1435 client_side_request.cc \
1438 tests/stub_CollapsedForwarding.cc \
1445 $(DELAY_POOL_SOURCE) \
1453 tests/stub_ETag.cc \
1456 ExternalACLEntry.cc \
1458 tests/stub_fatal.cc \
1474 HelperChildConfig.h \
1475 HelperChildConfig.cc \
1485 HttpHeaderFieldInfo.h \
1487 HttpHeaderTools.cc \
1488 HttpHeaderFieldStat.h \
1492 HttpHdrContRange.cc \
1495 HttpHdrScTarget.cc \
1527 peer_proxy_negotiate_auth.h \
1528 peer_proxy_negotiate_auth.cc \
1531 peer_sourcehash.cc \
1537 tests/stub_redirect.cc \
1543 SBufDetailedStats.h \
1544 tests/stub_SBufDetailedStats.cc \
1556 tests/stub_libauth_acls.cc \
1557 tests/stub_libauth.cc \
1558 tests/stub_StatHist.cc \
1564 tests/stub_store_digest.cc \
1577 StoreFileSystem.cc \
1579 tests/stub_StoreMeta.cc \
1580 StoreMetaUnpacker.cc \
1581 StoreSwapLogData.cc \
1585 tests/stub_tunnel.cc \
1586 tests/stub_SwapDir.cc \
1593 tests/stub_wccp2.cc \
1595 tests/stub_whois.cc \
1600 nodist_tests_testCacheManager_SOURCES = \
1602 $(DISKIO_GEN_SOURCE)
1603 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1604 tests_testCacheManager_LDADD = \
1605 http/libsquid-http.la \
1616 icmp/libicmp.la icmp/libicmp-core.la \
1618 format/libformat.la \
1622 $(ADAPTATION_LIBS) \
1629 $(top_builddir)/lib/libmisccontainers.la \
1630 $(top_builddir)/lib/libmiscencoding.la \
1631 $(top_builddir)/lib/libmiscutil.la \
1634 $(SQUID_CPPUNIT_LIBS) \
1635 $(SQUID_CPPUNIT_LA) \
1640 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1641 tests_testCacheManager_DEPENDENCIES = \
1645 tests_testDiskIO_SOURCES = \
1647 tests/stub_CacheDigest.cc \
1651 tests/stub_CollapsedForwarding.cc \
1654 $(DELAY_POOL_SOURCE) \
1658 tests/stub_ETag.cc \
1662 tests/stub_fatal.cc \
1671 HttpHeaderFieldStat.h \
1675 HttpHdrContRange.cc \
1677 HttpHdrScTarget.cc \
1679 HttpHeaderFieldInfo.h \
1681 HttpHeaderTools.cc \
1686 HttpRequestMethod.cc \
1710 tests/stub_StatHist.cc \
1713 SBufDetailedStats.h \
1714 tests/stub_SBufDetailedStats.cc \
1715 StoreFileSystem.cc \
1717 tests/stub_StoreMeta.cc \
1718 StoreMetaUnpacker.cc \
1719 StoreSwapLogData.cc \
1731 tests/stub_SwapDir.cc \
1734 tests/stub_access_log.cc \
1738 tests/stub_cache_cf.cc \
1739 tests/stub_cache_manager.cc \
1740 tests/stub_client_db.cc \
1741 client_side_request.h \
1742 tests/stub_client_side_request.cc \
1743 tests/stub_debug.cc \
1744 tests/stub_errorpage.cc \
1745 tests/stub_helper.cc \
1746 tests/stub_HelperChildConfig.cc \
1747 tests/stub_HttpRequest.cc \
1748 tests/stub_http.cc \
1751 tests/stub_internal.cc \
1753 tests/stub_ipcache.cc \
1754 tests/stub_libauth_acls.cc \
1755 tests/stub_libauth.cc \
1756 tests/stub_libeui.cc \
1757 tests/stub_libformat.cc \
1758 tests/stub_libicmp.cc \
1759 tests/stub_MemStore.cc \
1761 tests/stub_mime.cc \
1762 tests/stub_neighbors.cc \
1763 tests/stub_pconn.cc \
1764 tests/stub_Port.cc \
1765 tests/stub_stat.cc \
1766 tests/stub_store_client.cc \
1767 tests/stub_store_stats.cc \
1769 tests/stub_store_rebuild.cc \
1770 tests/stub_UdsOp.cc \
1771 tests/testDiskIO.cc \
1772 tests/testDiskIO.h \
1774 tests/testStoreSupport.cc \
1775 tests/testStoreSupport.h \
1776 tests/stub_time.cc \
1784 nodist_tests_testDiskIO_SOURCES= \
1786 $(DISKIO_GEN_SOURCE) \
1790 tests_testDiskIO_LDADD = \
1791 http/libsquid-http.la \
1794 DnsLookupDetails.o \
1812 $(top_builddir)/lib/libmisccontainers.la \
1813 $(top_builddir)/lib/libmiscencoding.la \
1814 $(top_builddir)/lib/libmiscutil.la \
1817 $(SQUID_CPPUNIT_LIBS) \
1822 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1823 tests_testDiskIO_DEPENDENCIES = \
1828 ## Tests of the Even module.
1829 tests_testEvent_SOURCES = \
1833 tests/stub_CacheDigest.cc \
1842 tests/stub_carp.cc \
1844 ChunkedCodingParser.cc \
1849 client_side_reply.cc \
1850 client_side_request.cc \
1853 tests/stub_CollapsedForwarding.cc \
1861 $(DELAY_POOL_SOURCE) \
1869 tests/stub_ETag.cc \
1874 ExternalACLEntry.cc \
1877 tests/stub_fatal.cc \
1892 HelperChildConfig.h \
1893 HelperChildConfig.cc \
1903 HttpHeaderFieldInfo.h \
1905 HttpHeaderTools.cc \
1906 HttpHeaderFieldStat.h \
1910 HttpHdrContRange.cc \
1913 HttpHdrScTarget.cc \
1923 HttpRequestMethod.cc \
1955 peer_proxy_negotiate_auth.h \
1956 peer_proxy_negotiate_auth.cc \
1959 peer_sourcehash.cc \
1963 tests/stub_redirect.cc \
1971 SBufDetailedStats.h \
1972 tests/stub_SBufDetailedStats.cc \
1988 tests/stub_store_digest.cc \
2001 StoreFileSystem.cc \
2003 tests/stub_StoreMeta.cc \
2004 StoreMetaUnpacker.cc \
2005 StoreSwapLogData.cc \
2007 tests/stub_SwapDir.cc \
2008 tests/CapturingStoreEntry.h \
2009 tests/testEvent.cc \
2012 tests/stub_main_cc.cc \
2013 tests/stub_ipc_Forwarder.cc \
2014 tests/stub_libauth_acls.cc \
2015 tests/stub_libauth.cc \
2016 tests/stub_libeui.cc \
2017 tests/stub_store_stats.cc \
2022 tests/stub_tunnel.cc \
2029 tests/stub_wccp2.cc \
2031 tests/stub_whois.cc \
2035 nodist_tests_testEvent_SOURCES = \
2037 $(DISKIO_GEN_SOURCE)
2038 tests_testEvent_LDADD = \
2039 http/libsquid-http.la \
2049 icmp/libicmp.la icmp/libicmp-core.la \
2052 format/libformat.la \
2054 $(ADAPTATION_LIBS) \
2057 $(top_builddir)/lib/libmisccontainers.la \
2058 $(top_builddir)/lib/libmiscencoding.la \
2059 $(top_builddir)/lib/libmiscutil.la \
2067 $(SQUID_CPPUNIT_LIBS) \
2068 $(SQUID_CPPUNIT_LA) \
2073 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2074 tests_testEvent_DEPENDENCIES = \
2078 ## Tests of the EventLoop module.
2079 tests_testEventLoop_SOURCES = \
2083 tests/stub_CacheDigest.cc \
2092 tests/stub_carp.cc \
2094 ChunkedCodingParser.cc \
2099 client_side_reply.cc \
2100 client_side_request.cc \
2103 tests/stub_CollapsedForwarding.cc \
2111 $(DELAY_POOL_SOURCE) \
2119 tests/stub_ETag.cc \
2124 ExternalACLEntry.cc \
2127 tests/stub_fatal.cc \
2142 HelperChildConfig.h \
2143 HelperChildConfig.cc \
2153 HttpHeaderFieldInfo.h \
2155 HttpHeaderTools.cc \
2156 HttpHeaderFieldStat.h \
2160 HttpHdrContRange.cc \
2163 HttpHdrScTarget.cc \
2173 HttpRequestMethod.cc \
2205 peer_proxy_negotiate_auth.h \
2206 peer_proxy_negotiate_auth.cc \
2209 peer_sourcehash.cc \
2214 tests/stub_redirect.cc \
2219 SBufDetailedStats.h \
2220 tests/stub_SBufDetailedStats.cc \
2237 tests/stub_store_digest.cc \
2250 StoreFileSystem.cc \
2252 tests/stub_StoreMeta.cc \
2253 StoreMetaUnpacker.cc \
2254 StoreSwapLogData.cc \
2258 tests/stub_SwapDir.cc \
2259 tests/testEventLoop.cc \
2260 tests/testEventLoop.h \
2262 tests/stub_main_cc.cc \
2263 tests/stub_ipc_Forwarder.cc \
2264 tests/stub_libauth_acls.cc \
2265 tests/stub_libauth.cc \
2266 tests/stub_libeui.cc \
2267 tests/stub_store_stats.cc \
2272 tests/stub_tunnel.cc \
2279 tests/stub_wccp2.cc \
2281 tests/stub_whois.cc \
2285 nodist_tests_testEventLoop_SOURCES = \
2287 $(DISKIO_GEN_SOURCE)
2288 tests_testEventLoop_LDADD = \
2289 http/libsquid-http.la \
2299 icmp/libicmp.la icmp/libicmp-core.la \
2302 format/libformat.la \
2304 $(ADAPTATION_LIBS) \
2307 $(top_builddir)/lib/libmisccontainers.la \
2308 $(top_builddir)/lib/libmiscencoding.la \
2309 $(top_builddir)/lib/libmiscutil.la \
2317 $(SQUID_CPPUNIT_LIBS) \
2318 $(SQUID_CPPUNIT_LA) \
2323 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2324 tests_testEventLoop_DEPENDENCIES = \
2328 tests_test_http_range_SOURCES = \
2339 tests/stub_CacheDigest.cc \
2341 tests/stub_carp.cc \
2343 ChunkedCodingParser.cc \
2348 client_side_reply.cc \
2349 client_side_request.cc \
2352 tests/stub_CollapsedForwarding.cc \
2360 $(DELAY_POOL_SOURCE) \
2368 tests/stub_ETag.cc \
2372 tests/stub_libauth.cc \
2373 tests/stub_fatal.cc \
2388 HelperChildConfig.h \
2389 HelperChildConfig.cc \
2397 HttpHeaderFieldStat.h \
2401 HttpHdrContRange.cc \
2404 HttpHdrScTarget.cc \
2407 HttpHeaderFieldInfo.h \
2409 HttpHeaderTools.cc \
2419 HttpRequestMethod.cc \
2450 peer_proxy_negotiate_auth.h \
2451 peer_proxy_negotiate_auth.cc \
2454 peer_sourcehash.cc \
2459 tests/stub_redirect.cc \
2465 SBufDetailedStats.h \
2466 tests/stub_SBufDetailedStats.cc \
2482 tests/stub_store_digest.cc \
2495 StoreFileSystem.cc \
2497 tests/stub_StoreMeta.cc \
2498 StoreMetaUnpacker.cc \
2499 StoreSwapLogData.cc \
2503 tests/stub_SwapDir.cc \
2505 tests/test_http_range.cc \
2506 tests/stub_external_acl.cc \
2507 tests/stub_ipc_Forwarder.cc \
2508 tests/stub_libeui.cc \
2509 tests/stub_main_cc.cc \
2510 tests/stub_MemStore.cc \
2511 tests/stub_store_stats.cc \
2512 tests/stub_EventLoop.cc \
2516 tests/stub_tunnel.cc \
2522 tests/stub_wccp2.cc \
2524 tests/stub_whois.cc \
2528 nodist_tests_test_http_range_SOURCES = \
2530 $(DISKIO_GEN_SOURCE)
2531 tests_test_http_range_LDADD = \
2532 http/libsquid-http.la \
2541 icmp/libicmp.la icmp/libicmp-core.la \
2544 format/libformat.la \
2548 $(ADAPTATION_LIBS) \
2555 $(top_builddir)/lib/libmisccontainers.la \
2556 $(top_builddir)/lib/libmiscencoding.la \
2557 $(top_builddir)/lib/libmiscutil.la \
2560 $(SQUID_CPPUNIT_LIBS) \
2561 $(SQUID_CPPUNIT_LA) \
2566 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2567 tests_test_http_range_DEPENDENCIES = \
2570 tests_testHttpParser_SOURCES = \
2576 tests/stub_MemObject.cc \
2583 tests/stub_SBufDetailedStats.cc \
2584 tests/stub_cache_cf.cc \
2585 tests/stub_cache_manager.cc \
2586 tests/stub_comm.cc \
2587 tests/stub_cbdata.cc \
2588 tests/stub_debug.cc \
2589 tests/stub_event.cc \
2590 tests/stub_HelperChildConfig.cc \
2591 tests/stub_stmem.cc \
2592 tests/stub_store.cc \
2593 tests/stub_store_stats.cc \
2595 tests/stub_tools.cc \
2596 tests/testHttpParser.cc \
2597 tests/testHttpParser.h \
2599 tests/stub_time.cc \
2602 nodist_tests_testHttpParser_SOURCES = \
2604 tests_testHttpParser_LDADD= \
2605 http/libsquid-http.la \
2609 $(top_builddir)/lib/libmiscutil.la \
2610 $(SQUID_CPPUNIT_LIBS) \
2613 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2614 tests_testHttpParser_DEPENDENCIES = \
2617 ## Tests of the HttpRequest module.
2618 tests_testHttpRequest_SOURCES = \
2625 HttpRequestMethod.cc \
2629 tests/testHttpRequest.h \
2630 tests/testHttpRequest.cc \
2631 tests/testHttpRequestMethod.h \
2632 tests/testHttpRequestMethod.cc \
2634 tests/stub_DiskIOModule.cc \
2635 tests/stub_libauth.cc \
2636 tests/stub_main_cc.cc \
2637 tests/stub_ipc_Forwarder.cc \
2638 tests/stub_libeui.cc \
2639 tests/stub_store_stats.cc \
2640 tests/stub_EventLoop.cc \
2652 tests/stub_CacheDigest.cc \
2654 tests/stub_carp.cc \
2656 ChunkedCodingParser.cc \
2661 client_side_reply.cc \
2662 client_side_request.cc \
2665 tests/stub_CollapsedForwarding.cc \
2672 $(DELAY_POOL_SOURCE) \
2679 tests/stub_ETag.cc \
2681 ExternalACLEntry.cc \
2683 tests/stub_fatal.cc \
2696 HelperChildConfig.h \
2697 HelperChildConfig.cc \
2707 HttpHeaderFieldInfo.h \
2709 HttpHeaderTools.cc \
2710 HttpHeaderFieldStat.h \
2714 HttpHdrContRange.cc \
2717 HttpHdrScTarget.cc \
2749 peer_proxy_negotiate_auth.h \
2750 peer_proxy_negotiate_auth.cc \
2753 peer_sourcehash.cc \
2759 tests/stub_libauth_acls.cc \
2760 tests/stub_redirect.cc \
2766 SBufDetailedStats.h \
2767 tests/stub_SBufDetailedStats.cc \
2783 tests/stub_store_digest.cc \
2796 StoreFileSystem.cc \
2798 tests/stub_StoreMeta.cc \
2799 StoreMetaUnpacker.cc \
2800 StoreSwapLogData.cc \
2807 tests/stub_tunnel.cc \
2808 tests/stub_SwapDir.cc \
2814 tests/stub_wccp2.cc \
2816 tests/stub_whois.cc \
2821 nodist_tests_testHttpRequest_SOURCES = \
2823 tests_testHttpRequest_LDADD = \
2837 icmp/libicmp.la icmp/libicmp-core.la \
2840 format/libformat.la \
2841 http/libsquid-http.la \
2843 $(ADAPTATION_LIBS) \
2845 $(top_builddir)/lib/libmisccontainers.la \
2846 $(top_builddir)/lib/libmiscencoding.la \
2847 $(top_builddir)/lib/libmiscutil.la \
2851 $(SQUID_CPPUNIT_LIBS) \
2852 $(SQUID_CPPUNIT_LA) \
2857 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2858 tests_testHttpRequest_DEPENDENCIES = \
2862 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2863 ## first line - what we are testing.
2864 tests_testStore_SOURCES= \
2866 tests/stub_CacheDigest.cc \
2869 tests/stub_CollapsedForwarding.cc \
2872 $(DELAY_POOL_SOURCE) \
2875 DiskIO/ReadRequest.cc \
2876 DiskIO/WriteRequest.cc \
2881 tests/stub_fatal.cc \
2884 HttpHeaderFieldStat.h \
2888 HttpHdrContRange.cc \
2891 HttpHdrScTarget.cc \
2892 HttpHeaderFieldInfo.h \
2894 HttpHeaderTools.cc \
2898 HttpRequestMethod.cc \
2930 tests/stub_StoreMeta.cc \
2931 StoreMetaUnpacker.cc \
2932 StoreSwapLogData.cc \
2936 SBufDetailedStats.h \
2937 tests/stub_SBufDetailedStats.cc \
2942 tests/CapturingStoreEntry.h \
2944 tests/stub_access_log.cc \
2948 tests/stub_cache_cf.cc \
2949 tests/stub_cache_manager.cc \
2950 tests/stub_client_side_request.cc \
2951 tests/stub_comm.cc \
2952 tests/stub_debug.cc \
2953 tests/stub_DiskIOModule.cc \
2954 tests/stub_errorpage.cc \
2958 tests/stub_helper.cc \
2959 tests/stub_HelperChildConfig.cc \
2960 tests/stub_http.cc \
2961 tests/stub_libauth.cc \
2962 tests/stub_libeui.cc \
2963 tests/stub_libformat.cc \
2964 tests/stub_libsslsquid.cc \
2967 tests/stub_HttpReply.cc \
2968 tests/stub_HttpRequest.cc \
2969 tests/stub_libcomm.cc \
2970 tests/stub_MemStore.cc \
2972 tests/stub_mime.cc \
2973 tests/stub_Port.cc \
2974 tests/stub_stat.cc \
2975 tests/stub_store_client.cc \
2976 tests/stub_store_stats.cc \
2978 tests/stub_store_rebuild.cc \
2979 tests/stub_store_swapout.cc \
2982 tests/stub_tools.cc \
2983 tests/stub_UdsOp.cc \
2985 tests/testStore.cc \
2987 tests/testStoreEntryStream.cc \
2988 tests/testStoreEntryStream.h \
2989 tests/testStoreController.cc \
2990 tests/testStoreController.h \
2991 tests/testStoreHashIndex.cc \
2992 tests/testStoreHashIndex.h \
2993 tests/testStoreSupport.cc \
2994 tests/testStoreSupport.h \
2995 tests/TestSwapDir.cc \
2996 tests/TestSwapDir.h \
2997 tests/stub_time.cc \
3002 nodist_tests_testStore_SOURCES= \
3008 tests_testStore_LDADD= \
3009 http/libsquid-http.la \
3021 $(top_builddir)/lib/libmisccontainers.la \
3022 $(top_builddir)/lib/libmiscencoding.la \
3023 $(top_builddir)/lib/libmiscutil.la \
3026 $(SQUID_CPPUNIT_LIBS) \
3029 DnsLookupDetails.o \
3032 tests_testStore_LDFLAGS = $(LIBADD_DL)
3033 tests_testStore_DEPENDENCIES = \
3036 ## string needs mem.cc.
3037 ## mem.cc needs ClientInfo.h
3038 ## libsquid pulls in SquidConfig and children. stub them.
3039 tests_testString_SOURCES = \
3046 SBufDetailedStats.h \
3047 tests/stub_SBufDetailedStats.cc \
3049 tests/testString.cc \
3050 tests/testString.h \
3053 tests/stub_cache_cf.cc \
3054 tests/stub_cache_manager.cc \
3055 tests/stub_debug.cc \
3056 tests/stub_HelperChildConfig.cc \
3058 tests/stub_tools.cc \
3059 tests/stub_time.cc \
3062 nodist_tests_testString_SOURCES = \
3064 tests_testString_LDADD = \
3068 $(top_builddir)/lib/libmiscutil.la \
3070 $(SQUID_CPPUNIT_LIBS) \
3074 tests_testString_LDFLAGS = $(LIBADD_DL)
3075 tests_testString_DEPENDENCIES = \
3094 tests_testUfs_SOURCES = \
3098 tests/stub_cache_manager.cc \
3099 tests/stub_client_db.cc \
3100 tests/stub_CollapsedForwarding.cc \
3101 tests/stub_HelperChildConfig.cc \
3104 tests/stub_ipcache.cc \
3105 tests/stub_libeui.cc \
3106 tests/stub_libicmp.cc \
3107 tests/stub_MemStore.cc \
3108 tests/stub_neighbors.cc \
3109 tests/stub_pconn.cc \
3110 tests/stub_Port.cc \
3111 tests/stub_UdsOp.cc \
3113 tests/stub_internal.cc \
3114 tests/stub_libformat.cc \
3115 tests/stub_stat.cc \
3117 tests/stub_store_rebuild.cc \
3118 tests/stub_store_stats.cc \
3120 tests/stub_fatal.cc \
3145 StoreSwapLogData.cc \
3147 StoreMetaUnpacker.cc \
3148 $(STOREMETA_SOURCE) \
3149 StoreFileSystem.cc \
3156 $(DELAY_POOL_SOURCE) \
3158 tests/stub_CacheDigest.cc \
3166 HttpRequestMethod.cc \
3175 tests/stub_cache_cf.cc \
3176 tests/stub_helper.cc \
3179 SBufDetailedStats.h \
3180 tests/stub_SBufDetailedStats.cc \
3182 tests/stub_debug.cc \
3183 tests/stub_client_side_request.cc \
3184 tests/stub_http.cc \
3185 tests/stub_libauth.cc \
3189 tests/stub_mime.cc \
3190 HttpHeaderFieldInfo.h \
3192 HttpHeaderTools.cc \
3199 HttpHdrContRange.cc \
3201 HttpHeaderFieldStat.h \
3206 HttpHdrScTarget.cc \
3216 tests/stub_errorpage.cc \
3217 tests/stub_HttpRequest.cc \
3219 tests/stub_access_log.cc \
3222 tests/stub_store_client.cc \
3224 tests/stub_tools.cc \
3225 tests/testStoreSupport.cc \
3226 tests/testStoreSupport.h \
3232 nodist_tests_testUfs_SOURCES = \
3234 $(DISKIO_GEN_SOURCE) \
3238 tests_testUfs_LDADD = \
3239 http/libsquid-http.la \
3241 DnsLookupDetails.o \
3261 $(top_builddir)/lib/libmisccontainers.la \
3262 $(top_builddir)/lib/libmiscencoding.la \
3263 $(top_builddir)/lib/libmiscutil.la \
3266 $(SQUID_CPPUNIT_LIBS) \
3270 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3271 tests_testUfs_DEPENDENCIES = \
3274 check_PROGRAMS += testRefCount
3275 testRefCount_SOURCES= \
3278 tests/stub_cbdata.cc \
3279 tests/stub_debug.cc \
3280 tests/stub_MemBuf.cc \
3281 tests/testRefCount.cc
3282 testRefCount_LDADD = \
3284 $(top_builddir)/lib/libmiscutil.la \
3288 tests_testRock_SOURCES = \
3291 CollapsedForwarding.h \
3292 CollapsedForwarding.cc \
3293 tests/stub_CacheDigest.cc \
3309 HttpHeaderFieldStat.h \
3313 HttpHdrContRange.cc \
3316 HttpHdrScTarget.cc \
3319 HttpHeaderFieldInfo.h \
3321 HttpHeaderTools.cc \
3324 HttpRequestMethod.cc \
3346 tests/stub_StatHist.cc \
3349 tests/stub_stat.cc \
3351 StoreFileSystem.cc \
3353 StoreMetaUnpacker.cc \
3354 $(STOREMETA_SOURCE) \
3355 StoreSwapLogData.cc \
3363 SBufDetailedStats.h \
3364 tests/stub_SBufDetailedStats.cc \
3374 tests/testStoreSupport.cc \
3375 tests/testStoreSupport.h \
3377 tests/stub_access_log.cc \
3380 tests/stub_cache_cf.cc \
3382 tests/stub_cache_manager.cc \
3383 tests/stub_client_db.cc \
3384 tests/stub_client_side_request.cc \
3385 tests/stub_debug.cc \
3386 tests/stub_errorpage.cc \
3387 tests/stub_HelperChildConfig.cc \
3388 tests/stub_http.cc \
3389 tests/stub_HttpRequest.cc \
3390 tests/stub_libauth.cc \
3393 tests/stub_ipcache.cc \
3394 tests/stub_libeui.cc \
3395 tests/stub_libformat.cc \
3396 tests/stub_libicmp.cc \
3397 tests/stub_libmgr.cc \
3398 tests/stub_MemStore.cc \
3400 tests/stub_mime.cc \
3401 tests/stub_neighbors.cc \
3402 tests/stub_Port.cc \
3403 tests/stub_pconn.cc \
3404 tests/stub_store_client.cc \
3406 tests/stub_store_rebuild.cc \
3407 tests/stub_store_stats.cc \
3409 tests/stub_tools.cc \
3414 $(DELAY_POOL_SOURCE) \
3417 nodist_tests_testRock_SOURCES = \
3418 $(DISKIO_GEN_SOURCE) \
3423 tests_testRock_LDADD = \
3424 http/libsquid-http.la \
3441 $(top_builddir)/lib/libmisccontainers.la \
3442 $(top_builddir)/lib/libmiscencoding.la \
3443 $(top_builddir)/lib/libmiscutil.la \
3446 $(SQUID_CPPUNIT_LIBS) \
3450 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3451 tests_testRock_DEPENDENCIES = \
3454 ## Tests of the URL module.
3455 ## TODO: Trim this down once the insanity is over.
3456 tests_testURL_SOURCES = \
3465 tests/stub_cache_manager.cc \
3467 tests/stub_CacheDigest.cc \
3469 tests/stub_carp.cc \
3471 ChunkedCodingParser.cc \
3476 client_side_reply.cc \
3477 client_side_request.cc \
3480 tests/stub_CollapsedForwarding.cc \
3487 $(DELAY_POOL_SOURCE) \
3490 DiskIO/ReadRequest.cc \
3491 DiskIO/WriteRequest.cc \
3499 ExternalACLEntry.cc \
3501 tests/stub_fatal.cc \
3516 HelperChildConfig.h \
3517 HelperChildConfig.cc \
3525 HttpHeaderFieldStat.h \
3529 HttpHdrContRange.cc \
3532 HttpHdrScTarget.cc \
3535 HttpHeaderFieldInfo.h \
3537 HttpHeaderTools.cc \
3547 HttpRequestMethod.cc \
3579 peer_proxy_negotiate_auth.h \
3580 peer_proxy_negotiate_auth.cc \
3583 peer_sourcehash.cc \
3587 tests/stub_redirect.cc \
3593 SBufDetailedStats.h \
3594 tests/stub_SBufDetailedStats.cc \
3604 tests/stub_StatHist.cc \
3610 tests/stub_store_digest.cc \
3623 StoreFileSystem.cc \
3625 tests/stub_StoreMeta.cc \
3626 StoreMetaUnpacker.cc \
3627 StoreSwapLogData.cc \
3632 tests/stub_SwapDir.cc \
3634 tests/stub_debug.cc \
3635 tests/stub_DiskIOModule.cc \
3636 tests/stub_libauth_acls.cc \
3637 tests/stub_libauth.cc \
3638 tests/stub_main_cc.cc \
3639 tests/stub_ipc_Forwarder.cc \
3640 tests/stub_store_stats.cc \
3643 tests/testUriScheme.cc \
3644 tests/testUriScheme.h \
3646 tests/stub_time.cc \
3647 tests/stub_EventLoop.cc \
3650 tests/stub_tunnel.cc \
3655 tests/stub_wccp2.cc \
3657 tests/stub_whois.cc \
3662 nodist_tests_testURL_SOURCES = \
3664 tests_testURL_LDADD = \
3665 http/libsquid-http.la \
3680 icmp/libicmp.la icmp/libicmp-core.la \
3684 format/libformat.la \
3687 $(ADAPTATION_LIBS) \
3689 $(top_builddir)/lib/libmisccontainers.la \
3690 $(top_builddir)/lib/libmiscencoding.la \
3691 $(top_builddir)/lib/libmiscutil.la \
3694 $(SQUID_CPPUNIT_LIBS) \
3695 $(SQUID_CPPUNIT_LA) \
3700 tests_testURL_LDFLAGS = $(LIBADD_DL)
3701 tests_testURL_DEPENDENCIES = \
3705 tests_testSBuf_SOURCES= \
3709 tests/SBufFindTest.h \
3710 tests/SBufFindTest.cc \
3712 SBufDetailedStats.h \
3713 tests/stub_SBufDetailedStats.cc \
3715 tests/stub_time.cc \
3717 tests/stub_debug.cc \
3718 tests/stub_fatal.cc \
3719 tests/stub_HelperChildConfig.cc \
3720 tests/stub_cache_cf.cc \
3721 tests/stub_cache_manager.cc \
3722 tests/stub_store.cc \
3723 tests/stub_store_stats.cc \
3724 tests/stub_tools.cc \
3727 tests/stub_wordlist.cc \
3728 tests/stub_MemBuf.cc
3729 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3730 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3731 tests_testSBuf_LDADD=\
3736 $(top_builddir)/lib/libmiscutil.la \
3738 $(SQUID_CPPUNIT_LIBS) \
3741 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3743 tests_testSBufList_SOURCES= \
3744 tests/testSBufList.h \
3745 tests/testSBufList.cc \
3751 SBufDetailedStats.h \
3752 tests/stub_SBufDetailedStats.cc \
3754 tests/stub_time.cc \
3756 tests/stub_MemObject.cc \
3757 tests/stub_cbdata.cc \
3758 tests/stub_comm.cc \
3759 tests/stub_debug.cc \
3760 tests/stub_event.cc \
3761 tests/stub_fatal.cc \
3763 tests/stub_HelperChildConfig.cc \
3764 tests/stub_cache_cf.cc \
3765 tests/stub_cache_manager.cc \
3766 tests/stub_store.cc \
3767 tests/stub_stmem.cc \
3768 tests/stub_store_stats.cc \
3769 tests/stub_tools.cc \
3773 tests/stub_wordlist.cc \
3774 tests/stub_MemBuf.cc
3775 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3776 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3777 tests_testSBufList_LDADD=\
3782 $(top_builddir)/lib/libmiscutil.la \
3783 $(SQUID_CPPUNIT_LIBS) \
3786 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3788 tests_testConfigParser_SOURCES = \
3792 tests/stub_MemBuf.cc \
3793 tests/stub_time.cc \
3795 SBufDetailedStats.h \
3796 tests/stub_SBufDetailedStats.cc \
3800 tests/stub_fatal.cc \
3802 tests/testConfigParser.cc \
3803 tests/testConfigParser.h \
3806 tests/stub_cache_cf.cc \
3807 tests/stub_cache_manager.cc \
3808 tests/stub_debug.cc \
3809 tests/stub_HelperChildConfig.cc \
3811 tests/stub_tools.cc \
3814 nodist_tests_testConfigParser_SOURCES = \
3816 tests_testConfigParser_LDADD = \
3820 $(top_builddir)/lib/libmiscutil.la \
3822 $(SQUID_CPPUNIT_LIBS) \
3826 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3827 tests_testConfigParser_DEPENDENCIES = \
3830 tests_testStatHist_SOURCES = \
3831 tests/stub_cbdata.cc \
3833 tests/stub_fatal.cc \
3834 tests/stub_MemBuf.cc \
3836 SBufDetailedStats.h \
3837 tests/stub_SBufDetailedStats.cc \
3841 tests/stub_cache_manager.cc \
3842 tests/stub_comm.cc \
3843 tests/stub_debug.cc \
3844 tests/stub_DelayId.cc \
3845 tests/stub_HelperChildConfig.cc \
3848 tests/stub_MemObject.cc \
3850 tests/stub_mime.cc \
3851 tests/stub_pconn.cc \
3852 tests/stub_stmem.cc \
3854 tests/stub_store.cc \
3855 tests/stub_store_stats.cc \
3858 tests/stub_tools.cc \
3860 tests/testStatHist.cc \
3861 tests/testStatHist.h
3862 nodist_tests_testStatHist_SOURCES = \
3864 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3865 tests_testStatHist_LDADD = \
3867 $(top_builddir)/lib/libmiscutil.la \
3868 $(top_builddir)/lib/libmisccontainers.la \
3869 $(SQUID_CPPUNIT_LIBS) \
3870 $(SQUID_CPPUNIT_LA) \
3872 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3874 TESTS += testHeaders
3876 ## Special Universal .h dependency test script
3877 ## aborts if error encountered
3878 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3879 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3880 ## src/repl/ has no .h files and its own makefile.
3882 CLEANFILES += testHeaders