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)
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 \
487 SBufDetailedStats.h \
488 SBufDetailedStats.cc \
532 StoreMetaUnpacker.cc \
533 StoreMetaUnpacker.h \
534 $(STOREMETA_SOURCE) \
538 StoreSwapLogData.cc \
571 EXTRA_squid_SOURCES = \
572 $(AIO_WIN32_ALL_SOURCES) \
575 $(DELAY_POOL_ALL_SOURCE) \
585 $(WIN32_ALL_SOURCE) \
586 $(LOADABLE_MODULES_SOURCES)
589 client_side_request.cci \
610 CLEANFILES += $(BUILT_SOURCES)
612 nodist_squid_SOURCES = \
613 $(DISKIO_GEN_SOURCE) \
634 http/libsquid-http.la \
635 icmp/libicmp.la icmp/libicmp-core.la \
637 format/libformat.la \
647 $(top_builddir)/lib/libmisccontainers.la \
648 $(top_builddir)/lib/libmiscencoding.la \
649 $(top_builddir)/lib/libmiscutil.la \
656 squid_DEPENDENCIES = \
674 format/libformat.la \
678 if USE_LOADABLE_MODULES
679 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
680 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
681 squid_LDFLAGS = -export-dynamic -dlopen force
682 ## when static module linking is supported and enabled:
683 ## squid_LDFLAGS = -all-static -dlopen self
685 ## LTDL headers require their local include path...
686 INCLUDES += $(INCLTDL)
689 ## Kerberos libraries require their include path...
690 INCLUDES += $(KRB5INCS)
693 unlinkd_SOURCES = unlinkd_daemon.cc
698 recv_announce_SOURCES = recv-announce.cc
700 ## What requires what..
701 ## many things want ACLChecklist.cc
702 ## ACLChecklist.cc wants AuthUserRequest.cc
703 ## ACLChecklist.cc wants AuthScheme.cc
704 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
705 ## ACLProxyAuth.cc wants ACLUserData
706 ## ACLProxyAuth.cc wants ACLRegexData
707 ## cache_cf.cc wants $(AUTH_LIBS)
708 ## cache_cf.cc wants Swapdir
709 ## cache_cf.cc wants AnyP::PortCfg
710 ## client_side wants client_db
711 ## client_db wants SNMP_SOURCE
712 ## snmp_core wants ACLStringData
713 ## SwapDir wants ConfigOption
714 ## tools.cc wants ip/libip.la
715 ## client_side.cc wants ip/libip.la
716 ## mem.cc wants ClientInfo.h
717 ## libbase.la wants cbdata.*
718 ## libbase.la wants MemBuf.*
734 tests/stub_StoreMeta.cc \
735 StoreMetaUnpacker.cc \
742 HelperChildConfig.h \
743 tests/stub_HelperChildConfig.cc \
744 HttpRequestMethod.cc \
770 ufsdump_DEPENDENCIES = \
786 nodist_ufsdump_SOURCES = \
791 squid.conf.documented \
816 include $(srcdir)/tests/Stub.list
825 mk-string-arrays.pl \
826 mk-string-arrays.awk \
833 $(AIO_WIN32_SOURCES) \
834 DiskIO/AIO/async_io.h \
835 DiskIO/AIO/AIODiskFile.cc \
836 DiskIO/AIO/AIODiskFile.h \
837 DiskIO/AIO/AIODiskIOStrategy.cc \
838 DiskIO/AIO/AIODiskIOStrategy.h \
839 DiskIO/AIO/AIODiskIOModule.cc \
840 DiskIO/AIO/AIODiskIOModule.h
842 libBlocking_a_SOURCES = \
843 DiskIO/Blocking/BlockingFile.cc \
844 DiskIO/Blocking/BlockingFile.h \
845 DiskIO/Blocking/BlockingIOStrategy.cc \
846 DiskIO/Blocking/BlockingIOStrategy.h \
847 DiskIO/Blocking/BlockingDiskIOModule.cc \
848 DiskIO/Blocking/BlockingDiskIOModule.h
850 libMmapped_a_SOURCES = \
851 DiskIO/Mmapped/MmappedFile.cc \
852 DiskIO/Mmapped/MmappedFile.h \
853 DiskIO/Mmapped/MmappedIOStrategy.cc \
854 DiskIO/Mmapped/MmappedIOStrategy.h \
855 DiskIO/Mmapped/MmappedDiskIOModule.cc \
856 DiskIO/Mmapped/MmappedDiskIOModule.h
858 libIpcIo_a_SOURCES = \
859 DiskIO/IpcIo/IpcIoFile.cc \
860 DiskIO/IpcIo/IpcIoFile.h \
861 DiskIO/IpcIo/IpcIoIOStrategy.cc \
862 DiskIO/IpcIo/IpcIoIOStrategy.h \
863 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
864 DiskIO/IpcIo/IpcIoDiskIOModule.h
866 libDiskDaemon_a_SOURCES = \
867 DiskIO/DiskDaemon/DiskdFile.cc \
868 DiskIO/DiskDaemon/DiskdFile.h \
869 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
870 DiskIO/DiskDaemon/DiskdIOStrategy.h \
871 DiskIO/DiskDaemon/diomsg.h \
872 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
873 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
874 DiskIO/DiskDaemon/DiskdAction.cc \
875 DiskIO/DiskDaemon/DiskdAction.h
877 libDiskThreads_a_SOURCES = \
879 DiskIO/DiskThreads/async_io.cc \
880 DiskIO/DiskThreads/DiskThreads.h \
881 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
882 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
883 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
884 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
885 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
886 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
888 EXTRA_libDiskThreads_a_SOURCES = \
889 DiskIO/DiskThreads/aiops.cc \
890 DiskIO/DiskThreads/aiops_win32.cc \
891 DiskIO/DiskThreads/CommIO.cc \
892 DiskIO/DiskThreads/CommIO.h
894 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
895 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
896 DiskIO_DiskDaemon_diskd_LDADD = \
897 $(top_builddir)/lib/libmisccontainers.la \
898 $(top_builddir)/lib/libmiscencoding.la \
899 $(top_builddir)/lib/libmiscutil.la \
904 DEFAULT_HTTP_PORT = 3128
905 DEFAULT_ICP_PORT = 3130
906 DEFAULT_PREFIX = $(prefix)
907 DEFAULT_CONFIG_DIR = $(sysconfdir)
908 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
909 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
910 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
911 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
912 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
913 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
914 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
915 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
916 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
917 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
921 DEFAULT_ICON_DIR = $(datadir)/icons
922 DEFAULT_ERROR_DIR = $(datadir)/errors
924 # Make location configure settings available to the code
925 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
927 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
929 globals.cc: globals.h mk-globals-c.awk
930 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
932 ## Generate files containing string arrays for various enums....
933 hier_code.cc: hier_code.h mk-string-arrays.awk
934 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
936 err_type.cc: err_type.h mk-string-arrays.awk
937 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
939 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
940 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
942 LogTags.cc: LogTags.h mk-string-arrays.awk
943 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
945 lookup_t.cc: lookup_t.h mk-string-arrays.awk
946 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
948 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
949 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
951 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
952 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
955 ## other generated files...
957 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
958 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
960 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
961 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
963 ## If autodependency works well this is not needed anymore
964 cache_cf.o: cf_parser.cci
966 # cf_gen builds the configuration files.
967 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
968 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
970 # squid.conf.default is built by cf_gen when making cf_parser.cci
971 squid.conf.default squid.conf.documented: cf_parser.cci
974 cf_parser.cci: cf.data cf_gen$(EXEEXT)
975 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
977 # The cf_gen_defines.cci is auto-generated and does not exist when the
978 # dependencies computed. We need to add its include files (autoconf.h) here
979 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
980 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
983 ## FIXME: generate a sed command file from configure. Then this doesn't
984 ## depend on the Makefile.
985 cf.data: cf.data.pre Makefile
987 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
988 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
989 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
990 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
991 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
992 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
993 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
994 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
995 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
996 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
997 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
998 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
999 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1000 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1001 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1002 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1003 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1004 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1005 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1006 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1007 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1008 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1009 < $(srcdir)/cf.data.pre >$@
1011 repl_modules.cc: repl_modules.sh Makefile
1012 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1014 include $(top_srcdir)/doc/manuals/Substitute.am
1016 squid.8: $(srcdir)/squid.8.in Makefile
1017 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1020 EXTRA_DIST += squid.8.in
1021 CLEANFILES += squid.8
1023 install-data-local: install-sysconfDATA install-dataDATA
1024 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1025 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1027 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1028 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1030 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1031 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1033 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1034 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1036 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1037 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1038 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1039 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1040 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1041 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1042 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1044 uninstall-local: squid.conf.default
1045 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1046 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1048 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1049 DiskIO/DiskIOModules_gen.cc \
1052 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1053 cp $(top_srcdir)/test-suite/test_tools.cc .
1055 # stock tools for unit tests - library independent versions of dlink_list
1057 # globals.cc is needed by test_tools.cc.
1058 # Neither of these should be disted from here.
1065 tests/testBoilerplate \
1066 tests/testCacheManager \
1069 tests/testEventLoop \
1070 tests/test_http_range \
1071 tests/testHttpParser \
1072 tests/testHttpReply \
1073 tests/testHttpRequest \
1078 tests/testSBufList \
1079 tests/testConfigParser \
1083 check_PROGRAMS += tests/testRock
1086 check_PROGRAMS += tests/testUfs
1089 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1090 TESTS += $(check_PROGRAMS)
1092 ### Template for new Unit Test Program
1093 ## - add tests/testX to check_PROGRAMS above.
1094 ## - copy template below and substitue X for class name
1095 ## - add other component .(h|cc) files needed to link and run tests
1097 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1099 #tests_testX_SOURCES=\
1102 # tests/testMain.cc \
1105 #nodist_tests_testX_SOURCES=\
1107 #tests_testX_LDFLAGS = $(LIBADD_DL)
1108 #tests_testX_LDADD=\
1109 # $(SQUID_CPPUNIT_LIBS) \
1110 # $(SQUID_CPPUNIT_LA) \
1112 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1115 # - add other component .(h|cc) files needed to link and run tests
1116 tests_testHttpReply_SOURCES=\
1120 tests/stub_ETag.cc \
1122 tests/stub_fatal.cc \
1125 HttpHeaderFieldStat.h \
1129 HttpHdrContRange.cc \
1130 HttpHdrContRange.h \
1134 HttpHdrScTarget.cc \
1139 HttpHeaderFieldInfo.h \
1141 HttpHeaderTools.cc \
1162 SBufDetailedStats.h \
1163 tests/stub_SBufDetailedStats.cc \
1168 tests/stub_access_log.cc \
1171 tests/stub_cache_cf.cc \
1172 tests/stub_cache_manager.cc \
1173 tests/stub_debug.cc \
1174 tests/stub_errorpage.cc \
1175 tests/stub_HelperChildConfig.cc \
1176 tests/stub_libformat.cc \
1177 tests/stub_libauth.cc \
1181 tests/stub_StatHist.cc \
1183 tests/stub_store.cc \
1184 tests/stub_store_stats.cc \
1186 tests/stub_tools.cc \
1187 tests/stub_HttpRequest.cc \
1188 tests/testHttpReply.cc \
1189 tests/testHttpReply.h \
1191 tests/stub_time.cc \
1195 nodist_tests_testHttpReply_SOURCES=\
1197 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1198 tests_testHttpReply_LDADD=\
1199 http/libsquid-http.la \
1207 $(top_builddir)/lib/libmisccontainers.la \
1208 $(top_builddir)/lib/libmiscencoding.la \
1209 $(top_builddir)/lib/libmiscutil.la \
1210 $(SQUID_CPPUNIT_LIBS) \
1211 $(SQUID_CPPUNIT_LA) \
1215 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1217 tests_testACLMaxUserIP_SOURCES= \
1220 tests/stub_CollapsedForwarding.cc \
1223 DiskIO/ReadRequest.cc \
1224 DiskIO/WriteRequest.cc \
1225 tests/stub_ETag.cc \
1228 tests/stub_fatal.cc \
1231 HelperChildConfig.h \
1232 HelperChildConfig.cc \
1236 HttpHeaderFieldInfo.h \
1238 HttpHeaderTools.cc \
1239 HttpHdrContRange.cc \
1241 HttpHeaderFieldStat.h \
1246 HttpHdrScTarget.cc \
1248 HttpRequestMethod.cc \
1266 tests/stub_StatHist.cc \
1269 SBufDetailedStats.h \
1270 tests/stub_SBufDetailedStats.cc \
1274 tests/stub_StoreMeta.cc \
1275 StoreMetaUnpacker.cc \
1276 StoreSwapLogData.cc \
1281 tests/stub_SwapDir.cc \
1285 tests/stub_access_log.cc \
1288 tests/stub_cache_cf.cc \
1289 tests/stub_client_side.cc \
1290 tests/stub_debug.cc \
1291 tests/stub_DelayId.cc \
1292 tests/stub_DiskIOModule.cc \
1293 tests/stub_errorpage.cc \
1296 tests/stub_HttpRequest.cc \
1297 tests/stub_HttpReply.cc \
1298 tests/stub_ipc_TypedMsgHdr.cc \
1299 tests/stub_libauth.cc \
1300 tests/stub_libcomm.cc \
1301 tests/stub_libformat.cc \
1302 tests/stub_libsslsquid.cc \
1303 tests/stub_MemObject.cc \
1304 tests/stub_MemStore.cc \
1306 tests/stub_mime.cc \
1307 tests/stub_pconn.cc \
1308 tests/stub_Port.cc \
1310 tests/stub_store.cc \
1311 tests/stub_store_client.cc \
1313 tests/stub_store_rebuild.cc \
1314 tests/stub_store_stats.cc \
1315 tests/stub_store_swapout.cc \
1317 tests/stub_tools.cc \
1318 tests/stub_cache_manager.cc \
1319 tests/stub_UdsOp.cc \
1320 tests/testACLMaxUserIP.cc \
1321 tests/testACLMaxUserIP.h \
1323 tests/stub_time.cc \
1331 nodist_tests_testACLMaxUserIP_SOURCES= \
1333 tests_testACLMaxUserIP_LDADD= \
1334 http/libsquid-http.la \
1347 $(top_builddir)/lib/libmisccontainers.la \
1348 $(top_builddir)/lib/libmiscencoding.la \
1349 $(top_builddir)/lib/libmiscutil.la \
1352 $(SQUID_CPPUNIT_LIBS) \
1356 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1357 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1358 ## $(SQUID_CPPUNIT_LA)
1360 ## a demonstration test that does nothing but shows the salient points
1361 ## involved in writing tests.
1362 tests_testBoilerplate_SOURCES = \
1363 tests/testBoilerplate.cc \
1365 tests/testBoilerplate.h \
1367 nodist_tests_testBoilerplate_SOURCES = \
1369 tests_testBoilerplate_LDADD= \
1370 $(SQUID_CPPUNIT_LIBS) \
1374 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1375 tests_testBoilerplate_DEPENDENCIES = \
1378 ## Tests of the CacheManager module.
1379 tests_testCacheManager_SOURCES = \
1387 HttpRequestMethod.cc \
1391 tests/testCacheManager.cc \
1392 tests/testCacheManager.h \
1394 tests/stub_main_cc.cc \
1395 tests/stub_ipc_Forwarder.cc \
1396 tests/stub_store_stats.cc \
1397 tests/stub_EventLoop.cc \
1408 tests/stub_CacheDigest.cc \
1410 tests/stub_carp.cc \
1412 ChunkedCodingParser.cc \
1417 client_side_reply.cc \
1418 client_side_request.cc \
1421 tests/stub_CollapsedForwarding.cc \
1428 $(DELAY_POOL_SOURCE) \
1436 tests/stub_ETag.cc \
1439 ExternalACLEntry.cc \
1441 tests/stub_fatal.cc \
1457 HelperChildConfig.h \
1458 HelperChildConfig.cc \
1468 HttpHeaderFieldInfo.h \
1470 HttpHeaderTools.cc \
1471 HttpHeaderFieldStat.h \
1475 HttpHdrContRange.cc \
1478 HttpHdrScTarget.cc \
1510 peer_proxy_negotiate_auth.h \
1511 peer_proxy_negotiate_auth.cc \
1514 peer_sourcehash.cc \
1518 tests/stub_redirect.cc \
1524 SBufDetailedStats.h \
1525 tests/stub_SBufDetailedStats.cc \
1537 tests/stub_libauth_acls.cc \
1538 tests/stub_libauth.cc \
1539 tests/stub_StatHist.cc \
1545 tests/stub_store_digest.cc \
1558 StoreFileSystem.cc \
1560 tests/stub_StoreMeta.cc \
1561 StoreMetaUnpacker.cc \
1562 StoreSwapLogData.cc \
1566 tests/stub_tunnel.cc \
1567 tests/stub_SwapDir.cc \
1574 tests/stub_wccp2.cc \
1576 tests/stub_whois.cc \
1581 nodist_tests_testCacheManager_SOURCES = \
1583 $(DISKIO_GEN_SOURCE)
1584 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1585 tests_testCacheManager_LDADD = \
1586 http/libsquid-http.la \
1597 icmp/libicmp.la icmp/libicmp-core.la \
1599 format/libformat.la \
1603 $(ADAPTATION_LIBS) \
1610 $(top_builddir)/lib/libmisccontainers.la \
1611 $(top_builddir)/lib/libmiscencoding.la \
1612 $(top_builddir)/lib/libmiscutil.la \
1614 $(SQUID_CPPUNIT_LIBS) \
1615 $(SQUID_CPPUNIT_LA) \
1620 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1621 tests_testCacheManager_DEPENDENCIES = \
1625 tests_testDiskIO_SOURCES = \
1627 tests/stub_CacheDigest.cc \
1631 tests/stub_CollapsedForwarding.cc \
1634 $(DELAY_POOL_SOURCE) \
1638 tests/stub_ETag.cc \
1642 tests/stub_fatal.cc \
1651 HttpHeaderFieldStat.h \
1655 HttpHdrContRange.cc \
1657 HttpHdrScTarget.cc \
1659 HttpHeaderFieldInfo.h \
1661 HttpHeaderTools.cc \
1666 HttpRequestMethod.cc \
1690 tests/stub_StatHist.cc \
1693 SBufDetailedStats.h \
1694 tests/stub_SBufDetailedStats.cc \
1695 StoreFileSystem.cc \
1697 tests/stub_StoreMeta.cc \
1698 StoreMetaUnpacker.cc \
1699 StoreSwapLogData.cc \
1711 tests/stub_SwapDir.cc \
1714 tests/stub_access_log.cc \
1718 tests/stub_cache_cf.cc \
1719 tests/stub_cache_manager.cc \
1720 tests/stub_client_db.cc \
1721 client_side_request.h \
1722 tests/stub_client_side_request.cc \
1723 tests/stub_debug.cc \
1724 tests/stub_errorpage.cc \
1725 tests/stub_helper.cc \
1726 tests/stub_HelperChildConfig.cc \
1727 tests/stub_HttpRequest.cc \
1728 tests/stub_http.cc \
1731 tests/stub_internal.cc \
1733 tests/stub_ipcache.cc \
1734 tests/stub_libauth_acls.cc \
1735 tests/stub_libauth.cc \
1736 tests/stub_libeui.cc \
1737 tests/stub_libformat.cc \
1738 tests/stub_libicmp.cc \
1739 tests/stub_MemStore.cc \
1741 tests/stub_mime.cc \
1742 tests/stub_pconn.cc \
1743 tests/stub_Port.cc \
1744 tests/stub_stat.cc \
1745 tests/stub_store_client.cc \
1746 tests/stub_store_stats.cc \
1748 tests/stub_store_rebuild.cc \
1749 tests/stub_UdsOp.cc \
1750 tests/testDiskIO.cc \
1751 tests/testDiskIO.h \
1753 tests/testStoreSupport.cc \
1754 tests/testStoreSupport.h \
1755 tests/stub_time.cc \
1763 nodist_tests_testDiskIO_SOURCES= \
1765 $(DISKIO_GEN_SOURCE) \
1769 tests_testDiskIO_LDADD = \
1770 http/libsquid-http.la \
1773 DnsLookupDetails.o \
1791 $(top_builddir)/lib/libmisccontainers.la \
1792 $(top_builddir)/lib/libmiscencoding.la \
1793 $(top_builddir)/lib/libmiscutil.la \
1795 $(SQUID_CPPUNIT_LIBS) \
1800 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1801 tests_testDiskIO_DEPENDENCIES = \
1806 ## Tests of the Even module.
1807 tests_testEvent_SOURCES = \
1811 tests/stub_CacheDigest.cc \
1820 tests/stub_carp.cc \
1822 ChunkedCodingParser.cc \
1827 client_side_reply.cc \
1828 client_side_request.cc \
1831 tests/stub_CollapsedForwarding.cc \
1839 $(DELAY_POOL_SOURCE) \
1847 tests/stub_ETag.cc \
1852 ExternalACLEntry.cc \
1855 tests/stub_fatal.cc \
1870 HelperChildConfig.h \
1871 HelperChildConfig.cc \
1881 HttpHeaderFieldInfo.h \
1883 HttpHeaderTools.cc \
1884 HttpHeaderFieldStat.h \
1888 HttpHdrContRange.cc \
1891 HttpHdrScTarget.cc \
1899 HttpRequestMethod.cc \
1931 peer_proxy_negotiate_auth.h \
1932 peer_proxy_negotiate_auth.cc \
1935 peer_sourcehash.cc \
1939 tests/stub_redirect.cc \
1947 SBufDetailedStats.h \
1948 tests/stub_SBufDetailedStats.cc \
1964 tests/stub_store_digest.cc \
1977 StoreFileSystem.cc \
1979 tests/stub_StoreMeta.cc \
1980 StoreMetaUnpacker.cc \
1981 StoreSwapLogData.cc \
1983 tests/stub_SwapDir.cc \
1984 tests/CapturingStoreEntry.h \
1985 tests/testEvent.cc \
1988 tests/stub_main_cc.cc \
1989 tests/stub_ipc_Forwarder.cc \
1990 tests/stub_libauth_acls.cc \
1991 tests/stub_libauth.cc \
1992 tests/stub_libeui.cc \
1993 tests/stub_store_stats.cc \
1998 tests/stub_tunnel.cc \
2005 tests/stub_wccp2.cc \
2007 tests/stub_whois.cc \
2011 nodist_tests_testEvent_SOURCES = \
2013 $(DISKIO_GEN_SOURCE)
2014 tests_testEvent_LDADD = \
2015 http/libsquid-http.la \
2025 icmp/libicmp.la icmp/libicmp-core.la \
2028 format/libformat.la \
2030 $(ADAPTATION_LIBS) \
2033 $(top_builddir)/lib/libmisccontainers.la \
2034 $(top_builddir)/lib/libmiscencoding.la \
2035 $(top_builddir)/lib/libmiscutil.la \
2042 $(SQUID_CPPUNIT_LIBS) \
2043 $(SQUID_CPPUNIT_LA) \
2048 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2049 tests_testEvent_DEPENDENCIES = \
2053 ## Tests of the EventLoop module.
2054 tests_testEventLoop_SOURCES = \
2058 tests/stub_CacheDigest.cc \
2067 tests/stub_carp.cc \
2069 ChunkedCodingParser.cc \
2074 client_side_reply.cc \
2075 client_side_request.cc \
2078 tests/stub_CollapsedForwarding.cc \
2086 $(DELAY_POOL_SOURCE) \
2094 tests/stub_ETag.cc \
2099 ExternalACLEntry.cc \
2102 tests/stub_fatal.cc \
2117 HelperChildConfig.h \
2118 HelperChildConfig.cc \
2128 HttpHeaderFieldInfo.h \
2130 HttpHeaderTools.cc \
2131 HttpHeaderFieldStat.h \
2135 HttpHdrContRange.cc \
2138 HttpHdrScTarget.cc \
2146 HttpRequestMethod.cc \
2178 peer_proxy_negotiate_auth.h \
2179 peer_proxy_negotiate_auth.cc \
2182 peer_sourcehash.cc \
2187 tests/stub_redirect.cc \
2192 SBufDetailedStats.h \
2193 tests/stub_SBufDetailedStats.cc \
2210 tests/stub_store_digest.cc \
2223 StoreFileSystem.cc \
2225 tests/stub_StoreMeta.cc \
2226 StoreMetaUnpacker.cc \
2227 StoreSwapLogData.cc \
2231 tests/stub_SwapDir.cc \
2232 tests/testEventLoop.cc \
2233 tests/testEventLoop.h \
2235 tests/stub_main_cc.cc \
2236 tests/stub_ipc_Forwarder.cc \
2237 tests/stub_libauth_acls.cc \
2238 tests/stub_libauth.cc \
2239 tests/stub_libeui.cc \
2240 tests/stub_store_stats.cc \
2245 tests/stub_tunnel.cc \
2252 tests/stub_wccp2.cc \
2254 tests/stub_whois.cc \
2258 nodist_tests_testEventLoop_SOURCES = \
2260 $(DISKIO_GEN_SOURCE)
2261 tests_testEventLoop_LDADD = \
2262 http/libsquid-http.la \
2272 icmp/libicmp.la icmp/libicmp-core.la \
2275 format/libformat.la \
2277 $(ADAPTATION_LIBS) \
2280 $(top_builddir)/lib/libmisccontainers.la \
2281 $(top_builddir)/lib/libmiscencoding.la \
2282 $(top_builddir)/lib/libmiscutil.la \
2289 $(SQUID_CPPUNIT_LIBS) \
2290 $(SQUID_CPPUNIT_LA) \
2295 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2296 tests_testEventLoop_DEPENDENCIES = \
2300 tests_test_http_range_SOURCES = \
2311 tests/stub_CacheDigest.cc \
2313 tests/stub_carp.cc \
2315 ChunkedCodingParser.cc \
2320 client_side_reply.cc \
2321 client_side_request.cc \
2324 tests/stub_CollapsedForwarding.cc \
2332 $(DELAY_POOL_SOURCE) \
2340 tests/stub_ETag.cc \
2344 tests/stub_libauth.cc \
2345 tests/stub_fatal.cc \
2360 HelperChildConfig.h \
2361 HelperChildConfig.cc \
2369 HttpHeaderFieldStat.h \
2373 HttpHdrContRange.cc \
2376 HttpHdrScTarget.cc \
2379 HttpHeaderFieldInfo.h \
2381 HttpHeaderTools.cc \
2389 HttpRequestMethod.cc \
2420 peer_proxy_negotiate_auth.h \
2421 peer_proxy_negotiate_auth.cc \
2424 peer_sourcehash.cc \
2429 tests/stub_redirect.cc \
2435 SBufDetailedStats.h \
2436 tests/stub_SBufDetailedStats.cc \
2452 tests/stub_store_digest.cc \
2465 StoreFileSystem.cc \
2467 tests/stub_StoreMeta.cc \
2468 StoreMetaUnpacker.cc \
2469 StoreSwapLogData.cc \
2473 tests/stub_SwapDir.cc \
2475 tests/test_http_range.cc \
2476 tests/stub_external_acl.cc \
2477 tests/stub_ipc_Forwarder.cc \
2478 tests/stub_libeui.cc \
2479 tests/stub_main_cc.cc \
2480 tests/stub_MemStore.cc \
2481 tests/stub_store_stats.cc \
2482 tests/stub_EventLoop.cc \
2486 tests/stub_tunnel.cc \
2492 tests/stub_wccp2.cc \
2494 tests/stub_whois.cc \
2498 nodist_tests_test_http_range_SOURCES = \
2500 $(DISKIO_GEN_SOURCE)
2501 tests_test_http_range_LDADD = \
2502 http/libsquid-http.la \
2511 icmp/libicmp.la icmp/libicmp-core.la \
2514 format/libformat.la \
2518 $(ADAPTATION_LIBS) \
2525 $(top_builddir)/lib/libmisccontainers.la \
2526 $(top_builddir)/lib/libmiscencoding.la \
2527 $(top_builddir)/lib/libmiscutil.la \
2529 $(SQUID_CPPUNIT_LIBS) \
2530 $(SQUID_CPPUNIT_LA) \
2535 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2536 tests_test_http_range_DEPENDENCIES = \
2539 tests_testHttpParser_SOURCES = \
2545 tests/stub_MemObject.cc \
2552 tests/stub_SBufDetailedStats.cc \
2553 tests/stub_cache_cf.cc \
2554 tests/stub_cache_manager.cc \
2555 tests/stub_comm.cc \
2556 tests/stub_cbdata.cc \
2557 tests/stub_debug.cc \
2558 tests/stub_event.cc \
2559 tests/stub_HelperChildConfig.cc \
2560 tests/stub_stmem.cc \
2561 tests/stub_store.cc \
2562 tests/stub_store_stats.cc \
2564 tests/stub_tools.cc \
2565 tests/testHttpParser.cc \
2566 tests/testHttpParser.h \
2568 tests/stub_time.cc \
2571 nodist_tests_testHttpParser_SOURCES = \
2573 tests_testHttpParser_LDADD= \
2574 http/libsquid-http.la \
2578 $(top_builddir)/lib/libmiscutil.la \
2579 $(SQUID_CPPUNIT_LIBS) \
2582 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2583 tests_testHttpParser_DEPENDENCIES = \
2586 ## Tests of the HttpRequest module.
2587 tests_testHttpRequest_SOURCES = \
2594 HttpRequestMethod.cc \
2598 tests/testHttpRequest.h \
2599 tests/testHttpRequest.cc \
2600 tests/testHttpRequestMethod.h \
2601 tests/testHttpRequestMethod.cc \
2603 tests/stub_DiskIOModule.cc \
2604 tests/stub_libauth.cc \
2605 tests/stub_main_cc.cc \
2606 tests/stub_ipc_Forwarder.cc \
2607 tests/stub_libeui.cc \
2608 tests/stub_store_stats.cc \
2609 tests/stub_EventLoop.cc \
2621 tests/stub_CacheDigest.cc \
2623 tests/stub_carp.cc \
2625 ChunkedCodingParser.cc \
2630 client_side_reply.cc \
2631 client_side_request.cc \
2634 tests/stub_CollapsedForwarding.cc \
2641 $(DELAY_POOL_SOURCE) \
2648 tests/stub_ETag.cc \
2650 ExternalACLEntry.cc \
2652 tests/stub_fatal.cc \
2665 HelperChildConfig.h \
2666 HelperChildConfig.cc \
2676 HttpHeaderFieldInfo.h \
2678 HttpHeaderTools.cc \
2679 HttpHeaderFieldStat.h \
2683 HttpHdrContRange.cc \
2686 HttpHdrScTarget.cc \
2718 peer_proxy_negotiate_auth.h \
2719 peer_proxy_negotiate_auth.cc \
2722 peer_sourcehash.cc \
2726 tests/stub_libauth_acls.cc \
2727 tests/stub_redirect.cc \
2733 SBufDetailedStats.h \
2734 tests/stub_SBufDetailedStats.cc \
2750 tests/stub_store_digest.cc \
2763 StoreFileSystem.cc \
2765 tests/stub_StoreMeta.cc \
2766 StoreMetaUnpacker.cc \
2767 StoreSwapLogData.cc \
2774 tests/stub_tunnel.cc \
2775 tests/stub_SwapDir.cc \
2781 tests/stub_wccp2.cc \
2783 tests/stub_whois.cc \
2788 nodist_tests_testHttpRequest_SOURCES = \
2790 tests_testHttpRequest_LDADD = \
2804 icmp/libicmp.la icmp/libicmp-core.la \
2807 format/libformat.la \
2808 http/libsquid-http.la \
2810 $(ADAPTATION_LIBS) \
2812 $(top_builddir)/lib/libmisccontainers.la \
2813 $(top_builddir)/lib/libmiscencoding.la \
2814 $(top_builddir)/lib/libmiscutil.la \
2817 $(SQUID_CPPUNIT_LIBS) \
2818 $(SQUID_CPPUNIT_LA) \
2823 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2824 tests_testHttpRequest_DEPENDENCIES = \
2828 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2829 ## first line - what we are testing.
2830 tests_testStore_SOURCES= \
2832 tests/stub_CacheDigest.cc \
2835 tests/stub_CollapsedForwarding.cc \
2838 $(DELAY_POOL_SOURCE) \
2841 DiskIO/ReadRequest.cc \
2842 DiskIO/WriteRequest.cc \
2847 tests/stub_fatal.cc \
2850 HttpHeaderFieldStat.h \
2854 HttpHdrContRange.cc \
2857 HttpHdrScTarget.cc \
2858 HttpHeaderFieldInfo.h \
2860 HttpHeaderTools.cc \
2864 HttpRequestMethod.cc \
2896 tests/stub_StoreMeta.cc \
2897 StoreMetaUnpacker.cc \
2898 StoreSwapLogData.cc \
2902 SBufDetailedStats.h \
2903 tests/stub_SBufDetailedStats.cc \
2908 tests/CapturingStoreEntry.h \
2910 tests/stub_access_log.cc \
2914 tests/stub_cache_cf.cc \
2915 tests/stub_cache_manager.cc \
2916 tests/stub_client_side_request.cc \
2917 tests/stub_comm.cc \
2918 tests/stub_debug.cc \
2919 tests/stub_DiskIOModule.cc \
2920 tests/stub_errorpage.cc \
2924 tests/stub_helper.cc \
2925 tests/stub_HelperChildConfig.cc \
2926 tests/stub_http.cc \
2927 tests/stub_libauth.cc \
2928 tests/stub_libeui.cc \
2929 tests/stub_libformat.cc \
2932 tests/stub_HttpReply.cc \
2933 tests/stub_HttpRequest.cc \
2934 tests/stub_libcomm.cc \
2935 tests/stub_MemStore.cc \
2937 tests/stub_mime.cc \
2938 tests/stub_Port.cc \
2939 tests/stub_stat.cc \
2940 tests/stub_store_client.cc \
2941 tests/stub_store_stats.cc \
2943 tests/stub_store_rebuild.cc \
2944 tests/stub_store_swapout.cc \
2947 tests/stub_tools.cc \
2948 tests/stub_UdsOp.cc \
2950 tests/testStore.cc \
2952 tests/testStoreEntryStream.cc \
2953 tests/testStoreEntryStream.h \
2954 tests/testStoreController.cc \
2955 tests/testStoreController.h \
2956 tests/testStoreHashIndex.cc \
2957 tests/testStoreHashIndex.h \
2958 tests/testStoreSupport.cc \
2959 tests/testStoreSupport.h \
2960 tests/TestSwapDir.cc \
2961 tests/TestSwapDir.h \
2962 tests/stub_time.cc \
2967 nodist_tests_testStore_SOURCES= \
2973 tests_testStore_LDADD= \
2974 http/libsquid-http.la \
2987 $(top_builddir)/lib/libmisccontainers.la \
2988 $(top_builddir)/lib/libmiscencoding.la \
2989 $(top_builddir)/lib/libmiscutil.la \
2991 $(SQUID_CPPUNIT_LIBS) \
2994 DnsLookupDetails.o \
2997 tests_testStore_LDFLAGS = $(LIBADD_DL)
2998 tests_testStore_DEPENDENCIES = \
3001 ## string needs mem.cc.
3002 ## mem.cc needs ClientInfo.h
3003 ## libsquid pulls in SquidConfig and children. stub them.
3004 tests_testString_SOURCES = \
3011 SBufDetailedStats.h \
3012 tests/stub_SBufDetailedStats.cc \
3014 tests/testString.cc \
3015 tests/testString.h \
3018 tests/stub_cache_cf.cc \
3019 tests/stub_cache_manager.cc \
3020 tests/stub_debug.cc \
3021 tests/stub_HelperChildConfig.cc \
3023 tests/stub_tools.cc \
3024 tests/stub_time.cc \
3027 nodist_tests_testString_SOURCES = \
3029 tests_testString_LDADD = \
3033 $(top_builddir)/lib/libmiscutil.la \
3035 $(SQUID_CPPUNIT_LIBS) \
3039 tests_testString_LDFLAGS = $(LIBADD_DL)
3040 tests_testString_DEPENDENCIES = \
3059 tests_testUfs_SOURCES = \
3063 tests/stub_cache_manager.cc \
3064 tests/stub_client_db.cc \
3065 tests/stub_CollapsedForwarding.cc \
3066 tests/stub_HelperChildConfig.cc \
3069 tests/stub_ipcache.cc \
3070 tests/stub_libeui.cc \
3071 tests/stub_libicmp.cc \
3072 tests/stub_MemStore.cc \
3073 tests/stub_pconn.cc \
3074 tests/stub_Port.cc \
3075 tests/stub_UdsOp.cc \
3077 tests/stub_internal.cc \
3078 tests/stub_libformat.cc \
3079 tests/stub_stat.cc \
3081 tests/stub_store_rebuild.cc \
3082 tests/stub_store_stats.cc \
3084 tests/stub_fatal.cc \
3109 StoreSwapLogData.cc \
3111 StoreMetaUnpacker.cc \
3112 $(STOREMETA_SOURCE) \
3113 StoreFileSystem.cc \
3120 $(DELAY_POOL_SOURCE) \
3122 tests/stub_CacheDigest.cc \
3130 HttpRequestMethod.cc \
3139 tests/stub_cache_cf.cc \
3140 tests/stub_helper.cc \
3143 SBufDetailedStats.h \
3144 tests/stub_SBufDetailedStats.cc \
3146 tests/stub_debug.cc \
3147 tests/stub_client_side_request.cc \
3148 tests/stub_http.cc \
3149 tests/stub_libauth.cc \
3153 tests/stub_mime.cc \
3154 HttpHeaderFieldInfo.h \
3156 HttpHeaderTools.cc \
3163 HttpHdrContRange.cc \
3165 HttpHeaderFieldStat.h \
3170 HttpHdrScTarget.cc \
3180 tests/stub_errorpage.cc \
3181 tests/stub_HttpRequest.cc \
3183 tests/stub_access_log.cc \
3186 tests/stub_store_client.cc \
3188 tests/stub_tools.cc \
3189 tests/testStoreSupport.cc \
3190 tests/testStoreSupport.h \
3196 nodist_tests_testUfs_SOURCES = \
3198 $(DISKIO_GEN_SOURCE) \
3202 tests_testUfs_LDADD = \
3203 http/libsquid-http.la \
3205 DnsLookupDetails.o \
3225 $(top_builddir)/lib/libmisccontainers.la \
3226 $(top_builddir)/lib/libmiscencoding.la \
3227 $(top_builddir)/lib/libmiscutil.la \
3229 $(SQUID_CPPUNIT_LIBS) \
3233 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3234 tests_testUfs_DEPENDENCIES = \
3237 check_PROGRAMS += testRefCount
3238 testRefCount_SOURCES= \
3241 tests/stub_cbdata.cc \
3242 tests/stub_debug.cc \
3243 tests/stub_MemBuf.cc \
3244 tests/testRefCount.cc
3245 testRefCount_LDADD = \
3247 $(top_builddir)/lib/libmiscutil.la \
3251 tests_testRock_SOURCES = \
3254 CollapsedForwarding.h \
3255 CollapsedForwarding.cc \
3256 tests/stub_CacheDigest.cc \
3272 HttpHeaderFieldStat.h \
3276 HttpHdrContRange.cc \
3279 HttpHdrScTarget.cc \
3282 HttpHeaderFieldInfo.h \
3284 HttpHeaderTools.cc \
3287 HttpRequestMethod.cc \
3309 tests/stub_StatHist.cc \
3312 tests/stub_stat.cc \
3314 StoreFileSystem.cc \
3316 StoreMetaUnpacker.cc \
3317 $(STOREMETA_SOURCE) \
3318 StoreSwapLogData.cc \
3326 SBufDetailedStats.h \
3327 tests/stub_SBufDetailedStats.cc \
3337 tests/testStoreSupport.cc \
3338 tests/testStoreSupport.h \
3340 tests/stub_access_log.cc \
3343 tests/stub_cache_cf.cc \
3345 tests/stub_cache_manager.cc \
3346 tests/stub_client_db.cc \
3347 tests/stub_client_side_request.cc \
3348 tests/stub_debug.cc \
3349 tests/stub_errorpage.cc \
3350 tests/stub_HelperChildConfig.cc \
3351 tests/stub_http.cc \
3352 tests/stub_HttpRequest.cc \
3353 tests/stub_libauth.cc \
3356 tests/stub_ipcache.cc \
3357 tests/stub_libeui.cc \
3358 tests/stub_libformat.cc \
3359 tests/stub_libicmp.cc \
3360 tests/stub_libmgr.cc \
3361 tests/stub_MemStore.cc \
3363 tests/stub_mime.cc \
3364 tests/stub_Port.cc \
3365 tests/stub_pconn.cc \
3366 tests/stub_store_client.cc \
3368 tests/stub_store_rebuild.cc \
3369 tests/stub_store_stats.cc \
3371 tests/stub_tools.cc \
3376 $(DELAY_POOL_SOURCE) \
3379 nodist_tests_testRock_SOURCES = \
3380 $(DISKIO_GEN_SOURCE) \
3385 tests_testRock_LDADD = \
3386 http/libsquid-http.la \
3403 $(top_builddir)/lib/libmisccontainers.la \
3404 $(top_builddir)/lib/libmiscencoding.la \
3405 $(top_builddir)/lib/libmiscutil.la \
3407 $(SQUID_CPPUNIT_LIBS) \
3411 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3412 tests_testRock_DEPENDENCIES = \
3415 ## Tests of the URL module.
3416 ## TODO: Trim this down once the insanity is over.
3417 tests_testURL_SOURCES = \
3426 tests/stub_cache_manager.cc \
3428 tests/stub_CacheDigest.cc \
3430 tests/stub_carp.cc \
3432 ChunkedCodingParser.cc \
3437 client_side_reply.cc \
3438 client_side_request.cc \
3441 tests/stub_CollapsedForwarding.cc \
3448 $(DELAY_POOL_SOURCE) \
3451 DiskIO/ReadRequest.cc \
3452 DiskIO/WriteRequest.cc \
3460 ExternalACLEntry.cc \
3462 tests/stub_fatal.cc \
3477 HelperChildConfig.h \
3478 HelperChildConfig.cc \
3486 HttpHeaderFieldStat.h \
3490 HttpHdrContRange.cc \
3493 HttpHdrScTarget.cc \
3496 HttpHeaderFieldInfo.h \
3498 HttpHeaderTools.cc \
3506 HttpRequestMethod.cc \
3538 peer_proxy_negotiate_auth.h \
3539 peer_proxy_negotiate_auth.cc \
3542 peer_sourcehash.cc \
3546 tests/stub_redirect.cc \
3552 SBufDetailedStats.h \
3553 tests/stub_SBufDetailedStats.cc \
3563 tests/stub_StatHist.cc \
3569 tests/stub_store_digest.cc \
3582 StoreFileSystem.cc \
3584 tests/stub_StoreMeta.cc \
3585 StoreMetaUnpacker.cc \
3586 StoreSwapLogData.cc \
3591 tests/stub_SwapDir.cc \
3593 tests/stub_debug.cc \
3594 tests/stub_DiskIOModule.cc \
3595 tests/stub_libauth_acls.cc \
3596 tests/stub_libauth.cc \
3597 tests/stub_main_cc.cc \
3598 tests/stub_ipc_Forwarder.cc \
3599 tests/stub_store_stats.cc \
3602 tests/testUriScheme.cc \
3603 tests/testUriScheme.h \
3605 tests/stub_time.cc \
3606 tests/stub_EventLoop.cc \
3609 tests/stub_tunnel.cc \
3614 tests/stub_wccp2.cc \
3616 tests/stub_whois.cc \
3621 nodist_tests_testURL_SOURCES = \
3623 tests_testURL_LDADD = \
3624 http/libsquid-http.la \
3639 icmp/libicmp.la icmp/libicmp-core.la \
3643 format/libformat.la \
3646 $(ADAPTATION_LIBS) \
3648 $(top_builddir)/lib/libmisccontainers.la \
3649 $(top_builddir)/lib/libmiscencoding.la \
3650 $(top_builddir)/lib/libmiscutil.la \
3652 $(SQUID_CPPUNIT_LIBS) \
3653 $(SQUID_CPPUNIT_LA) \
3658 tests_testURL_LDFLAGS = $(LIBADD_DL)
3659 tests_testURL_DEPENDENCIES = \
3663 tests_testSBuf_SOURCES= \
3667 tests/SBufFindTest.h \
3668 tests/SBufFindTest.cc \
3670 SBufDetailedStats.h \
3671 tests/stub_SBufDetailedStats.cc \
3673 tests/stub_time.cc \
3675 tests/stub_debug.cc \
3676 tests/stub_fatal.cc \
3677 tests/stub_HelperChildConfig.cc \
3678 tests/stub_cache_cf.cc \
3679 tests/stub_cache_manager.cc \
3680 tests/stub_store.cc \
3681 tests/stub_store_stats.cc \
3682 tests/stub_tools.cc \
3685 tests/stub_wordlist.cc \
3686 tests/stub_MemBuf.cc
3687 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3688 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3689 tests_testSBuf_LDADD=\
3694 $(top_builddir)/lib/libmiscutil.la \
3696 $(SQUID_CPPUNIT_LIBS) \
3699 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3701 tests_testSBufList_SOURCES= \
3702 tests/testSBufList.h \
3703 tests/testSBufList.cc \
3709 SBufDetailedStats.h \
3710 tests/stub_SBufDetailedStats.cc \
3712 tests/stub_time.cc \
3714 tests/stub_MemObject.cc \
3715 tests/stub_cbdata.cc \
3716 tests/stub_comm.cc \
3717 tests/stub_debug.cc \
3718 tests/stub_event.cc \
3719 tests/stub_fatal.cc \
3721 tests/stub_HelperChildConfig.cc \
3722 tests/stub_cache_cf.cc \
3723 tests/stub_cache_manager.cc \
3724 tests/stub_store.cc \
3725 tests/stub_stmem.cc \
3726 tests/stub_store_stats.cc \
3727 tests/stub_tools.cc \
3731 tests/stub_wordlist.cc \
3732 tests/stub_MemBuf.cc
3733 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3734 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3735 tests_testSBufList_LDADD=\
3740 $(top_builddir)/lib/libmiscutil.la \
3741 $(SQUID_CPPUNIT_LIBS) \
3744 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3746 tests_testConfigParser_SOURCES = \
3750 tests/stub_MemBuf.cc \
3751 tests/stub_time.cc \
3753 SBufDetailedStats.h \
3754 tests/stub_SBufDetailedStats.cc \
3758 tests/stub_fatal.cc \
3760 tests/testConfigParser.cc \
3761 tests/testConfigParser.h \
3764 tests/stub_cache_cf.cc \
3765 tests/stub_cache_manager.cc \
3766 tests/stub_debug.cc \
3767 tests/stub_HelperChildConfig.cc \
3769 tests/stub_tools.cc \
3772 nodist_tests_testConfigParser_SOURCES = \
3774 tests_testConfigParser_LDADD = \
3778 $(top_builddir)/lib/libmiscutil.la \
3780 $(SQUID_CPPUNIT_LIBS) \
3784 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3785 tests_testConfigParser_DEPENDENCIES = \
3788 tests_testStatHist_SOURCES = \
3789 tests/stub_cbdata.cc \
3791 tests/stub_fatal.cc \
3792 tests/stub_MemBuf.cc \
3796 tests/stub_cache_manager.cc \
3797 tests/stub_comm.cc \
3798 tests/stub_debug.cc \
3799 tests/stub_DelayId.cc \
3800 tests/stub_HelperChildConfig.cc \
3803 tests/stub_MemObject.cc \
3805 tests/stub_mime.cc \
3806 tests/stub_pconn.cc \
3807 tests/stub_stmem.cc \
3809 tests/stub_store.cc \
3810 tests/stub_store_stats.cc \
3812 tests/stub_tools.cc \
3814 tests/testStatHist.cc \
3815 tests/testStatHist.h
3816 nodist_tests_testStatHist_SOURCES = \
3818 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3819 tests_testStatHist_LDADD = \
3821 $(top_builddir)/lib/libmiscutil.la \
3822 $(top_builddir)/lib/libmisccontainers.la \
3823 $(SQUID_CPPUNIT_LIBS) \
3824 $(SQUID_CPPUNIT_LA) \
3826 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3828 TESTS += testHeaders
3830 ## Special Universal .h dependency test script
3831 ## aborts if error encountered
3832 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3833 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3834 ## src/repl/ has no .h files and its own makefile.
3836 CLEANFILES += testHeaders