2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
22 OutOfBoundsException.h \
43 LOADABLE_MODULES_SOURCES = \
49 SUBDIRS = base anyp comm eui acl format fs repl
50 DIST_SUBDIRS = base anyp comm eui acl format fs repl
54 AUTH_LIBS= auth/libauth.la
55 AUTH_ACL_LIBS= auth/libacls.la
56 check_PROGRAMS+= tests/testACLMaxUserIP
60 SUBDIRS += http ip icmp ident log ipc mgr
61 DIST_SUBDIRS += http ip icmp ident log ipc mgr
80 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
82 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
91 DIST_SUBDIRS += adaptation
97 $(top_builddir)/lib/libTrie/libTrie.a
98 ESI_LIBS = $(ESI_LOCAL_LIBS) \
106 DELAY_POOL_ALL_SOURCE = \
108 CompositePoolNode.h \
130 ClientDelayConfig.cc \
133 if ENABLE_DELAY_POOLS
134 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
139 if ENABLE_XPROF_STATS
140 XPROF_STATS_SOURCE = ProfStats.cc
146 HTCPSOURCE = htcp.cc htcp.h
150 LEAKFINDERSOURCE = LeakFinder.cc
156 UNLINKDSOURCE = unlinkd.h unlinkd.cc
159 UNLINKDSOURCE = unlinkd.h
168 if ENABLE_WIN32SPECIFIC
169 WIN32_SOURCE = win32.cc
170 WINSVC_SOURCE = WinSvc.cc
177 IPC_SOURCE = SquidIpc.h ipc_win32.cc
179 IPC_SOURCE = SquidIpc.h ipc.cc
182 AIO_WIN32_ALL_SOURCES = \
183 DiskIO/AIO/aio_win32.cc \
184 DiskIO/AIO/aio_win32.h
186 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
192 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
193 DiskIO/DiskThreads/CommIO.cc \
194 DiskIO/DiskThreads/CommIO.h
196 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
197 DiskIO/DiskThreads/CommIO.cc \
198 DiskIO/DiskThreads/CommIO.h
201 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
202 libMmapped.a libIpcIo.a
203 noinst_LIBRARIES = $(DISK_LIBS)
204 noinst_LTLIBRARIES = libsquid.la
207 DiskIO/DiskDaemon/diskd \
214 ## cfgen is used when building squid
215 ## ufsdump is a debug utility, it is possibly useful for end users with cache
216 ## corruption, but at this point we do not install it.
230 cf_gen_SOURCES = cf_gen.cc
231 nodist_cf_gen_HEADER = cf_gen_defines.cci
232 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
234 cf_gen.$(OBJEXT): cf_gen_defines.cci
236 ## cf_gen.cc needs src/cf_gen_defines.cci
237 INCLUDES += -I$(top_builddir)/src
240 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
243 DiskIO/DiskIOModule.cc \
244 DiskIO/ReadRequest.cc \
245 DiskIO/ReadRequest.h \
246 DiskIO/WriteRequest.cc \
247 DiskIO/WriteRequest.h \
249 DiskIO/DiskIOStrategy.h \
250 DiskIO/IORequestor.h \
251 DiskIO/DiskIOModule.h \
254 DISKIO_GEN_SOURCE = \
255 DiskIO/DiskIOModules_gen.cc
257 DiskIO/DiskIOModules_gen.cc: Makefile
258 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
261 # common library for all the binaries and tests. This is kindof a catch all
262 # and smaller libraries split from this are encouraged. Using lt convenience
263 # libraries, dependencies should not be a problem either.
264 libsquid_la_SOURCES = \
276 $(ACL_REGISTRATION_SOURCES) \
290 NeighborTypeDomainList.h \
291 CachePeerDomainList.h \
298 ChunkedCodingParser.cc \
299 ChunkedCodingParser.h \
305 client_side_reply.cc \
306 client_side_reply.h \
307 client_side_request.cc \
308 client_side_request.h \
313 ClientRequestContext.h \
316 CollapsedForwarding.cc \
317 CollapsedForwarding.h \
318 CompletionDispatcher.cc \
319 CompletionDispatcher.h \
333 $(DELAY_POOL_SOURCE) \
353 ExternalACLEntry.cc \
377 HelperChildConfig.h \
378 HelperChildConfig.cc \
382 HierarchyLogEntry.h \
387 HttpHeaderFieldStat.h \
396 HttpHdrContRange.cc \
403 HttpHeaderFieldInfo.h \
419 HttpRequestMethod.cc \
420 HttpRequestMethod.h \
432 $(LEAKFINDERSOURCE) \
463 $(XPROF_STATS_SOURCE) \
468 peer_proxy_negotiate_auth.h \
469 peer_proxy_negotiate_auth.cc \
487 SBufDetailedStats.h \
488 SBufDetailedStats.cc \
532 StoreMetaUnpacker.cc \
533 StoreMetaUnpacker.h \
534 $(STOREMETA_SOURCE) \
538 StoreSwapLogData.cc \
571 EXTRA_squid_SOURCES = \
572 $(AIO_WIN32_ALL_SOURCES) \
575 $(DELAY_POOL_ALL_SOURCE) \
585 $(WIN32_ALL_SOURCE) \
586 $(LOADABLE_MODULES_SOURCES)
589 client_side_request.cci \
610 CLEANFILES += $(BUILT_SOURCES)
612 nodist_squid_SOURCES = \
613 $(DISKIO_GEN_SOURCE) \
634 http/libsquid-http.la \
635 icmp/libicmp.la icmp/libicmp-core.la \
637 format/libformat.la \
647 $(top_builddir)/lib/libmisccontainers.la \
648 $(top_builddir)/lib/libmiscencoding.la \
649 $(top_builddir)/lib/libmiscutil.la \
656 squid_DEPENDENCIES = \
674 format/libformat.la \
678 if USE_LOADABLE_MODULES
679 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
680 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
681 squid_LDFLAGS = -export-dynamic -dlopen force
682 ## when static module linking is supported and enabled:
683 ## squid_LDFLAGS = -all-static -dlopen self
685 ## LTDL headers require their local include path...
686 INCLUDES += $(INCLTDL)
689 ## Kerberos libraries require their include path...
690 INCLUDES += $(KRB5INCS)
693 unlinkd_SOURCES = unlinkd_daemon.cc
698 recv_announce_SOURCES = recv-announce.cc
700 ## What requires what..
701 ## many things want ACLChecklist.cc
702 ## ACLChecklist.cc wants AuthUserRequest.cc
703 ## ACLChecklist.cc wants AuthScheme.cc
704 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
705 ## ACLProxyAuth.cc wants ACLUserData
706 ## ACLProxyAuth.cc wants ACLRegexData
707 ## cache_cf.cc wants $(AUTH_LIBS)
708 ## cache_cf.cc wants Swapdir
709 ## cache_cf.cc wants AnyP::PortCfg
710 ## client_side wants client_db
711 ## client_db wants SNMP_SOURCE
712 ## snmp_core wants ACLStringData
713 ## SwapDir wants ConfigOption
714 ## tools.cc wants ip/libip.la
715 ## client_side.cc wants ip/libip.la
716 ## mem.cc wants ClientInfo.h
717 ## libbase.la wants cbdata.*
718 ## libbase.la wants MemBuf.*
734 tests/stub_StoreMeta.cc \
735 StoreMetaUnpacker.cc \
742 HelperChildConfig.h \
743 tests/stub_HelperChildConfig.cc \
744 HttpRequestMethod.cc \
770 ufsdump_DEPENDENCIES = \
786 nodist_ufsdump_SOURCES = \
791 squid.conf.documented \
816 include $(srcdir)/tests/Stub.list
825 mk-string-arrays.pl \
826 mk-string-arrays.awk \
833 $(AIO_WIN32_SOURCES) \
834 DiskIO/AIO/async_io.h \
835 DiskIO/AIO/AIODiskFile.cc \
836 DiskIO/AIO/AIODiskFile.h \
837 DiskIO/AIO/AIODiskIOStrategy.cc \
838 DiskIO/AIO/AIODiskIOStrategy.h \
839 DiskIO/AIO/AIODiskIOModule.cc \
840 DiskIO/AIO/AIODiskIOModule.h
842 libBlocking_a_SOURCES = \
843 DiskIO/Blocking/BlockingFile.cc \
844 DiskIO/Blocking/BlockingFile.h \
845 DiskIO/Blocking/BlockingIOStrategy.cc \
846 DiskIO/Blocking/BlockingIOStrategy.h \
847 DiskIO/Blocking/BlockingDiskIOModule.cc \
848 DiskIO/Blocking/BlockingDiskIOModule.h
850 libMmapped_a_SOURCES = \
851 DiskIO/Mmapped/MmappedFile.cc \
852 DiskIO/Mmapped/MmappedFile.h \
853 DiskIO/Mmapped/MmappedIOStrategy.cc \
854 DiskIO/Mmapped/MmappedIOStrategy.h \
855 DiskIO/Mmapped/MmappedDiskIOModule.cc \
856 DiskIO/Mmapped/MmappedDiskIOModule.h
858 libIpcIo_a_SOURCES = \
859 DiskIO/IpcIo/IpcIoFile.cc \
860 DiskIO/IpcIo/IpcIoFile.h \
861 DiskIO/IpcIo/IpcIoIOStrategy.cc \
862 DiskIO/IpcIo/IpcIoIOStrategy.h \
863 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
864 DiskIO/IpcIo/IpcIoDiskIOModule.h
866 libDiskDaemon_a_SOURCES = \
867 DiskIO/DiskDaemon/DiskdFile.cc \
868 DiskIO/DiskDaemon/DiskdFile.h \
869 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
870 DiskIO/DiskDaemon/DiskdIOStrategy.h \
871 DiskIO/DiskDaemon/diomsg.h \
872 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
873 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
874 DiskIO/DiskDaemon/DiskdAction.cc \
875 DiskIO/DiskDaemon/DiskdAction.h
877 libDiskThreads_a_SOURCES = \
879 DiskIO/DiskThreads/async_io.cc \
880 DiskIO/DiskThreads/DiskThreads.h \
881 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
882 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
883 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
884 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
885 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
886 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
888 EXTRA_libDiskThreads_a_SOURCES = \
889 DiskIO/DiskThreads/aiops.cc \
890 DiskIO/DiskThreads/aiops_win32.cc \
891 DiskIO/DiskThreads/CommIO.cc \
892 DiskIO/DiskThreads/CommIO.h
894 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
895 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
896 DiskIO_DiskDaemon_diskd_LDADD = \
897 $(top_builddir)/lib/libmisccontainers.la \
898 $(top_builddir)/lib/libmiscencoding.la \
899 $(top_builddir)/lib/libmiscutil.la \
904 DEFAULT_HTTP_PORT = 3128
905 DEFAULT_ICP_PORT = 3130
906 DEFAULT_PREFIX = $(prefix)
907 DEFAULT_CONFIG_DIR = $(sysconfdir)
908 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
909 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
910 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
911 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
912 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
913 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
914 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
915 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
916 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
917 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
921 DEFAULT_ICON_DIR = $(datadir)/icons
922 DEFAULT_ERROR_DIR = $(datadir)/errors
924 # Make location configure settings available to the code
925 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
927 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
929 globals.cc: globals.h mk-globals-c.awk
930 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
932 ## Generate files containing string arrays for various enums....
933 hier_code.cc: hier_code.h mk-string-arrays.awk
934 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
936 err_type.cc: err_type.h mk-string-arrays.awk
937 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
939 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
940 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
942 LogTags.cc: LogTags.h mk-string-arrays.awk
943 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
945 lookup_t.cc: lookup_t.h mk-string-arrays.awk
946 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
948 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
949 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
951 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
952 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
955 ## other generated files...
957 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
958 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
960 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
961 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
963 ## If autodependency works well this is not needed anymore
964 cache_cf.o: cf_parser.cci
966 # cf_gen builds the configuration files.
967 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
968 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
970 # squid.conf.default is built by cf_gen when making cf_parser.cci
971 squid.conf.default squid.conf.documented: cf_parser.cci
974 cf_parser.cci: cf.data cf_gen$(EXEEXT)
975 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
977 # The cf_gen_defines.cci is auto-generated and does not exist when the
978 # dependencies computed. We need to add its include files (autoconf.h) here
979 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
980 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
983 ## FIXME: generate a sed command file from configure. Then this doesn't
984 ## depend on the Makefile.
985 cf.data: cf.data.pre Makefile
987 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
988 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
989 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
990 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
991 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
992 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
993 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
994 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
995 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
996 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
997 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
998 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
999 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1000 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1001 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1002 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1003 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1004 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1005 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1006 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1007 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1008 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1009 < $(srcdir)/cf.data.pre >$@
1011 repl_modules.cc: repl_modules.sh Makefile
1012 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1014 include $(top_srcdir)/doc/manuals/Substitute.am
1016 squid.8: $(srcdir)/squid.8.in Makefile
1017 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1020 EXTRA_DIST += squid.8.in
1021 CLEANFILES += squid.8
1023 install-data-local: install-sysconfDATA install-dataDATA
1024 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1025 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1027 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1028 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1030 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1031 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1033 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1034 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1036 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1037 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1038 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1039 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1040 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1041 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1042 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1044 uninstall-local: squid.conf.default
1045 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1046 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1048 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1049 DiskIO/DiskIOModules_gen.cc \
1052 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1053 cp $(top_srcdir)/test-suite/test_tools.cc .
1055 # stock tools for unit tests - library independent versions of dlink_list
1057 # globals.cc is needed by test_tools.cc.
1058 # Neither of these should be disted from here.
1065 tests/testBoilerplate \
1066 tests/testCacheManager \
1069 tests/testEventLoop \
1070 tests/test_http_range \
1071 tests/testHttpParser \
1072 tests/testHttpReply \
1073 tests/testHttpRequest \
1078 tests/testSBufList \
1079 tests/testConfigParser \
1080 tests/testStatHist \
1084 check_PROGRAMS += tests/testRock
1087 check_PROGRAMS += tests/testUfs
1090 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1091 TESTS += $(check_PROGRAMS)
1093 ### Template for new Unit Test Program
1094 ## - add tests/testX to check_PROGRAMS above.
1095 ## - copy template below and substitue X for class name
1096 ## - add other component .(h|cc) files needed to link and run tests
1098 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1100 #tests_testX_SOURCES=\
1103 # tests/testMain.cc \
1106 #nodist_tests_testX_SOURCES=\
1108 #tests_testX_LDFLAGS = $(LIBADD_DL)
1109 #tests_testX_LDADD=\
1110 # $(SQUID_CPPUNIT_LIBS) \
1111 # $(SQUID_CPPUNIT_LA) \
1113 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1116 # - add other component .(h|cc) files needed to link and run tests
1117 tests_testHttpReply_SOURCES=\
1121 tests/stub_ETag.cc \
1123 tests/stub_fatal.cc \
1126 HttpHeaderFieldStat.h \
1130 HttpHdrContRange.cc \
1131 HttpHdrContRange.h \
1135 HttpHdrScTarget.cc \
1140 HttpHeaderFieldInfo.h \
1142 HttpHeaderTools.cc \
1163 SBufDetailedStats.h \
1164 tests/stub_SBufDetailedStats.cc \
1169 tests/stub_access_log.cc \
1172 tests/stub_cache_cf.cc \
1173 tests/stub_cache_manager.cc \
1174 tests/stub_debug.cc \
1175 tests/stub_errorpage.cc \
1176 tests/stub_HelperChildConfig.cc \
1177 tests/stub_libformat.cc \
1178 tests/stub_libauth.cc \
1182 tests/stub_StatHist.cc \
1184 tests/stub_store.cc \
1185 tests/stub_store_stats.cc \
1187 tests/stub_tools.cc \
1188 tests/stub_HttpRequest.cc \
1189 tests/testHttpReply.cc \
1190 tests/testHttpReply.h \
1192 tests/stub_time.cc \
1196 nodist_tests_testHttpReply_SOURCES=\
1198 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1199 tests_testHttpReply_LDADD=\
1200 http/libsquid-http.la \
1208 $(top_builddir)/lib/libmisccontainers.la \
1209 $(top_builddir)/lib/libmiscencoding.la \
1210 $(top_builddir)/lib/libmiscutil.la \
1211 $(SQUID_CPPUNIT_LIBS) \
1212 $(SQUID_CPPUNIT_LA) \
1216 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1218 tests_testACLMaxUserIP_SOURCES= \
1221 tests/stub_CollapsedForwarding.cc \
1224 DiskIO/ReadRequest.cc \
1225 DiskIO/WriteRequest.cc \
1226 tests/stub_ETag.cc \
1229 tests/stub_fatal.cc \
1232 HelperChildConfig.h \
1233 HelperChildConfig.cc \
1237 HttpHeaderFieldInfo.h \
1239 HttpHeaderTools.cc \
1240 HttpHdrContRange.cc \
1242 HttpHeaderFieldStat.h \
1247 HttpHdrScTarget.cc \
1249 HttpRequestMethod.cc \
1267 tests/stub_StatHist.cc \
1270 SBufDetailedStats.h \
1271 tests/stub_SBufDetailedStats.cc \
1275 tests/stub_StoreMeta.cc \
1276 StoreMetaUnpacker.cc \
1277 StoreSwapLogData.cc \
1282 tests/stub_SwapDir.cc \
1286 tests/stub_access_log.cc \
1289 tests/stub_cache_cf.cc \
1290 tests/stub_client_side.cc \
1291 tests/stub_debug.cc \
1292 tests/stub_DelayId.cc \
1293 tests/stub_DiskIOModule.cc \
1294 tests/stub_errorpage.cc \
1297 tests/stub_HttpRequest.cc \
1298 tests/stub_HttpReply.cc \
1299 tests/stub_ipc_TypedMsgHdr.cc \
1300 tests/stub_libauth.cc \
1301 tests/stub_libcomm.cc \
1302 tests/stub_libformat.cc \
1303 tests/stub_libsslsquid.cc \
1304 tests/stub_MemObject.cc \
1305 tests/stub_MemStore.cc \
1307 tests/stub_mime.cc \
1308 tests/stub_pconn.cc \
1309 tests/stub_Port.cc \
1311 tests/stub_store.cc \
1312 tests/stub_store_client.cc \
1314 tests/stub_store_rebuild.cc \
1315 tests/stub_store_stats.cc \
1316 tests/stub_store_swapout.cc \
1318 tests/stub_tools.cc \
1319 tests/stub_cache_manager.cc \
1320 tests/stub_UdsOp.cc \
1321 tests/testACLMaxUserIP.cc \
1322 tests/testACLMaxUserIP.h \
1324 tests/stub_time.cc \
1332 nodist_tests_testACLMaxUserIP_SOURCES= \
1334 tests_testACLMaxUserIP_LDADD= \
1335 http/libsquid-http.la \
1348 $(top_builddir)/lib/libmisccontainers.la \
1349 $(top_builddir)/lib/libmiscencoding.la \
1350 $(top_builddir)/lib/libmiscutil.la \
1353 $(SQUID_CPPUNIT_LIBS) \
1357 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1358 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1359 ## $(SQUID_CPPUNIT_LA)
1361 ## a demonstration test that does nothing but shows the salient points
1362 ## involved in writing tests.
1363 tests_testBoilerplate_SOURCES = \
1364 tests/testBoilerplate.cc \
1366 tests/testBoilerplate.h \
1368 nodist_tests_testBoilerplate_SOURCES = \
1370 tests_testBoilerplate_LDADD= \
1371 $(SQUID_CPPUNIT_LIBS) \
1375 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1376 tests_testBoilerplate_DEPENDENCIES = \
1379 ## Tests of the CacheManager module.
1380 tests_testCacheManager_SOURCES = \
1388 HttpRequestMethod.cc \
1392 tests/testCacheManager.cc \
1393 tests/testCacheManager.h \
1395 tests/stub_main_cc.cc \
1396 tests/stub_ipc_Forwarder.cc \
1397 tests/stub_store_stats.cc \
1398 tests/stub_EventLoop.cc \
1409 tests/stub_CacheDigest.cc \
1411 tests/stub_carp.cc \
1413 ChunkedCodingParser.cc \
1418 client_side_reply.cc \
1419 client_side_request.cc \
1422 tests/stub_CollapsedForwarding.cc \
1429 $(DELAY_POOL_SOURCE) \
1437 tests/stub_ETag.cc \
1440 ExternalACLEntry.cc \
1442 tests/stub_fatal.cc \
1458 HelperChildConfig.h \
1459 HelperChildConfig.cc \
1469 HttpHeaderFieldInfo.h \
1471 HttpHeaderTools.cc \
1472 HttpHeaderFieldStat.h \
1476 HttpHdrContRange.cc \
1479 HttpHdrScTarget.cc \
1511 peer_proxy_negotiate_auth.h \
1512 peer_proxy_negotiate_auth.cc \
1515 peer_sourcehash.cc \
1519 tests/stub_redirect.cc \
1525 SBufDetailedStats.h \
1526 tests/stub_SBufDetailedStats.cc \
1538 tests/stub_libauth_acls.cc \
1539 tests/stub_libauth.cc \
1540 tests/stub_StatHist.cc \
1546 tests/stub_store_digest.cc \
1559 StoreFileSystem.cc \
1561 tests/stub_StoreMeta.cc \
1562 StoreMetaUnpacker.cc \
1563 StoreSwapLogData.cc \
1567 tests/stub_tunnel.cc \
1568 tests/stub_SwapDir.cc \
1575 tests/stub_wccp2.cc \
1577 tests/stub_whois.cc \
1582 nodist_tests_testCacheManager_SOURCES = \
1584 $(DISKIO_GEN_SOURCE)
1585 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1586 tests_testCacheManager_LDADD = \
1587 http/libsquid-http.la \
1598 icmp/libicmp.la icmp/libicmp-core.la \
1600 format/libformat.la \
1604 $(ADAPTATION_LIBS) \
1611 $(top_builddir)/lib/libmisccontainers.la \
1612 $(top_builddir)/lib/libmiscencoding.la \
1613 $(top_builddir)/lib/libmiscutil.la \
1615 $(SQUID_CPPUNIT_LIBS) \
1616 $(SQUID_CPPUNIT_LA) \
1621 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1622 tests_testCacheManager_DEPENDENCIES = \
1626 tests_testDiskIO_SOURCES = \
1628 tests/stub_CacheDigest.cc \
1632 tests/stub_CollapsedForwarding.cc \
1635 $(DELAY_POOL_SOURCE) \
1639 tests/stub_ETag.cc \
1643 tests/stub_fatal.cc \
1652 HttpHeaderFieldStat.h \
1656 HttpHdrContRange.cc \
1658 HttpHdrScTarget.cc \
1660 HttpHeaderFieldInfo.h \
1662 HttpHeaderTools.cc \
1667 HttpRequestMethod.cc \
1691 tests/stub_StatHist.cc \
1694 SBufDetailedStats.h \
1695 tests/stub_SBufDetailedStats.cc \
1696 StoreFileSystem.cc \
1698 tests/stub_StoreMeta.cc \
1699 StoreMetaUnpacker.cc \
1700 StoreSwapLogData.cc \
1712 tests/stub_SwapDir.cc \
1715 tests/stub_access_log.cc \
1719 tests/stub_cache_cf.cc \
1720 tests/stub_cache_manager.cc \
1721 tests/stub_client_db.cc \
1722 client_side_request.h \
1723 tests/stub_client_side_request.cc \
1724 tests/stub_debug.cc \
1725 tests/stub_errorpage.cc \
1726 tests/stub_helper.cc \
1727 tests/stub_HelperChildConfig.cc \
1728 tests/stub_HttpRequest.cc \
1729 tests/stub_http.cc \
1732 tests/stub_internal.cc \
1734 tests/stub_ipcache.cc \
1735 tests/stub_libauth_acls.cc \
1736 tests/stub_libauth.cc \
1737 tests/stub_libeui.cc \
1738 tests/stub_libformat.cc \
1739 tests/stub_libicmp.cc \
1740 tests/stub_MemStore.cc \
1742 tests/stub_mime.cc \
1743 tests/stub_pconn.cc \
1744 tests/stub_Port.cc \
1745 tests/stub_stat.cc \
1746 tests/stub_store_client.cc \
1747 tests/stub_store_stats.cc \
1749 tests/stub_store_rebuild.cc \
1750 tests/stub_UdsOp.cc \
1751 tests/testDiskIO.cc \
1752 tests/testDiskIO.h \
1754 tests/testStoreSupport.cc \
1755 tests/testStoreSupport.h \
1756 tests/stub_time.cc \
1764 nodist_tests_testDiskIO_SOURCES= \
1766 $(DISKIO_GEN_SOURCE) \
1770 tests_testDiskIO_LDADD = \
1771 http/libsquid-http.la \
1774 DnsLookupDetails.o \
1792 $(top_builddir)/lib/libmisccontainers.la \
1793 $(top_builddir)/lib/libmiscencoding.la \
1794 $(top_builddir)/lib/libmiscutil.la \
1796 $(SQUID_CPPUNIT_LIBS) \
1801 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1802 tests_testDiskIO_DEPENDENCIES = \
1807 ## Tests of the Even module.
1808 tests_testEvent_SOURCES = \
1812 tests/stub_CacheDigest.cc \
1821 tests/stub_carp.cc \
1823 ChunkedCodingParser.cc \
1828 client_side_reply.cc \
1829 client_side_request.cc \
1832 tests/stub_CollapsedForwarding.cc \
1840 $(DELAY_POOL_SOURCE) \
1848 tests/stub_ETag.cc \
1853 ExternalACLEntry.cc \
1856 tests/stub_fatal.cc \
1871 HelperChildConfig.h \
1872 HelperChildConfig.cc \
1882 HttpHeaderFieldInfo.h \
1884 HttpHeaderTools.cc \
1885 HttpHeaderFieldStat.h \
1889 HttpHdrContRange.cc \
1892 HttpHdrScTarget.cc \
1900 HttpRequestMethod.cc \
1932 peer_proxy_negotiate_auth.h \
1933 peer_proxy_negotiate_auth.cc \
1936 peer_sourcehash.cc \
1940 tests/stub_redirect.cc \
1948 SBufDetailedStats.h \
1949 tests/stub_SBufDetailedStats.cc \
1965 tests/stub_store_digest.cc \
1978 StoreFileSystem.cc \
1980 tests/stub_StoreMeta.cc \
1981 StoreMetaUnpacker.cc \
1982 StoreSwapLogData.cc \
1984 tests/stub_SwapDir.cc \
1985 tests/CapturingStoreEntry.h \
1986 tests/testEvent.cc \
1989 tests/stub_main_cc.cc \
1990 tests/stub_ipc_Forwarder.cc \
1991 tests/stub_libauth_acls.cc \
1992 tests/stub_libauth.cc \
1993 tests/stub_libeui.cc \
1994 tests/stub_store_stats.cc \
1999 tests/stub_tunnel.cc \
2006 tests/stub_wccp2.cc \
2008 tests/stub_whois.cc \
2012 nodist_tests_testEvent_SOURCES = \
2014 $(DISKIO_GEN_SOURCE)
2015 tests_testEvent_LDADD = \
2016 http/libsquid-http.la \
2026 icmp/libicmp.la icmp/libicmp-core.la \
2029 format/libformat.la \
2031 $(ADAPTATION_LIBS) \
2034 $(top_builddir)/lib/libmisccontainers.la \
2035 $(top_builddir)/lib/libmiscencoding.la \
2036 $(top_builddir)/lib/libmiscutil.la \
2043 $(SQUID_CPPUNIT_LIBS) \
2044 $(SQUID_CPPUNIT_LA) \
2049 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2050 tests_testEvent_DEPENDENCIES = \
2054 ## Tests of the EventLoop module.
2055 tests_testEventLoop_SOURCES = \
2059 tests/stub_CacheDigest.cc \
2068 tests/stub_carp.cc \
2070 ChunkedCodingParser.cc \
2075 client_side_reply.cc \
2076 client_side_request.cc \
2079 tests/stub_CollapsedForwarding.cc \
2087 $(DELAY_POOL_SOURCE) \
2095 tests/stub_ETag.cc \
2100 ExternalACLEntry.cc \
2103 tests/stub_fatal.cc \
2118 HelperChildConfig.h \
2119 HelperChildConfig.cc \
2129 HttpHeaderFieldInfo.h \
2131 HttpHeaderTools.cc \
2132 HttpHeaderFieldStat.h \
2136 HttpHdrContRange.cc \
2139 HttpHdrScTarget.cc \
2147 HttpRequestMethod.cc \
2179 peer_proxy_negotiate_auth.h \
2180 peer_proxy_negotiate_auth.cc \
2183 peer_sourcehash.cc \
2188 tests/stub_redirect.cc \
2193 SBufDetailedStats.h \
2194 tests/stub_SBufDetailedStats.cc \
2211 tests/stub_store_digest.cc \
2224 StoreFileSystem.cc \
2226 tests/stub_StoreMeta.cc \
2227 StoreMetaUnpacker.cc \
2228 StoreSwapLogData.cc \
2232 tests/stub_SwapDir.cc \
2233 tests/testEventLoop.cc \
2234 tests/testEventLoop.h \
2236 tests/stub_main_cc.cc \
2237 tests/stub_ipc_Forwarder.cc \
2238 tests/stub_libauth_acls.cc \
2239 tests/stub_libauth.cc \
2240 tests/stub_libeui.cc \
2241 tests/stub_store_stats.cc \
2246 tests/stub_tunnel.cc \
2253 tests/stub_wccp2.cc \
2255 tests/stub_whois.cc \
2259 nodist_tests_testEventLoop_SOURCES = \
2261 $(DISKIO_GEN_SOURCE)
2262 tests_testEventLoop_LDADD = \
2263 http/libsquid-http.la \
2273 icmp/libicmp.la icmp/libicmp-core.la \
2276 format/libformat.la \
2278 $(ADAPTATION_LIBS) \
2281 $(top_builddir)/lib/libmisccontainers.la \
2282 $(top_builddir)/lib/libmiscencoding.la \
2283 $(top_builddir)/lib/libmiscutil.la \
2290 $(SQUID_CPPUNIT_LIBS) \
2291 $(SQUID_CPPUNIT_LA) \
2296 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2297 tests_testEventLoop_DEPENDENCIES = \
2301 tests_test_http_range_SOURCES = \
2312 tests/stub_CacheDigest.cc \
2314 tests/stub_carp.cc \
2316 ChunkedCodingParser.cc \
2321 client_side_reply.cc \
2322 client_side_request.cc \
2325 tests/stub_CollapsedForwarding.cc \
2333 $(DELAY_POOL_SOURCE) \
2341 tests/stub_ETag.cc \
2345 tests/stub_libauth.cc \
2346 tests/stub_fatal.cc \
2361 HelperChildConfig.h \
2362 HelperChildConfig.cc \
2370 HttpHeaderFieldStat.h \
2374 HttpHdrContRange.cc \
2377 HttpHdrScTarget.cc \
2380 HttpHeaderFieldInfo.h \
2382 HttpHeaderTools.cc \
2390 HttpRequestMethod.cc \
2421 peer_proxy_negotiate_auth.h \
2422 peer_proxy_negotiate_auth.cc \
2425 peer_sourcehash.cc \
2430 tests/stub_redirect.cc \
2436 SBufDetailedStats.h \
2437 tests/stub_SBufDetailedStats.cc \
2453 tests/stub_store_digest.cc \
2466 StoreFileSystem.cc \
2468 tests/stub_StoreMeta.cc \
2469 StoreMetaUnpacker.cc \
2470 StoreSwapLogData.cc \
2474 tests/stub_SwapDir.cc \
2476 tests/test_http_range.cc \
2477 tests/stub_external_acl.cc \
2478 tests/stub_ipc_Forwarder.cc \
2479 tests/stub_libeui.cc \
2480 tests/stub_main_cc.cc \
2481 tests/stub_MemStore.cc \
2482 tests/stub_store_stats.cc \
2483 tests/stub_EventLoop.cc \
2487 tests/stub_tunnel.cc \
2493 tests/stub_wccp2.cc \
2495 tests/stub_whois.cc \
2499 nodist_tests_test_http_range_SOURCES = \
2501 $(DISKIO_GEN_SOURCE)
2502 tests_test_http_range_LDADD = \
2503 http/libsquid-http.la \
2512 icmp/libicmp.la icmp/libicmp-core.la \
2515 format/libformat.la \
2519 $(ADAPTATION_LIBS) \
2526 $(top_builddir)/lib/libmisccontainers.la \
2527 $(top_builddir)/lib/libmiscencoding.la \
2528 $(top_builddir)/lib/libmiscutil.la \
2530 $(SQUID_CPPUNIT_LIBS) \
2531 $(SQUID_CPPUNIT_LA) \
2536 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2537 tests_test_http_range_DEPENDENCIES = \
2540 tests_testHttpParser_SOURCES = \
2546 tests/stub_MemObject.cc \
2553 tests/stub_SBufDetailedStats.cc \
2554 tests/stub_cache_cf.cc \
2555 tests/stub_cache_manager.cc \
2556 tests/stub_comm.cc \
2557 tests/stub_cbdata.cc \
2558 tests/stub_debug.cc \
2559 tests/stub_event.cc \
2560 tests/stub_HelperChildConfig.cc \
2561 tests/stub_stmem.cc \
2562 tests/stub_store.cc \
2563 tests/stub_store_stats.cc \
2565 tests/stub_tools.cc \
2566 tests/testHttpParser.cc \
2567 tests/testHttpParser.h \
2569 tests/stub_time.cc \
2572 nodist_tests_testHttpParser_SOURCES = \
2574 tests_testHttpParser_LDADD= \
2575 http/libsquid-http.la \
2579 $(top_builddir)/lib/libmiscutil.la \
2580 $(SQUID_CPPUNIT_LIBS) \
2583 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2584 tests_testHttpParser_DEPENDENCIES = \
2587 ## Tests of the HttpRequest module.
2588 tests_testHttpRequest_SOURCES = \
2595 HttpRequestMethod.cc \
2599 tests/testHttpRequest.h \
2600 tests/testHttpRequest.cc \
2601 tests/testHttpRequestMethod.h \
2602 tests/testHttpRequestMethod.cc \
2604 tests/stub_DiskIOModule.cc \
2605 tests/stub_libauth.cc \
2606 tests/stub_main_cc.cc \
2607 tests/stub_ipc_Forwarder.cc \
2608 tests/stub_libeui.cc \
2609 tests/stub_store_stats.cc \
2610 tests/stub_EventLoop.cc \
2622 tests/stub_CacheDigest.cc \
2624 tests/stub_carp.cc \
2626 ChunkedCodingParser.cc \
2631 client_side_reply.cc \
2632 client_side_request.cc \
2635 tests/stub_CollapsedForwarding.cc \
2642 $(DELAY_POOL_SOURCE) \
2649 tests/stub_ETag.cc \
2651 ExternalACLEntry.cc \
2653 tests/stub_fatal.cc \
2666 HelperChildConfig.h \
2667 HelperChildConfig.cc \
2677 HttpHeaderFieldInfo.h \
2679 HttpHeaderTools.cc \
2680 HttpHeaderFieldStat.h \
2684 HttpHdrContRange.cc \
2687 HttpHdrScTarget.cc \
2719 peer_proxy_negotiate_auth.h \
2720 peer_proxy_negotiate_auth.cc \
2723 peer_sourcehash.cc \
2727 tests/stub_libauth_acls.cc \
2728 tests/stub_redirect.cc \
2734 SBufDetailedStats.h \
2735 tests/stub_SBufDetailedStats.cc \
2751 tests/stub_store_digest.cc \
2764 StoreFileSystem.cc \
2766 tests/stub_StoreMeta.cc \
2767 StoreMetaUnpacker.cc \
2768 StoreSwapLogData.cc \
2775 tests/stub_tunnel.cc \
2776 tests/stub_SwapDir.cc \
2782 tests/stub_wccp2.cc \
2784 tests/stub_whois.cc \
2789 nodist_tests_testHttpRequest_SOURCES = \
2791 tests_testHttpRequest_LDADD = \
2805 icmp/libicmp.la icmp/libicmp-core.la \
2808 format/libformat.la \
2809 http/libsquid-http.la \
2811 $(ADAPTATION_LIBS) \
2813 $(top_builddir)/lib/libmisccontainers.la \
2814 $(top_builddir)/lib/libmiscencoding.la \
2815 $(top_builddir)/lib/libmiscutil.la \
2818 $(SQUID_CPPUNIT_LIBS) \
2819 $(SQUID_CPPUNIT_LA) \
2824 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2825 tests_testHttpRequest_DEPENDENCIES = \
2829 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2830 ## first line - what we are testing.
2831 tests_testStore_SOURCES= \
2833 tests/stub_CacheDigest.cc \
2836 tests/stub_CollapsedForwarding.cc \
2839 $(DELAY_POOL_SOURCE) \
2842 DiskIO/ReadRequest.cc \
2843 DiskIO/WriteRequest.cc \
2848 tests/stub_fatal.cc \
2851 HttpHeaderFieldStat.h \
2855 HttpHdrContRange.cc \
2858 HttpHdrScTarget.cc \
2859 HttpHeaderFieldInfo.h \
2861 HttpHeaderTools.cc \
2865 HttpRequestMethod.cc \
2897 tests/stub_StoreMeta.cc \
2898 StoreMetaUnpacker.cc \
2899 StoreSwapLogData.cc \
2903 SBufDetailedStats.h \
2904 tests/stub_SBufDetailedStats.cc \
2909 tests/CapturingStoreEntry.h \
2911 tests/stub_access_log.cc \
2915 tests/stub_cache_cf.cc \
2916 tests/stub_cache_manager.cc \
2917 tests/stub_client_side_request.cc \
2918 tests/stub_comm.cc \
2919 tests/stub_debug.cc \
2920 tests/stub_DiskIOModule.cc \
2921 tests/stub_errorpage.cc \
2925 tests/stub_helper.cc \
2926 tests/stub_HelperChildConfig.cc \
2927 tests/stub_http.cc \
2928 tests/stub_libauth.cc \
2929 tests/stub_libeui.cc \
2930 tests/stub_libformat.cc \
2933 tests/stub_HttpReply.cc \
2934 tests/stub_HttpRequest.cc \
2935 tests/stub_libcomm.cc \
2936 tests/stub_MemStore.cc \
2938 tests/stub_mime.cc \
2939 tests/stub_Port.cc \
2940 tests/stub_stat.cc \
2941 tests/stub_store_client.cc \
2942 tests/stub_store_stats.cc \
2944 tests/stub_store_rebuild.cc \
2945 tests/stub_store_swapout.cc \
2948 tests/stub_tools.cc \
2949 tests/stub_UdsOp.cc \
2951 tests/testStore.cc \
2953 tests/testStoreEntryStream.cc \
2954 tests/testStoreEntryStream.h \
2955 tests/testStoreController.cc \
2956 tests/testStoreController.h \
2957 tests/testStoreHashIndex.cc \
2958 tests/testStoreHashIndex.h \
2959 tests/testStoreSupport.cc \
2960 tests/testStoreSupport.h \
2961 tests/TestSwapDir.cc \
2962 tests/TestSwapDir.h \
2963 tests/stub_time.cc \
2968 nodist_tests_testStore_SOURCES= \
2974 tests_testStore_LDADD= \
2975 http/libsquid-http.la \
2988 $(top_builddir)/lib/libmisccontainers.la \
2989 $(top_builddir)/lib/libmiscencoding.la \
2990 $(top_builddir)/lib/libmiscutil.la \
2992 $(SQUID_CPPUNIT_LIBS) \
2995 DnsLookupDetails.o \
2998 tests_testStore_LDFLAGS = $(LIBADD_DL)
2999 tests_testStore_DEPENDENCIES = \
3002 ## string needs mem.cc.
3003 ## mem.cc needs ClientInfo.h
3004 ## libsquid pulls in SquidConfig and children. stub them.
3005 tests_testString_SOURCES = \
3012 SBufDetailedStats.h \
3013 tests/stub_SBufDetailedStats.cc \
3015 tests/testString.cc \
3016 tests/testString.h \
3019 tests/stub_cache_cf.cc \
3020 tests/stub_cache_manager.cc \
3021 tests/stub_debug.cc \
3022 tests/stub_HelperChildConfig.cc \
3024 tests/stub_tools.cc \
3025 tests/stub_time.cc \
3028 nodist_tests_testString_SOURCES = \
3030 tests_testString_LDADD = \
3034 $(top_builddir)/lib/libmiscutil.la \
3036 $(SQUID_CPPUNIT_LIBS) \
3040 tests_testString_LDFLAGS = $(LIBADD_DL)
3041 tests_testString_DEPENDENCIES = \
3060 tests_testUfs_SOURCES = \
3064 tests/stub_cache_manager.cc \
3065 tests/stub_client_db.cc \
3066 tests/stub_CollapsedForwarding.cc \
3067 tests/stub_HelperChildConfig.cc \
3070 tests/stub_ipcache.cc \
3071 tests/stub_libeui.cc \
3072 tests/stub_libicmp.cc \
3073 tests/stub_MemStore.cc \
3074 tests/stub_pconn.cc \
3075 tests/stub_Port.cc \
3076 tests/stub_UdsOp.cc \
3078 tests/stub_internal.cc \
3079 tests/stub_libformat.cc \
3080 tests/stub_stat.cc \
3082 tests/stub_store_rebuild.cc \
3083 tests/stub_store_stats.cc \
3085 tests/stub_fatal.cc \
3110 StoreSwapLogData.cc \
3112 StoreMetaUnpacker.cc \
3113 $(STOREMETA_SOURCE) \
3114 StoreFileSystem.cc \
3121 $(DELAY_POOL_SOURCE) \
3123 tests/stub_CacheDigest.cc \
3131 HttpRequestMethod.cc \
3140 tests/stub_cache_cf.cc \
3141 tests/stub_helper.cc \
3144 SBufDetailedStats.h \
3145 tests/stub_SBufDetailedStats.cc \
3147 tests/stub_debug.cc \
3148 tests/stub_client_side_request.cc \
3149 tests/stub_http.cc \
3150 tests/stub_libauth.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 \
3197 nodist_tests_testUfs_SOURCES = \
3199 $(DISKIO_GEN_SOURCE) \
3203 tests_testUfs_LDADD = \
3204 http/libsquid-http.la \
3206 DnsLookupDetails.o \
3226 $(top_builddir)/lib/libmisccontainers.la \
3227 $(top_builddir)/lib/libmiscencoding.la \
3228 $(top_builddir)/lib/libmiscutil.la \
3230 $(SQUID_CPPUNIT_LIBS) \
3234 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3235 tests_testUfs_DEPENDENCIES = \
3238 check_PROGRAMS += testRefCount
3239 testRefCount_SOURCES= \
3242 tests/stub_cbdata.cc \
3243 tests/stub_debug.cc \
3244 tests/stub_MemBuf.cc \
3245 tests/testRefCount.cc
3246 testRefCount_LDADD = \
3248 $(top_builddir)/lib/libmiscutil.la \
3252 tests_testRock_SOURCES = \
3255 CollapsedForwarding.h \
3256 CollapsedForwarding.cc \
3257 tests/stub_CacheDigest.cc \
3273 HttpHeaderFieldStat.h \
3277 HttpHdrContRange.cc \
3280 HttpHdrScTarget.cc \
3283 HttpHeaderFieldInfo.h \
3285 HttpHeaderTools.cc \
3288 HttpRequestMethod.cc \
3310 tests/stub_StatHist.cc \
3313 tests/stub_stat.cc \
3315 StoreFileSystem.cc \
3317 StoreMetaUnpacker.cc \
3318 $(STOREMETA_SOURCE) \
3319 StoreSwapLogData.cc \
3327 SBufDetailedStats.h \
3328 tests/stub_SBufDetailedStats.cc \
3338 tests/testStoreSupport.cc \
3339 tests/testStoreSupport.h \
3341 tests/stub_access_log.cc \
3344 tests/stub_cache_cf.cc \
3346 tests/stub_cache_manager.cc \
3347 tests/stub_client_db.cc \
3348 tests/stub_client_side_request.cc \
3349 tests/stub_debug.cc \
3350 tests/stub_errorpage.cc \
3351 tests/stub_HelperChildConfig.cc \
3352 tests/stub_http.cc \
3353 tests/stub_HttpRequest.cc \
3354 tests/stub_libauth.cc \
3357 tests/stub_ipcache.cc \
3358 tests/stub_libeui.cc \
3359 tests/stub_libformat.cc \
3360 tests/stub_libicmp.cc \
3361 tests/stub_libmgr.cc \
3362 tests/stub_MemStore.cc \
3364 tests/stub_mime.cc \
3365 tests/stub_Port.cc \
3366 tests/stub_pconn.cc \
3367 tests/stub_store_client.cc \
3369 tests/stub_store_rebuild.cc \
3370 tests/stub_store_stats.cc \
3372 tests/stub_tools.cc \
3377 $(DELAY_POOL_SOURCE) \
3380 nodist_tests_testRock_SOURCES = \
3381 $(DISKIO_GEN_SOURCE) \
3386 tests_testRock_LDADD = \
3387 http/libsquid-http.la \
3404 $(top_builddir)/lib/libmisccontainers.la \
3405 $(top_builddir)/lib/libmiscencoding.la \
3406 $(top_builddir)/lib/libmiscutil.la \
3408 $(SQUID_CPPUNIT_LIBS) \
3412 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3413 tests_testRock_DEPENDENCIES = \
3416 ## Tests of the URL module.
3417 ## TODO: Trim this down once the insanity is over.
3418 tests_testURL_SOURCES = \
3427 tests/stub_cache_manager.cc \
3429 tests/stub_CacheDigest.cc \
3431 tests/stub_carp.cc \
3433 ChunkedCodingParser.cc \
3438 client_side_reply.cc \
3439 client_side_request.cc \
3442 tests/stub_CollapsedForwarding.cc \
3449 $(DELAY_POOL_SOURCE) \
3452 DiskIO/ReadRequest.cc \
3453 DiskIO/WriteRequest.cc \
3461 ExternalACLEntry.cc \
3463 tests/stub_fatal.cc \
3478 HelperChildConfig.h \
3479 HelperChildConfig.cc \
3487 HttpHeaderFieldStat.h \
3491 HttpHdrContRange.cc \
3494 HttpHdrScTarget.cc \
3497 HttpHeaderFieldInfo.h \
3499 HttpHeaderTools.cc \
3507 HttpRequestMethod.cc \
3539 peer_proxy_negotiate_auth.h \
3540 peer_proxy_negotiate_auth.cc \
3543 peer_sourcehash.cc \
3547 tests/stub_redirect.cc \
3553 SBufDetailedStats.h \
3554 tests/stub_SBufDetailedStats.cc \
3564 tests/stub_StatHist.cc \
3570 tests/stub_store_digest.cc \
3583 StoreFileSystem.cc \
3585 tests/stub_StoreMeta.cc \
3586 StoreMetaUnpacker.cc \
3587 StoreSwapLogData.cc \
3592 tests/stub_SwapDir.cc \
3594 tests/stub_debug.cc \
3595 tests/stub_DiskIOModule.cc \
3596 tests/stub_libauth_acls.cc \
3597 tests/stub_libauth.cc \
3598 tests/stub_main_cc.cc \
3599 tests/stub_ipc_Forwarder.cc \
3600 tests/stub_store_stats.cc \
3603 tests/testUriScheme.cc \
3604 tests/testUriScheme.h \
3606 tests/stub_time.cc \
3607 tests/stub_EventLoop.cc \
3610 tests/stub_tunnel.cc \
3615 tests/stub_wccp2.cc \
3617 tests/stub_whois.cc \
3622 nodist_tests_testURL_SOURCES = \
3624 tests_testURL_LDADD = \
3625 http/libsquid-http.la \
3640 icmp/libicmp.la icmp/libicmp-core.la \
3644 format/libformat.la \
3647 $(ADAPTATION_LIBS) \
3649 $(top_builddir)/lib/libmisccontainers.la \
3650 $(top_builddir)/lib/libmiscencoding.la \
3651 $(top_builddir)/lib/libmiscutil.la \
3653 $(SQUID_CPPUNIT_LIBS) \
3654 $(SQUID_CPPUNIT_LA) \
3659 tests_testURL_LDFLAGS = $(LIBADD_DL)
3660 tests_testURL_DEPENDENCIES = \
3664 tests_testSBuf_SOURCES= \
3668 tests/SBufFindTest.h \
3669 tests/SBufFindTest.cc \
3671 SBufDetailedStats.h \
3672 tests/stub_SBufDetailedStats.cc \
3674 tests/stub_time.cc \
3676 tests/stub_debug.cc \
3677 tests/stub_fatal.cc \
3678 tests/stub_HelperChildConfig.cc \
3679 tests/stub_cache_cf.cc \
3680 tests/stub_cache_manager.cc \
3681 tests/stub_store.cc \
3682 tests/stub_store_stats.cc \
3683 tests/stub_tools.cc \
3686 tests/stub_wordlist.cc \
3687 tests/stub_MemBuf.cc
3688 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3689 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3690 tests_testSBuf_LDADD=\
3695 $(top_builddir)/lib/libmiscutil.la \
3697 $(SQUID_CPPUNIT_LIBS) \
3700 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3702 tests_testSBufList_SOURCES= \
3703 tests/testSBufList.h \
3704 tests/testSBufList.cc \
3710 SBufDetailedStats.h \
3711 tests/stub_SBufDetailedStats.cc \
3713 tests/stub_time.cc \
3715 tests/stub_MemObject.cc \
3716 tests/stub_cbdata.cc \
3717 tests/stub_comm.cc \
3718 tests/stub_debug.cc \
3719 tests/stub_event.cc \
3720 tests/stub_fatal.cc \
3722 tests/stub_HelperChildConfig.cc \
3723 tests/stub_cache_cf.cc \
3724 tests/stub_cache_manager.cc \
3725 tests/stub_store.cc \
3726 tests/stub_stmem.cc \
3727 tests/stub_store_stats.cc \
3728 tests/stub_tools.cc \
3732 tests/stub_wordlist.cc \
3733 tests/stub_MemBuf.cc
3734 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3735 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3736 tests_testSBufList_LDADD=\
3741 $(top_builddir)/lib/libmiscutil.la \
3742 $(SQUID_CPPUNIT_LIBS) \
3745 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3747 tests_testConfigParser_SOURCES = \
3751 tests/stub_MemBuf.cc \
3752 tests/stub_time.cc \
3754 SBufDetailedStats.h \
3755 tests/stub_SBufDetailedStats.cc \
3759 tests/stub_fatal.cc \
3761 tests/testConfigParser.cc \
3762 tests/testConfigParser.h \
3765 tests/stub_cache_cf.cc \
3766 tests/stub_cache_manager.cc \
3767 tests/stub_debug.cc \
3768 tests/stub_HelperChildConfig.cc \
3770 tests/stub_tools.cc \
3773 nodist_tests_testConfigParser_SOURCES = \
3775 tests_testConfigParser_LDADD = \
3779 $(top_builddir)/lib/libmiscutil.la \
3781 $(SQUID_CPPUNIT_LIBS) \
3785 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3786 tests_testConfigParser_DEPENDENCIES = \
3789 tests_testStatHist_SOURCES = \
3790 tests/stub_cbdata.cc \
3792 tests/stub_fatal.cc \
3793 tests/stub_MemBuf.cc \
3797 tests/stub_cache_manager.cc \
3798 tests/stub_comm.cc \
3799 tests/stub_debug.cc \
3800 tests/stub_DelayId.cc \
3801 tests/stub_HelperChildConfig.cc \
3804 tests/stub_MemObject.cc \
3806 tests/stub_mime.cc \
3807 tests/stub_pconn.cc \
3808 tests/stub_stmem.cc \
3810 tests/stub_store.cc \
3811 tests/stub_store_stats.cc \
3813 tests/stub_tools.cc \
3815 tests/testStatHist.cc \
3816 tests/testStatHist.h
3817 nodist_tests_testStatHist_SOURCES = \
3819 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3820 tests_testStatHist_LDADD = \
3822 $(top_builddir)/lib/libmiscutil.la \
3823 $(top_builddir)/lib/libmisccontainers.la \
3824 $(SQUID_CPPUNIT_LIBS) \
3825 $(SQUID_CPPUNIT_LA) \
3827 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3829 tests_testVector_SOURCES = \
3830 tests/testVector.cc \
3833 nodist_tests_testVector_SOURCES = \
3835 tests_testVector_LDADD= \
3836 $(SQUID_CPPUNIT_LIBS) \
3839 tests_testVector_LDFLAGS = $(LIBADD_DL)
3840 tests_testVector_DEPENDENCIES = \
3844 TESTS += testHeaders
3846 ## Special Universal .h dependency test script
3847 ## aborts if error encountered
3848 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3849 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3850 ## src/repl/ has no .h files and its own makefile.
3852 CLEANFILES += testHeaders