2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
21 OutOfBoundsException.h \
42 LOADABLE_MODULES_SOURCES = \
48 SUBDIRS = base anyp comm eui acl format fs repl
49 DIST_SUBDIRS = base anyp comm eui acl format fs repl
53 AUTH_LIBS= auth/libauth.la
54 AUTH_ACL_LIBS= auth/libacls.la
55 check_PROGRAMS+= tests/testACLMaxUserIP
59 SUBDIRS += http ip icmp ident log ipc mgr
60 DIST_SUBDIRS += http ip icmp ident log ipc mgr
79 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
81 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
90 DIST_SUBDIRS += adaptation
96 $(top_builddir)/lib/libTrie/libTrie.a
97 ESI_LIBS = $(ESI_LOCAL_LIBS) \
105 DELAY_POOL_ALL_SOURCE = \
107 CompositePoolNode.h \
129 ClientDelayConfig.cc \
132 if ENABLE_DELAY_POOLS
133 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
138 if ENABLE_XPROF_STATS
139 XPROF_STATS_SOURCE = ProfStats.cc
145 HTCPSOURCE = htcp.cc htcp.h
149 LEAKFINDERSOURCE = LeakFinder.cc
155 UNLINKDSOURCE = unlinkd.h unlinkd.cc
158 UNLINKDSOURCE = unlinkd.h
167 if ENABLE_WIN32SPECIFIC
168 WIN32_SOURCE = win32.cc
169 WINSVC_SOURCE = WinSvc.cc
176 IPC_SOURCE = SquidIpc.h ipc_win32.cc
178 IPC_SOURCE = SquidIpc.h ipc.cc
181 AIO_WIN32_ALL_SOURCES = \
182 DiskIO/AIO/aio_win32.cc \
183 DiskIO/AIO/aio_win32.h
185 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
191 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
192 DiskIO/DiskThreads/CommIO.cc \
193 DiskIO/DiskThreads/CommIO.h
195 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
196 DiskIO/DiskThreads/CommIO.cc \
197 DiskIO/DiskThreads/CommIO.h
200 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
201 libMmapped.a libIpcIo.a
202 noinst_LIBRARIES = $(DISK_LIBS)
203 noinst_LTLIBRARIES = libsquid.la
206 DiskIO/DiskDaemon/diskd \
213 ## cfgen is used when building squid
214 ## ufsdump is a debug utility, it is possibly useful for end users with cache
215 ## corruption, but at this point we do not install it.
229 cf_gen_SOURCES = cf_gen.cc
230 nodist_cf_gen_HEADER = cf_gen_defines.cci
231 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
233 cf_gen.$(OBJEXT): cf_gen_defines.cci
235 ## cf_gen.cc needs src/cf_gen_defines.cci
236 INCLUDES += -I$(top_builddir)/src
239 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
242 DiskIO/DiskIOModule.cc \
243 DiskIO/ReadRequest.cc \
244 DiskIO/ReadRequest.h \
245 DiskIO/WriteRequest.cc \
246 DiskIO/WriteRequest.h \
248 DiskIO/DiskIOStrategy.h \
249 DiskIO/IORequestor.h \
250 DiskIO/DiskIOModule.h \
253 DISKIO_GEN_SOURCE = \
254 DiskIO/DiskIOModules_gen.cc
256 DiskIO/DiskIOModules_gen.cc: Makefile
257 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
260 # common library for all the binaries and tests. This is kindof a catch all
261 # and smaller libraries split from this are encouraged. Using lt convenience
262 # libraries, dependencies should not be a problem either.
263 libsquid_la_SOURCES = \
275 $(ACL_REGISTRATION_SOURCES) \
289 NeighborTypeDomainList.h \
290 CachePeerDomainList.h \
297 ChunkedCodingParser.cc \
298 ChunkedCodingParser.h \
304 client_side_reply.cc \
305 client_side_reply.h \
306 client_side_request.cc \
307 client_side_request.h \
312 ClientRequestContext.h \
315 CompletionDispatcher.cc \
316 CompletionDispatcher.h \
330 $(DELAY_POOL_SOURCE) \
350 ExternalACLEntry.cc \
374 HelperChildConfig.h \
375 HelperChildConfig.cc \
379 HierarchyLogEntry.h \
384 HttpHeaderFieldStat.h \
393 HttpHdrContRange.cc \
400 HttpHeaderFieldInfo.h \
416 HttpRequestMethod.cc \
417 HttpRequestMethod.h \
429 $(LEAKFINDERSOURCE) \
460 $(XPROF_STATS_SOURCE) \
465 peer_proxy_negotiate_auth.h \
466 peer_proxy_negotiate_auth.cc \
484 SBufDetailedStats.h \
485 SBufDetailedStats.cc \
529 StoreMetaUnpacker.cc \
530 StoreMetaUnpacker.h \
531 $(STOREMETA_SOURCE) \
535 StoreSwapLogData.cc \
568 EXTRA_squid_SOURCES = \
569 $(AIO_WIN32_ALL_SOURCES) \
572 $(DELAY_POOL_ALL_SOURCE) \
582 $(WIN32_ALL_SOURCE) \
583 $(LOADABLE_MODULES_SOURCES)
586 client_side_request.cci \
608 CLEANFILES += $(BUILT_SOURCES)
610 nodist_squid_SOURCES = \
611 $(DISKIO_GEN_SOURCE) \
631 http/libsquid-http.la \
632 icmp/libicmp.la icmp/libicmp-core.la \
634 format/libformat.la \
645 $(top_builddir)/lib/libmisccontainers.la \
646 $(top_builddir)/lib/libmiscencoding.la \
647 $(top_builddir)/lib/libmiscutil.la \
654 squid_DEPENDENCIES = \
672 format/libformat.la \
676 if USE_LOADABLE_MODULES
677 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
678 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
679 squid_LDFLAGS = -export-dynamic -dlopen force
680 ## when static module linking is supported and enabled:
681 ## squid_LDFLAGS = -all-static -dlopen self
683 ## LTDL headers require their local include path...
684 INCLUDES += $(INCLTDL)
687 ## Kerberos libraries require their include path...
688 INCLUDES += $(KRB5INCS)
691 unlinkd_SOURCES = unlinkd_daemon.cc
696 recv_announce_SOURCES = recv-announce.cc
698 ## What requires what..
699 ## many things want ACLChecklist.cc
700 ## ACLChecklist.cc wants AuthUserRequest.cc
701 ## ACLChecklist.cc wants AuthScheme.cc
702 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
703 ## ACLProxyAuth.cc wants ACLUserData
704 ## ACLProxyAuth.cc wants ACLRegexData
705 ## cache_cf.cc wants $(AUTH_LIBS)
706 ## cache_cf.cc wants Swapdir
707 ## cache_cf.cc wants AnyP::PortCfg
708 ## client_side wants client_db
709 ## client_db wants SNMP_SOURCE
710 ## snmp_core wants ACLStringData
711 ## SwapDir wants ConfigOption
712 ## tools.cc wants ip/libip.la
713 ## client_side.cc wants ip/libip.la
714 ## mem.cc wants ClientInfo.h
715 ## libbase.la wants cbdata.*
716 ## libbase.la wants MemBuf.*
732 tests/stub_StoreMeta.cc \
733 StoreMetaUnpacker.cc \
740 HelperChildConfig.h \
741 tests/stub_HelperChildConfig.cc \
742 HttpRequestMethod.cc \
768 ufsdump_DEPENDENCIES = \
784 nodist_ufsdump_SOURCES = \
789 squid.conf.documented \
814 include $(srcdir)/tests/Stub.list
823 mk-string-arrays.pl \
824 mk-string-arrays.awk \
831 $(AIO_WIN32_SOURCES) \
832 DiskIO/AIO/async_io.h \
833 DiskIO/AIO/AIODiskFile.cc \
834 DiskIO/AIO/AIODiskFile.h \
835 DiskIO/AIO/AIODiskIOStrategy.cc \
836 DiskIO/AIO/AIODiskIOStrategy.h \
837 DiskIO/AIO/AIODiskIOModule.cc \
838 DiskIO/AIO/AIODiskIOModule.h
840 libBlocking_a_SOURCES = \
841 DiskIO/Blocking/BlockingFile.cc \
842 DiskIO/Blocking/BlockingFile.h \
843 DiskIO/Blocking/BlockingIOStrategy.cc \
844 DiskIO/Blocking/BlockingIOStrategy.h \
845 DiskIO/Blocking/BlockingDiskIOModule.cc \
846 DiskIO/Blocking/BlockingDiskIOModule.h
848 libMmapped_a_SOURCES = \
849 DiskIO/Mmapped/MmappedFile.cc \
850 DiskIO/Mmapped/MmappedFile.h \
851 DiskIO/Mmapped/MmappedIOStrategy.cc \
852 DiskIO/Mmapped/MmappedIOStrategy.h \
853 DiskIO/Mmapped/MmappedDiskIOModule.cc \
854 DiskIO/Mmapped/MmappedDiskIOModule.h
856 libIpcIo_a_SOURCES = \
857 DiskIO/IpcIo/IpcIoFile.cc \
858 DiskIO/IpcIo/IpcIoFile.h \
859 DiskIO/IpcIo/IpcIoIOStrategy.cc \
860 DiskIO/IpcIo/IpcIoIOStrategy.h \
861 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
862 DiskIO/IpcIo/IpcIoDiskIOModule.h
864 libDiskDaemon_a_SOURCES = \
865 DiskIO/DiskDaemon/DiskdFile.cc \
866 DiskIO/DiskDaemon/DiskdFile.h \
867 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
868 DiskIO/DiskDaemon/DiskdIOStrategy.h \
869 DiskIO/DiskDaemon/diomsg.h \
870 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
871 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
872 DiskIO/DiskDaemon/DiskdAction.cc \
873 DiskIO/DiskDaemon/DiskdAction.h
875 libDiskThreads_a_SOURCES = \
877 DiskIO/DiskThreads/async_io.cc \
878 DiskIO/DiskThreads/DiskThreads.h \
879 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
880 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
881 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
882 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
883 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
884 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
886 EXTRA_libDiskThreads_a_SOURCES = \
887 DiskIO/DiskThreads/aiops.cc \
888 DiskIO/DiskThreads/aiops_win32.cc \
889 DiskIO/DiskThreads/CommIO.cc \
890 DiskIO/DiskThreads/CommIO.h
892 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
893 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
894 DiskIO_DiskDaemon_diskd_LDADD = \
895 $(top_builddir)/lib/libmisccontainers.la \
896 $(top_builddir)/lib/libmiscencoding.la \
897 $(top_builddir)/lib/libmiscutil.la \
902 DEFAULT_HTTP_PORT = 3128
903 DEFAULT_ICP_PORT = 3130
904 DEFAULT_PREFIX = $(prefix)
905 DEFAULT_CONFIG_DIR = $(sysconfdir)
906 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
907 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
908 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
909 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
910 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
911 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
912 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
913 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
914 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
915 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_ICON_DIR = $(datadir)/icons
920 DEFAULT_ERROR_DIR = $(datadir)/errors
922 # Make location configure settings available to the code
923 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
925 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
927 globals.cc: globals.h mk-globals-c.awk
928 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
930 ## Generate files containing string arrays for various enums....
931 hier_code.cc: hier_code.h mk-string-arrays.awk
932 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
934 err_type.cc: err_type.h mk-string-arrays.awk
935 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
937 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
938 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
940 LogTags.cc: LogTags.h mk-string-arrays.awk
941 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
943 lookup_t.cc: lookup_t.h mk-string-arrays.awk
944 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
946 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
947 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
949 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
950 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
953 ## other generated files...
955 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
956 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
958 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
959 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
961 ## If autodependency works well this is not needed anymore
962 cache_cf.o: cf_parser.cci
964 # cf_gen builds the configuration files.
965 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
966 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
968 # squid.conf.default is built by cf_gen when making cf_parser.cci
969 squid.conf.default squid.conf.documented: cf_parser.cci
972 cf_parser.cci: cf.data cf_gen$(EXEEXT)
973 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
975 # The cf_gen_defines.cci is auto-generated and does not exist when the
976 # dependencies computed. We need to add its include files (autoconf.h) here
977 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
978 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
981 ## FIXME: generate a sed command file from configure. Then this doesn't
982 ## depend on the Makefile.
983 cf.data: cf.data.pre Makefile
985 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
986 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
987 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
988 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
989 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
990 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
991 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
992 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
993 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
994 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
995 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
996 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
997 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
998 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
999 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1000 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1001 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1002 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1003 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1004 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1005 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1006 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1007 < $(srcdir)/cf.data.pre >$@
1009 repl_modules.cc: repl_modules.sh Makefile
1010 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1012 include $(top_srcdir)/doc/manuals/Substitute.am
1014 squid.8: $(srcdir)/squid.8.in Makefile
1015 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1018 EXTRA_DIST += squid.8.in
1019 CLEANFILES += squid.8
1021 install-data-local: install-sysconfDATA install-dataDATA
1022 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1023 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1025 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1026 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1028 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1029 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1031 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1032 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1034 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1035 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1036 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1037 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1038 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1039 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1040 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1042 uninstall-local: squid.conf.default
1043 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1044 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1046 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1047 DiskIO/DiskIOModules_gen.cc \
1050 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1051 cp $(top_srcdir)/test-suite/test_tools.cc .
1053 # stock tools for unit tests - library independent versions of dlink_list
1055 # globals.cc is needed by test_tools.cc.
1056 # Neither of these should be disted from here.
1063 tests/testBoilerplate \
1064 tests/testCacheManager \
1067 tests/testEventLoop \
1068 tests/test_http_range \
1069 tests/testHttpParser \
1070 tests/testHttpReply \
1071 tests/testHttpRequest \
1076 tests/testSBufList \
1077 tests/testConfigParser \
1078 tests/testStatHist \
1082 check_PROGRAMS += tests/testRock
1085 check_PROGRAMS += tests/testUfs
1088 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1089 TESTS += $(check_PROGRAMS)
1091 ### Template for new Unit Test Program
1092 ## - add tests/testX to check_PROGRAMS above.
1093 ## - copy template below and substitue X for class name
1094 ## - add other component .(h|cc) files needed to link and run tests
1096 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1098 #tests_testX_SOURCES=\
1101 # tests/testMain.cc \
1104 #nodist_tests_testX_SOURCES=\
1106 #tests_testX_LDFLAGS = $(LIBADD_DL)
1107 #tests_testX_LDADD=\
1108 # $(SQUID_CPPUNIT_LIBS) \
1109 # $(SQUID_CPPUNIT_LA) \
1111 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1114 # - add other component .(h|cc) files needed to link and run tests
1115 tests_testHttpReply_SOURCES=\
1119 tests/stub_ETag.cc \
1121 tests/stub_fatal.cc \
1124 HttpHeaderFieldStat.h \
1128 HttpHdrContRange.cc \
1129 HttpHdrContRange.h \
1133 HttpHdrScTarget.cc \
1138 HttpHeaderFieldInfo.h \
1140 HttpHeaderTools.cc \
1161 SBufDetailedStats.h \
1162 tests/stub_SBufDetailedStats.cc \
1167 tests/stub_access_log.cc \
1170 tests/stub_cache_cf.cc \
1171 tests/stub_cache_manager.cc \
1172 tests/stub_debug.cc \
1173 tests/stub_errorpage.cc \
1174 tests/stub_HelperChildConfig.cc \
1175 tests/stub_libformat.cc \
1176 tests/stub_libauth.cc \
1180 tests/stub_StatHist.cc \
1182 tests/stub_store.cc \
1183 tests/stub_store_stats.cc \
1185 tests/stub_tools.cc \
1186 tests/stub_HttpRequest.cc \
1187 tests/testHttpReply.cc \
1188 tests/testHttpReply.h \
1190 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= \
1222 DiskIO/ReadRequest.cc \
1223 DiskIO/WriteRequest.cc \
1224 tests/stub_ETag.cc \
1227 tests/stub_fatal.cc \
1230 HelperChildConfig.h \
1231 HelperChildConfig.cc \
1235 HttpHeaderFieldInfo.h \
1237 HttpHeaderTools.cc \
1238 HttpHdrContRange.cc \
1240 HttpHeaderFieldStat.h \
1245 HttpHdrScTarget.cc \
1247 HttpRequestMethod.cc \
1265 tests/stub_StatHist.cc \
1268 SBufDetailedStats.h \
1269 tests/stub_SBufDetailedStats.cc \
1273 tests/stub_StoreMeta.cc \
1274 StoreMetaUnpacker.cc \
1275 StoreSwapLogData.cc \
1280 tests/stub_SwapDir.cc \
1283 tests/stub_access_log.cc \
1286 tests/stub_cache_cf.cc \
1287 tests/stub_client_side.cc \
1288 tests/stub_debug.cc \
1289 tests/stub_DelayId.cc \
1290 tests/stub_DiskIOModule.cc \
1291 tests/stub_errorpage.cc \
1294 tests/stub_HttpRequest.cc \
1295 tests/stub_HttpReply.cc \
1296 tests/stub_ipc_TypedMsgHdr.cc \
1297 tests/stub_libauth.cc \
1298 tests/stub_libcomm.cc \
1299 tests/stub_libformat.cc \
1300 tests/stub_libsslsquid.cc \
1301 tests/stub_MemObject.cc \
1302 tests/stub_MemStore.cc \
1304 tests/stub_mime.cc \
1305 tests/stub_pconn.cc \
1306 tests/stub_Port.cc \
1308 tests/stub_store.cc \
1310 tests/stub_store_rebuild.cc \
1311 tests/stub_store_stats.cc \
1312 tests/stub_store_swapout.cc \
1314 tests/stub_tools.cc \
1315 tests/stub_cache_manager.cc \
1316 tests/stub_UdsOp.cc \
1317 tests/testACLMaxUserIP.cc \
1318 tests/testACLMaxUserIP.h \
1320 tests/stub_time.cc \
1330 nodist_tests_testACLMaxUserIP_SOURCES= \
1332 tests_testACLMaxUserIP_LDADD= \
1333 http/libsquid-http.la \
1346 $(top_builddir)/lib/libmisccontainers.la \
1347 $(top_builddir)/lib/libmiscencoding.la \
1348 $(top_builddir)/lib/libmiscutil.la \
1351 $(SQUID_CPPUNIT_LIBS) \
1355 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1356 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1357 ## $(SQUID_CPPUNIT_LA)
1359 ## a demonstration test that does nothing but shows the salient points
1360 ## involved in writing tests.
1361 tests_testBoilerplate_SOURCES = \
1362 tests/testBoilerplate.cc \
1364 tests/testBoilerplate.h \
1366 nodist_tests_testBoilerplate_SOURCES = \
1368 tests_testBoilerplate_LDADD= \
1369 $(SQUID_CPPUNIT_LIBS) \
1373 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1374 tests_testBoilerplate_DEPENDENCIES = \
1377 ## Tests of the CacheManager module.
1378 tests_testCacheManager_SOURCES = \
1386 HttpRequestMethod.cc \
1390 tests/testCacheManager.cc \
1391 tests/testCacheManager.h \
1393 tests/stub_main_cc.cc \
1394 tests/stub_ipc_Forwarder.cc \
1395 tests/stub_store_stats.cc \
1396 tests/stub_EventLoop.cc \
1407 tests/stub_CacheDigest.cc \
1409 tests/stub_carp.cc \
1411 ChunkedCodingParser.cc \
1416 client_side_reply.cc \
1417 client_side_request.cc \
1426 $(DELAY_POOL_SOURCE) \
1434 tests/stub_ETag.cc \
1437 ExternalACLEntry.cc \
1439 tests/stub_fatal.cc \
1455 HelperChildConfig.h \
1456 HelperChildConfig.cc \
1466 HttpHeaderFieldInfo.h \
1468 HttpHeaderTools.cc \
1469 HttpHeaderFieldStat.h \
1473 HttpHdrContRange.cc \
1476 HttpHdrScTarget.cc \
1508 peer_proxy_negotiate_auth.h \
1509 peer_proxy_negotiate_auth.cc \
1512 peer_sourcehash.cc \
1516 tests/stub_redirect.cc \
1522 SBufDetailedStats.h \
1523 tests/stub_SBufDetailedStats.cc \
1535 tests/stub_libauth_acls.cc \
1536 tests/stub_libauth.cc \
1537 tests/stub_StatHist.cc \
1543 tests/stub_store_digest.cc \
1556 StoreFileSystem.cc \
1558 tests/stub_StoreMeta.cc \
1559 StoreMetaUnpacker.cc \
1560 StoreSwapLogData.cc \
1563 tests/stub_tunnel.cc \
1564 tests/stub_SwapDir.cc \
1572 tests/stub_wccp2.cc \
1574 tests/stub_whois.cc \
1579 nodist_tests_testCacheManager_SOURCES = \
1581 $(DISKIO_GEN_SOURCE)
1582 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1583 tests_testCacheManager_LDADD = \
1584 http/libsquid-http.la \
1595 icmp/libicmp.la icmp/libicmp-core.la \
1597 format/libformat.la \
1601 $(ADAPTATION_LIBS) \
1608 $(top_builddir)/lib/libmisccontainers.la \
1609 $(top_builddir)/lib/libmiscencoding.la \
1610 $(top_builddir)/lib/libmiscutil.la \
1612 $(SQUID_CPPUNIT_LIBS) \
1613 $(SQUID_CPPUNIT_LA) \
1618 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1619 tests_testCacheManager_DEPENDENCIES = \
1623 tests_testDiskIO_SOURCES = \
1625 tests/stub_CacheDigest.cc \
1631 $(DELAY_POOL_SOURCE) \
1635 tests/stub_ETag.cc \
1639 tests/stub_fatal.cc \
1648 HttpHeaderFieldStat.h \
1652 HttpHdrContRange.cc \
1654 HttpHdrScTarget.cc \
1656 HttpHeaderFieldInfo.h \
1658 HttpHeaderTools.cc \
1663 HttpRequestMethod.cc \
1687 tests/stub_StatHist.cc \
1690 SBufDetailedStats.h \
1691 tests/stub_SBufDetailedStats.cc \
1692 StoreFileSystem.cc \
1694 tests/stub_StoreMeta.cc \
1695 StoreMetaUnpacker.cc \
1696 StoreSwapLogData.cc \
1708 tests/stub_SwapDir.cc \
1710 tests/stub_access_log.cc \
1714 tests/stub_cache_cf.cc \
1715 tests/stub_cache_manager.cc \
1716 tests/stub_client_db.cc \
1717 client_side_request.h \
1718 tests/stub_client_side_request.cc \
1719 tests/stub_debug.cc \
1720 tests/stub_errorpage.cc \
1721 tests/stub_helper.cc \
1722 tests/stub_HelperChildConfig.cc \
1723 tests/stub_HttpRequest.cc \
1724 tests/stub_http.cc \
1727 tests/stub_internal.cc \
1729 tests/stub_ipcache.cc \
1730 tests/stub_libauth_acls.cc \
1731 tests/stub_libauth.cc \
1732 tests/stub_libeui.cc \
1733 tests/stub_libformat.cc \
1734 tests/stub_libicmp.cc \
1735 tests/stub_MemStore.cc \
1737 tests/stub_mime.cc \
1738 tests/stub_pconn.cc \
1739 tests/stub_Port.cc \
1740 tests/stub_store_client.cc \
1741 tests/stub_store_stats.cc \
1743 tests/stub_store_rebuild.cc \
1744 tests/stub_UdsOp.cc \
1745 tests/testDiskIO.cc \
1746 tests/testDiskIO.h \
1748 tests/testStoreSupport.cc \
1749 tests/testStoreSupport.h \
1750 tests/stub_time.cc \
1759 nodist_tests_testDiskIO_SOURCES= \
1761 $(DISKIO_GEN_SOURCE) \
1765 tests_testDiskIO_LDADD = \
1766 http/libsquid-http.la \
1769 DnsLookupDetails.o \
1787 $(top_builddir)/lib/libmisccontainers.la \
1788 $(top_builddir)/lib/libmiscencoding.la \
1789 $(top_builddir)/lib/libmiscutil.la \
1791 $(SQUID_CPPUNIT_LIBS) \
1796 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1797 tests_testDiskIO_DEPENDENCIES = \
1802 ## Tests of the Even module.
1803 tests_testEvent_SOURCES = \
1807 tests/stub_CacheDigest.cc \
1816 tests/stub_carp.cc \
1818 ChunkedCodingParser.cc \
1823 client_side_reply.cc \
1824 client_side_request.cc \
1834 $(DELAY_POOL_SOURCE) \
1842 tests/stub_ETag.cc \
1847 ExternalACLEntry.cc \
1850 tests/stub_fatal.cc \
1865 HelperChildConfig.h \
1866 HelperChildConfig.cc \
1876 HttpHeaderFieldInfo.h \
1878 HttpHeaderTools.cc \
1879 HttpHeaderFieldStat.h \
1883 HttpHdrContRange.cc \
1886 HttpHdrScTarget.cc \
1894 HttpRequestMethod.cc \
1926 peer_proxy_negotiate_auth.h \
1927 peer_proxy_negotiate_auth.cc \
1930 peer_sourcehash.cc \
1934 tests/stub_redirect.cc \
1942 SBufDetailedStats.h \
1943 tests/stub_SBufDetailedStats.cc \
1959 tests/stub_store_digest.cc \
1972 StoreFileSystem.cc \
1974 tests/stub_StoreMeta.cc \
1975 StoreMetaUnpacker.cc \
1976 StoreSwapLogData.cc \
1978 tests/stub_SwapDir.cc \
1979 tests/CapturingStoreEntry.h \
1980 tests/testEvent.cc \
1983 tests/stub_main_cc.cc \
1984 tests/stub_ipc_Forwarder.cc \
1985 tests/stub_libauth_acls.cc \
1986 tests/stub_libauth.cc \
1987 tests/stub_libeui.cc \
1988 tests/stub_store_stats.cc \
1992 tests/stub_tunnel.cc \
2000 tests/stub_wccp2.cc \
2002 tests/stub_whois.cc \
2006 nodist_tests_testEvent_SOURCES = \
2008 $(DISKIO_GEN_SOURCE)
2009 tests_testEvent_LDADD = \
2010 http/libsquid-http.la \
2020 icmp/libicmp.la icmp/libicmp-core.la \
2023 format/libformat.la \
2025 $(ADAPTATION_LIBS) \
2028 $(top_builddir)/lib/libmisccontainers.la \
2029 $(top_builddir)/lib/libmiscencoding.la \
2030 $(top_builddir)/lib/libmiscutil.la \
2037 $(SQUID_CPPUNIT_LIBS) \
2038 $(SQUID_CPPUNIT_LA) \
2043 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2044 tests_testEvent_DEPENDENCIES = \
2048 ## Tests of the EventLoop module.
2049 tests_testEventLoop_SOURCES = \
2053 tests/stub_CacheDigest.cc \
2062 tests/stub_carp.cc \
2064 ChunkedCodingParser.cc \
2069 client_side_reply.cc \
2070 client_side_request.cc \
2080 $(DELAY_POOL_SOURCE) \
2088 tests/stub_ETag.cc \
2093 ExternalACLEntry.cc \
2096 tests/stub_fatal.cc \
2111 HelperChildConfig.h \
2112 HelperChildConfig.cc \
2122 HttpHeaderFieldInfo.h \
2124 HttpHeaderTools.cc \
2125 HttpHeaderFieldStat.h \
2129 HttpHdrContRange.cc \
2132 HttpHdrScTarget.cc \
2140 HttpRequestMethod.cc \
2172 peer_proxy_negotiate_auth.h \
2173 peer_proxy_negotiate_auth.cc \
2176 peer_sourcehash.cc \
2181 tests/stub_redirect.cc \
2186 SBufDetailedStats.h \
2187 tests/stub_SBufDetailedStats.cc \
2204 tests/stub_store_digest.cc \
2217 StoreFileSystem.cc \
2219 tests/stub_StoreMeta.cc \
2220 StoreMetaUnpacker.cc \
2221 StoreSwapLogData.cc \
2225 tests/stub_SwapDir.cc \
2226 tests/testEventLoop.cc \
2227 tests/testEventLoop.h \
2229 tests/stub_main_cc.cc \
2230 tests/stub_ipc_Forwarder.cc \
2231 tests/stub_libauth_acls.cc \
2232 tests/stub_libauth.cc \
2233 tests/stub_libeui.cc \
2234 tests/stub_store_stats.cc \
2238 tests/stub_tunnel.cc \
2246 tests/stub_wccp2.cc \
2248 tests/stub_whois.cc \
2252 nodist_tests_testEventLoop_SOURCES = \
2254 $(DISKIO_GEN_SOURCE)
2255 tests_testEventLoop_LDADD = \
2256 http/libsquid-http.la \
2266 icmp/libicmp.la icmp/libicmp-core.la \
2269 format/libformat.la \
2271 $(ADAPTATION_LIBS) \
2274 $(top_builddir)/lib/libmisccontainers.la \
2275 $(top_builddir)/lib/libmiscencoding.la \
2276 $(top_builddir)/lib/libmiscutil.la \
2283 $(SQUID_CPPUNIT_LIBS) \
2284 $(SQUID_CPPUNIT_LA) \
2289 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2290 tests_testEventLoop_DEPENDENCIES = \
2294 tests_test_http_range_SOURCES = \
2305 tests/stub_CacheDigest.cc \
2307 tests/stub_carp.cc \
2309 ChunkedCodingParser.cc \
2314 client_side_reply.cc \
2315 client_side_request.cc \
2325 $(DELAY_POOL_SOURCE) \
2333 tests/stub_ETag.cc \
2337 tests/stub_libauth.cc \
2338 tests/stub_fatal.cc \
2353 HelperChildConfig.h \
2354 HelperChildConfig.cc \
2362 HttpHeaderFieldStat.h \
2366 HttpHdrContRange.cc \
2369 HttpHdrScTarget.cc \
2372 HttpHeaderFieldInfo.h \
2374 HttpHeaderTools.cc \
2382 HttpRequestMethod.cc \
2413 peer_proxy_negotiate_auth.h \
2414 peer_proxy_negotiate_auth.cc \
2417 peer_sourcehash.cc \
2422 tests/stub_redirect.cc \
2428 SBufDetailedStats.h \
2429 tests/stub_SBufDetailedStats.cc \
2445 tests/stub_store_digest.cc \
2458 StoreFileSystem.cc \
2460 tests/stub_StoreMeta.cc \
2461 StoreMetaUnpacker.cc \
2462 StoreSwapLogData.cc \
2466 tests/stub_SwapDir.cc \
2467 tests/test_http_range.cc \
2468 tests/stub_external_acl.cc \
2469 tests/stub_ipc_Forwarder.cc \
2470 tests/stub_libeui.cc \
2471 tests/stub_main_cc.cc \
2472 tests/stub_MemStore.cc \
2473 tests/stub_store_stats.cc \
2474 tests/stub_EventLoop.cc \
2478 tests/stub_tunnel.cc \
2485 tests/stub_wccp2.cc \
2487 tests/stub_whois.cc \
2491 nodist_tests_test_http_range_SOURCES = \
2493 $(DISKIO_GEN_SOURCE)
2494 tests_test_http_range_LDADD = \
2495 http/libsquid-http.la \
2504 icmp/libicmp.la icmp/libicmp-core.la \
2507 format/libformat.la \
2511 $(ADAPTATION_LIBS) \
2518 $(top_builddir)/lib/libmisccontainers.la \
2519 $(top_builddir)/lib/libmiscencoding.la \
2520 $(top_builddir)/lib/libmiscutil.la \
2522 $(SQUID_CPPUNIT_LIBS) \
2523 $(SQUID_CPPUNIT_LA) \
2528 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2529 tests_test_http_range_DEPENDENCIES = \
2532 tests_testHttpParser_SOURCES = \
2544 tests/stub_SBufDetailedStats.cc \
2545 tests/stub_cache_cf.cc \
2546 tests/stub_cache_manager.cc \
2547 tests/stub_debug.cc \
2548 tests/stub_event.cc \
2549 tests/stub_HelperChildConfig.cc \
2551 tests/stub_tools.cc \
2552 tests/testHttpParser.cc \
2553 tests/testHttpParser.h \
2555 tests/stub_time.cc \
2558 nodist_tests_testHttpParser_SOURCES = \
2560 tests_testHttpParser_LDADD= \
2561 http/libsquid-http.la \
2565 $(top_builddir)/lib/libmiscutil.la \
2566 $(SQUID_CPPUNIT_LIBS) \
2569 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2570 tests_testHttpParser_DEPENDENCIES = \
2573 ## Tests of the HttpRequest module.
2574 tests_testHttpRequest_SOURCES = \
2581 HttpRequestMethod.cc \
2585 tests/testHttpRequest.h \
2586 tests/testHttpRequest.cc \
2587 tests/testHttpRequestMethod.h \
2588 tests/testHttpRequestMethod.cc \
2590 tests/stub_DiskIOModule.cc \
2591 tests/stub_libauth.cc \
2592 tests/stub_main_cc.cc \
2593 tests/stub_ipc_Forwarder.cc \
2594 tests/stub_libeui.cc \
2595 tests/stub_store_stats.cc \
2596 tests/stub_EventLoop.cc \
2608 tests/stub_CacheDigest.cc \
2610 tests/stub_carp.cc \
2612 ChunkedCodingParser.cc \
2617 client_side_reply.cc \
2618 client_side_request.cc \
2627 $(DELAY_POOL_SOURCE) \
2634 tests/stub_ETag.cc \
2636 ExternalACLEntry.cc \
2638 tests/stub_fatal.cc \
2651 HelperChildConfig.h \
2652 HelperChildConfig.cc \
2662 HttpHeaderFieldInfo.h \
2664 HttpHeaderTools.cc \
2665 HttpHeaderFieldStat.h \
2669 HttpHdrContRange.cc \
2672 HttpHdrScTarget.cc \
2704 peer_proxy_negotiate_auth.h \
2705 peer_proxy_negotiate_auth.cc \
2708 peer_sourcehash.cc \
2712 tests/stub_libauth_acls.cc \
2713 tests/stub_redirect.cc \
2719 SBufDetailedStats.h \
2720 tests/stub_SBufDetailedStats.cc \
2736 tests/stub_store_digest.cc \
2749 StoreFileSystem.cc \
2751 tests/stub_StoreMeta.cc \
2752 StoreMetaUnpacker.cc \
2753 StoreSwapLogData.cc \
2759 tests/stub_tunnel.cc \
2760 tests/stub_SwapDir.cc \
2767 tests/stub_wccp2.cc \
2769 tests/stub_whois.cc \
2774 nodist_tests_testHttpRequest_SOURCES = \
2776 tests_testHttpRequest_LDADD = \
2789 icmp/libicmp.la icmp/libicmp-core.la \
2792 format/libformat.la \
2793 http/libsquid-http.la \
2795 $(ADAPTATION_LIBS) \
2798 $(top_builddir)/lib/libmisccontainers.la \
2799 $(top_builddir)/lib/libmiscencoding.la \
2800 $(top_builddir)/lib/libmiscutil.la \
2803 $(SQUID_CPPUNIT_LIBS) \
2804 $(SQUID_CPPUNIT_LA) \
2809 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2810 tests_testHttpRequest_DEPENDENCIES = \
2814 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2815 ## first line - what we are testing.
2816 tests_testStore_SOURCES= \
2818 tests/stub_CacheDigest.cc \
2823 $(DELAY_POOL_SOURCE) \
2826 DiskIO/ReadRequest.cc \
2827 DiskIO/WriteRequest.cc \
2832 tests/stub_fatal.cc \
2835 HttpHeaderFieldStat.h \
2839 HttpHdrContRange.cc \
2842 HttpHdrScTarget.cc \
2843 HttpHeaderFieldInfo.h \
2845 HttpHeaderTools.cc \
2849 HttpRequestMethod.cc \
2881 tests/stub_StoreMeta.cc \
2882 StoreMetaUnpacker.cc \
2883 StoreSwapLogData.cc \
2887 SBufDetailedStats.h \
2888 tests/stub_SBufDetailedStats.cc \
2893 tests/CapturingStoreEntry.h \
2895 tests/stub_access_log.cc \
2899 tests/stub_cache_cf.cc \
2900 tests/stub_cache_manager.cc \
2901 tests/stub_client_side_request.cc \
2902 tests/stub_comm.cc \
2903 tests/stub_debug.cc \
2904 tests/stub_DiskIOModule.cc \
2905 tests/stub_errorpage.cc \
2909 tests/stub_helper.cc \
2910 tests/stub_HelperChildConfig.cc \
2911 tests/stub_http.cc \
2912 tests/stub_libauth.cc \
2913 tests/stub_libeui.cc \
2914 tests/stub_libformat.cc \
2917 tests/stub_HttpReply.cc \
2918 tests/stub_HttpRequest.cc \
2919 tests/stub_libcomm.cc \
2920 tests/stub_MemStore.cc \
2922 tests/stub_mime.cc \
2923 tests/stub_Port.cc \
2924 tests/stub_store_client.cc \
2925 tests/stub_store_stats.cc \
2927 tests/stub_store_rebuild.cc \
2928 tests/stub_store_swapout.cc \
2930 tests/stub_tools.cc \
2931 tests/stub_UdsOp.cc \
2933 tests/testStore.cc \
2935 tests/testStoreEntryStream.cc \
2936 tests/testStoreEntryStream.h \
2937 tests/testStoreController.cc \
2938 tests/testStoreController.h \
2939 tests/testStoreHashIndex.cc \
2940 tests/testStoreHashIndex.h \
2941 tests/testStoreSupport.cc \
2942 tests/testStoreSupport.h \
2943 tests/TestSwapDir.cc \
2944 tests/TestSwapDir.h \
2945 tests/stub_time.cc \
2951 nodist_tests_testStore_SOURCES= \
2957 tests_testStore_LDADD= \
2958 http/libsquid-http.la \
2971 $(top_builddir)/lib/libmisccontainers.la \
2972 $(top_builddir)/lib/libmiscencoding.la \
2973 $(top_builddir)/lib/libmiscutil.la \
2975 $(SQUID_CPPUNIT_LIBS) \
2978 DnsLookupDetails.o \
2981 tests_testStore_LDFLAGS = $(LIBADD_DL)
2982 tests_testStore_DEPENDENCIES = \
2985 ## string needs mem.cc.
2986 ## mem.cc needs ClientInfo.h
2987 ## libsquid pulls in SquidConfig and children. stub them.
2988 tests_testString_SOURCES = \
2995 SBufDetailedStats.h \
2996 tests/stub_SBufDetailedStats.cc \
2998 tests/testString.cc \
2999 tests/testString.h \
3002 tests/stub_cache_cf.cc \
3003 tests/stub_cache_manager.cc \
3004 tests/stub_debug.cc \
3005 tests/stub_HelperChildConfig.cc \
3007 tests/stub_tools.cc \
3008 tests/stub_time.cc \
3011 nodist_tests_testString_SOURCES = \
3013 tests_testString_LDADD = \
3017 $(top_builddir)/lib/libmiscutil.la \
3019 $(SQUID_CPPUNIT_LIBS) \
3023 tests_testString_LDFLAGS = $(LIBADD_DL)
3024 tests_testString_DEPENDENCIES = \
3043 tests_testUfs_SOURCES = \
3047 tests/stub_cache_manager.cc \
3048 tests/stub_client_db.cc \
3049 tests/stub_HelperChildConfig.cc \
3052 tests/stub_ipcache.cc \
3053 tests/stub_libeui.cc \
3054 tests/stub_libicmp.cc \
3055 tests/stub_MemStore.cc \
3056 tests/stub_pconn.cc \
3057 tests/stub_Port.cc \
3058 tests/stub_UdsOp.cc \
3060 tests/stub_internal.cc \
3061 tests/stub_libformat.cc \
3063 tests/stub_store_rebuild.cc \
3064 tests/stub_store_stats.cc \
3066 tests/stub_fatal.cc \
3090 StoreSwapLogData.cc \
3092 StoreMetaUnpacker.cc \
3093 $(STOREMETA_SOURCE) \
3094 StoreFileSystem.cc \
3101 $(DELAY_POOL_SOURCE) \
3103 tests/stub_CacheDigest.cc \
3111 HttpRequestMethod.cc \
3120 tests/stub_cache_cf.cc \
3121 tests/stub_helper.cc \
3124 SBufDetailedStats.h \
3125 tests/stub_SBufDetailedStats.cc \
3127 tests/stub_debug.cc \
3128 tests/stub_client_side_request.cc \
3129 tests/stub_http.cc \
3130 tests/stub_libauth.cc \
3134 tests/stub_mime.cc \
3135 HttpHeaderFieldInfo.h \
3137 HttpHeaderTools.cc \
3144 HttpHdrContRange.cc \
3146 HttpHeaderFieldStat.h \
3151 HttpHdrScTarget.cc \
3161 tests/stub_errorpage.cc \
3162 tests/stub_HttpRequest.cc \
3164 tests/stub_access_log.cc \
3167 tests/stub_store_client.cc \
3169 tests/stub_tools.cc \
3170 tests/testStoreSupport.cc \
3171 tests/testStoreSupport.h \
3178 nodist_tests_testUfs_SOURCES = \
3180 $(DISKIO_GEN_SOURCE) \
3184 tests_testUfs_LDADD = \
3185 http/libsquid-http.la \
3187 DnsLookupDetails.o \
3207 $(top_builddir)/lib/libmisccontainers.la \
3208 $(top_builddir)/lib/libmiscencoding.la \
3209 $(top_builddir)/lib/libmiscutil.la \
3211 $(SQUID_CPPUNIT_LIBS) \
3215 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3216 tests_testUfs_DEPENDENCIES = \
3219 check_PROGRAMS += testRefCount
3220 testRefCount_SOURCES= \
3223 tests/stub_cbdata.cc \
3224 tests/stub_debug.cc \
3225 tests/stub_MemBuf.cc \
3226 tests/testRefCount.cc
3227 testRefCount_LDADD = \
3229 $(top_builddir)/lib/libmiscutil.la \
3233 tests_testRock_SOURCES = \
3236 tests/stub_CacheDigest.cc \
3245 tests/stub_fatal.cc \
3252 HttpHeaderFieldStat.h \
3256 HttpHdrContRange.cc \
3259 HttpHdrScTarget.cc \
3262 HttpHeaderFieldInfo.h \
3264 HttpHeaderTools.cc \
3267 HttpRequestMethod.cc \
3289 tests/stub_StatHist.cc \
3293 StoreFileSystem.cc \
3295 StoreMetaUnpacker.cc \
3296 $(STOREMETA_SOURCE) \
3297 StoreSwapLogData.cc \
3305 SBufDetailedStats.h \
3306 tests/stub_SBufDetailedStats.cc \
3314 tests/testStoreSupport.cc \
3315 tests/testStoreSupport.h \
3317 tests/stub_access_log.cc \
3320 tests/stub_cache_cf.cc \
3322 tests/stub_cache_manager.cc \
3323 tests/stub_client_db.cc \
3324 tests/stub_client_side_request.cc \
3325 tests/stub_debug.cc \
3326 tests/stub_errorpage.cc \
3327 tests/stub_HelperChildConfig.cc \
3328 tests/stub_http.cc \
3329 tests/stub_HttpRequest.cc \
3330 tests/stub_libauth.cc \
3333 tests/stub_ipcache.cc \
3334 tests/stub_libeui.cc \
3335 tests/stub_libformat.cc \
3336 tests/stub_libicmp.cc \
3337 tests/stub_libmgr.cc \
3338 tests/stub_MemStore.cc \
3340 tests/stub_mime.cc \
3341 tests/stub_Port.cc \
3342 tests/stub_pconn.cc \
3343 tests/stub_store_client.cc \
3345 tests/stub_store_rebuild.cc \
3346 tests/stub_store_stats.cc \
3348 tests/stub_tools.cc \
3354 $(DELAY_POOL_SOURCE) \
3357 nodist_tests_testRock_SOURCES = \
3358 $(DISKIO_GEN_SOURCE) \
3363 tests_testRock_LDADD = \
3364 http/libsquid-http.la \
3380 $(top_builddir)/lib/libmisccontainers.la \
3381 $(top_builddir)/lib/libmiscencoding.la \
3382 $(top_builddir)/lib/libmiscutil.la \
3384 $(SQUID_CPPUNIT_LIBS) \
3388 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3389 tests_testRock_DEPENDENCIES = \
3392 ## Tests of the URL module.
3393 ## TODO: Trim this down once the insanity is over.
3394 tests_testURL_SOURCES = \
3403 tests/stub_cache_manager.cc \
3405 tests/stub_CacheDigest.cc \
3407 tests/stub_carp.cc \
3409 ChunkedCodingParser.cc \
3414 client_side_reply.cc \
3415 client_side_request.cc \
3424 $(DELAY_POOL_SOURCE) \
3427 DiskIO/ReadRequest.cc \
3428 DiskIO/WriteRequest.cc \
3436 ExternalACLEntry.cc \
3438 tests/stub_fatal.cc \
3453 HelperChildConfig.h \
3454 HelperChildConfig.cc \
3462 HttpHeaderFieldStat.h \
3466 HttpHdrContRange.cc \
3469 HttpHdrScTarget.cc \
3472 HttpHeaderFieldInfo.h \
3474 HttpHeaderTools.cc \
3482 HttpRequestMethod.cc \
3514 peer_proxy_negotiate_auth.h \
3515 peer_proxy_negotiate_auth.cc \
3518 peer_sourcehash.cc \
3522 tests/stub_redirect.cc \
3528 SBufDetailedStats.h \
3529 tests/stub_SBufDetailedStats.cc \
3539 tests/stub_StatHist.cc \
3545 tests/stub_store_digest.cc \
3558 StoreFileSystem.cc \
3560 tests/stub_StoreMeta.cc \
3561 StoreMetaUnpacker.cc \
3562 StoreSwapLogData.cc \
3566 tests/stub_SwapDir.cc \
3568 tests/stub_debug.cc \
3569 tests/stub_DiskIOModule.cc \
3570 tests/stub_libauth_acls.cc \
3571 tests/stub_libauth.cc \
3572 tests/stub_main_cc.cc \
3573 tests/stub_ipc_Forwarder.cc \
3574 tests/stub_store_stats.cc \
3577 tests/testURLScheme.cc \
3578 tests/testURLScheme.h \
3580 tests/stub_time.cc \
3581 tests/stub_EventLoop.cc \
3584 tests/stub_tunnel.cc \
3590 tests/stub_wccp2.cc \
3592 tests/stub_whois.cc \
3597 nodist_tests_testURL_SOURCES = \
3599 tests_testURL_LDADD = \
3600 http/libsquid-http.la \
3614 icmp/libicmp.la icmp/libicmp-core.la \
3618 format/libformat.la \
3621 $(ADAPTATION_LIBS) \
3624 $(top_builddir)/lib/libmisccontainers.la \
3625 $(top_builddir)/lib/libmiscencoding.la \
3626 $(top_builddir)/lib/libmiscutil.la \
3628 $(SQUID_CPPUNIT_LIBS) \
3629 $(SQUID_CPPUNIT_LA) \
3634 tests_testURL_LDFLAGS = $(LIBADD_DL)
3635 tests_testURL_DEPENDENCIES = \
3639 tests_testSBuf_SOURCES= \
3643 tests/SBufFindTest.h \
3644 tests/SBufFindTest.cc \
3646 SBufDetailedStats.h \
3647 tests/stub_SBufDetailedStats.cc \
3649 tests/stub_time.cc \
3651 tests/stub_debug.cc \
3652 tests/stub_fatal.cc \
3653 tests/stub_HelperChildConfig.cc \
3654 tests/stub_cache_cf.cc \
3655 tests/stub_cache_manager.cc \
3656 tests/stub_store.cc \
3657 tests/stub_store_stats.cc \
3658 tests/stub_tools.cc \
3661 tests/stub_wordlist.cc \
3662 tests/stub_MemBuf.cc
3663 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3664 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3665 tests_testSBuf_LDADD=\
3666 $(SQUID_CPPUNIT_LIBS) \
3667 $(SQUID_CPPUNIT_LA) \
3673 $(top_builddir)/lib/libmiscutil.la \
3675 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3677 tests_testSBufList_SOURCES= \
3678 tests/testSBufList.h \
3679 tests/testSBufList.cc \
3685 SBufDetailedStats.h \
3686 tests/stub_SBufDetailedStats.cc \
3688 tests/stub_time.cc \
3690 tests/stub_debug.cc \
3691 tests/stub_event.cc \
3692 tests/stub_fatal.cc \
3693 tests/stub_HelperChildConfig.cc \
3694 tests/stub_cache_cf.cc \
3695 tests/stub_cache_manager.cc \
3696 tests/stub_store_stats.cc \
3697 tests/stub_tools.cc \
3700 tests/stub_wordlist.cc \
3701 tests/stub_MemBuf.cc
3702 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3703 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3704 tests_testSBufList_LDADD=\
3705 $(SQUID_CPPUNIT_LIBS) \
3706 $(SQUID_CPPUNIT_LA) \
3712 $(top_builddir)/lib/libmiscutil.la \
3714 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3716 tests_testConfigParser_SOURCES = \
3720 tests/stub_MemBuf.cc \
3721 tests/stub_time.cc \
3723 SBufDetailedStats.h \
3724 tests/stub_SBufDetailedStats.cc \
3728 tests/stub_fatal.cc \
3730 tests/testConfigParser.cc \
3731 tests/testConfigParser.h \
3734 tests/stub_cache_cf.cc \
3735 tests/stub_cache_manager.cc \
3736 tests/stub_debug.cc \
3737 tests/stub_HelperChildConfig.cc \
3739 tests/stub_tools.cc \
3742 nodist_tests_testConfigParser_SOURCES = \
3744 tests_testConfigParser_LDADD = \
3748 $(top_builddir)/lib/libmiscutil.la \
3750 $(SQUID_CPPUNIT_LIBS) \
3754 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3755 tests_testConfigParser_DEPENDENCIES = \
3758 tests_testStatHist_SOURCES = \
3759 tests/stub_cbdata.cc \
3761 tests/stub_fatal.cc \
3762 tests/stub_MemBuf.cc \
3766 tests/stub_cache_manager.cc \
3767 tests/stub_comm.cc \
3768 tests/stub_debug.cc \
3769 tests/stub_DelayId.cc \
3770 tests/stub_HelperChildConfig.cc \
3773 tests/stub_MemObject.cc \
3775 tests/stub_mime.cc \
3776 tests/stub_pconn.cc \
3777 tests/stub_stmem.cc \
3779 tests/stub_store.cc \
3780 tests/stub_store_stats.cc \
3782 tests/stub_tools.cc \
3784 tests/testStatHist.cc \
3785 tests/testStatHist.h
3786 nodist_tests_testStatHist_SOURCES = \
3788 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3789 tests_testStatHist_LDADD = \
3791 $(top_builddir)/lib/libmiscutil.la \
3792 $(top_builddir)/lib/libmisccontainers.la \
3793 $(SQUID_CPPUNIT_LIBS) \
3794 $(SQUID_CPPUNIT_LA) \
3796 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3798 tests_testVector_SOURCES = \
3799 tests/testVector.cc \
3802 nodist_tests_testVector_SOURCES = \
3804 tests_testVector_LDADD= \
3805 $(SQUID_CPPUNIT_LIBS) \
3808 tests_testVector_LDFLAGS = $(LIBADD_DL)
3809 tests_testVector_DEPENDENCIES = \
3813 TESTS += testHeaders
3815 ## Special Universal .h dependency test script
3816 ## aborts if error encountered
3817 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3818 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3819 ## src/repl/ has no .h files and its own makefile.
3821 CLEANFILES += testHeaders