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
15 DNSSOURCE = dns_internal.cc
29 LOADABLE_MODULES_SOURCES = \
35 SUBDIRS = base anyp comm eui acl format fs repl
36 DIST_SUBDIRS = base anyp comm eui acl format fs repl
40 AUTH_LIBS= auth/libauth.la
41 AUTH_ACL_LIBS= auth/libacls.la
42 check_PROGRAMS+= tests/testACLMaxUserIP
46 SUBDIRS += http ip icmp ident log ipc mgr
47 DIST_SUBDIRS += http ip icmp ident log ipc mgr
66 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
68 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
77 DIST_SUBDIRS += adaptation
83 $(top_builddir)/lib/libTrie/libTrie.a
84 ESI_LIBS = $(ESI_LOCAL_LIBS) \
92 DELAY_POOL_ALL_SOURCE = \
116 ClientDelayConfig.cc \
119 if ENABLE_DELAY_POOLS
120 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
125 if ENABLE_XPROF_STATS
126 XPROF_STATS_SOURCE = ProfStats.cc
132 HTCPSOURCE = htcp.cc htcp.h
136 LEAKFINDERSOURCE = LeakFinder.cc
142 UNLINKDSOURCE = unlinkd.h unlinkd.cc
145 UNLINKDSOURCE = unlinkd.h
154 if ENABLE_WIN32SPECIFIC
155 WIN32_SOURCE = win32.cc
156 WINSVC_SOURCE = WinSvc.cc
163 IPC_SOURCE = SquidIpc.h ipc_win32.cc
165 IPC_SOURCE = SquidIpc.h ipc.cc
168 AIO_WIN32_ALL_SOURCES = \
169 DiskIO/AIO/aio_win32.cc \
170 DiskIO/AIO/aio_win32.h
172 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
178 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
179 DiskIO/DiskThreads/CommIO.cc \
180 DiskIO/DiskThreads/CommIO.h
182 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
183 DiskIO/DiskThreads/CommIO.cc \
184 DiskIO/DiskThreads/CommIO.h
187 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
188 libMmapped.a libIpcIo.a
189 noinst_LIBRARIES = $(DISK_LIBS)
190 noinst_LTLIBRARIES = libsquid.la
193 DiskIO/DiskDaemon/diskd \
202 ## cfgen is used when building squid
203 ## ufsdump is a debug utility, it is possibly useful for end users with cache
204 ## corruption, but at this point we do not install it.
219 cf_gen_SOURCES = cf_gen.cc
220 nodist_cf_gen_HEADER = cf_gen_defines.cci
221 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
223 cf_gen.$(OBJEXT): cf_gen_defines.cci
225 ## cf_gen.cc needs src/cf_gen_defines.cci
226 INCLUDES += -I$(top_builddir)/src
229 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
232 DiskIO/DiskIOModule.cc \
233 DiskIO/ReadRequest.cc \
234 DiskIO/ReadRequest.h \
235 DiskIO/WriteRequest.cc \
236 DiskIO/WriteRequest.h \
238 DiskIO/DiskIOStrategy.h \
239 DiskIO/IORequestor.h \
240 DiskIO/DiskIOModule.h \
243 DISKIO_GEN_SOURCE = \
244 DiskIO/DiskIOModules_gen.cc
246 DiskIO/DiskIOModules_gen.cc: Makefile
247 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
250 # common library for all the binaries and tests. This is kindof a catch all
251 # and smaller libraries split from this are encouraged. Using lt convenience
252 # libraries, dependencies should not be a problem either.
253 libsquid_la_SOURCES = \
265 $(ACL_REGISTRATION_SOURCES) \
279 NeighborTypeDomainList.h \
280 CachePeerDomainList.h \
287 ChunkedCodingParser.cc \
288 ChunkedCodingParser.h \
294 client_side_reply.cc \
295 client_side_reply.h \
296 client_side_request.cc \
297 client_side_request.h \
302 ClientRequestContext.h \
305 CompletionDispatcher.cc \
306 CompletionDispatcher.h \
320 $(DELAY_POOL_SOURCE) \
340 ExternalACLEntry.cc \
364 HelperChildConfig.h \
365 HelperChildConfig.cc \
369 HierarchyLogEntry.h \
374 HttpHeaderFieldStat.h \
383 HttpHdrContRange.cc \
390 HttpHeaderFieldInfo.h \
406 HttpRequestMethod.cc \
407 HttpRequestMethod.h \
419 $(LEAKFINDERSOURCE) \
449 $(XPROF_STATS_SOURCE) \
454 peer_proxy_negotiate_auth.h \
455 peer_proxy_negotiate_auth.cc \
523 StoreMetaUnpacker.cc \
524 StoreMetaUnpacker.h \
532 StoreSwapLogData.cc \
565 EXTRA_squid_SOURCES = \
566 $(AIO_WIN32_ALL_SOURCES) \
569 $(DELAY_POOL_ALL_SOURCE) \
573 DnsLookupDetails.cc \
584 $(WIN32_ALL_SOURCE) \
585 $(LOADABLE_MODULES_SOURCES)
588 client_side_request.cci \
610 CLEANFILES += $(BUILT_SOURCES)
612 nodist_squid_SOURCES = \
613 $(DISKIO_GEN_SOURCE) \
633 http/libsquid-http.la \
634 icmp/libicmp.la icmp/libicmp-core.la \
636 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 ## dnsserver is a standalone helper. Do not link to any internal libraries
699 dnsserver_SOURCES = dnsserver.cc
704 recv_announce_SOURCES = recv-announce.cc
706 ## What requires what..
707 ## many things want ACLChecklist.cc
708 ## ACLChecklist.cc wants AuthUserRequest.cc
709 ## ACLChecklist.cc wants AuthScheme.cc
710 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
711 ## ACLProxyAuth.cc wants ACLUserData
712 ## ACLProxyAuth.cc wants ACLRegexData
713 ## cache_cf.cc wants $(AUTH_LIBS)
714 ## cache_cf.cc wants Swapdir
715 ## cache_cf.cc wants AnyP::PortCfg
716 ## client_side wants client_db
717 ## client_db wants SNMP_SOURCE
718 ## snmp_core wants ACLStringData
719 ## SwapDir wants ConfigOption
720 ## tools.cc wants ip/libip.la
721 ## client_side.cc wants ip/libip.la
722 ## mem.cc wants ClientInfo.h
723 ## libbase.la wants cbdata.*
724 ## libbase.la wants MemBuf.*
744 StoreMetaUnpacker.cc \
753 HelperChildConfig.h \
754 tests/stub_HelperChildConfig.cc \
755 HttpRequestMethod.cc \
783 ufsdump_DEPENDENCIES = \
801 nodist_ufsdump_SOURCES = \
806 squid.conf.documented \
831 include $(srcdir)/tests/Stub.list
840 mk-string-arrays.pl \
841 mk-string-arrays.awk \
848 $(AIO_WIN32_SOURCES) \
849 DiskIO/AIO/async_io.h \
850 DiskIO/AIO/AIODiskFile.cc \
851 DiskIO/AIO/AIODiskFile.h \
852 DiskIO/AIO/AIODiskIOStrategy.cc \
853 DiskIO/AIO/AIODiskIOStrategy.h \
854 DiskIO/AIO/AIODiskIOModule.cc \
855 DiskIO/AIO/AIODiskIOModule.h
857 libBlocking_a_SOURCES = \
858 DiskIO/Blocking/BlockingFile.cc \
859 DiskIO/Blocking/BlockingFile.h \
860 DiskIO/Blocking/BlockingIOStrategy.cc \
861 DiskIO/Blocking/BlockingIOStrategy.h \
862 DiskIO/Blocking/BlockingDiskIOModule.cc \
863 DiskIO/Blocking/BlockingDiskIOModule.h
865 libMmapped_a_SOURCES = \
866 DiskIO/Mmapped/MmappedFile.cc \
867 DiskIO/Mmapped/MmappedFile.h \
868 DiskIO/Mmapped/MmappedIOStrategy.cc \
869 DiskIO/Mmapped/MmappedIOStrategy.h \
870 DiskIO/Mmapped/MmappedDiskIOModule.cc \
871 DiskIO/Mmapped/MmappedDiskIOModule.h
873 libIpcIo_a_SOURCES = \
874 DiskIO/IpcIo/IpcIoFile.cc \
875 DiskIO/IpcIo/IpcIoFile.h \
876 DiskIO/IpcIo/IpcIoIOStrategy.cc \
877 DiskIO/IpcIo/IpcIoIOStrategy.h \
878 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
879 DiskIO/IpcIo/IpcIoDiskIOModule.h
881 libDiskDaemon_a_SOURCES = \
882 DiskIO/DiskDaemon/DiskdFile.cc \
883 DiskIO/DiskDaemon/DiskdFile.h \
884 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
885 DiskIO/DiskDaemon/DiskdIOStrategy.h \
886 DiskIO/DiskDaemon/diomsg.h \
887 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
888 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
889 DiskIO/DiskDaemon/DiskdAction.cc \
890 DiskIO/DiskDaemon/DiskdAction.h
892 libDiskThreads_a_SOURCES = \
894 DiskIO/DiskThreads/async_io.cc \
895 DiskIO/DiskThreads/DiskThreads.h \
896 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
897 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
898 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
899 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
900 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
901 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
903 EXTRA_libDiskThreads_a_SOURCES = \
904 DiskIO/DiskThreads/aiops.cc \
905 DiskIO/DiskThreads/aiops_win32.cc \
906 DiskIO/DiskThreads/CommIO.cc \
907 DiskIO/DiskThreads/CommIO.h
909 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
910 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
911 DiskIO_DiskDaemon_diskd_LDADD = \
912 $(top_builddir)/lib/libmisccontainers.la \
913 $(top_builddir)/lib/libmiscencoding.la \
914 $(top_builddir)/lib/libmiscutil.la \
919 DEFAULT_HTTP_PORT = 3128
920 DEFAULT_ICP_PORT = 3130
921 DEFAULT_PREFIX = $(prefix)
922 DEFAULT_CONFIG_DIR = $(sysconfdir)
923 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
924 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
925 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
926 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
927 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
928 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
929 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
930 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
931 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
932 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
933 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
934 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
935 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
936 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
937 DEFAULT_ICON_DIR = $(datadir)/icons
938 DEFAULT_ERROR_DIR = $(datadir)/errors
940 # Make location configure settings available to the code
941 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
943 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
945 globals.cc: globals.h mk-globals-c.awk
946 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
948 ## Generate files containing string arrays for various enums....
949 hier_code.cc: hier_code.h mk-string-arrays.awk
950 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
952 err_type.cc: err_type.h mk-string-arrays.awk
953 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
955 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
956 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
958 LogTags.cc: LogTags.h mk-string-arrays.awk
959 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
961 lookup_t.cc: lookup_t.h mk-string-arrays.awk
962 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
964 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
965 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
967 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
968 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
971 ## other generated files...
973 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
974 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
976 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
977 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
979 ## If autodependency works well this is not needed anymore
980 cache_cf.o: cf_parser.cci
982 # cf_gen builds the configuration files.
983 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
984 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
986 # squid.conf.default is built by cf_gen when making cf_parser.cci
987 squid.conf.default squid.conf.documented: cf_parser.cci
990 cf_parser.cci: cf.data cf_gen$(EXEEXT)
991 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
993 # The cf_gen_defines.cci is auto-generated and does not exist when the
994 # dependencies computed. We need to add its include files (autoconf.h) here
995 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
996 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
999 ## FIXME: generate a sed command file from configure. Then this doesn't
1000 ## depend on the Makefile.
1001 cf.data: cf.data.pre Makefile
1003 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
1004 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
1005 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
1006 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
1007 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
1008 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
1009 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
1010 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
1011 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
1012 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
1013 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
1014 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1015 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1016 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1017 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1018 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1019 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1020 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1021 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1022 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1023 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1024 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1025 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1026 < $(srcdir)/cf.data.pre >$@
1028 repl_modules.cc: repl_modules.sh Makefile
1029 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1031 include $(top_srcdir)/doc/manuals/Substitute.am
1033 squid.8: $(srcdir)/squid.8.in Makefile
1034 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1037 EXTRA_DIST += squid.8.in
1038 CLEANFILES += squid.8
1040 install-data-local: install-sysconfDATA install-dataDATA
1041 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1042 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1044 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1045 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1047 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1048 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1050 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1051 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1053 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1054 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1055 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1056 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1057 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1058 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1059 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1061 uninstall-local: squid.conf.default
1062 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1063 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1065 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1066 DiskIO/DiskIOModules_gen.cc \
1069 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1070 cp $(top_srcdir)/test-suite/test_tools.cc .
1072 # stock tools for unit tests - library independent versions of dlink_list
1074 # globals.cc is needed by test_tools.cc.
1075 # Neither of these should be disted from here.
1082 tests/testBoilerplate \
1083 tests/testCacheManager \
1086 tests/testEventLoop \
1087 tests/test_http_range \
1088 tests/testHttpParser \
1089 tests/testHttpReply \
1090 tests/testHttpRequest \
1094 tests/testConfigParser \
1095 tests/testStatHist \
1099 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1100 TESTS += $(check_PROGRAMS)
1102 ### Template for new Unit Test Program
1103 ## - add tests/testX to check_PROGRAMS above.
1104 ## - copy template below and substitue X for class name
1105 ## - add other component .(h|cc) files needed to link and run tests
1107 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1109 #tests_testX_SOURCES=\
1112 # tests/testMain.cc \
1115 #nodist_tests_testX_SOURCES=\
1117 #tests_testX_LDFLAGS = $(LIBADD_DL)
1118 #tests_testX_LDADD=\
1119 # $(SQUID_CPPUNIT_LIBS) \
1120 # $(SQUID_CPPUNIT_LA) \
1122 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1125 # - add other component .(h|cc) files needed to link and run tests
1126 tests_testHttpReply_SOURCES=\
1132 tests/stub_fatal.cc \
1135 HttpHeaderFieldStat.h \
1139 HttpHdrContRange.cc \
1140 HttpHdrContRange.h \
1144 HttpHdrScTarget.cc \
1149 HttpHeaderFieldInfo.h \
1151 HttpHeaderTools.cc \
1173 tests/stub_access_log.cc \
1176 tests/stub_cache_cf.cc \
1177 tests/stub_cache_manager.cc \
1178 tests/stub_debug.cc \
1179 tests/stub_errorpage.cc \
1180 tests/stub_HelperChildConfig.cc \
1181 tests/stub_libformat.cc \
1185 tests/stub_StatHist.cc \
1187 tests/stub_store.cc \
1188 tests/stub_store_stats.cc \
1190 tests/stub_tools.cc \
1191 tests/stub_HttpRequest.cc \
1192 tests/testHttpReply.cc \
1193 tests/testHttpReply.h \
1200 nodist_tests_testHttpReply_SOURCES=\
1202 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1203 tests_testHttpReply_LDADD=\
1204 http/libsquid-http.la \
1213 $(top_builddir)/lib/libmisccontainers.la \
1214 $(top_builddir)/lib/libmiscencoding.la \
1215 $(top_builddir)/lib/libmiscutil.la \
1216 $(SQUID_CPPUNIT_LIBS) \
1217 $(SQUID_CPPUNIT_LA) \
1221 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1223 tests_testACLMaxUserIP_SOURCES= \
1228 DiskIO/ReadRequest.cc \
1229 DiskIO/WriteRequest.cc \
1233 tests/stub_fatal.cc \
1236 HelperChildConfig.h \
1237 HelperChildConfig.cc \
1241 HttpHeaderFieldInfo.h \
1243 HttpHeaderTools.cc \
1244 HttpHdrContRange.cc \
1246 HttpHeaderFieldStat.h \
1251 HttpHdrScTarget.cc \
1253 HttpRequestMethod.cc \
1269 tests/stub_StatHist.cc \
1277 StoreMetaSTDLFS.cc \
1278 StoreMetaUnpacker.cc \
1281 StoreSwapLogData.cc \
1289 tests/stub_access_log.cc \
1292 tests/stub_cache_cf.cc \
1293 tests/stub_client_side.cc \
1294 tests/stub_debug.cc \
1295 tests/stub_DelayId.cc \
1296 tests/stub_DiskIOModule.cc \
1297 tests/stub_errorpage.cc \
1300 tests/stub_HttpRequest.cc \
1301 tests/stub_HttpReply.cc \
1302 tests/stub_ipc_TypedMsgHdr.cc \
1303 tests/stub_libcomm.cc \
1304 tests/stub_libformat.cc \
1305 tests/stub_libsslsquid.cc \
1306 tests/stub_MemObject.cc \
1307 tests/stub_MemStore.cc \
1309 tests/stub_mime.cc \
1310 tests/stub_pconn.cc \
1311 tests/stub_Port.cc \
1313 tests/stub_store.cc \
1315 tests/stub_store_rebuild.cc \
1316 tests/stub_store_stats.cc \
1317 tests/stub_store_swapout.cc \
1319 tests/stub_tools.cc \
1320 tests/stub_cache_manager.cc \
1321 tests/stub_UdsOp.cc \
1322 tests/testACLMaxUserIP.cc \
1323 tests/testACLMaxUserIP.h \
1335 nodist_tests_testACLMaxUserIP_SOURCES= \
1337 tests_testACLMaxUserIP_LDADD= \
1338 http/libsquid-http.la \
1352 $(top_builddir)/lib/libmisccontainers.la \
1353 $(top_builddir)/lib/libmiscencoding.la \
1354 $(top_builddir)/lib/libmiscutil.la \
1357 $(SQUID_CPPUNIT_LIBS) \
1361 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1362 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1363 ## $(SQUID_CPPUNIT_LA)
1365 ## a demonstration test that does nothing but shows the salient points
1366 ## involved in writing tests.
1367 tests_testBoilerplate_SOURCES = \
1368 tests/testBoilerplate.cc \
1370 tests/testBoilerplate.h \
1372 nodist_tests_testBoilerplate_SOURCES = \
1374 tests_testBoilerplate_LDADD= \
1375 $(SQUID_CPPUNIT_LIBS) \
1379 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1380 tests_testBoilerplate_DEPENDENCIES = \
1383 ## Tests of the CacheManager module.
1384 tests_testCacheManager_SOURCES = \
1386 $(ACL_REGISTRATION_SOURCES) \
1393 HttpRequestMethod.cc \
1397 tests/testCacheManager.cc \
1398 tests/testCacheManager.h \
1400 tests/stub_main_cc.cc \
1401 tests/stub_ipc_Forwarder.cc \
1402 tests/stub_store_stats.cc \
1417 ChunkedCodingParser.cc \
1422 client_side_reply.cc \
1423 client_side_request.cc \
1432 $(DELAY_POOL_SOURCE) \
1443 ExternalACLEntry.cc \
1445 tests/stub_fatal.cc \
1461 HelperChildConfig.h \
1462 HelperChildConfig.cc \
1472 HttpHeaderFieldInfo.h \
1474 HttpHeaderTools.cc \
1475 HttpHeaderFieldStat.h \
1479 HttpHdrContRange.cc \
1482 HttpHdrScTarget.cc \
1515 peer_proxy_negotiate_auth.h \
1516 peer_proxy_negotiate_auth.cc \
1519 peer_sourcehash.cc \
1539 tests/stub_StatHist.cc \
1558 StoreFileSystem.cc \
1563 StoreMetaSTDLFS.cc \
1564 StoreMetaUnpacker.cc \
1567 StoreSwapLogData.cc \
1586 nodist_tests_testCacheManager_SOURCES = \
1588 $(DISKIO_GEN_SOURCE)
1589 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1590 tests_testCacheManager_LDADD = \
1591 http/libsquid-http.la \
1604 icmp/libicmp.la icmp/libicmp-core.la \
1606 format/libformat.la \
1610 $(ADAPTATION_LIBS) \
1617 $(top_builddir)/lib/libmisccontainers.la \
1618 $(top_builddir)/lib/libmiscencoding.la \
1619 $(top_builddir)/lib/libmiscutil.la \
1621 $(SQUID_CPPUNIT_LIBS) \
1622 $(SQUID_CPPUNIT_LA) \
1627 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1628 tests_testCacheManager_DEPENDENCIES = \
1632 tests_testDiskIO_SOURCES = \
1640 $(DELAY_POOL_SOURCE) \
1648 tests/stub_fatal.cc \
1657 HttpHeaderFieldStat.h \
1661 HttpHdrContRange.cc \
1663 HttpHdrScTarget.cc \
1665 HttpHeaderFieldInfo.h \
1667 HttpHeaderTools.cc \
1672 HttpRequestMethod.cc \
1694 tests/stub_StatHist.cc \
1696 StoreFileSystem.cc \
1701 StoreMetaSTDLFS.cc \
1702 StoreMetaUnpacker.cc \
1705 StoreSwapLogData.cc \
1719 tests/stub_access_log.cc \
1723 tests/stub_cache_cf.cc \
1724 tests/stub_cache_manager.cc \
1725 tests/stub_client_db.cc \
1726 client_side_request.h \
1727 tests/stub_client_side_request.cc \
1728 tests/stub_debug.cc \
1729 tests/stub_errorpage.cc \
1730 tests/stub_helper.cc \
1731 tests/stub_HelperChildConfig.cc \
1732 tests/stub_HttpRequest.cc \
1733 tests/stub_http.cc \
1736 tests/stub_internal.cc \
1738 tests/stub_ipcache.cc \
1739 tests/stub_libeui.cc \
1740 tests/stub_libformat.cc \
1741 tests/stub_libicmp.cc \
1742 tests/stub_MemStore.cc \
1744 tests/stub_mime.cc \
1745 tests/stub_pconn.cc \
1746 tests/stub_Port.cc \
1747 tests/stub_store_client.cc \
1748 tests/stub_store_stats.cc \
1750 tests/stub_store_rebuild.cc \
1751 tests/stub_UdsOp.cc \
1752 tests/testDiskIO.cc \
1753 tests/testDiskIO.h \
1755 tests/testStoreSupport.cc \
1756 tests/testStoreSupport.h \
1766 nodist_tests_testDiskIO_SOURCES= \
1768 $(DISKIO_GEN_SOURCE) \
1772 tests_testDiskIO_LDADD = \
1773 http/libsquid-http.la \
1776 DnsLookupDetails.o \
1796 $(top_builddir)/lib/libmisccontainers.la \
1797 $(top_builddir)/lib/libmiscencoding.la \
1798 $(top_builddir)/lib/libmiscutil.la \
1800 $(SQUID_CPPUNIT_LIBS) \
1805 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1806 tests_testDiskIO_DEPENDENCIES = \
1811 ## Tests of the Even module.
1812 tests_testEvent_SOURCES = \
1814 $(ACL_REGISTRATION_SOURCES) \
1828 ChunkedCodingParser.cc \
1833 client_side_reply.cc \
1834 client_side_request.cc \
1844 $(DELAY_POOL_SOURCE) \
1857 ExternalACLEntry.cc \
1860 tests/stub_fatal.cc \
1875 HelperChildConfig.h \
1876 HelperChildConfig.cc \
1886 HttpHeaderFieldInfo.h \
1888 HttpHeaderTools.cc \
1889 HttpHeaderFieldStat.h \
1893 HttpHdrContRange.cc \
1896 HttpHdrScTarget.cc \
1904 HttpRequestMethod.cc \
1937 peer_proxy_negotiate_auth.h \
1938 peer_proxy_negotiate_auth.cc \
1941 peer_sourcehash.cc \
1980 StoreFileSystem.cc \
1985 StoreMetaSTDLFS.cc \
1986 StoreMetaUnpacker.cc \
1989 StoreSwapLogData.cc \
1992 tests/CapturingStoreEntry.h \
1993 tests/testEvent.cc \
1996 tests/stub_main_cc.cc \
1997 tests/stub_ipc_Forwarder.cc \
1998 tests/stub_libeui.cc \
1999 tests/stub_store_stats.cc \
2017 nodist_tests_testEvent_SOURCES = \
2019 $(DISKIO_GEN_SOURCE)
2020 tests_testEvent_LDADD = \
2021 http/libsquid-http.la \
2033 icmp/libicmp.la icmp/libicmp-core.la \
2036 format/libformat.la \
2038 $(ADAPTATION_LIBS) \
2041 $(top_builddir)/lib/libmisccontainers.la \
2042 $(top_builddir)/lib/libmiscencoding.la \
2043 $(top_builddir)/lib/libmiscutil.la \
2050 $(SQUID_CPPUNIT_LIBS) \
2051 $(SQUID_CPPUNIT_LA) \
2056 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2057 tests_testEvent_DEPENDENCIES = \
2061 ## Tests of the EventLoop module.
2062 tests_testEventLoop_SOURCES = \
2064 $(ACL_REGISTRATION_SOURCES) \
2078 ChunkedCodingParser.cc \
2083 client_side_reply.cc \
2084 client_side_request.cc \
2094 $(DELAY_POOL_SOURCE) \
2107 ExternalACLEntry.cc \
2110 tests/stub_fatal.cc \
2125 HelperChildConfig.h \
2126 HelperChildConfig.cc \
2136 HttpHeaderFieldInfo.h \
2138 HttpHeaderTools.cc \
2139 HttpHeaderFieldStat.h \
2143 HttpHdrContRange.cc \
2146 HttpHdrScTarget.cc \
2154 HttpRequestMethod.cc \
2187 peer_proxy_negotiate_auth.h \
2188 peer_proxy_negotiate_auth.cc \
2191 peer_sourcehash.cc \
2229 StoreFileSystem.cc \
2234 StoreMetaSTDLFS.cc \
2235 StoreMetaUnpacker.cc \
2238 StoreSwapLogData.cc \
2243 tests/testEventLoop.cc \
2244 tests/testEventLoop.h \
2246 tests/stub_main_cc.cc \
2247 tests/stub_ipc_Forwarder.cc \
2248 tests/stub_libeui.cc \
2249 tests/stub_store_stats.cc \
2267 nodist_tests_testEventLoop_SOURCES = \
2269 $(DISKIO_GEN_SOURCE)
2270 tests_testEventLoop_LDADD = \
2271 http/libsquid-http.la \
2283 icmp/libicmp.la icmp/libicmp-core.la \
2286 format/libformat.la \
2288 $(ADAPTATION_LIBS) \
2291 $(top_builddir)/lib/libmisccontainers.la \
2292 $(top_builddir)/lib/libmiscencoding.la \
2293 $(top_builddir)/lib/libmiscutil.la \
2300 $(SQUID_CPPUNIT_LIBS) \
2301 $(SQUID_CPPUNIT_LA) \
2306 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2307 tests_testEventLoop_DEPENDENCIES = \
2311 tests_test_http_range_SOURCES = \
2313 $(ACL_REGISTRATION_SOURCES) \
2327 ChunkedCodingParser.cc \
2332 client_side_reply.cc \
2333 client_side_request.cc \
2343 $(DELAY_POOL_SOURCE) \
2354 ExternalACLEntry.cc \
2357 tests/stub_fatal.cc \
2372 HelperChildConfig.h \
2373 HelperChildConfig.cc \
2381 HttpHeaderFieldStat.h \
2385 HttpHdrContRange.cc \
2388 HttpHdrScTarget.cc \
2391 HttpHeaderFieldInfo.h \
2393 HttpHeaderTools.cc \
2401 HttpRequestMethod.cc \
2433 peer_proxy_negotiate_auth.h \
2434 peer_proxy_negotiate_auth.cc \
2437 peer_sourcehash.cc \
2475 StoreFileSystem.cc \
2480 StoreMetaSTDLFS.cc \
2481 StoreMetaUnpacker.cc \
2484 StoreSwapLogData.cc \
2489 tests/test_http_range.cc \
2490 tests/stub_ipc_Forwarder.cc \
2491 tests/stub_libeui.cc \
2492 tests/stub_main_cc.cc \
2493 tests/stub_MemStore.cc \
2494 tests/stub_store_stats.cc \
2511 nodist_tests_test_http_range_SOURCES = \
2513 $(DISKIO_GEN_SOURCE)
2514 tests_test_http_range_LDADD = \
2515 http/libsquid-http.la \
2526 icmp/libicmp.la icmp/libicmp-core.la \
2529 format/libformat.la \
2533 $(ADAPTATION_LIBS) \
2540 $(top_builddir)/lib/libmisccontainers.la \
2541 $(top_builddir)/lib/libmiscencoding.la \
2542 $(top_builddir)/lib/libmiscutil.la \
2544 $(SQUID_CPPUNIT_LIBS) \
2545 $(SQUID_CPPUNIT_LA) \
2550 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2551 tests_test_http_range_DEPENDENCIES = \
2554 tests_testHttpParser_SOURCES = \
2565 tests/stub_cache_cf.cc \
2566 tests/stub_cache_manager.cc \
2567 tests/stub_debug.cc \
2568 tests/stub_event.cc \
2569 tests/stub_HelperChildConfig.cc \
2571 tests/stub_tools.cc \
2572 tests/testHttpParser.cc \
2573 tests/testHttpParser.h \
2578 nodist_tests_testHttpParser_SOURCES = \
2580 tests_testHttpParser_LDADD= \
2581 http/libsquid-http.la \
2585 $(top_builddir)/lib/libmiscutil.la \
2586 $(SQUID_CPPUNIT_LIBS) \
2589 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2590 tests_testHttpParser_DEPENDENCIES = \
2593 ## Tests of the HttpRequest module.
2594 tests_testHttpRequest_SOURCES = \
2596 $(ACL_REGISTRATION_SOURCES) \
2602 HttpRequestMethod.cc \
2606 tests/testHttpRequest.h \
2607 tests/testHttpRequest.cc \
2608 tests/testHttpRequestMethod.h \
2609 tests/testHttpRequestMethod.cc \
2611 tests/stub_DiskIOModule.cc \
2612 tests/stub_main_cc.cc \
2613 tests/stub_ipc_Forwarder.cc \
2614 tests/stub_libeui.cc \
2615 tests/stub_store_stats.cc \
2631 ChunkedCodingParser.cc \
2636 client_side_reply.cc \
2637 client_side_request.cc \
2646 $(DELAY_POOL_SOURCE) \
2655 ExternalACLEntry.cc \
2657 tests/stub_fatal.cc \
2670 HelperChildConfig.h \
2671 HelperChildConfig.cc \
2681 HttpHeaderFieldInfo.h \
2683 HttpHeaderTools.cc \
2684 HttpHeaderFieldStat.h \
2688 HttpHdrContRange.cc \
2691 HttpHdrScTarget.cc \
2724 peer_proxy_negotiate_auth.h \
2725 peer_proxy_negotiate_auth.cc \
2728 peer_sourcehash.cc \
2765 StoreFileSystem.cc \
2770 StoreMetaSTDLFS.cc \
2771 StoreMetaUnpacker.cc \
2774 StoreSwapLogData.cc \
2795 nodist_tests_testHttpRequest_SOURCES = \
2797 tests_testHttpRequest_LDADD = \
2812 icmp/libicmp.la icmp/libicmp-core.la \
2815 format/libformat.la \
2816 http/libsquid-http.la \
2818 $(ADAPTATION_LIBS) \
2821 $(top_builddir)/lib/libmisccontainers.la \
2822 $(top_builddir)/lib/libmiscencoding.la \
2823 $(top_builddir)/lib/libmiscutil.la \
2826 $(SQUID_CPPUNIT_LIBS) \
2827 $(SQUID_CPPUNIT_LA) \
2832 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2833 tests_testHttpRequest_DEPENDENCIES = \
2837 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2838 ## first line - what we are testing.
2839 tests_testStore_SOURCES= \
2846 $(DELAY_POOL_SOURCE) \
2849 DiskIO/ReadRequest.cc \
2850 DiskIO/WriteRequest.cc \
2855 tests/stub_fatal.cc \
2858 HttpHeaderFieldStat.h \
2862 HttpHdrContRange.cc \
2865 HttpHdrScTarget.cc \
2866 HttpHeaderFieldInfo.h \
2868 HttpHeaderTools.cc \
2872 HttpRequestMethod.cc \
2905 StoreMetaSTDLFS.cc \
2906 StoreMetaUnpacker.cc \
2909 StoreSwapLogData.cc \
2916 tests/CapturingStoreEntry.h \
2918 tests/stub_access_log.cc \
2922 tests/stub_cache_cf.cc \
2923 tests/stub_cache_manager.cc \
2924 tests/stub_client_side_request.cc \
2925 tests/stub_comm.cc \
2926 tests/stub_debug.cc \
2927 tests/stub_DiskIOModule.cc \
2928 tests/stub_errorpage.cc \
2932 tests/stub_helper.cc \
2933 tests/stub_HelperChildConfig.cc \
2934 tests/stub_http.cc \
2935 tests/stub_libeui.cc \
2936 tests/stub_libformat.cc \
2939 tests/stub_HttpReply.cc \
2940 tests/stub_HttpRequest.cc \
2941 tests/stub_libcomm.cc \
2942 tests/stub_MemStore.cc \
2944 tests/stub_mime.cc \
2945 tests/stub_Port.cc \
2946 tests/stub_store_client.cc \
2947 tests/stub_store_stats.cc \
2949 tests/stub_store_rebuild.cc \
2950 tests/stub_store_swapout.cc \
2952 tests/stub_tools.cc \
2953 tests/stub_UdsOp.cc \
2955 tests/testStore.cc \
2957 tests/testStoreEntryStream.cc \
2958 tests/testStoreEntryStream.h \
2959 tests/testStoreController.cc \
2960 tests/testStoreController.h \
2961 tests/testStoreHashIndex.cc \
2962 tests/testStoreHashIndex.h \
2963 tests/testStoreSupport.cc \
2964 tests/testStoreSupport.h \
2965 tests/TestSwapDir.cc \
2966 tests/TestSwapDir.h \
2973 nodist_tests_testStore_SOURCES= \
2979 tests_testStore_LDADD= \
2980 http/libsquid-http.la \
2995 $(top_builddir)/lib/libmisccontainers.la \
2996 $(top_builddir)/lib/libmiscencoding.la \
2997 $(top_builddir)/lib/libmiscutil.la \
2999 $(SQUID_CPPUNIT_LIBS) \
3002 DnsLookupDetails.o \
3005 tests_testStore_LDFLAGS = $(LIBADD_DL)
3006 tests_testStore_DEPENDENCIES = \
3009 ## string needs mem.cc.
3010 ## mem.cc needs ClientInfo.h
3011 ## libsquid pulls in SquidConfig and children. stub them.
3012 tests_testString_SOURCES = \
3019 tests/testString.cc \
3020 tests/testString.h \
3023 tests/stub_cache_cf.cc \
3024 tests/stub_cache_manager.cc \
3025 tests/stub_debug.cc \
3026 tests/stub_HelperChildConfig.cc \
3028 tests/stub_tools.cc \
3032 nodist_tests_testString_SOURCES = \
3034 tests_testString_LDADD = \
3038 $(top_builddir)/lib/libmiscutil.la \
3040 $(SQUID_CPPUNIT_LIBS) \
3044 tests_testString_LDFLAGS = $(LIBADD_DL)
3045 tests_testString_DEPENDENCIES = \
3066 tests_testUfs_SOURCES = \
3070 tests/stub_cache_manager.cc \
3071 tests/stub_client_db.cc \
3072 tests/stub_HelperChildConfig.cc \
3075 tests/stub_libeui.cc \
3076 tests/stub_MemStore.cc \
3077 tests/stub_pconn.cc \
3078 tests/stub_Port.cc \
3079 tests/stub_UdsOp.cc \
3081 tests/stub_internal.cc \
3082 tests/stub_libformat.cc \
3084 tests/stub_store_rebuild.cc \
3085 tests/stub_store_stats.cc \
3087 tests/stub_fatal.cc \
3109 StoreSwapLogData.cc \
3114 StoreMetaSTDLFS.cc \
3115 StoreMetaUnpacker.cc \
3118 StoreFileSystem.cc \
3125 $(DELAY_POOL_SOURCE) \
3135 HttpRequestMethod.cc \
3144 tests/stub_cache_cf.cc \
3145 tests/stub_helper.cc \
3148 tests/stub_debug.cc \
3149 tests/stub_client_side_request.cc \
3150 tests/stub_http.cc \
3154 tests/stub_mime.cc \
3155 HttpHeaderFieldInfo.h \
3157 HttpHeaderTools.cc \
3164 HttpHdrContRange.cc \
3166 HttpHeaderFieldStat.h \
3171 HttpHdrScTarget.cc \
3181 tests/stub_errorpage.cc \
3182 tests/stub_HttpRequest.cc \
3184 tests/stub_access_log.cc \
3187 tests/stub_store_client.cc \
3189 tests/stub_tools.cc \
3190 tests/testStoreSupport.cc \
3191 tests/testStoreSupport.h \
3198 nodist_tests_testUfs_SOURCES = \
3200 $(DISKIO_GEN_SOURCE) \
3204 tests_testUfs_LDADD = \
3205 http/libsquid-http.la \
3207 DnsLookupDetails.o \
3229 $(top_builddir)/lib/libmisccontainers.la \
3230 $(top_builddir)/lib/libmiscencoding.la \
3231 $(top_builddir)/lib/libmiscutil.la \
3233 $(SQUID_CPPUNIT_LIBS) \
3237 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3238 tests_testUfs_DEPENDENCIES = \
3241 check_PROGRAMS += testRefCount
3242 testRefCount_SOURCES= \
3245 tests/stub_cbdata.cc \
3246 tests/stub_debug.cc \
3247 tests/stub_MemBuf.cc \
3248 tests/testRefCount.cc
3249 testRefCount_LDADD = \
3251 $(top_builddir)/lib/libmiscutil.la \
3255 tests_testRock_SOURCES = \
3267 tests/stub_fatal.cc \
3274 HttpHeaderFieldStat.h \
3278 HttpHdrContRange.cc \
3281 HttpHdrScTarget.cc \
3284 HttpHeaderFieldInfo.h \
3286 HttpHeaderTools.cc \
3289 HttpRequestMethod.cc \
3309 tests/stub_StatHist.cc \
3313 StoreFileSystem.cc \
3318 StoreMetaSTDLFS.cc \
3320 StoreMetaUnpacker.cc \
3322 StoreSwapLogData.cc \
3336 tests/testStoreSupport.cc \
3337 tests/testStoreSupport.h \
3339 tests/stub_access_log.cc \
3342 tests/stub_cache_cf.cc \
3343 tests/stub_cache_manager.cc \
3345 tests/stub_client_db.cc \
3346 tests/stub_client_side_request.cc \
3347 tests/stub_debug.cc \
3348 tests/stub_errorpage.cc \
3349 tests/stub_HelperChildConfig.cc \
3350 tests/stub_http.cc \
3351 tests/stub_HttpRequest.cc \
3354 tests/stub_ipcache.cc \
3355 tests/stub_libeui.cc \
3356 tests/stub_libformat.cc \
3357 tests/stub_libicmp.cc \
3358 tests/stub_MemStore.cc \
3360 tests/stub_mime.cc \
3361 tests/stub_Port.cc \
3362 tests/stub_pconn.cc \
3363 tests/stub_store_client.cc \
3365 tests/stub_store_rebuild.cc \
3366 tests/stub_store_stats.cc \
3368 tests/stub_tools.cc \
3374 $(DELAY_POOL_SOURCE) \
3377 nodist_tests_testRock_SOURCES = \
3378 $(DISKIO_GEN_SOURCE) \
3383 tests_testRock_LDADD = \
3384 http/libsquid-http.la \
3402 $(top_builddir)/lib/libmisccontainers.la \
3403 $(top_builddir)/lib/libmiscencoding.la \
3404 $(top_builddir)/lib/libmiscutil.la \
3406 $(SQUID_CPPUNIT_LIBS) \
3410 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3411 tests_testRock_DEPENDENCIES = \
3414 tests_testCoss_SOURCES = \
3418 tests/stub_cache_manager.cc \
3420 tests/stub_client_db.cc \
3421 tests/stub_debug.cc \
3422 tests/stub_HelperChildConfig.cc \
3424 tests/stub_internal.cc \
3426 tests/stub_libeui.cc \
3427 tests/stub_pconn.cc \
3429 tests/stub_store_rebuild.cc \
3430 tests/stub_store_stats.cc \
3432 tests/stub_fatal.cc \
3449 StoreSwapLogData.cc \
3454 StoreMetaSTDLFS.cc \
3455 StoreMetaUnpacker.cc \
3458 StoreFileSystem.cc \
3465 $(DELAY_POOL_SOURCE) \
3475 HttpRequestMethod.cc \
3484 tests/stub_cache_cf.cc \
3485 tests/stub_helper.cc \
3488 tests/stub_client_side_request.cc \
3489 tests/stub_http.cc \
3493 tests/stub_mime.cc \
3494 HttpHeaderFieldInfo.h \
3496 HttpHeaderTools.cc \
3503 HttpHdrContRange.cc \
3505 HttpHeaderFieldStat.h \
3510 HttpHdrScTarget.cc \
3515 tests/stub_StatHist.cc \
3516 tests/stub_errorpage.cc \
3517 tests/stub_HttpRequest.cc \
3519 tests/stub_access_log.cc \
3522 tests/stub_MemStore.cc \
3523 tests/stub_Port.cc \
3524 tests/stub_store_client.cc \
3525 tests/stub_store_stats.cc \
3527 tests/stub_tools.cc \
3528 tests/stub_UdsOp.cc \
3529 tests/testStoreSupport.cc \
3530 tests/testStoreSupport.h \
3537 nodist_tests_testCoss_SOURCES = \
3542 $(DISKIO_GEN_SOURCE)
3543 tests_testCoss_LDADD = \
3566 $(top_builddir)/lib/libmisccontainers.la \
3567 $(top_builddir)/lib/libmiscencoding.la \
3568 $(top_builddir)/lib/libmiscutil.la \
3569 $(SQUID_CPPUNIT_LIBS) \
3574 tests_testCoss_LDFLAGS = $(LIBADD_DL)
3575 tests_testCoss_DEPENDENCIES = \
3578 ## Tests of the URL module.
3579 ## TODO: Trim this down once the insanity is over.
3580 tests_testURL_SOURCES = \
3582 $(ACL_REGISTRATION_SOURCES) \
3596 ChunkedCodingParser.cc \
3601 client_side_reply.cc \
3602 client_side_request.cc \
3611 $(DELAY_POOL_SOURCE) \
3614 DiskIO/ReadRequest.cc \
3615 DiskIO/WriteRequest.cc \
3623 ExternalACLEntry.cc \
3625 tests/stub_fatal.cc \
3640 HelperChildConfig.h \
3641 HelperChildConfig.cc \
3649 HttpHeaderFieldStat.h \
3653 HttpHdrContRange.cc \
3656 HttpHdrScTarget.cc \
3659 HttpHeaderFieldInfo.h \
3661 HttpHeaderTools.cc \
3669 HttpRequestMethod.cc \
3702 peer_proxy_negotiate_auth.h \
3703 peer_proxy_negotiate_auth.cc \
3706 peer_sourcehash.cc \
3724 tests/stub_StatHist.cc \
3743 StoreFileSystem.cc \
3748 StoreMetaSTDLFS.cc \
3749 StoreMetaUnpacker.cc \
3752 StoreSwapLogData.cc \
3758 tests/stub_debug.cc \
3759 tests/stub_DiskIOModule.cc \
3760 tests/stub_main_cc.cc \
3761 tests/stub_ipc_Forwarder.cc \
3762 tests/stub_store_stats.cc \
3765 tests/testURLScheme.cc \
3766 tests/testURLScheme.h \
3784 nodist_tests_testURL_SOURCES = \
3786 tests_testURL_LDADD = \
3787 http/libsquid-http.la \
3803 icmp/libicmp.la icmp/libicmp-core.la \
3807 format/libformat.la \
3810 $(ADAPTATION_LIBS) \
3813 $(top_builddir)/lib/libmisccontainers.la \
3814 $(top_builddir)/lib/libmiscencoding.la \
3815 $(top_builddir)/lib/libmiscutil.la \
3817 $(SQUID_CPPUNIT_LIBS) \
3818 $(SQUID_CPPUNIT_LA) \
3823 tests_testURL_LDFLAGS = $(LIBADD_DL)
3824 tests_testURL_DEPENDENCIES = \
3828 tests_testConfigParser_SOURCES = \
3836 tests/stub_fatal.cc \
3838 tests/testConfigParser.cc \
3839 tests/testConfigParser.h \
3842 tests/stub_cache_cf.cc \
3843 tests/stub_cache_manager.cc \
3844 tests/stub_debug.cc \
3845 tests/stub_HelperChildConfig.cc \
3847 tests/stub_tools.cc \
3851 nodist_tests_testConfigParser_SOURCES = \
3853 tests_testConfigParser_LDADD = \
3857 $(top_builddir)/lib/libmiscutil.la \
3859 $(SQUID_CPPUNIT_LIBS) \
3863 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3864 tests_testConfigParser_DEPENDENCIES = \
3867 tests_testStatHist_SOURCES = \
3870 tests/stub_fatal.cc \
3875 tests/stub_cache_manager.cc \
3876 tests/stub_comm.cc \
3877 tests/stub_debug.cc \
3878 tests/stub_DelayId.cc \
3879 tests/stub_HelperChildConfig.cc \
3882 tests/stub_MemObject.cc \
3884 tests/stub_mime.cc \
3885 tests/stub_pconn.cc \
3886 tests/stub_stmem.cc \
3888 tests/stub_store.cc \
3889 tests/stub_store_stats.cc \
3891 tests/stub_tools.cc \
3893 tests/testStatHist.cc \
3894 tests/testStatHist.h \
3896 nodist_tests_testStatHist_SOURCES = \
3898 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3899 tests_testStatHist_LDADD = \
3901 $(top_builddir)/lib/libmiscutil.la \
3902 $(top_builddir)/lib/libmisccontainers.la \
3903 $(SQUID_CPPUNIT_LIBS) \
3904 $(SQUID_CPPUNIT_LA) \
3906 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3908 tests_testVector_SOURCES = \
3909 tests/testVector.cc \
3911 tests/testVector.h \
3913 nodist_tests_testVector_SOURCES = \
3915 tests_testVector_LDADD= \
3916 $(SQUID_CPPUNIT_LIBS) \
3919 tests_testVector_LDFLAGS = $(LIBADD_DL)
3920 tests_testVector_DEPENDENCIES = \
3924 TESTS += testHeaders
3926 ## Special Universal .h dependency test script
3927 ## aborts if error encountered
3928 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3929 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3930 ## src/repl/ has no .h files and its own makefile.
3932 CLEANFILES += testHeaders