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.a $(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/testConfigParser \
1077 tests/testStatHist \
1081 check_PROGRAMS += tests/testRock
1084 check_PROGRAMS += tests/testUfs
1087 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1088 TESTS += $(check_PROGRAMS)
1090 ### Template for new Unit Test Program
1091 ## - add tests/testX to check_PROGRAMS above.
1092 ## - copy template below and substitue X for class name
1093 ## - add other component .(h|cc) files needed to link and run tests
1095 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1097 #tests_testX_SOURCES=\
1100 # tests/testMain.cc \
1103 #nodist_tests_testX_SOURCES=\
1105 #tests_testX_LDFLAGS = $(LIBADD_DL)
1106 #tests_testX_LDADD=\
1107 # $(SQUID_CPPUNIT_LIBS) \
1108 # $(SQUID_CPPUNIT_LA) \
1110 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1113 # - add other component .(h|cc) files needed to link and run tests
1114 tests_testHttpReply_SOURCES=\
1118 tests/stub_ETag.cc \
1120 tests/stub_fatal.cc \
1123 HttpHeaderFieldStat.h \
1127 HttpHdrContRange.cc \
1128 HttpHdrContRange.h \
1132 HttpHdrScTarget.cc \
1137 HttpHeaderFieldInfo.h \
1139 HttpHeaderTools.cc \
1160 SBufDetailedStats.h \
1161 tests/stub_SBufDetailedStats.cc \
1166 tests/stub_access_log.cc \
1169 tests/stub_cache_cf.cc \
1170 tests/stub_cache_manager.cc \
1171 tests/stub_debug.cc \
1172 tests/stub_errorpage.cc \
1173 tests/stub_HelperChildConfig.cc \
1174 tests/stub_libformat.cc \
1175 tests/stub_libauth.cc \
1179 tests/stub_StatHist.cc \
1181 tests/stub_store.cc \
1182 tests/stub_store_stats.cc \
1184 tests/stub_tools.cc \
1185 tests/stub_HttpRequest.cc \
1186 tests/testHttpReply.cc \
1187 tests/testHttpReply.h \
1189 tests/stub_time.cc \
1194 nodist_tests_testHttpReply_SOURCES=\
1196 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1197 tests_testHttpReply_LDADD=\
1198 http/libsquid-http.la \
1206 $(top_builddir)/lib/libmisccontainers.la \
1207 $(top_builddir)/lib/libmiscencoding.la \
1208 $(top_builddir)/lib/libmiscutil.la \
1209 $(SQUID_CPPUNIT_LIBS) \
1210 $(SQUID_CPPUNIT_LA) \
1214 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1216 tests_testACLMaxUserIP_SOURCES= \
1221 DiskIO/ReadRequest.cc \
1222 DiskIO/WriteRequest.cc \
1223 tests/stub_ETag.cc \
1226 tests/stub_fatal.cc \
1229 HelperChildConfig.h \
1230 HelperChildConfig.cc \
1234 HttpHeaderFieldInfo.h \
1236 HttpHeaderTools.cc \
1237 HttpHdrContRange.cc \
1239 HttpHeaderFieldStat.h \
1244 HttpHdrScTarget.cc \
1246 HttpRequestMethod.cc \
1264 tests/stub_StatHist.cc \
1267 SBufDetailedStats.h \
1268 tests/stub_SBufDetailedStats.cc \
1272 tests/stub_StoreMeta.cc \
1273 StoreMetaUnpacker.cc \
1274 StoreSwapLogData.cc \
1279 tests/stub_SwapDir.cc \
1282 tests/stub_access_log.cc \
1285 tests/stub_cache_cf.cc \
1286 tests/stub_client_side.cc \
1287 tests/stub_debug.cc \
1288 tests/stub_DelayId.cc \
1289 tests/stub_DiskIOModule.cc \
1290 tests/stub_errorpage.cc \
1293 tests/stub_HttpRequest.cc \
1294 tests/stub_HttpReply.cc \
1295 tests/stub_ipc_TypedMsgHdr.cc \
1296 tests/stub_libauth.cc \
1297 tests/stub_libcomm.cc \
1298 tests/stub_libformat.cc \
1299 tests/stub_libsslsquid.cc \
1300 tests/stub_MemObject.cc \
1301 tests/stub_MemStore.cc \
1303 tests/stub_mime.cc \
1304 tests/stub_pconn.cc \
1305 tests/stub_Port.cc \
1307 tests/stub_store.cc \
1309 tests/stub_store_rebuild.cc \
1310 tests/stub_store_stats.cc \
1311 tests/stub_store_swapout.cc \
1313 tests/stub_tools.cc \
1314 tests/stub_cache_manager.cc \
1315 tests/stub_UdsOp.cc \
1316 tests/testACLMaxUserIP.cc \
1317 tests/testACLMaxUserIP.h \
1319 tests/stub_time.cc \
1329 nodist_tests_testACLMaxUserIP_SOURCES= \
1331 tests_testACLMaxUserIP_LDADD= \
1332 http/libsquid-http.la \
1345 $(top_builddir)/lib/libmisccontainers.la \
1346 $(top_builddir)/lib/libmiscencoding.la \
1347 $(top_builddir)/lib/libmiscutil.la \
1350 $(SQUID_CPPUNIT_LIBS) \
1354 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1355 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1356 ## $(SQUID_CPPUNIT_LA)
1358 ## a demonstration test that does nothing but shows the salient points
1359 ## involved in writing tests.
1360 tests_testBoilerplate_SOURCES = \
1361 tests/testBoilerplate.cc \
1363 tests/testBoilerplate.h \
1365 nodist_tests_testBoilerplate_SOURCES = \
1367 tests_testBoilerplate_LDADD= \
1368 $(SQUID_CPPUNIT_LIBS) \
1372 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1373 tests_testBoilerplate_DEPENDENCIES = \
1376 ## Tests of the CacheManager module.
1377 tests_testCacheManager_SOURCES = \
1385 HttpRequestMethod.cc \
1389 tests/testCacheManager.cc \
1390 tests/testCacheManager.h \
1392 tests/stub_main_cc.cc \
1393 tests/stub_ipc_Forwarder.cc \
1394 tests/stub_store_stats.cc \
1405 tests/stub_CacheDigest.cc \
1407 tests/stub_carp.cc \
1409 ChunkedCodingParser.cc \
1414 client_side_reply.cc \
1415 client_side_request.cc \
1424 $(DELAY_POOL_SOURCE) \
1432 tests/stub_ETag.cc \
1435 ExternalACLEntry.cc \
1437 tests/stub_fatal.cc \
1453 HelperChildConfig.h \
1454 HelperChildConfig.cc \
1464 HttpHeaderFieldInfo.h \
1466 HttpHeaderTools.cc \
1467 HttpHeaderFieldStat.h \
1471 HttpHdrContRange.cc \
1474 HttpHdrScTarget.cc \
1506 peer_proxy_negotiate_auth.h \
1507 peer_proxy_negotiate_auth.cc \
1510 peer_sourcehash.cc \
1514 tests/stub_redirect.cc \
1520 SBufDetailedStats.h \
1521 tests/stub_SBufDetailedStats.cc \
1533 tests/stub_libauth_acls.cc \
1534 tests/stub_libauth.cc \
1535 tests/stub_StatHist.cc \
1541 tests/stub_store_digest.cc \
1554 StoreFileSystem.cc \
1556 tests/stub_StoreMeta.cc \
1557 StoreMetaUnpacker.cc \
1558 StoreSwapLogData.cc \
1561 tests/stub_tunnel.cc \
1562 tests/stub_SwapDir.cc \
1570 tests/stub_wccp2.cc \
1572 tests/stub_whois.cc \
1577 nodist_tests_testCacheManager_SOURCES = \
1579 $(DISKIO_GEN_SOURCE)
1580 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1581 tests_testCacheManager_LDADD = \
1582 http/libsquid-http.la \
1593 icmp/libicmp.la icmp/libicmp-core.la \
1595 format/libformat.la \
1599 $(ADAPTATION_LIBS) \
1606 $(top_builddir)/lib/libmisccontainers.la \
1607 $(top_builddir)/lib/libmiscencoding.la \
1608 $(top_builddir)/lib/libmiscutil.la \
1610 $(SQUID_CPPUNIT_LIBS) \
1611 $(SQUID_CPPUNIT_LA) \
1616 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1617 tests_testCacheManager_DEPENDENCIES = \
1621 tests_testDiskIO_SOURCES = \
1623 tests/stub_CacheDigest.cc \
1629 $(DELAY_POOL_SOURCE) \
1633 tests/stub_ETag.cc \
1637 tests/stub_fatal.cc \
1646 HttpHeaderFieldStat.h \
1650 HttpHdrContRange.cc \
1652 HttpHdrScTarget.cc \
1654 HttpHeaderFieldInfo.h \
1656 HttpHeaderTools.cc \
1661 HttpRequestMethod.cc \
1685 tests/stub_StatHist.cc \
1688 SBufDetailedStats.h \
1689 tests/stub_SBufDetailedStats.cc \
1690 StoreFileSystem.cc \
1692 tests/stub_StoreMeta.cc \
1693 StoreMetaUnpacker.cc \
1694 StoreSwapLogData.cc \
1706 tests/stub_SwapDir.cc \
1708 tests/stub_access_log.cc \
1712 tests/stub_cache_cf.cc \
1713 tests/stub_cache_manager.cc \
1714 tests/stub_client_db.cc \
1715 client_side_request.h \
1716 tests/stub_client_side_request.cc \
1717 tests/stub_debug.cc \
1718 tests/stub_errorpage.cc \
1719 tests/stub_helper.cc \
1720 tests/stub_HelperChildConfig.cc \
1721 tests/stub_HttpRequest.cc \
1722 tests/stub_http.cc \
1725 tests/stub_internal.cc \
1727 tests/stub_ipcache.cc \
1728 tests/stub_libauth_acls.cc \
1729 tests/stub_libauth.cc \
1730 tests/stub_libeui.cc \
1731 tests/stub_libformat.cc \
1732 tests/stub_libicmp.cc \
1733 tests/stub_MemStore.cc \
1735 tests/stub_mime.cc \
1736 tests/stub_pconn.cc \
1737 tests/stub_Port.cc \
1738 tests/stub_store_client.cc \
1739 tests/stub_store_stats.cc \
1741 tests/stub_store_rebuild.cc \
1742 tests/stub_UdsOp.cc \
1743 tests/testDiskIO.cc \
1744 tests/testDiskIO.h \
1746 tests/testStoreSupport.cc \
1747 tests/testStoreSupport.h \
1748 tests/stub_time.cc \
1757 nodist_tests_testDiskIO_SOURCES= \
1759 $(DISKIO_GEN_SOURCE) \
1763 tests_testDiskIO_LDADD = \
1764 http/libsquid-http.la \
1767 DnsLookupDetails.o \
1785 $(top_builddir)/lib/libmisccontainers.la \
1786 $(top_builddir)/lib/libmiscencoding.la \
1787 $(top_builddir)/lib/libmiscutil.la \
1789 $(SQUID_CPPUNIT_LIBS) \
1794 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1795 tests_testDiskIO_DEPENDENCIES = \
1800 ## Tests of the Even module.
1801 tests_testEvent_SOURCES = \
1805 tests/stub_CacheDigest.cc \
1814 tests/stub_carp.cc \
1816 ChunkedCodingParser.cc \
1821 client_side_reply.cc \
1822 client_side_request.cc \
1832 $(DELAY_POOL_SOURCE) \
1840 tests/stub_ETag.cc \
1845 ExternalACLEntry.cc \
1848 tests/stub_fatal.cc \
1863 HelperChildConfig.h \
1864 HelperChildConfig.cc \
1874 HttpHeaderFieldInfo.h \
1876 HttpHeaderTools.cc \
1877 HttpHeaderFieldStat.h \
1881 HttpHdrContRange.cc \
1884 HttpHdrScTarget.cc \
1892 HttpRequestMethod.cc \
1924 peer_proxy_negotiate_auth.h \
1925 peer_proxy_negotiate_auth.cc \
1928 peer_sourcehash.cc \
1932 tests/stub_redirect.cc \
1940 SBufDetailedStats.h \
1941 tests/stub_SBufDetailedStats.cc \
1957 tests/stub_store_digest.cc \
1970 StoreFileSystem.cc \
1972 tests/stub_StoreMeta.cc \
1973 StoreMetaUnpacker.cc \
1974 StoreSwapLogData.cc \
1976 tests/stub_SwapDir.cc \
1977 tests/CapturingStoreEntry.h \
1978 tests/testEvent.cc \
1981 tests/stub_main_cc.cc \
1982 tests/stub_ipc_Forwarder.cc \
1983 tests/stub_libauth_acls.cc \
1984 tests/stub_libauth.cc \
1985 tests/stub_libeui.cc \
1986 tests/stub_store_stats.cc \
1990 tests/stub_tunnel.cc \
1998 tests/stub_wccp2.cc \
2000 tests/stub_whois.cc \
2004 nodist_tests_testEvent_SOURCES = \
2006 $(DISKIO_GEN_SOURCE)
2007 tests_testEvent_LDADD = \
2008 http/libsquid-http.la \
2018 icmp/libicmp.la icmp/libicmp-core.la \
2021 format/libformat.la \
2023 $(ADAPTATION_LIBS) \
2026 $(top_builddir)/lib/libmisccontainers.la \
2027 $(top_builddir)/lib/libmiscencoding.la \
2028 $(top_builddir)/lib/libmiscutil.la \
2035 $(SQUID_CPPUNIT_LIBS) \
2036 $(SQUID_CPPUNIT_LA) \
2041 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2042 tests_testEvent_DEPENDENCIES = \
2046 ## Tests of the EventLoop module.
2047 tests_testEventLoop_SOURCES = \
2051 tests/stub_CacheDigest.cc \
2060 tests/stub_carp.cc \
2062 ChunkedCodingParser.cc \
2067 client_side_reply.cc \
2068 client_side_request.cc \
2078 $(DELAY_POOL_SOURCE) \
2086 tests/stub_ETag.cc \
2091 ExternalACLEntry.cc \
2094 tests/stub_fatal.cc \
2109 HelperChildConfig.h \
2110 HelperChildConfig.cc \
2120 HttpHeaderFieldInfo.h \
2122 HttpHeaderTools.cc \
2123 HttpHeaderFieldStat.h \
2127 HttpHdrContRange.cc \
2130 HttpHdrScTarget.cc \
2138 HttpRequestMethod.cc \
2170 peer_proxy_negotiate_auth.h \
2171 peer_proxy_negotiate_auth.cc \
2174 peer_sourcehash.cc \
2179 tests/stub_redirect.cc \
2184 SBufDetailedStats.h \
2185 tests/stub_SBufDetailedStats.cc \
2202 tests/stub_store_digest.cc \
2215 StoreFileSystem.cc \
2217 tests/stub_StoreMeta.cc \
2218 StoreMetaUnpacker.cc \
2219 StoreSwapLogData.cc \
2223 tests/stub_SwapDir.cc \
2224 tests/testEventLoop.cc \
2225 tests/testEventLoop.h \
2227 tests/stub_main_cc.cc \
2228 tests/stub_ipc_Forwarder.cc \
2229 tests/stub_libauth_acls.cc \
2230 tests/stub_libauth.cc \
2231 tests/stub_libeui.cc \
2232 tests/stub_store_stats.cc \
2236 tests/stub_tunnel.cc \
2244 tests/stub_wccp2.cc \
2246 tests/stub_whois.cc \
2250 nodist_tests_testEventLoop_SOURCES = \
2252 $(DISKIO_GEN_SOURCE)
2253 tests_testEventLoop_LDADD = \
2254 http/libsquid-http.la \
2264 icmp/libicmp.la icmp/libicmp-core.la \
2267 format/libformat.la \
2269 $(ADAPTATION_LIBS) \
2272 $(top_builddir)/lib/libmisccontainers.la \
2273 $(top_builddir)/lib/libmiscencoding.la \
2274 $(top_builddir)/lib/libmiscutil.la \
2281 $(SQUID_CPPUNIT_LIBS) \
2282 $(SQUID_CPPUNIT_LA) \
2287 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2288 tests_testEventLoop_DEPENDENCIES = \
2292 tests_test_http_range_SOURCES = \
2303 tests/stub_CacheDigest.cc \
2305 tests/stub_carp.cc \
2307 ChunkedCodingParser.cc \
2312 client_side_reply.cc \
2313 client_side_request.cc \
2323 $(DELAY_POOL_SOURCE) \
2331 tests/stub_ETag.cc \
2335 tests/stub_libauth.cc \
2336 tests/stub_fatal.cc \
2351 HelperChildConfig.h \
2352 HelperChildConfig.cc \
2360 HttpHeaderFieldStat.h \
2364 HttpHdrContRange.cc \
2367 HttpHdrScTarget.cc \
2370 HttpHeaderFieldInfo.h \
2372 HttpHeaderTools.cc \
2380 HttpRequestMethod.cc \
2411 peer_proxy_negotiate_auth.h \
2412 peer_proxy_negotiate_auth.cc \
2415 peer_sourcehash.cc \
2420 tests/stub_redirect.cc \
2426 SBufDetailedStats.h \
2427 tests/stub_SBufDetailedStats.cc \
2443 tests/stub_store_digest.cc \
2456 StoreFileSystem.cc \
2458 tests/stub_StoreMeta.cc \
2459 StoreMetaUnpacker.cc \
2460 StoreSwapLogData.cc \
2464 tests/stub_SwapDir.cc \
2465 tests/test_http_range.cc \
2466 tests/stub_external_acl.cc \
2467 tests/stub_ipc_Forwarder.cc \
2468 tests/stub_libeui.cc \
2469 tests/stub_main_cc.cc \
2470 tests/stub_MemStore.cc \
2471 tests/stub_store_stats.cc \
2475 tests/stub_tunnel.cc \
2482 tests/stub_wccp2.cc \
2484 tests/stub_whois.cc \
2488 nodist_tests_test_http_range_SOURCES = \
2490 $(DISKIO_GEN_SOURCE)
2491 tests_test_http_range_LDADD = \
2492 http/libsquid-http.la \
2501 icmp/libicmp.la icmp/libicmp-core.la \
2504 format/libformat.la \
2508 $(ADAPTATION_LIBS) \
2515 $(top_builddir)/lib/libmisccontainers.la \
2516 $(top_builddir)/lib/libmiscencoding.la \
2517 $(top_builddir)/lib/libmiscutil.la \
2519 $(SQUID_CPPUNIT_LIBS) \
2520 $(SQUID_CPPUNIT_LA) \
2525 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2526 tests_test_http_range_DEPENDENCIES = \
2529 tests_testHttpParser_SOURCES = \
2540 tests/stub_cache_cf.cc \
2541 tests/stub_cache_manager.cc \
2542 tests/stub_debug.cc \
2543 tests/stub_event.cc \
2544 tests/stub_HelperChildConfig.cc \
2546 tests/stub_tools.cc \
2547 tests/testHttpParser.cc \
2548 tests/testHttpParser.h \
2550 tests/stub_time.cc \
2553 nodist_tests_testHttpParser_SOURCES = \
2555 tests_testHttpParser_LDADD= \
2556 http/libsquid-http.la \
2560 $(top_builddir)/lib/libmiscutil.la \
2561 $(SQUID_CPPUNIT_LIBS) \
2564 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2565 tests_testHttpParser_DEPENDENCIES = \
2568 ## Tests of the HttpRequest module.
2569 tests_testHttpRequest_SOURCES = \
2576 HttpRequestMethod.cc \
2580 tests/testHttpRequest.h \
2581 tests/testHttpRequest.cc \
2582 tests/testHttpRequestMethod.h \
2583 tests/testHttpRequestMethod.cc \
2585 tests/stub_DiskIOModule.cc \
2586 tests/stub_libauth.cc \
2587 tests/stub_main_cc.cc \
2588 tests/stub_ipc_Forwarder.cc \
2589 tests/stub_libeui.cc \
2590 tests/stub_store_stats.cc \
2602 tests/stub_CacheDigest.cc \
2604 tests/stub_carp.cc \
2606 ChunkedCodingParser.cc \
2611 client_side_reply.cc \
2612 client_side_request.cc \
2621 $(DELAY_POOL_SOURCE) \
2628 tests/stub_ETag.cc \
2630 ExternalACLEntry.cc \
2632 tests/stub_fatal.cc \
2645 HelperChildConfig.h \
2646 HelperChildConfig.cc \
2656 HttpHeaderFieldInfo.h \
2658 HttpHeaderTools.cc \
2659 HttpHeaderFieldStat.h \
2663 HttpHdrContRange.cc \
2666 HttpHdrScTarget.cc \
2698 peer_proxy_negotiate_auth.h \
2699 peer_proxy_negotiate_auth.cc \
2702 peer_sourcehash.cc \
2706 tests/stub_libauth_acls.cc \
2707 tests/stub_redirect.cc \
2713 SBufDetailedStats.h \
2714 tests/stub_SBufDetailedStats.cc \
2730 tests/stub_store_digest.cc \
2743 StoreFileSystem.cc \
2745 tests/stub_StoreMeta.cc \
2746 StoreMetaUnpacker.cc \
2747 StoreSwapLogData.cc \
2753 tests/stub_tunnel.cc \
2754 tests/stub_SwapDir.cc \
2761 tests/stub_wccp2.cc \
2763 tests/stub_whois.cc \
2768 nodist_tests_testHttpRequest_SOURCES = \
2770 tests_testHttpRequest_LDADD = \
2783 icmp/libicmp.la icmp/libicmp-core.la \
2786 format/libformat.la \
2787 http/libsquid-http.la \
2789 $(ADAPTATION_LIBS) \
2792 $(top_builddir)/lib/libmisccontainers.la \
2793 $(top_builddir)/lib/libmiscencoding.la \
2794 $(top_builddir)/lib/libmiscutil.la \
2797 $(SQUID_CPPUNIT_LIBS) \
2798 $(SQUID_CPPUNIT_LA) \
2803 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2804 tests_testHttpRequest_DEPENDENCIES = \
2808 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2809 ## first line - what we are testing.
2810 tests_testStore_SOURCES= \
2812 tests/stub_CacheDigest.cc \
2817 $(DELAY_POOL_SOURCE) \
2820 DiskIO/ReadRequest.cc \
2821 DiskIO/WriteRequest.cc \
2826 tests/stub_fatal.cc \
2829 HttpHeaderFieldStat.h \
2833 HttpHdrContRange.cc \
2836 HttpHdrScTarget.cc \
2837 HttpHeaderFieldInfo.h \
2839 HttpHeaderTools.cc \
2843 HttpRequestMethod.cc \
2875 tests/stub_StoreMeta.cc \
2876 StoreMetaUnpacker.cc \
2877 StoreSwapLogData.cc \
2881 SBufDetailedStats.h \
2882 tests/stub_SBufDetailedStats.cc \
2887 tests/CapturingStoreEntry.h \
2889 tests/stub_access_log.cc \
2893 tests/stub_cache_cf.cc \
2894 tests/stub_cache_manager.cc \
2895 tests/stub_client_side_request.cc \
2896 tests/stub_comm.cc \
2897 tests/stub_debug.cc \
2898 tests/stub_DiskIOModule.cc \
2899 tests/stub_errorpage.cc \
2903 tests/stub_helper.cc \
2904 tests/stub_HelperChildConfig.cc \
2905 tests/stub_http.cc \
2906 tests/stub_libauth.cc \
2907 tests/stub_libeui.cc \
2908 tests/stub_libformat.cc \
2911 tests/stub_HttpReply.cc \
2912 tests/stub_HttpRequest.cc \
2913 tests/stub_libcomm.cc \
2914 tests/stub_MemStore.cc \
2916 tests/stub_mime.cc \
2917 tests/stub_Port.cc \
2918 tests/stub_store_client.cc \
2919 tests/stub_store_stats.cc \
2921 tests/stub_store_rebuild.cc \
2922 tests/stub_store_swapout.cc \
2924 tests/stub_tools.cc \
2925 tests/stub_UdsOp.cc \
2927 tests/testStore.cc \
2929 tests/testStoreEntryStream.cc \
2930 tests/testStoreEntryStream.h \
2931 tests/testStoreController.cc \
2932 tests/testStoreController.h \
2933 tests/testStoreHashIndex.cc \
2934 tests/testStoreHashIndex.h \
2935 tests/testStoreSupport.cc \
2936 tests/testStoreSupport.h \
2937 tests/TestSwapDir.cc \
2938 tests/TestSwapDir.h \
2939 tests/stub_time.cc \
2945 nodist_tests_testStore_SOURCES= \
2951 tests_testStore_LDADD= \
2952 http/libsquid-http.la \
2965 $(top_builddir)/lib/libmisccontainers.la \
2966 $(top_builddir)/lib/libmiscencoding.la \
2967 $(top_builddir)/lib/libmiscutil.la \
2969 $(SQUID_CPPUNIT_LIBS) \
2972 DnsLookupDetails.o \
2975 tests_testStore_LDFLAGS = $(LIBADD_DL)
2976 tests_testStore_DEPENDENCIES = \
2979 ## string needs mem.cc.
2980 ## mem.cc needs ClientInfo.h
2981 ## libsquid pulls in SquidConfig and children. stub them.
2982 tests_testString_SOURCES = \
2989 tests/testString.cc \
2990 tests/testString.h \
2993 tests/stub_cache_cf.cc \
2994 tests/stub_cache_manager.cc \
2995 tests/stub_debug.cc \
2996 tests/stub_HelperChildConfig.cc \
2998 tests/stub_tools.cc \
2999 tests/stub_time.cc \
3002 nodist_tests_testString_SOURCES = \
3004 tests_testString_LDADD = \
3008 $(top_builddir)/lib/libmiscutil.la \
3010 $(SQUID_CPPUNIT_LIBS) \
3014 tests_testString_LDFLAGS = $(LIBADD_DL)
3015 tests_testString_DEPENDENCIES = \
3034 tests_testUfs_SOURCES = \
3038 tests/stub_cache_manager.cc \
3039 tests/stub_client_db.cc \
3040 tests/stub_HelperChildConfig.cc \
3043 tests/stub_ipcache.cc \
3044 tests/stub_libeui.cc \
3045 tests/stub_libicmp.cc \
3046 tests/stub_MemStore.cc \
3047 tests/stub_pconn.cc \
3048 tests/stub_Port.cc \
3049 tests/stub_UdsOp.cc \
3051 tests/stub_internal.cc \
3052 tests/stub_libformat.cc \
3054 tests/stub_store_rebuild.cc \
3055 tests/stub_store_stats.cc \
3057 tests/stub_fatal.cc \
3081 StoreSwapLogData.cc \
3083 StoreMetaUnpacker.cc \
3084 $(STOREMETA_SOURCE) \
3085 StoreFileSystem.cc \
3092 $(DELAY_POOL_SOURCE) \
3094 tests/stub_CacheDigest.cc \
3102 HttpRequestMethod.cc \
3111 tests/stub_cache_cf.cc \
3112 tests/stub_helper.cc \
3115 SBufDetailedStats.h \
3116 tests/stub_SBufDetailedStats.cc \
3118 tests/stub_debug.cc \
3119 tests/stub_client_side_request.cc \
3120 tests/stub_http.cc \
3121 tests/stub_libauth.cc \
3125 tests/stub_mime.cc \
3126 HttpHeaderFieldInfo.h \
3128 HttpHeaderTools.cc \
3135 HttpHdrContRange.cc \
3137 HttpHeaderFieldStat.h \
3142 HttpHdrScTarget.cc \
3152 tests/stub_errorpage.cc \
3153 tests/stub_HttpRequest.cc \
3155 tests/stub_access_log.cc \
3158 tests/stub_store_client.cc \
3160 tests/stub_tools.cc \
3161 tests/testStoreSupport.cc \
3162 tests/testStoreSupport.h \
3169 nodist_tests_testUfs_SOURCES = \
3171 $(DISKIO_GEN_SOURCE) \
3175 tests_testUfs_LDADD = \
3176 http/libsquid-http.la \
3178 DnsLookupDetails.o \
3198 $(top_builddir)/lib/libmisccontainers.la \
3199 $(top_builddir)/lib/libmiscencoding.la \
3200 $(top_builddir)/lib/libmiscutil.la \
3202 $(SQUID_CPPUNIT_LIBS) \
3206 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3207 tests_testUfs_DEPENDENCIES = \
3210 check_PROGRAMS += testRefCount
3211 testRefCount_SOURCES= \
3214 tests/stub_cbdata.cc \
3215 tests/stub_debug.cc \
3216 tests/stub_MemBuf.cc \
3217 tests/testRefCount.cc
3218 testRefCount_LDADD = \
3220 $(top_builddir)/lib/libmiscutil.la \
3224 tests_testRock_SOURCES = \
3227 tests/stub_CacheDigest.cc \
3236 tests/stub_fatal.cc \
3243 HttpHeaderFieldStat.h \
3247 HttpHdrContRange.cc \
3250 HttpHdrScTarget.cc \
3253 HttpHeaderFieldInfo.h \
3255 HttpHeaderTools.cc \
3258 HttpRequestMethod.cc \
3280 tests/stub_StatHist.cc \
3284 StoreFileSystem.cc \
3286 StoreMetaUnpacker.cc \
3287 $(STOREMETA_SOURCE) \
3288 StoreSwapLogData.cc \
3296 SBufDetailedStats.h \
3297 tests/stub_SBufDetailedStats.cc \
3305 tests/testStoreSupport.cc \
3306 tests/testStoreSupport.h \
3308 tests/stub_access_log.cc \
3311 tests/stub_cache_cf.cc \
3313 tests/stub_cache_manager.cc \
3314 tests/stub_client_db.cc \
3315 tests/stub_client_side_request.cc \
3316 tests/stub_debug.cc \
3317 tests/stub_errorpage.cc \
3318 tests/stub_HelperChildConfig.cc \
3319 tests/stub_http.cc \
3320 tests/stub_HttpRequest.cc \
3321 tests/stub_libauth.cc \
3324 tests/stub_ipcache.cc \
3325 tests/stub_libeui.cc \
3326 tests/stub_libformat.cc \
3327 tests/stub_libicmp.cc \
3328 tests/stub_libmgr.cc \
3329 tests/stub_MemStore.cc \
3331 tests/stub_mime.cc \
3332 tests/stub_Port.cc \
3333 tests/stub_pconn.cc \
3334 tests/stub_store_client.cc \
3336 tests/stub_store_rebuild.cc \
3337 tests/stub_store_stats.cc \
3339 tests/stub_tools.cc \
3345 $(DELAY_POOL_SOURCE) \
3348 nodist_tests_testRock_SOURCES = \
3349 $(DISKIO_GEN_SOURCE) \
3354 tests_testRock_LDADD = \
3355 http/libsquid-http.la \
3371 $(top_builddir)/lib/libmisccontainers.la \
3372 $(top_builddir)/lib/libmiscencoding.la \
3373 $(top_builddir)/lib/libmiscutil.la \
3375 $(SQUID_CPPUNIT_LIBS) \
3379 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3380 tests_testRock_DEPENDENCIES = \
3383 ## Tests of the URL module.
3384 ## TODO: Trim this down once the insanity is over.
3385 tests_testURL_SOURCES = \
3394 tests/stub_cache_manager.cc \
3396 tests/stub_CacheDigest.cc \
3398 tests/stub_carp.cc \
3400 ChunkedCodingParser.cc \
3405 client_side_reply.cc \
3406 client_side_request.cc \
3415 $(DELAY_POOL_SOURCE) \
3418 DiskIO/ReadRequest.cc \
3419 DiskIO/WriteRequest.cc \
3427 ExternalACLEntry.cc \
3429 tests/stub_fatal.cc \
3444 HelperChildConfig.h \
3445 HelperChildConfig.cc \
3453 HttpHeaderFieldStat.h \
3457 HttpHdrContRange.cc \
3460 HttpHdrScTarget.cc \
3463 HttpHeaderFieldInfo.h \
3465 HttpHeaderTools.cc \
3473 HttpRequestMethod.cc \
3505 peer_proxy_negotiate_auth.h \
3506 peer_proxy_negotiate_auth.cc \
3509 peer_sourcehash.cc \
3513 tests/stub_redirect.cc \
3519 SBufDetailedStats.h \
3520 tests/stub_SBufDetailedStats.cc \
3530 tests/stub_StatHist.cc \
3536 tests/stub_store_digest.cc \
3549 StoreFileSystem.cc \
3551 tests/stub_StoreMeta.cc \
3552 StoreMetaUnpacker.cc \
3553 StoreSwapLogData.cc \
3557 tests/stub_SwapDir.cc \
3559 tests/stub_debug.cc \
3560 tests/stub_DiskIOModule.cc \
3561 tests/stub_libauth_acls.cc \
3562 tests/stub_libauth.cc \
3563 tests/stub_main_cc.cc \
3564 tests/stub_ipc_Forwarder.cc \
3565 tests/stub_store_stats.cc \
3568 tests/testURLScheme.cc \
3569 tests/testURLScheme.h \
3571 tests/stub_time.cc \
3574 tests/stub_tunnel.cc \
3580 tests/stub_wccp2.cc \
3582 tests/stub_whois.cc \
3587 nodist_tests_testURL_SOURCES = \
3589 tests_testURL_LDADD = \
3590 http/libsquid-http.la \
3604 icmp/libicmp.la icmp/libicmp-core.la \
3608 format/libformat.la \
3611 $(ADAPTATION_LIBS) \
3614 $(top_builddir)/lib/libmisccontainers.la \
3615 $(top_builddir)/lib/libmiscencoding.la \
3616 $(top_builddir)/lib/libmiscutil.la \
3618 $(SQUID_CPPUNIT_LIBS) \
3619 $(SQUID_CPPUNIT_LA) \
3624 tests_testURL_LDFLAGS = $(LIBADD_DL)
3625 tests_testURL_DEPENDENCIES = \
3629 tests_testSBuf_SOURCES= \
3633 tests/SBufFindTest.h \
3634 tests/SBufFindTest.cc \
3636 SBufDetailedStats.h \
3637 tests/stub_SBufDetailedStats.cc \
3639 tests/stub_time.cc \
3641 tests/stub_debug.cc \
3642 tests/stub_fatal.cc \
3643 tests/stub_HelperChildConfig.cc \
3644 tests/stub_cache_cf.cc \
3645 tests/stub_cache_manager.cc \
3646 tests/stub_store.cc \
3647 tests/stub_store_stats.cc \
3648 tests/stub_tools.cc \
3651 tests/stub_wordlist.cc \
3652 tests/stub_MemBuf.cc
3653 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3654 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3655 tests_testSBuf_LDADD=\
3656 $(SQUID_CPPUNIT_LIBS) \
3657 $(SQUID_CPPUNIT_LA) \
3663 $(top_builddir)/lib/libmiscutil.la \
3665 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3667 tests_testConfigParser_SOURCES = \
3671 tests/stub_MemBuf.cc \
3672 tests/stub_time.cc \
3676 tests/stub_fatal.cc \
3678 tests/testConfigParser.cc \
3679 tests/testConfigParser.h \
3682 tests/stub_cache_cf.cc \
3683 tests/stub_cache_manager.cc \
3684 tests/stub_debug.cc \
3685 tests/stub_HelperChildConfig.cc \
3687 tests/stub_tools.cc \
3690 nodist_tests_testConfigParser_SOURCES = \
3692 tests_testConfigParser_LDADD = \
3696 $(top_builddir)/lib/libmiscutil.la \
3698 $(SQUID_CPPUNIT_LIBS) \
3702 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3703 tests_testConfigParser_DEPENDENCIES = \
3706 tests_testStatHist_SOURCES = \
3707 tests/stub_cbdata.cc \
3709 tests/stub_fatal.cc \
3710 tests/stub_MemBuf.cc \
3714 tests/stub_cache_manager.cc \
3715 tests/stub_comm.cc \
3716 tests/stub_debug.cc \
3717 tests/stub_DelayId.cc \
3718 tests/stub_HelperChildConfig.cc \
3721 tests/stub_MemObject.cc \
3723 tests/stub_mime.cc \
3724 tests/stub_pconn.cc \
3725 tests/stub_stmem.cc \
3727 tests/stub_store.cc \
3728 tests/stub_store_stats.cc \
3730 tests/stub_tools.cc \
3732 tests/testStatHist.cc \
3733 tests/testStatHist.h
3734 nodist_tests_testStatHist_SOURCES = \
3736 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3737 tests_testStatHist_LDADD = \
3739 $(top_builddir)/lib/libmiscutil.la \
3740 $(top_builddir)/lib/libmisccontainers.la \
3741 $(SQUID_CPPUNIT_LIBS) \
3742 $(SQUID_CPPUNIT_LA) \
3744 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3746 tests_testVector_SOURCES = \
3747 tests/testVector.cc \
3750 nodist_tests_testVector_SOURCES = \
3752 tests_testVector_LDADD= \
3753 $(SQUID_CPPUNIT_LIBS) \
3756 tests_testVector_LDFLAGS = $(LIBADD_DL)
3757 tests_testVector_DEPENDENCIES = \
3761 TESTS += testHeaders
3763 ## Special Universal .h dependency test script
3764 ## aborts if error encountered
3765 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3766 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3767 ## src/repl/ has no .h files and its own makefile.
3769 CLEANFILES += testHeaders