2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
22 OutOfBoundsException.h \
43 LOADABLE_MODULES_SOURCES = \
49 SUBDIRS = base anyp comm eui acl format fs repl
50 DIST_SUBDIRS = base anyp comm eui acl format fs repl
54 AUTH_LIBS= auth/libauth.la
55 AUTH_ACL_LIBS= auth/libacls.la
56 check_PROGRAMS+= tests/testACLMaxUserIP
60 SUBDIRS += http ip icmp ident log ipc mgr
61 DIST_SUBDIRS += http ip icmp ident log ipc mgr
80 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
82 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
91 DIST_SUBDIRS += adaptation
97 $(top_builddir)/lib/libTrie/libTrie.a
98 ESI_LIBS = $(ESI_LOCAL_LIBS) \
106 DELAY_POOL_ALL_SOURCE = \
108 CompositePoolNode.h \
130 ClientDelayConfig.cc \
133 if ENABLE_DELAY_POOLS
134 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
139 if ENABLE_XPROF_STATS
140 XPROF_STATS_SOURCE = ProfStats.cc
146 HTCPSOURCE = htcp.cc htcp.h
150 LEAKFINDERSOURCE = LeakFinder.cc
156 UNLINKDSOURCE = unlinkd.h unlinkd.cc
159 UNLINKDSOURCE = unlinkd.h
168 if ENABLE_WIN32SPECIFIC
169 WIN32_SOURCE = win32.cc
170 WINSVC_SOURCE = WinSvc.cc
177 IPC_SOURCE = SquidIpc.h ipc_win32.cc
179 IPC_SOURCE = SquidIpc.h ipc.cc
182 AIO_WIN32_ALL_SOURCES = \
183 DiskIO/AIO/aio_win32.cc \
184 DiskIO/AIO/aio_win32.h
186 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
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 \
370 FtpGatewayServer.cc \
381 HelperChildConfig.h \
382 HelperChildConfig.cc \
386 HierarchyLogEntry.h \
391 HttpHeaderFieldStat.h \
400 HttpHdrContRange.cc \
407 HttpHeaderFieldInfo.h \
423 HttpRequestMethod.cc \
424 HttpRequestMethod.h \
436 $(LEAKFINDERSOURCE) \
467 $(XPROF_STATS_SOURCE) \
472 peer_proxy_negotiate_auth.h \
473 peer_proxy_negotiate_auth.cc \
491 SBufDetailedStats.h \
492 SBufDetailedStats.cc \
536 StoreMetaUnpacker.cc \
537 StoreMetaUnpacker.h \
538 $(STOREMETA_SOURCE) \
542 StoreSwapLogData.cc \
575 EXTRA_squid_SOURCES = \
576 $(AIO_WIN32_ALL_SOURCES) \
579 $(DELAY_POOL_ALL_SOURCE) \
589 $(WIN32_ALL_SOURCE) \
590 $(LOADABLE_MODULES_SOURCES)
593 client_side_request.cci \
614 CLEANFILES += $(BUILT_SOURCES)
616 nodist_squid_SOURCES = \
617 $(DISKIO_GEN_SOURCE) \
638 http/libsquid-http.la \
639 icmp/libicmp.la icmp/libicmp-core.la \
641 format/libformat.la \
652 $(top_builddir)/lib/libmisccontainers.la \
653 $(top_builddir)/lib/libmiscencoding.la \
654 $(top_builddir)/lib/libmiscutil.la \
661 squid_DEPENDENCIES = \
679 format/libformat.la \
683 if ENABLE_LOADABLE_MODULES
684 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
685 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
686 squid_LDFLAGS = -export-dynamic -dlopen force
687 ## when static module linking is supported and enabled:
688 ## squid_LDFLAGS = -all-static -dlopen self
690 ## LTDL headers require their local include path...
691 INCLUDES += $(INCLTDL)
694 ## Kerberos libraries require their include path...
695 INCLUDES += $(KRB5INCS)
698 unlinkd_SOURCES = unlinkd_daemon.cc
703 recv_announce_SOURCES = recv-announce.cc
705 ## What requires what..
706 ## many things want ACLChecklist.cc
707 ## ACLChecklist.cc wants AuthUserRequest.cc
708 ## ACLChecklist.cc wants AuthScheme.cc
709 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
710 ## ACLProxyAuth.cc wants ACLUserData
711 ## ACLProxyAuth.cc wants ACLRegexData
712 ## cache_cf.cc wants $(AUTH_LIBS)
713 ## cache_cf.cc wants Swapdir
714 ## cache_cf.cc wants AnyP::PortCfg
715 ## client_side wants client_db
716 ## client_db wants SNMP_SOURCE
717 ## snmp_core wants ACLStringData
718 ## SwapDir wants ConfigOption
719 ## tools.cc wants ip/libip.la
720 ## client_side.cc wants ip/libip.la
721 ## mem.cc wants ClientInfo.h
722 ## libbase.la wants cbdata.*
723 ## libbase.la wants MemBuf.*
739 tests/stub_StoreMeta.cc \
740 StoreMetaUnpacker.cc \
747 HelperChildConfig.h \
748 tests/stub_HelperChildConfig.cc \
749 HttpRequestMethod.cc \
776 ufsdump_DEPENDENCIES = \
792 nodist_ufsdump_SOURCES = \
797 squid.conf.documented \
822 include $(srcdir)/tests/Stub.list
831 mk-string-arrays.pl \
832 mk-string-arrays.awk \
839 $(AIO_WIN32_SOURCES) \
840 DiskIO/AIO/async_io.h \
841 DiskIO/AIO/AIODiskFile.cc \
842 DiskIO/AIO/AIODiskFile.h \
843 DiskIO/AIO/AIODiskIOStrategy.cc \
844 DiskIO/AIO/AIODiskIOStrategy.h \
845 DiskIO/AIO/AIODiskIOModule.cc \
846 DiskIO/AIO/AIODiskIOModule.h
848 libBlocking_a_SOURCES = \
849 DiskIO/Blocking/BlockingFile.cc \
850 DiskIO/Blocking/BlockingFile.h \
851 DiskIO/Blocking/BlockingIOStrategy.cc \
852 DiskIO/Blocking/BlockingIOStrategy.h \
853 DiskIO/Blocking/BlockingDiskIOModule.cc \
854 DiskIO/Blocking/BlockingDiskIOModule.h
856 libMmapped_a_SOURCES = \
857 DiskIO/Mmapped/MmappedFile.cc \
858 DiskIO/Mmapped/MmappedFile.h \
859 DiskIO/Mmapped/MmappedIOStrategy.cc \
860 DiskIO/Mmapped/MmappedIOStrategy.h \
861 DiskIO/Mmapped/MmappedDiskIOModule.cc \
862 DiskIO/Mmapped/MmappedDiskIOModule.h
864 libIpcIo_a_SOURCES = \
865 DiskIO/IpcIo/IpcIoFile.cc \
866 DiskIO/IpcIo/IpcIoFile.h \
867 DiskIO/IpcIo/IpcIoIOStrategy.cc \
868 DiskIO/IpcIo/IpcIoIOStrategy.h \
869 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
870 DiskIO/IpcIo/IpcIoDiskIOModule.h
872 libDiskDaemon_a_SOURCES = \
873 DiskIO/DiskDaemon/DiskdFile.cc \
874 DiskIO/DiskDaemon/DiskdFile.h \
875 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
876 DiskIO/DiskDaemon/DiskdIOStrategy.h \
877 DiskIO/DiskDaemon/diomsg.h \
878 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
879 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
880 DiskIO/DiskDaemon/DiskdAction.cc \
881 DiskIO/DiskDaemon/DiskdAction.h
883 libDiskThreads_a_SOURCES = \
885 DiskIO/DiskThreads/async_io.cc \
886 DiskIO/DiskThreads/DiskThreads.h \
887 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
888 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
889 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
890 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
891 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
892 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
894 EXTRA_libDiskThreads_a_SOURCES = \
895 DiskIO/DiskThreads/aiops.cc \
896 DiskIO/DiskThreads/aiops_win32.cc \
897 DiskIO/DiskThreads/CommIO.cc \
898 DiskIO/DiskThreads/CommIO.h
900 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
901 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
902 DiskIO_DiskDaemon_diskd_LDADD = \
903 $(top_builddir)/lib/libmisccontainers.la \
904 $(top_builddir)/lib/libmiscencoding.la \
905 $(top_builddir)/lib/libmiscutil.la \
910 DEFAULT_HTTP_PORT = 3128
911 DEFAULT_ICP_PORT = 3130
912 DEFAULT_PREFIX = $(prefix)
913 DEFAULT_CONFIG_DIR = $(sysconfdir)
914 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
915 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
916 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
918 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
919 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
920 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
921 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
922 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
923 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
924 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
925 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
926 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
927 DEFAULT_ICON_DIR = $(datadir)/icons
928 DEFAULT_ERROR_DIR = $(datadir)/errors
930 # Make location configure settings available to the code
931 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
933 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
935 globals.cc: globals.h mk-globals-c.awk
936 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
938 ## Generate files containing string arrays for various enums....
939 hier_code.cc: hier_code.h mk-string-arrays.awk
940 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
942 err_type.cc: err_type.h mk-string-arrays.awk
943 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
945 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
946 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
948 LogTags.cc: LogTags.h mk-string-arrays.awk
949 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
951 lookup_t.cc: lookup_t.h mk-string-arrays.awk
952 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
954 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
955 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
957 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
958 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
961 ## other generated files...
963 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
964 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
966 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
967 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
969 ## If autodependency works well this is not needed anymore
970 cache_cf.o: cf_parser.cci
972 # cf_gen builds the configuration files.
973 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
974 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
976 # squid.conf.default is built by cf_gen when making cf_parser.cci
977 squid.conf.default squid.conf.documented: cf_parser.cci
980 cf_parser.cci: cf.data cf_gen$(EXEEXT)
981 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
983 # The cf_gen_defines.cci is auto-generated and does not exist when the
984 # dependencies computed. We need to add its include files (autoconf.h) here
985 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
986 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
989 ## FIXME: generate a sed command file from configure. Then this doesn't
990 ## depend on the Makefile.
991 cf.data: cf.data.pre Makefile
993 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
994 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
995 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
996 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
997 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
998 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
999 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
1000 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
1001 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
1002 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
1003 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1004 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1005 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1006 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1007 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1008 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1009 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1010 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1011 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1012 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1013 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1014 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1015 < $(srcdir)/cf.data.pre >$@
1017 repl_modules.cc: repl_modules.sh Makefile
1018 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1020 include $(top_srcdir)/doc/manuals/Substitute.am
1022 squid.8: $(srcdir)/squid.8.in Makefile
1023 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1026 EXTRA_DIST += squid.8.in
1027 CLEANFILES += squid.8
1029 install-data-local: install-sysconfDATA install-dataDATA
1030 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1031 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1033 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1034 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1036 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1037 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1039 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1040 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1042 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1043 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1044 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1045 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1046 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1047 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1048 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1050 uninstall-local: squid.conf.default
1051 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1052 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1054 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1055 DiskIO/DiskIOModules_gen.cc \
1058 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1059 cp $(top_srcdir)/test-suite/test_tools.cc .
1061 # stock tools for unit tests - library independent versions of dlink_list
1063 # globals.cc is needed by test_tools.cc.
1064 # Neither of these should be disted from here.
1071 tests/testBoilerplate \
1072 tests/testCacheManager \
1075 tests/testEventLoop \
1076 tests/test_http_range \
1077 tests/testHttpParser \
1078 tests/testHttpReply \
1079 tests/testHttpRequest \
1084 tests/testSBufList \
1085 tests/testConfigParser \
1089 check_PROGRAMS += tests/testRock
1092 check_PROGRAMS += tests/testUfs
1095 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1096 TESTS += $(check_PROGRAMS)
1098 ### Template for new Unit Test Program
1099 ## - add tests/testX to check_PROGRAMS above.
1100 ## - copy template below and substitue X for class name
1101 ## - add other component .(h|cc) files needed to link and run tests
1103 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1105 #tests_testX_SOURCES=\
1108 # tests/testMain.cc \
1111 #nodist_tests_testX_SOURCES=\
1113 #tests_testX_LDFLAGS = $(LIBADD_DL)
1114 #tests_testX_LDADD=\
1115 # $(SQUID_CPPUNIT_LIBS) \
1116 # $(SQUID_CPPUNIT_LA) \
1118 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1121 # - add other component .(h|cc) files needed to link and run tests
1122 tests_testHttpReply_SOURCES=\
1126 tests/stub_ETag.cc \
1128 tests/stub_fatal.cc \
1131 HttpHeaderFieldStat.h \
1135 HttpHdrContRange.cc \
1136 HttpHdrContRange.h \
1140 HttpHdrScTarget.cc \
1145 HttpHeaderFieldInfo.h \
1147 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_debug.cc \
1180 tests/stub_errorpage.cc \
1181 tests/stub_HelperChildConfig.cc \
1182 tests/stub_libformat.cc \
1183 tests/stub_libauth.cc \
1187 tests/stub_StatHist.cc \
1189 tests/stub_store.cc \
1190 tests/stub_store_stats.cc \
1192 tests/stub_tools.cc \
1193 tests/stub_HttpRequest.cc \
1194 tests/testHttpReply.cc \
1195 tests/testHttpReply.h \
1197 tests/stub_time.cc \
1201 nodist_tests_testHttpReply_SOURCES=\
1203 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1204 tests_testHttpReply_LDADD=\
1205 http/libsquid-http.la \
1213 $(top_builddir)/lib/libmisccontainers.la \
1214 $(top_builddir)/lib/libmiscencoding.la \
1215 $(top_builddir)/lib/libmiscutil.la \
1216 $(SQUID_CPPUNIT_LIBS) \
1217 $(SQUID_CPPUNIT_LA) \
1222 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1224 tests_testACLMaxUserIP_SOURCES= \
1227 tests/stub_CollapsedForwarding.cc \
1230 DiskIO/ReadRequest.cc \
1231 DiskIO/WriteRequest.cc \
1232 tests/stub_ETag.cc \
1235 tests/stub_fatal.cc \
1238 HelperChildConfig.h \
1239 HelperChildConfig.cc \
1243 HttpHeaderFieldInfo.h \
1245 HttpHeaderTools.cc \
1246 HttpHdrContRange.cc \
1248 HttpHeaderFieldStat.h \
1253 HttpHdrScTarget.cc \
1255 HttpRequestMethod.cc \
1273 tests/stub_StatHist.cc \
1276 SBufDetailedStats.h \
1277 tests/stub_SBufDetailedStats.cc \
1281 tests/stub_StoreMeta.cc \
1282 StoreMetaUnpacker.cc \
1283 StoreSwapLogData.cc \
1288 tests/stub_SwapDir.cc \
1292 tests/stub_access_log.cc \
1295 tests/stub_cache_cf.cc \
1296 tests/stub_client_side.cc \
1297 tests/stub_debug.cc \
1298 tests/stub_DelayId.cc \
1299 tests/stub_DiskIOModule.cc \
1300 tests/stub_errorpage.cc \
1303 tests/stub_HttpRequest.cc \
1304 tests/stub_HttpReply.cc \
1305 tests/stub_ipc_TypedMsgHdr.cc \
1306 tests/stub_libauth.cc \
1307 tests/stub_libcomm.cc \
1308 tests/stub_libformat.cc \
1309 tests/stub_libsslsquid.cc \
1310 tests/stub_MemObject.cc \
1311 tests/stub_MemStore.cc \
1313 tests/stub_mime.cc \
1314 tests/stub_pconn.cc \
1315 tests/stub_Port.cc \
1317 tests/stub_store.cc \
1318 tests/stub_store_client.cc \
1320 tests/stub_store_rebuild.cc \
1321 tests/stub_store_stats.cc \
1322 tests/stub_store_swapout.cc \
1324 tests/stub_tools.cc \
1325 tests/stub_cache_manager.cc \
1326 tests/stub_UdsOp.cc \
1327 tests/testACLMaxUserIP.cc \
1328 tests/testACLMaxUserIP.h \
1330 tests/stub_time.cc \
1338 nodist_tests_testACLMaxUserIP_SOURCES= \
1340 tests_testACLMaxUserIP_LDADD= \
1341 http/libsquid-http.la \
1354 $(top_builddir)/lib/libmisccontainers.la \
1355 $(top_builddir)/lib/libmiscencoding.la \
1356 $(top_builddir)/lib/libmiscutil.la \
1360 $(SQUID_CPPUNIT_LIBS) \
1364 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1365 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1366 ## $(SQUID_CPPUNIT_LA)
1368 ## a demonstration test that does nothing but shows the salient points
1369 ## involved in writing tests.
1370 tests_testBoilerplate_SOURCES = \
1371 tests/testBoilerplate.cc \
1373 tests/testBoilerplate.h \
1375 nodist_tests_testBoilerplate_SOURCES = \
1377 tests_testBoilerplate_LDADD= \
1378 $(SQUID_CPPUNIT_LIBS) \
1382 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1383 tests_testBoilerplate_DEPENDENCIES = \
1386 ## Tests of the CacheManager module.
1387 tests_testCacheManager_SOURCES = \
1395 HttpRequestMethod.cc \
1399 tests/testCacheManager.cc \
1400 tests/testCacheManager.h \
1402 tests/stub_main_cc.cc \
1403 tests/stub_ipc_Forwarder.cc \
1404 tests/stub_store_stats.cc \
1405 tests/stub_EventLoop.cc \
1416 tests/stub_CacheDigest.cc \
1418 tests/stub_carp.cc \
1420 ChunkedCodingParser.cc \
1425 client_side_reply.cc \
1426 client_side_request.cc \
1429 tests/stub_CollapsedForwarding.cc \
1436 $(DELAY_POOL_SOURCE) \
1444 tests/stub_ETag.cc \
1447 ExternalACLEntry.cc \
1449 tests/stub_fatal.cc \
1459 FtpGatewayServer.h \
1460 FtpGatewayServer.cc \
1469 HelperChildConfig.h \
1470 HelperChildConfig.cc \
1480 HttpHeaderFieldInfo.h \
1482 HttpHeaderTools.cc \
1483 HttpHeaderFieldStat.h \
1487 HttpHdrContRange.cc \
1490 HttpHdrScTarget.cc \
1522 peer_proxy_negotiate_auth.h \
1523 peer_proxy_negotiate_auth.cc \
1526 peer_sourcehash.cc \
1530 tests/stub_redirect.cc \
1536 SBufDetailedStats.h \
1537 tests/stub_SBufDetailedStats.cc \
1549 tests/stub_libauth_acls.cc \
1550 tests/stub_libauth.cc \
1551 tests/stub_StatHist.cc \
1557 tests/stub_store_digest.cc \
1570 StoreFileSystem.cc \
1572 tests/stub_StoreMeta.cc \
1573 StoreMetaUnpacker.cc \
1574 StoreSwapLogData.cc \
1578 tests/stub_tunnel.cc \
1579 tests/stub_SwapDir.cc \
1586 tests/stub_wccp2.cc \
1588 tests/stub_whois.cc \
1593 nodist_tests_testCacheManager_SOURCES = \
1595 $(DISKIO_GEN_SOURCE)
1596 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1597 tests_testCacheManager_LDADD = \
1598 http/libsquid-http.la \
1609 icmp/libicmp.la icmp/libicmp-core.la \
1611 format/libformat.la \
1615 $(ADAPTATION_LIBS) \
1622 $(top_builddir)/lib/libmisccontainers.la \
1623 $(top_builddir)/lib/libmiscencoding.la \
1624 $(top_builddir)/lib/libmiscutil.la \
1627 $(SQUID_CPPUNIT_LIBS) \
1628 $(SQUID_CPPUNIT_LA) \
1633 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1634 tests_testCacheManager_DEPENDENCIES = \
1638 tests_testDiskIO_SOURCES = \
1640 tests/stub_CacheDigest.cc \
1644 tests/stub_CollapsedForwarding.cc \
1647 $(DELAY_POOL_SOURCE) \
1651 tests/stub_ETag.cc \
1655 tests/stub_fatal.cc \
1664 HttpHeaderFieldStat.h \
1668 HttpHdrContRange.cc \
1670 HttpHdrScTarget.cc \
1672 HttpHeaderFieldInfo.h \
1674 HttpHeaderTools.cc \
1679 HttpRequestMethod.cc \
1703 tests/stub_StatHist.cc \
1706 SBufDetailedStats.h \
1707 tests/stub_SBufDetailedStats.cc \
1708 StoreFileSystem.cc \
1710 tests/stub_StoreMeta.cc \
1711 StoreMetaUnpacker.cc \
1712 StoreSwapLogData.cc \
1724 tests/stub_SwapDir.cc \
1727 tests/stub_access_log.cc \
1731 tests/stub_cache_cf.cc \
1732 tests/stub_cache_manager.cc \
1733 tests/stub_client_db.cc \
1734 client_side_request.h \
1735 tests/stub_client_side_request.cc \
1736 tests/stub_debug.cc \
1737 tests/stub_errorpage.cc \
1738 tests/stub_helper.cc \
1739 tests/stub_HelperChildConfig.cc \
1740 tests/stub_HttpRequest.cc \
1741 tests/stub_http.cc \
1744 tests/stub_internal.cc \
1746 tests/stub_ipcache.cc \
1747 tests/stub_libauth_acls.cc \
1748 tests/stub_libauth.cc \
1749 tests/stub_libeui.cc \
1750 tests/stub_libformat.cc \
1751 tests/stub_libicmp.cc \
1752 tests/stub_MemStore.cc \
1754 tests/stub_mime.cc \
1755 tests/stub_pconn.cc \
1756 tests/stub_Port.cc \
1757 tests/stub_stat.cc \
1758 tests/stub_store_client.cc \
1759 tests/stub_store_stats.cc \
1761 tests/stub_store_rebuild.cc \
1762 tests/stub_UdsOp.cc \
1763 tests/testDiskIO.cc \
1764 tests/testDiskIO.h \
1766 tests/testStoreSupport.cc \
1767 tests/testStoreSupport.h \
1768 tests/stub_time.cc \
1776 nodist_tests_testDiskIO_SOURCES= \
1778 $(DISKIO_GEN_SOURCE) \
1782 tests_testDiskIO_LDADD = \
1783 http/libsquid-http.la \
1786 DnsLookupDetails.o \
1804 $(top_builddir)/lib/libmisccontainers.la \
1805 $(top_builddir)/lib/libmiscencoding.la \
1806 $(top_builddir)/lib/libmiscutil.la \
1809 $(SQUID_CPPUNIT_LIBS) \
1814 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1815 tests_testDiskIO_DEPENDENCIES = \
1820 ## Tests of the Even module.
1821 tests_testEvent_SOURCES = \
1825 tests/stub_CacheDigest.cc \
1834 tests/stub_carp.cc \
1836 ChunkedCodingParser.cc \
1841 client_side_reply.cc \
1842 client_side_request.cc \
1845 tests/stub_CollapsedForwarding.cc \
1853 $(DELAY_POOL_SOURCE) \
1861 tests/stub_ETag.cc \
1866 ExternalACLEntry.cc \
1869 tests/stub_fatal.cc \
1879 FtpGatewayServer.h \
1880 FtpGatewayServer.cc \
1888 HelperChildConfig.h \
1889 HelperChildConfig.cc \
1899 HttpHeaderFieldInfo.h \
1901 HttpHeaderTools.cc \
1902 HttpHeaderFieldStat.h \
1906 HttpHdrContRange.cc \
1909 HttpHdrScTarget.cc \
1917 HttpRequestMethod.cc \
1949 peer_proxy_negotiate_auth.h \
1950 peer_proxy_negotiate_auth.cc \
1953 peer_sourcehash.cc \
1957 tests/stub_redirect.cc \
1965 SBufDetailedStats.h \
1966 tests/stub_SBufDetailedStats.cc \
1982 tests/stub_store_digest.cc \
1995 StoreFileSystem.cc \
1997 tests/stub_StoreMeta.cc \
1998 StoreMetaUnpacker.cc \
1999 StoreSwapLogData.cc \
2001 tests/stub_SwapDir.cc \
2002 tests/CapturingStoreEntry.h \
2003 tests/testEvent.cc \
2006 tests/stub_main_cc.cc \
2007 tests/stub_ipc_Forwarder.cc \
2008 tests/stub_libauth_acls.cc \
2009 tests/stub_libauth.cc \
2010 tests/stub_libeui.cc \
2011 tests/stub_store_stats.cc \
2016 tests/stub_tunnel.cc \
2023 tests/stub_wccp2.cc \
2025 tests/stub_whois.cc \
2029 nodist_tests_testEvent_SOURCES = \
2031 $(DISKIO_GEN_SOURCE)
2032 tests_testEvent_LDADD = \
2033 http/libsquid-http.la \
2043 icmp/libicmp.la icmp/libicmp-core.la \
2046 format/libformat.la \
2048 $(ADAPTATION_LIBS) \
2051 $(top_builddir)/lib/libmisccontainers.la \
2052 $(top_builddir)/lib/libmiscencoding.la \
2053 $(top_builddir)/lib/libmiscutil.la \
2061 $(SQUID_CPPUNIT_LIBS) \
2062 $(SQUID_CPPUNIT_LA) \
2067 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2068 tests_testEvent_DEPENDENCIES = \
2072 ## Tests of the EventLoop module.
2073 tests_testEventLoop_SOURCES = \
2077 tests/stub_CacheDigest.cc \
2086 tests/stub_carp.cc \
2088 ChunkedCodingParser.cc \
2093 client_side_reply.cc \
2094 client_side_request.cc \
2097 tests/stub_CollapsedForwarding.cc \
2105 $(DELAY_POOL_SOURCE) \
2113 tests/stub_ETag.cc \
2118 ExternalACLEntry.cc \
2121 tests/stub_fatal.cc \
2131 FtpGatewayServer.h \
2132 FtpGatewayServer.cc \
2140 HelperChildConfig.h \
2141 HelperChildConfig.cc \
2151 HttpHeaderFieldInfo.h \
2153 HttpHeaderTools.cc \
2154 HttpHeaderFieldStat.h \
2158 HttpHdrContRange.cc \
2161 HttpHdrScTarget.cc \
2169 HttpRequestMethod.cc \
2201 peer_proxy_negotiate_auth.h \
2202 peer_proxy_negotiate_auth.cc \
2205 peer_sourcehash.cc \
2210 tests/stub_redirect.cc \
2215 SBufDetailedStats.h \
2216 tests/stub_SBufDetailedStats.cc \
2233 tests/stub_store_digest.cc \
2246 StoreFileSystem.cc \
2248 tests/stub_StoreMeta.cc \
2249 StoreMetaUnpacker.cc \
2250 StoreSwapLogData.cc \
2254 tests/stub_SwapDir.cc \
2255 tests/testEventLoop.cc \
2256 tests/testEventLoop.h \
2258 tests/stub_main_cc.cc \
2259 tests/stub_ipc_Forwarder.cc \
2260 tests/stub_libauth_acls.cc \
2261 tests/stub_libauth.cc \
2262 tests/stub_libeui.cc \
2263 tests/stub_store_stats.cc \
2268 tests/stub_tunnel.cc \
2275 tests/stub_wccp2.cc \
2277 tests/stub_whois.cc \
2281 nodist_tests_testEventLoop_SOURCES = \
2283 $(DISKIO_GEN_SOURCE)
2284 tests_testEventLoop_LDADD = \
2285 http/libsquid-http.la \
2295 icmp/libicmp.la icmp/libicmp-core.la \
2298 format/libformat.la \
2300 $(ADAPTATION_LIBS) \
2303 $(top_builddir)/lib/libmisccontainers.la \
2304 $(top_builddir)/lib/libmiscencoding.la \
2305 $(top_builddir)/lib/libmiscutil.la \
2313 $(SQUID_CPPUNIT_LIBS) \
2314 $(SQUID_CPPUNIT_LA) \
2319 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2320 tests_testEventLoop_DEPENDENCIES = \
2324 tests_test_http_range_SOURCES = \
2335 tests/stub_CacheDigest.cc \
2337 tests/stub_carp.cc \
2339 ChunkedCodingParser.cc \
2344 client_side_reply.cc \
2345 client_side_request.cc \
2348 tests/stub_CollapsedForwarding.cc \
2356 $(DELAY_POOL_SOURCE) \
2364 tests/stub_ETag.cc \
2368 tests/stub_libauth.cc \
2369 tests/stub_fatal.cc \
2379 FtpGatewayServer.h \
2380 FtpGatewayServer.cc \
2388 HelperChildConfig.h \
2389 HelperChildConfig.cc \
2397 HttpHeaderFieldStat.h \
2401 HttpHdrContRange.cc \
2404 HttpHdrScTarget.cc \
2407 HttpHeaderFieldInfo.h \
2409 HttpHeaderTools.cc \
2417 HttpRequestMethod.cc \
2448 peer_proxy_negotiate_auth.h \
2449 peer_proxy_negotiate_auth.cc \
2452 peer_sourcehash.cc \
2457 tests/stub_redirect.cc \
2463 SBufDetailedStats.h \
2464 tests/stub_SBufDetailedStats.cc \
2480 tests/stub_store_digest.cc \
2493 StoreFileSystem.cc \
2495 tests/stub_StoreMeta.cc \
2496 StoreMetaUnpacker.cc \
2497 StoreSwapLogData.cc \
2501 tests/stub_SwapDir.cc \
2503 tests/test_http_range.cc \
2504 tests/stub_external_acl.cc \
2505 tests/stub_ipc_Forwarder.cc \
2506 tests/stub_libeui.cc \
2507 tests/stub_main_cc.cc \
2508 tests/stub_MemStore.cc \
2509 tests/stub_store_stats.cc \
2510 tests/stub_EventLoop.cc \
2514 tests/stub_tunnel.cc \
2520 tests/stub_wccp2.cc \
2522 tests/stub_whois.cc \
2526 nodist_tests_test_http_range_SOURCES = \
2528 $(DISKIO_GEN_SOURCE)
2529 tests_test_http_range_LDADD = \
2530 http/libsquid-http.la \
2539 icmp/libicmp.la icmp/libicmp-core.la \
2542 format/libformat.la \
2546 $(ADAPTATION_LIBS) \
2553 $(top_builddir)/lib/libmisccontainers.la \
2554 $(top_builddir)/lib/libmiscencoding.la \
2555 $(top_builddir)/lib/libmiscutil.la \
2558 $(SQUID_CPPUNIT_LIBS) \
2559 $(SQUID_CPPUNIT_LA) \
2564 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2565 tests_test_http_range_DEPENDENCIES = \
2568 tests_testHttpParser_SOURCES = \
2574 tests/stub_MemObject.cc \
2581 tests/stub_SBufDetailedStats.cc \
2582 tests/stub_cache_cf.cc \
2583 tests/stub_cache_manager.cc \
2584 tests/stub_comm.cc \
2585 tests/stub_cbdata.cc \
2586 tests/stub_debug.cc \
2587 tests/stub_event.cc \
2588 tests/stub_HelperChildConfig.cc \
2589 tests/stub_stmem.cc \
2590 tests/stub_store.cc \
2591 tests/stub_store_stats.cc \
2593 tests/stub_tools.cc \
2594 tests/testHttpParser.cc \
2595 tests/testHttpParser.h \
2597 tests/stub_time.cc \
2600 nodist_tests_testHttpParser_SOURCES = \
2602 tests_testHttpParser_LDADD= \
2603 http/libsquid-http.la \
2607 $(top_builddir)/lib/libmiscutil.la \
2608 $(SQUID_CPPUNIT_LIBS) \
2611 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2612 tests_testHttpParser_DEPENDENCIES = \
2615 ## Tests of the HttpRequest module.
2616 tests_testHttpRequest_SOURCES = \
2623 HttpRequestMethod.cc \
2627 tests/testHttpRequest.h \
2628 tests/testHttpRequest.cc \
2629 tests/testHttpRequestMethod.h \
2630 tests/testHttpRequestMethod.cc \
2632 tests/stub_DiskIOModule.cc \
2633 tests/stub_libauth.cc \
2634 tests/stub_main_cc.cc \
2635 tests/stub_ipc_Forwarder.cc \
2636 tests/stub_libeui.cc \
2637 tests/stub_store_stats.cc \
2638 tests/stub_EventLoop.cc \
2650 tests/stub_CacheDigest.cc \
2652 tests/stub_carp.cc \
2654 ChunkedCodingParser.cc \
2659 client_side_reply.cc \
2660 client_side_request.cc \
2663 tests/stub_CollapsedForwarding.cc \
2670 $(DELAY_POOL_SOURCE) \
2677 tests/stub_ETag.cc \
2679 ExternalACLEntry.cc \
2681 tests/stub_fatal.cc \
2689 FtpGatewayServer.h \
2690 FtpGatewayServer.cc \
2698 HelperChildConfig.h \
2699 HelperChildConfig.cc \
2709 HttpHeaderFieldInfo.h \
2711 HttpHeaderTools.cc \
2712 HttpHeaderFieldStat.h \
2716 HttpHdrContRange.cc \
2719 HttpHdrScTarget.cc \
2751 peer_proxy_negotiate_auth.h \
2752 peer_proxy_negotiate_auth.cc \
2755 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 \
2966 tests/stub_HttpReply.cc \
2967 tests/stub_HttpRequest.cc \
2968 tests/stub_libcomm.cc \
2969 tests/stub_MemStore.cc \
2971 tests/stub_mime.cc \
2972 tests/stub_Port.cc \
2973 tests/stub_stat.cc \
2974 tests/stub_store_client.cc \
2975 tests/stub_store_stats.cc \
2977 tests/stub_store_rebuild.cc \
2978 tests/stub_store_swapout.cc \
2981 tests/stub_tools.cc \
2982 tests/stub_UdsOp.cc \
2984 tests/testStore.cc \
2986 tests/testStoreEntryStream.cc \
2987 tests/testStoreEntryStream.h \
2988 tests/testStoreController.cc \
2989 tests/testStoreController.h \
2990 tests/testStoreHashIndex.cc \
2991 tests/testStoreHashIndex.h \
2992 tests/testStoreSupport.cc \
2993 tests/testStoreSupport.h \
2994 tests/TestSwapDir.cc \
2995 tests/TestSwapDir.h \
2996 tests/stub_time.cc \
3001 nodist_tests_testStore_SOURCES= \
3007 tests_testStore_LDADD= \
3008 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_pconn.cc \
3109 tests/stub_Port.cc \
3110 tests/stub_UdsOp.cc \
3112 tests/stub_internal.cc \
3113 tests/stub_libformat.cc \
3114 tests/stub_stat.cc \
3116 tests/stub_store_rebuild.cc \
3117 tests/stub_store_stats.cc \
3119 tests/stub_fatal.cc \
3144 StoreSwapLogData.cc \
3146 StoreMetaUnpacker.cc \
3147 $(STOREMETA_SOURCE) \
3148 StoreFileSystem.cc \
3155 $(DELAY_POOL_SOURCE) \
3157 tests/stub_CacheDigest.cc \
3165 HttpRequestMethod.cc \
3174 tests/stub_cache_cf.cc \
3175 tests/stub_helper.cc \
3178 SBufDetailedStats.h \
3179 tests/stub_SBufDetailedStats.cc \
3181 tests/stub_debug.cc \
3182 tests/stub_client_side_request.cc \
3183 tests/stub_http.cc \
3184 tests/stub_libauth.cc \
3188 tests/stub_mime.cc \
3189 HttpHeaderFieldInfo.h \
3191 HttpHeaderTools.cc \
3198 HttpHdrContRange.cc \
3200 HttpHeaderFieldStat.h \
3205 HttpHdrScTarget.cc \
3215 tests/stub_errorpage.cc \
3216 tests/stub_HttpRequest.cc \
3218 tests/stub_access_log.cc \
3221 tests/stub_store_client.cc \
3223 tests/stub_tools.cc \
3224 tests/testStoreSupport.cc \
3225 tests/testStoreSupport.h \
3231 nodist_tests_testUfs_SOURCES = \
3233 $(DISKIO_GEN_SOURCE) \
3237 tests_testUfs_LDADD = \
3238 http/libsquid-http.la \
3240 DnsLookupDetails.o \
3260 $(top_builddir)/lib/libmisccontainers.la \
3261 $(top_builddir)/lib/libmiscencoding.la \
3262 $(top_builddir)/lib/libmiscutil.la \
3265 $(SQUID_CPPUNIT_LIBS) \
3269 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3270 tests_testUfs_DEPENDENCIES = \
3273 check_PROGRAMS += testRefCount
3274 testRefCount_SOURCES= \
3277 tests/stub_cbdata.cc \
3278 tests/stub_debug.cc \
3279 tests/stub_MemBuf.cc \
3280 tests/testRefCount.cc
3281 testRefCount_LDADD = \
3283 $(top_builddir)/lib/libmiscutil.la \
3287 tests_testRock_SOURCES = \
3290 CollapsedForwarding.h \
3291 CollapsedForwarding.cc \
3292 tests/stub_CacheDigest.cc \
3308 HttpHeaderFieldStat.h \
3312 HttpHdrContRange.cc \
3315 HttpHdrScTarget.cc \
3318 HttpHeaderFieldInfo.h \
3320 HttpHeaderTools.cc \
3323 HttpRequestMethod.cc \
3345 tests/stub_StatHist.cc \
3348 tests/stub_stat.cc \
3350 StoreFileSystem.cc \
3352 StoreMetaUnpacker.cc \
3353 $(STOREMETA_SOURCE) \
3354 StoreSwapLogData.cc \
3362 SBufDetailedStats.h \
3363 tests/stub_SBufDetailedStats.cc \
3373 tests/testStoreSupport.cc \
3374 tests/testStoreSupport.h \
3376 tests/stub_access_log.cc \
3379 tests/stub_cache_cf.cc \
3381 tests/stub_cache_manager.cc \
3382 tests/stub_client_db.cc \
3383 tests/stub_client_side_request.cc \
3384 tests/stub_debug.cc \
3385 tests/stub_errorpage.cc \
3386 tests/stub_HelperChildConfig.cc \
3387 tests/stub_http.cc \
3388 tests/stub_HttpRequest.cc \
3389 tests/stub_libauth.cc \
3392 tests/stub_ipcache.cc \
3393 tests/stub_libeui.cc \
3394 tests/stub_libformat.cc \
3395 tests/stub_libicmp.cc \
3396 tests/stub_libmgr.cc \
3397 tests/stub_MemStore.cc \
3399 tests/stub_mime.cc \
3400 tests/stub_Port.cc \
3401 tests/stub_pconn.cc \
3402 tests/stub_store_client.cc \
3404 tests/stub_store_rebuild.cc \
3405 tests/stub_store_stats.cc \
3407 tests/stub_tools.cc \
3412 $(DELAY_POOL_SOURCE) \
3415 nodist_tests_testRock_SOURCES = \
3416 $(DISKIO_GEN_SOURCE) \
3421 tests_testRock_LDADD = \
3422 http/libsquid-http.la \
3439 $(top_builddir)/lib/libmisccontainers.la \
3440 $(top_builddir)/lib/libmiscencoding.la \
3441 $(top_builddir)/lib/libmiscutil.la \
3444 $(SQUID_CPPUNIT_LIBS) \
3448 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3449 tests_testRock_DEPENDENCIES = \
3452 ## Tests of the URL module.
3453 ## TODO: Trim this down once the insanity is over.
3454 tests_testURL_SOURCES = \
3463 tests/stub_cache_manager.cc \
3465 tests/stub_CacheDigest.cc \
3467 tests/stub_carp.cc \
3469 ChunkedCodingParser.cc \
3474 client_side_reply.cc \
3475 client_side_request.cc \
3478 tests/stub_CollapsedForwarding.cc \
3485 $(DELAY_POOL_SOURCE) \
3488 DiskIO/ReadRequest.cc \
3489 DiskIO/WriteRequest.cc \
3497 ExternalACLEntry.cc \
3499 tests/stub_fatal.cc \
3509 FtpGatewayServer.h \
3510 FtpGatewayServer.cc \
3518 HelperChildConfig.h \
3519 HelperChildConfig.cc \
3527 HttpHeaderFieldStat.h \
3531 HttpHdrContRange.cc \
3534 HttpHdrScTarget.cc \
3537 HttpHeaderFieldInfo.h \
3539 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 \
3838 tests/stub_cache_manager.cc \
3839 tests/stub_comm.cc \
3840 tests/stub_debug.cc \
3841 tests/stub_DelayId.cc \
3842 tests/stub_HelperChildConfig.cc \
3845 tests/stub_MemObject.cc \
3847 tests/stub_mime.cc \
3848 tests/stub_pconn.cc \
3849 tests/stub_stmem.cc \
3851 tests/stub_store.cc \
3852 tests/stub_store_stats.cc \
3854 tests/stub_tools.cc \
3856 tests/testStatHist.cc \
3857 tests/testStatHist.h
3858 nodist_tests_testStatHist_SOURCES = \
3860 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3861 tests_testStatHist_LDADD = \
3863 $(top_builddir)/lib/libmiscutil.la \
3864 $(top_builddir)/lib/libmisccontainers.la \
3865 $(SQUID_CPPUNIT_LIBS) \
3866 $(SQUID_CPPUNIT_LA) \
3868 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3870 TESTS += testHeaders
3872 ## Special Universal .h dependency test script
3873 ## aborts if error encountered
3874 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3875 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3876 ## src/repl/ has no .h files and its own makefile.
3878 CLEANFILES += testHeaders