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 CompletionDispatcher.cc \
317 CompletionDispatcher.h \
331 $(DELAY_POOL_SOURCE) \
351 ExternalACLEntry.cc \
375 HelperChildConfig.h \
376 HelperChildConfig.cc \
380 HierarchyLogEntry.h \
385 HttpHeaderFieldStat.h \
394 HttpHdrContRange.cc \
401 HttpHeaderFieldInfo.h \
417 HttpRequestMethod.cc \
418 HttpRequestMethod.h \
430 $(LEAKFINDERSOURCE) \
461 $(XPROF_STATS_SOURCE) \
466 peer_proxy_negotiate_auth.h \
467 peer_proxy_negotiate_auth.cc \
485 SBufDetailedStats.h \
486 SBufDetailedStats.cc \
530 StoreMetaUnpacker.cc \
531 StoreMetaUnpacker.h \
532 $(STOREMETA_SOURCE) \
536 StoreSwapLogData.cc \
569 EXTRA_squid_SOURCES = \
570 $(AIO_WIN32_ALL_SOURCES) \
573 $(DELAY_POOL_ALL_SOURCE) \
583 $(WIN32_ALL_SOURCE) \
584 $(LOADABLE_MODULES_SOURCES)
587 client_side_request.cci \
609 CLEANFILES += $(BUILT_SOURCES)
611 nodist_squid_SOURCES = \
612 $(DISKIO_GEN_SOURCE) \
632 http/libsquid-http.la \
633 icmp/libicmp.la icmp/libicmp-core.la \
635 format/libformat.la \
646 $(top_builddir)/lib/libmisccontainers.la \
647 $(top_builddir)/lib/libmiscencoding.la \
648 $(top_builddir)/lib/libmiscutil.la \
655 squid_DEPENDENCIES = \
673 format/libformat.la \
677 if USE_LOADABLE_MODULES
678 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
679 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
680 squid_LDFLAGS = -export-dynamic -dlopen force
681 ## when static module linking is supported and enabled:
682 ## squid_LDFLAGS = -all-static -dlopen self
684 ## LTDL headers require their local include path...
685 INCLUDES += $(INCLTDL)
688 ## Kerberos libraries require their include path...
689 INCLUDES += $(KRB5INCS)
692 unlinkd_SOURCES = unlinkd_daemon.cc
697 recv_announce_SOURCES = recv-announce.cc
699 ## What requires what..
700 ## many things want ACLChecklist.cc
701 ## ACLChecklist.cc wants AuthUserRequest.cc
702 ## ACLChecklist.cc wants AuthScheme.cc
703 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
704 ## ACLProxyAuth.cc wants ACLUserData
705 ## ACLProxyAuth.cc wants ACLRegexData
706 ## cache_cf.cc wants $(AUTH_LIBS)
707 ## cache_cf.cc wants Swapdir
708 ## cache_cf.cc wants AnyP::PortCfg
709 ## client_side wants client_db
710 ## client_db wants SNMP_SOURCE
711 ## snmp_core wants ACLStringData
712 ## SwapDir wants ConfigOption
713 ## tools.cc wants ip/libip.la
714 ## client_side.cc wants ip/libip.la
715 ## mem.cc wants ClientInfo.h
716 ## libbase.la wants cbdata.*
717 ## libbase.la wants MemBuf.*
733 tests/stub_StoreMeta.cc \
734 StoreMetaUnpacker.cc \
741 HelperChildConfig.h \
742 tests/stub_HelperChildConfig.cc \
743 HttpRequestMethod.cc \
769 ufsdump_DEPENDENCIES = \
785 nodist_ufsdump_SOURCES = \
790 squid.conf.documented \
815 include $(srcdir)/tests/Stub.list
824 mk-string-arrays.pl \
825 mk-string-arrays.awk \
832 $(AIO_WIN32_SOURCES) \
833 DiskIO/AIO/async_io.h \
834 DiskIO/AIO/AIODiskFile.cc \
835 DiskIO/AIO/AIODiskFile.h \
836 DiskIO/AIO/AIODiskIOStrategy.cc \
837 DiskIO/AIO/AIODiskIOStrategy.h \
838 DiskIO/AIO/AIODiskIOModule.cc \
839 DiskIO/AIO/AIODiskIOModule.h
841 libBlocking_a_SOURCES = \
842 DiskIO/Blocking/BlockingFile.cc \
843 DiskIO/Blocking/BlockingFile.h \
844 DiskIO/Blocking/BlockingIOStrategy.cc \
845 DiskIO/Blocking/BlockingIOStrategy.h \
846 DiskIO/Blocking/BlockingDiskIOModule.cc \
847 DiskIO/Blocking/BlockingDiskIOModule.h
849 libMmapped_a_SOURCES = \
850 DiskIO/Mmapped/MmappedFile.cc \
851 DiskIO/Mmapped/MmappedFile.h \
852 DiskIO/Mmapped/MmappedIOStrategy.cc \
853 DiskIO/Mmapped/MmappedIOStrategy.h \
854 DiskIO/Mmapped/MmappedDiskIOModule.cc \
855 DiskIO/Mmapped/MmappedDiskIOModule.h
857 libIpcIo_a_SOURCES = \
858 DiskIO/IpcIo/IpcIoFile.cc \
859 DiskIO/IpcIo/IpcIoFile.h \
860 DiskIO/IpcIo/IpcIoIOStrategy.cc \
861 DiskIO/IpcIo/IpcIoIOStrategy.h \
862 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
863 DiskIO/IpcIo/IpcIoDiskIOModule.h
865 libDiskDaemon_a_SOURCES = \
866 DiskIO/DiskDaemon/DiskdFile.cc \
867 DiskIO/DiskDaemon/DiskdFile.h \
868 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
869 DiskIO/DiskDaemon/DiskdIOStrategy.h \
870 DiskIO/DiskDaemon/diomsg.h \
871 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
872 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
873 DiskIO/DiskDaemon/DiskdAction.cc \
874 DiskIO/DiskDaemon/DiskdAction.h
876 libDiskThreads_a_SOURCES = \
878 DiskIO/DiskThreads/async_io.cc \
879 DiskIO/DiskThreads/DiskThreads.h \
880 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
881 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
882 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
883 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
884 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
885 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
887 EXTRA_libDiskThreads_a_SOURCES = \
888 DiskIO/DiskThreads/aiops.cc \
889 DiskIO/DiskThreads/aiops_win32.cc \
890 DiskIO/DiskThreads/CommIO.cc \
891 DiskIO/DiskThreads/CommIO.h
893 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
894 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
895 DiskIO_DiskDaemon_diskd_LDADD = \
896 $(top_builddir)/lib/libmisccontainers.la \
897 $(top_builddir)/lib/libmiscencoding.la \
898 $(top_builddir)/lib/libmiscutil.la \
903 DEFAULT_HTTP_PORT = 3128
904 DEFAULT_ICP_PORT = 3130
905 DEFAULT_PREFIX = $(prefix)
906 DEFAULT_CONFIG_DIR = $(sysconfdir)
907 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
908 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
909 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
910 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
911 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
912 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
913 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
914 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
915 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
916 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_ICON_DIR = $(datadir)/icons
921 DEFAULT_ERROR_DIR = $(datadir)/errors
923 # Make location configure settings available to the code
924 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
926 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
928 globals.cc: globals.h mk-globals-c.awk
929 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
931 ## Generate files containing string arrays for various enums....
932 hier_code.cc: hier_code.h mk-string-arrays.awk
933 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
935 err_type.cc: err_type.h mk-string-arrays.awk
936 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
938 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
939 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
941 LogTags.cc: LogTags.h mk-string-arrays.awk
942 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
944 lookup_t.cc: lookup_t.h mk-string-arrays.awk
945 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
947 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
948 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
950 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
951 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
954 ## other generated files...
956 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
957 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
959 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
960 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
962 ## If autodependency works well this is not needed anymore
963 cache_cf.o: cf_parser.cci
965 # cf_gen builds the configuration files.
966 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
967 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
969 # squid.conf.default is built by cf_gen when making cf_parser.cci
970 squid.conf.default squid.conf.documented: cf_parser.cci
973 cf_parser.cci: cf.data cf_gen$(EXEEXT)
974 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
976 # The cf_gen_defines.cci is auto-generated and does not exist when the
977 # dependencies computed. We need to add its include files (autoconf.h) here
978 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
979 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
982 ## FIXME: generate a sed command file from configure. Then this doesn't
983 ## depend on the Makefile.
984 cf.data: cf.data.pre Makefile
986 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
987 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
988 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
989 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
990 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
991 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
992 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
993 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
994 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
995 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
996 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
997 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
998 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
999 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1000 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1001 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1002 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1003 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1004 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1005 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1006 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1007 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1008 < $(srcdir)/cf.data.pre >$@
1010 repl_modules.cc: repl_modules.sh Makefile
1011 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1013 include $(top_srcdir)/doc/manuals/Substitute.am
1015 squid.8: $(srcdir)/squid.8.in Makefile
1016 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1019 EXTRA_DIST += squid.8.in
1020 CLEANFILES += squid.8
1022 install-data-local: install-sysconfDATA install-dataDATA
1023 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1024 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1026 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1027 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1029 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1030 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1032 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1033 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1035 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1036 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1037 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1038 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1039 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1040 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1041 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1043 uninstall-local: squid.conf.default
1044 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1045 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1047 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1048 DiskIO/DiskIOModules_gen.cc \
1051 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1052 cp $(top_srcdir)/test-suite/test_tools.cc .
1054 # stock tools for unit tests - library independent versions of dlink_list
1056 # globals.cc is needed by test_tools.cc.
1057 # Neither of these should be disted from here.
1064 tests/testBoilerplate \
1065 tests/testCacheManager \
1068 tests/testEventLoop \
1069 tests/test_http_range \
1070 tests/testHttpParser \
1071 tests/testHttpReply \
1072 tests/testHttpRequest \
1077 tests/testSBufList \
1078 tests/testConfigParser \
1079 tests/testStatHist \
1083 check_PROGRAMS += tests/testRock
1086 check_PROGRAMS += tests/testUfs
1089 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1090 TESTS += $(check_PROGRAMS)
1092 ### Template for new Unit Test Program
1093 ## - add tests/testX to check_PROGRAMS above.
1094 ## - copy template below and substitue X for class name
1095 ## - add other component .(h|cc) files needed to link and run tests
1097 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1099 #tests_testX_SOURCES=\
1102 # tests/testMain.cc \
1105 #nodist_tests_testX_SOURCES=\
1107 #tests_testX_LDFLAGS = $(LIBADD_DL)
1108 #tests_testX_LDADD=\
1109 # $(SQUID_CPPUNIT_LIBS) \
1110 # $(SQUID_CPPUNIT_LA) \
1112 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1115 # - add other component .(h|cc) files needed to link and run tests
1116 tests_testHttpReply_SOURCES=\
1120 tests/stub_ETag.cc \
1122 tests/stub_fatal.cc \
1125 HttpHeaderFieldStat.h \
1129 HttpHdrContRange.cc \
1130 HttpHdrContRange.h \
1134 HttpHdrScTarget.cc \
1139 HttpHeaderFieldInfo.h \
1141 HttpHeaderTools.cc \
1162 SBufDetailedStats.h \
1163 tests/stub_SBufDetailedStats.cc \
1168 tests/stub_access_log.cc \
1171 tests/stub_cache_cf.cc \
1172 tests/stub_cache_manager.cc \
1173 tests/stub_debug.cc \
1174 tests/stub_errorpage.cc \
1175 tests/stub_HelperChildConfig.cc \
1176 tests/stub_libformat.cc \
1177 tests/stub_libauth.cc \
1181 tests/stub_StatHist.cc \
1183 tests/stub_store.cc \
1184 tests/stub_store_stats.cc \
1186 tests/stub_tools.cc \
1187 tests/stub_HttpRequest.cc \
1188 tests/testHttpReply.cc \
1189 tests/testHttpReply.h \
1191 tests/stub_time.cc \
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= \
1223 DiskIO/ReadRequest.cc \
1224 DiskIO/WriteRequest.cc \
1225 tests/stub_ETag.cc \
1228 tests/stub_fatal.cc \
1231 HelperChildConfig.h \
1232 HelperChildConfig.cc \
1236 HttpHeaderFieldInfo.h \
1238 HttpHeaderTools.cc \
1239 HttpHdrContRange.cc \
1241 HttpHeaderFieldStat.h \
1246 HttpHdrScTarget.cc \
1248 HttpRequestMethod.cc \
1266 tests/stub_StatHist.cc \
1269 SBufDetailedStats.h \
1270 tests/stub_SBufDetailedStats.cc \
1274 tests/stub_StoreMeta.cc \
1275 StoreMetaUnpacker.cc \
1276 StoreSwapLogData.cc \
1281 tests/stub_SwapDir.cc \
1284 tests/stub_access_log.cc \
1287 tests/stub_cache_cf.cc \
1288 tests/stub_client_side.cc \
1289 tests/stub_debug.cc \
1290 tests/stub_DelayId.cc \
1291 tests/stub_DiskIOModule.cc \
1292 tests/stub_errorpage.cc \
1295 tests/stub_HttpRequest.cc \
1296 tests/stub_HttpReply.cc \
1297 tests/stub_ipc_TypedMsgHdr.cc \
1298 tests/stub_libauth.cc \
1299 tests/stub_libcomm.cc \
1300 tests/stub_libformat.cc \
1301 tests/stub_libsslsquid.cc \
1302 tests/stub_MemObject.cc \
1303 tests/stub_MemStore.cc \
1305 tests/stub_mime.cc \
1306 tests/stub_pconn.cc \
1307 tests/stub_Port.cc \
1309 tests/stub_store.cc \
1311 tests/stub_store_rebuild.cc \
1312 tests/stub_store_stats.cc \
1313 tests/stub_store_swapout.cc \
1315 tests/stub_tools.cc \
1316 tests/stub_cache_manager.cc \
1317 tests/stub_UdsOp.cc \
1318 tests/testACLMaxUserIP.cc \
1319 tests/testACLMaxUserIP.h \
1321 tests/stub_time.cc \
1331 nodist_tests_testACLMaxUserIP_SOURCES= \
1333 tests_testACLMaxUserIP_LDADD= \
1334 http/libsquid-http.la \
1347 $(top_builddir)/lib/libmisccontainers.la \
1348 $(top_builddir)/lib/libmiscencoding.la \
1349 $(top_builddir)/lib/libmiscutil.la \
1352 $(SQUID_CPPUNIT_LIBS) \
1356 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1357 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1358 ## $(SQUID_CPPUNIT_LA)
1360 ## a demonstration test that does nothing but shows the salient points
1361 ## involved in writing tests.
1362 tests_testBoilerplate_SOURCES = \
1363 tests/testBoilerplate.cc \
1365 tests/testBoilerplate.h \
1367 nodist_tests_testBoilerplate_SOURCES = \
1369 tests_testBoilerplate_LDADD= \
1370 $(SQUID_CPPUNIT_LIBS) \
1374 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1375 tests_testBoilerplate_DEPENDENCIES = \
1378 ## Tests of the CacheManager module.
1379 tests_testCacheManager_SOURCES = \
1387 HttpRequestMethod.cc \
1391 tests/testCacheManager.cc \
1392 tests/testCacheManager.h \
1394 tests/stub_main_cc.cc \
1395 tests/stub_ipc_Forwarder.cc \
1396 tests/stub_store_stats.cc \
1397 tests/stub_EventLoop.cc \
1408 tests/stub_CacheDigest.cc \
1410 tests/stub_carp.cc \
1412 ChunkedCodingParser.cc \
1417 client_side_reply.cc \
1418 client_side_request.cc \
1427 $(DELAY_POOL_SOURCE) \
1435 tests/stub_ETag.cc \
1438 ExternalACLEntry.cc \
1440 tests/stub_fatal.cc \
1456 HelperChildConfig.h \
1457 HelperChildConfig.cc \
1467 HttpHeaderFieldInfo.h \
1469 HttpHeaderTools.cc \
1470 HttpHeaderFieldStat.h \
1474 HttpHdrContRange.cc \
1477 HttpHdrScTarget.cc \
1509 peer_proxy_negotiate_auth.h \
1510 peer_proxy_negotiate_auth.cc \
1513 peer_sourcehash.cc \
1517 tests/stub_redirect.cc \
1523 SBufDetailedStats.h \
1524 tests/stub_SBufDetailedStats.cc \
1536 tests/stub_libauth_acls.cc \
1537 tests/stub_libauth.cc \
1538 tests/stub_StatHist.cc \
1544 tests/stub_store_digest.cc \
1557 StoreFileSystem.cc \
1559 tests/stub_StoreMeta.cc \
1560 StoreMetaUnpacker.cc \
1561 StoreSwapLogData.cc \
1564 tests/stub_tunnel.cc \
1565 tests/stub_SwapDir.cc \
1573 tests/stub_wccp2.cc \
1575 tests/stub_whois.cc \
1580 nodist_tests_testCacheManager_SOURCES = \
1582 $(DISKIO_GEN_SOURCE)
1583 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1584 tests_testCacheManager_LDADD = \
1585 http/libsquid-http.la \
1596 icmp/libicmp.la icmp/libicmp-core.la \
1598 format/libformat.la \
1602 $(ADAPTATION_LIBS) \
1609 $(top_builddir)/lib/libmisccontainers.la \
1610 $(top_builddir)/lib/libmiscencoding.la \
1611 $(top_builddir)/lib/libmiscutil.la \
1613 $(SQUID_CPPUNIT_LIBS) \
1614 $(SQUID_CPPUNIT_LA) \
1619 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1620 tests_testCacheManager_DEPENDENCIES = \
1624 tests_testDiskIO_SOURCES = \
1626 tests/stub_CacheDigest.cc \
1632 $(DELAY_POOL_SOURCE) \
1636 tests/stub_ETag.cc \
1640 tests/stub_fatal.cc \
1649 HttpHeaderFieldStat.h \
1653 HttpHdrContRange.cc \
1655 HttpHdrScTarget.cc \
1657 HttpHeaderFieldInfo.h \
1659 HttpHeaderTools.cc \
1664 HttpRequestMethod.cc \
1688 tests/stub_StatHist.cc \
1691 SBufDetailedStats.h \
1692 tests/stub_SBufDetailedStats.cc \
1693 StoreFileSystem.cc \
1695 tests/stub_StoreMeta.cc \
1696 StoreMetaUnpacker.cc \
1697 StoreSwapLogData.cc \
1709 tests/stub_SwapDir.cc \
1711 tests/stub_access_log.cc \
1715 tests/stub_cache_cf.cc \
1716 tests/stub_cache_manager.cc \
1717 tests/stub_client_db.cc \
1718 client_side_request.h \
1719 tests/stub_client_side_request.cc \
1720 tests/stub_debug.cc \
1721 tests/stub_errorpage.cc \
1722 tests/stub_helper.cc \
1723 tests/stub_HelperChildConfig.cc \
1724 tests/stub_HttpRequest.cc \
1725 tests/stub_http.cc \
1728 tests/stub_internal.cc \
1730 tests/stub_ipcache.cc \
1731 tests/stub_libauth_acls.cc \
1732 tests/stub_libauth.cc \
1733 tests/stub_libeui.cc \
1734 tests/stub_libformat.cc \
1735 tests/stub_libicmp.cc \
1736 tests/stub_MemStore.cc \
1738 tests/stub_mime.cc \
1739 tests/stub_pconn.cc \
1740 tests/stub_Port.cc \
1741 tests/stub_store_client.cc \
1742 tests/stub_store_stats.cc \
1744 tests/stub_store_rebuild.cc \
1745 tests/stub_UdsOp.cc \
1746 tests/testDiskIO.cc \
1747 tests/testDiskIO.h \
1749 tests/testStoreSupport.cc \
1750 tests/testStoreSupport.h \
1751 tests/stub_time.cc \
1760 nodist_tests_testDiskIO_SOURCES= \
1762 $(DISKIO_GEN_SOURCE) \
1766 tests_testDiskIO_LDADD = \
1767 http/libsquid-http.la \
1770 DnsLookupDetails.o \
1788 $(top_builddir)/lib/libmisccontainers.la \
1789 $(top_builddir)/lib/libmiscencoding.la \
1790 $(top_builddir)/lib/libmiscutil.la \
1792 $(SQUID_CPPUNIT_LIBS) \
1797 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1798 tests_testDiskIO_DEPENDENCIES = \
1803 ## Tests of the Even module.
1804 tests_testEvent_SOURCES = \
1808 tests/stub_CacheDigest.cc \
1817 tests/stub_carp.cc \
1819 ChunkedCodingParser.cc \
1824 client_side_reply.cc \
1825 client_side_request.cc \
1835 $(DELAY_POOL_SOURCE) \
1843 tests/stub_ETag.cc \
1848 ExternalACLEntry.cc \
1851 tests/stub_fatal.cc \
1866 HelperChildConfig.h \
1867 HelperChildConfig.cc \
1877 HttpHeaderFieldInfo.h \
1879 HttpHeaderTools.cc \
1880 HttpHeaderFieldStat.h \
1884 HttpHdrContRange.cc \
1887 HttpHdrScTarget.cc \
1895 HttpRequestMethod.cc \
1927 peer_proxy_negotiate_auth.h \
1928 peer_proxy_negotiate_auth.cc \
1931 peer_sourcehash.cc \
1935 tests/stub_redirect.cc \
1943 SBufDetailedStats.h \
1944 tests/stub_SBufDetailedStats.cc \
1960 tests/stub_store_digest.cc \
1973 StoreFileSystem.cc \
1975 tests/stub_StoreMeta.cc \
1976 StoreMetaUnpacker.cc \
1977 StoreSwapLogData.cc \
1979 tests/stub_SwapDir.cc \
1980 tests/CapturingStoreEntry.h \
1981 tests/testEvent.cc \
1984 tests/stub_main_cc.cc \
1985 tests/stub_ipc_Forwarder.cc \
1986 tests/stub_libauth_acls.cc \
1987 tests/stub_libauth.cc \
1988 tests/stub_libeui.cc \
1989 tests/stub_store_stats.cc \
1993 tests/stub_tunnel.cc \
2001 tests/stub_wccp2.cc \
2003 tests/stub_whois.cc \
2007 nodist_tests_testEvent_SOURCES = \
2009 $(DISKIO_GEN_SOURCE)
2010 tests_testEvent_LDADD = \
2011 http/libsquid-http.la \
2021 icmp/libicmp.la icmp/libicmp-core.la \
2024 format/libformat.la \
2026 $(ADAPTATION_LIBS) \
2029 $(top_builddir)/lib/libmisccontainers.la \
2030 $(top_builddir)/lib/libmiscencoding.la \
2031 $(top_builddir)/lib/libmiscutil.la \
2038 $(SQUID_CPPUNIT_LIBS) \
2039 $(SQUID_CPPUNIT_LA) \
2044 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2045 tests_testEvent_DEPENDENCIES = \
2049 ## Tests of the EventLoop module.
2050 tests_testEventLoop_SOURCES = \
2054 tests/stub_CacheDigest.cc \
2063 tests/stub_carp.cc \
2065 ChunkedCodingParser.cc \
2070 client_side_reply.cc \
2071 client_side_request.cc \
2081 $(DELAY_POOL_SOURCE) \
2089 tests/stub_ETag.cc \
2094 ExternalACLEntry.cc \
2097 tests/stub_fatal.cc \
2112 HelperChildConfig.h \
2113 HelperChildConfig.cc \
2123 HttpHeaderFieldInfo.h \
2125 HttpHeaderTools.cc \
2126 HttpHeaderFieldStat.h \
2130 HttpHdrContRange.cc \
2133 HttpHdrScTarget.cc \
2141 HttpRequestMethod.cc \
2173 peer_proxy_negotiate_auth.h \
2174 peer_proxy_negotiate_auth.cc \
2177 peer_sourcehash.cc \
2182 tests/stub_redirect.cc \
2187 SBufDetailedStats.h \
2188 tests/stub_SBufDetailedStats.cc \
2205 tests/stub_store_digest.cc \
2218 StoreFileSystem.cc \
2220 tests/stub_StoreMeta.cc \
2221 StoreMetaUnpacker.cc \
2222 StoreSwapLogData.cc \
2226 tests/stub_SwapDir.cc \
2227 tests/testEventLoop.cc \
2228 tests/testEventLoop.h \
2230 tests/stub_main_cc.cc \
2231 tests/stub_ipc_Forwarder.cc \
2232 tests/stub_libauth_acls.cc \
2233 tests/stub_libauth.cc \
2234 tests/stub_libeui.cc \
2235 tests/stub_store_stats.cc \
2239 tests/stub_tunnel.cc \
2247 tests/stub_wccp2.cc \
2249 tests/stub_whois.cc \
2253 nodist_tests_testEventLoop_SOURCES = \
2255 $(DISKIO_GEN_SOURCE)
2256 tests_testEventLoop_LDADD = \
2257 http/libsquid-http.la \
2267 icmp/libicmp.la icmp/libicmp-core.la \
2270 format/libformat.la \
2272 $(ADAPTATION_LIBS) \
2275 $(top_builddir)/lib/libmisccontainers.la \
2276 $(top_builddir)/lib/libmiscencoding.la \
2277 $(top_builddir)/lib/libmiscutil.la \
2284 $(SQUID_CPPUNIT_LIBS) \
2285 $(SQUID_CPPUNIT_LA) \
2290 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2291 tests_testEventLoop_DEPENDENCIES = \
2295 tests_test_http_range_SOURCES = \
2306 tests/stub_CacheDigest.cc \
2308 tests/stub_carp.cc \
2310 ChunkedCodingParser.cc \
2315 client_side_reply.cc \
2316 client_side_request.cc \
2326 $(DELAY_POOL_SOURCE) \
2334 tests/stub_ETag.cc \
2338 tests/stub_libauth.cc \
2339 tests/stub_fatal.cc \
2354 HelperChildConfig.h \
2355 HelperChildConfig.cc \
2363 HttpHeaderFieldStat.h \
2367 HttpHdrContRange.cc \
2370 HttpHdrScTarget.cc \
2373 HttpHeaderFieldInfo.h \
2375 HttpHeaderTools.cc \
2383 HttpRequestMethod.cc \
2414 peer_proxy_negotiate_auth.h \
2415 peer_proxy_negotiate_auth.cc \
2418 peer_sourcehash.cc \
2423 tests/stub_redirect.cc \
2429 SBufDetailedStats.h \
2430 tests/stub_SBufDetailedStats.cc \
2446 tests/stub_store_digest.cc \
2459 StoreFileSystem.cc \
2461 tests/stub_StoreMeta.cc \
2462 StoreMetaUnpacker.cc \
2463 StoreSwapLogData.cc \
2467 tests/stub_SwapDir.cc \
2468 tests/test_http_range.cc \
2469 tests/stub_external_acl.cc \
2470 tests/stub_ipc_Forwarder.cc \
2471 tests/stub_libeui.cc \
2472 tests/stub_main_cc.cc \
2473 tests/stub_MemStore.cc \
2474 tests/stub_store_stats.cc \
2475 tests/stub_EventLoop.cc \
2479 tests/stub_tunnel.cc \
2486 tests/stub_wccp2.cc \
2488 tests/stub_whois.cc \
2492 nodist_tests_test_http_range_SOURCES = \
2494 $(DISKIO_GEN_SOURCE)
2495 tests_test_http_range_LDADD = \
2496 http/libsquid-http.la \
2505 icmp/libicmp.la icmp/libicmp-core.la \
2508 format/libformat.la \
2512 $(ADAPTATION_LIBS) \
2519 $(top_builddir)/lib/libmisccontainers.la \
2520 $(top_builddir)/lib/libmiscencoding.la \
2521 $(top_builddir)/lib/libmiscutil.la \
2523 $(SQUID_CPPUNIT_LIBS) \
2524 $(SQUID_CPPUNIT_LA) \
2529 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2530 tests_test_http_range_DEPENDENCIES = \
2533 tests_testHttpParser_SOURCES = \
2545 tests/stub_SBufDetailedStats.cc \
2546 tests/stub_cache_cf.cc \
2547 tests/stub_cache_manager.cc \
2548 tests/stub_debug.cc \
2549 tests/stub_event.cc \
2550 tests/stub_HelperChildConfig.cc \
2552 tests/stub_tools.cc \
2553 tests/testHttpParser.cc \
2554 tests/testHttpParser.h \
2556 tests/stub_time.cc \
2559 nodist_tests_testHttpParser_SOURCES = \
2561 tests_testHttpParser_LDADD= \
2562 http/libsquid-http.la \
2566 $(top_builddir)/lib/libmiscutil.la \
2567 $(SQUID_CPPUNIT_LIBS) \
2570 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2571 tests_testHttpParser_DEPENDENCIES = \
2574 ## Tests of the HttpRequest module.
2575 tests_testHttpRequest_SOURCES = \
2582 HttpRequestMethod.cc \
2586 tests/testHttpRequest.h \
2587 tests/testHttpRequest.cc \
2588 tests/testHttpRequestMethod.h \
2589 tests/testHttpRequestMethod.cc \
2591 tests/stub_DiskIOModule.cc \
2592 tests/stub_libauth.cc \
2593 tests/stub_main_cc.cc \
2594 tests/stub_ipc_Forwarder.cc \
2595 tests/stub_libeui.cc \
2596 tests/stub_store_stats.cc \
2597 tests/stub_EventLoop.cc \
2609 tests/stub_CacheDigest.cc \
2611 tests/stub_carp.cc \
2613 ChunkedCodingParser.cc \
2618 client_side_reply.cc \
2619 client_side_request.cc \
2628 $(DELAY_POOL_SOURCE) \
2635 tests/stub_ETag.cc \
2637 ExternalACLEntry.cc \
2639 tests/stub_fatal.cc \
2652 HelperChildConfig.h \
2653 HelperChildConfig.cc \
2663 HttpHeaderFieldInfo.h \
2665 HttpHeaderTools.cc \
2666 HttpHeaderFieldStat.h \
2670 HttpHdrContRange.cc \
2673 HttpHdrScTarget.cc \
2705 peer_proxy_negotiate_auth.h \
2706 peer_proxy_negotiate_auth.cc \
2709 peer_sourcehash.cc \
2713 tests/stub_libauth_acls.cc \
2714 tests/stub_redirect.cc \
2720 SBufDetailedStats.h \
2721 tests/stub_SBufDetailedStats.cc \
2737 tests/stub_store_digest.cc \
2750 StoreFileSystem.cc \
2752 tests/stub_StoreMeta.cc \
2753 StoreMetaUnpacker.cc \
2754 StoreSwapLogData.cc \
2760 tests/stub_tunnel.cc \
2761 tests/stub_SwapDir.cc \
2768 tests/stub_wccp2.cc \
2770 tests/stub_whois.cc \
2775 nodist_tests_testHttpRequest_SOURCES = \
2777 tests_testHttpRequest_LDADD = \
2790 icmp/libicmp.la icmp/libicmp-core.la \
2793 format/libformat.la \
2794 http/libsquid-http.la \
2796 $(ADAPTATION_LIBS) \
2799 $(top_builddir)/lib/libmisccontainers.la \
2800 $(top_builddir)/lib/libmiscencoding.la \
2801 $(top_builddir)/lib/libmiscutil.la \
2804 $(SQUID_CPPUNIT_LIBS) \
2805 $(SQUID_CPPUNIT_LA) \
2810 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2811 tests_testHttpRequest_DEPENDENCIES = \
2815 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2816 ## first line - what we are testing.
2817 tests_testStore_SOURCES= \
2819 tests/stub_CacheDigest.cc \
2824 $(DELAY_POOL_SOURCE) \
2827 DiskIO/ReadRequest.cc \
2828 DiskIO/WriteRequest.cc \
2833 tests/stub_fatal.cc \
2836 HttpHeaderFieldStat.h \
2840 HttpHdrContRange.cc \
2843 HttpHdrScTarget.cc \
2844 HttpHeaderFieldInfo.h \
2846 HttpHeaderTools.cc \
2850 HttpRequestMethod.cc \
2882 tests/stub_StoreMeta.cc \
2883 StoreMetaUnpacker.cc \
2884 StoreSwapLogData.cc \
2888 SBufDetailedStats.h \
2889 tests/stub_SBufDetailedStats.cc \
2894 tests/CapturingStoreEntry.h \
2896 tests/stub_access_log.cc \
2900 tests/stub_cache_cf.cc \
2901 tests/stub_cache_manager.cc \
2902 tests/stub_client_side_request.cc \
2903 tests/stub_comm.cc \
2904 tests/stub_debug.cc \
2905 tests/stub_DiskIOModule.cc \
2906 tests/stub_errorpage.cc \
2910 tests/stub_helper.cc \
2911 tests/stub_HelperChildConfig.cc \
2912 tests/stub_http.cc \
2913 tests/stub_libauth.cc \
2914 tests/stub_libeui.cc \
2915 tests/stub_libformat.cc \
2918 tests/stub_HttpReply.cc \
2919 tests/stub_HttpRequest.cc \
2920 tests/stub_libcomm.cc \
2921 tests/stub_MemStore.cc \
2923 tests/stub_mime.cc \
2924 tests/stub_Port.cc \
2925 tests/stub_store_client.cc \
2926 tests/stub_store_stats.cc \
2928 tests/stub_store_rebuild.cc \
2929 tests/stub_store_swapout.cc \
2931 tests/stub_tools.cc \
2932 tests/stub_UdsOp.cc \
2934 tests/testStore.cc \
2936 tests/testStoreEntryStream.cc \
2937 tests/testStoreEntryStream.h \
2938 tests/testStoreController.cc \
2939 tests/testStoreController.h \
2940 tests/testStoreHashIndex.cc \
2941 tests/testStoreHashIndex.h \
2942 tests/testStoreSupport.cc \
2943 tests/testStoreSupport.h \
2944 tests/TestSwapDir.cc \
2945 tests/TestSwapDir.h \
2946 tests/stub_time.cc \
2952 nodist_tests_testStore_SOURCES= \
2958 tests_testStore_LDADD= \
2959 http/libsquid-http.la \
2972 $(top_builddir)/lib/libmisccontainers.la \
2973 $(top_builddir)/lib/libmiscencoding.la \
2974 $(top_builddir)/lib/libmiscutil.la \
2976 $(SQUID_CPPUNIT_LIBS) \
2979 DnsLookupDetails.o \
2982 tests_testStore_LDFLAGS = $(LIBADD_DL)
2983 tests_testStore_DEPENDENCIES = \
2986 ## string needs mem.cc.
2987 ## mem.cc needs ClientInfo.h
2988 ## libsquid pulls in SquidConfig and children. stub them.
2989 tests_testString_SOURCES = \
2996 SBufDetailedStats.h \
2997 tests/stub_SBufDetailedStats.cc \
2999 tests/testString.cc \
3000 tests/testString.h \
3003 tests/stub_cache_cf.cc \
3004 tests/stub_cache_manager.cc \
3005 tests/stub_debug.cc \
3006 tests/stub_HelperChildConfig.cc \
3008 tests/stub_tools.cc \
3009 tests/stub_time.cc \
3012 nodist_tests_testString_SOURCES = \
3014 tests_testString_LDADD = \
3018 $(top_builddir)/lib/libmiscutil.la \
3020 $(SQUID_CPPUNIT_LIBS) \
3024 tests_testString_LDFLAGS = $(LIBADD_DL)
3025 tests_testString_DEPENDENCIES = \
3044 tests_testUfs_SOURCES = \
3048 tests/stub_cache_manager.cc \
3049 tests/stub_client_db.cc \
3050 tests/stub_HelperChildConfig.cc \
3053 tests/stub_ipcache.cc \
3054 tests/stub_libeui.cc \
3055 tests/stub_libicmp.cc \
3056 tests/stub_MemStore.cc \
3057 tests/stub_pconn.cc \
3058 tests/stub_Port.cc \
3059 tests/stub_UdsOp.cc \
3061 tests/stub_internal.cc \
3062 tests/stub_libformat.cc \
3064 tests/stub_store_rebuild.cc \
3065 tests/stub_store_stats.cc \
3067 tests/stub_fatal.cc \
3091 StoreSwapLogData.cc \
3093 StoreMetaUnpacker.cc \
3094 $(STOREMETA_SOURCE) \
3095 StoreFileSystem.cc \
3102 $(DELAY_POOL_SOURCE) \
3104 tests/stub_CacheDigest.cc \
3112 HttpRequestMethod.cc \
3121 tests/stub_cache_cf.cc \
3122 tests/stub_helper.cc \
3125 SBufDetailedStats.h \
3126 tests/stub_SBufDetailedStats.cc \
3128 tests/stub_debug.cc \
3129 tests/stub_client_side_request.cc \
3130 tests/stub_http.cc \
3131 tests/stub_libauth.cc \
3135 tests/stub_mime.cc \
3136 HttpHeaderFieldInfo.h \
3138 HttpHeaderTools.cc \
3145 HttpHdrContRange.cc \
3147 HttpHeaderFieldStat.h \
3152 HttpHdrScTarget.cc \
3162 tests/stub_errorpage.cc \
3163 tests/stub_HttpRequest.cc \
3165 tests/stub_access_log.cc \
3168 tests/stub_store_client.cc \
3170 tests/stub_tools.cc \
3171 tests/testStoreSupport.cc \
3172 tests/testStoreSupport.h \
3179 nodist_tests_testUfs_SOURCES = \
3181 $(DISKIO_GEN_SOURCE) \
3185 tests_testUfs_LDADD = \
3186 http/libsquid-http.la \
3188 DnsLookupDetails.o \
3208 $(top_builddir)/lib/libmisccontainers.la \
3209 $(top_builddir)/lib/libmiscencoding.la \
3210 $(top_builddir)/lib/libmiscutil.la \
3212 $(SQUID_CPPUNIT_LIBS) \
3216 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3217 tests_testUfs_DEPENDENCIES = \
3220 check_PROGRAMS += testRefCount
3221 testRefCount_SOURCES= \
3224 tests/stub_cbdata.cc \
3225 tests/stub_debug.cc \
3226 tests/stub_MemBuf.cc \
3227 tests/testRefCount.cc
3228 testRefCount_LDADD = \
3230 $(top_builddir)/lib/libmiscutil.la \
3234 tests_testRock_SOURCES = \
3237 tests/stub_CacheDigest.cc \
3246 tests/stub_fatal.cc \
3253 HttpHeaderFieldStat.h \
3257 HttpHdrContRange.cc \
3260 HttpHdrScTarget.cc \
3263 HttpHeaderFieldInfo.h \
3265 HttpHeaderTools.cc \
3268 HttpRequestMethod.cc \
3290 tests/stub_StatHist.cc \
3294 StoreFileSystem.cc \
3296 StoreMetaUnpacker.cc \
3297 $(STOREMETA_SOURCE) \
3298 StoreSwapLogData.cc \
3306 SBufDetailedStats.h \
3307 tests/stub_SBufDetailedStats.cc \
3315 tests/testStoreSupport.cc \
3316 tests/testStoreSupport.h \
3318 tests/stub_access_log.cc \
3321 tests/stub_cache_cf.cc \
3323 tests/stub_cache_manager.cc \
3324 tests/stub_client_db.cc \
3325 tests/stub_client_side_request.cc \
3326 tests/stub_debug.cc \
3327 tests/stub_errorpage.cc \
3328 tests/stub_HelperChildConfig.cc \
3329 tests/stub_http.cc \
3330 tests/stub_HttpRequest.cc \
3331 tests/stub_libauth.cc \
3334 tests/stub_ipcache.cc \
3335 tests/stub_libeui.cc \
3336 tests/stub_libformat.cc \
3337 tests/stub_libicmp.cc \
3338 tests/stub_libmgr.cc \
3339 tests/stub_MemStore.cc \
3341 tests/stub_mime.cc \
3342 tests/stub_Port.cc \
3343 tests/stub_pconn.cc \
3344 tests/stub_store_client.cc \
3346 tests/stub_store_rebuild.cc \
3347 tests/stub_store_stats.cc \
3349 tests/stub_tools.cc \
3355 $(DELAY_POOL_SOURCE) \
3358 nodist_tests_testRock_SOURCES = \
3359 $(DISKIO_GEN_SOURCE) \
3364 tests_testRock_LDADD = \
3365 http/libsquid-http.la \
3381 $(top_builddir)/lib/libmisccontainers.la \
3382 $(top_builddir)/lib/libmiscencoding.la \
3383 $(top_builddir)/lib/libmiscutil.la \
3385 $(SQUID_CPPUNIT_LIBS) \
3389 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3390 tests_testRock_DEPENDENCIES = \
3393 ## Tests of the URL module.
3394 ## TODO: Trim this down once the insanity is over.
3395 tests_testURL_SOURCES = \
3404 tests/stub_cache_manager.cc \
3406 tests/stub_CacheDigest.cc \
3408 tests/stub_carp.cc \
3410 ChunkedCodingParser.cc \
3415 client_side_reply.cc \
3416 client_side_request.cc \
3425 $(DELAY_POOL_SOURCE) \
3428 DiskIO/ReadRequest.cc \
3429 DiskIO/WriteRequest.cc \
3437 ExternalACLEntry.cc \
3439 tests/stub_fatal.cc \
3454 HelperChildConfig.h \
3455 HelperChildConfig.cc \
3463 HttpHeaderFieldStat.h \
3467 HttpHdrContRange.cc \
3470 HttpHdrScTarget.cc \
3473 HttpHeaderFieldInfo.h \
3475 HttpHeaderTools.cc \
3483 HttpRequestMethod.cc \
3515 peer_proxy_negotiate_auth.h \
3516 peer_proxy_negotiate_auth.cc \
3519 peer_sourcehash.cc \
3523 tests/stub_redirect.cc \
3529 SBufDetailedStats.h \
3530 tests/stub_SBufDetailedStats.cc \
3540 tests/stub_StatHist.cc \
3546 tests/stub_store_digest.cc \
3559 StoreFileSystem.cc \
3561 tests/stub_StoreMeta.cc \
3562 StoreMetaUnpacker.cc \
3563 StoreSwapLogData.cc \
3567 tests/stub_SwapDir.cc \
3569 tests/stub_debug.cc \
3570 tests/stub_DiskIOModule.cc \
3571 tests/stub_libauth_acls.cc \
3572 tests/stub_libauth.cc \
3573 tests/stub_main_cc.cc \
3574 tests/stub_ipc_Forwarder.cc \
3575 tests/stub_store_stats.cc \
3578 tests/testURLScheme.cc \
3579 tests/testURLScheme.h \
3581 tests/stub_time.cc \
3582 tests/stub_EventLoop.cc \
3585 tests/stub_tunnel.cc \
3591 tests/stub_wccp2.cc \
3593 tests/stub_whois.cc \
3598 nodist_tests_testURL_SOURCES = \
3600 tests_testURL_LDADD = \
3601 http/libsquid-http.la \
3615 icmp/libicmp.la icmp/libicmp-core.la \
3619 format/libformat.la \
3622 $(ADAPTATION_LIBS) \
3625 $(top_builddir)/lib/libmisccontainers.la \
3626 $(top_builddir)/lib/libmiscencoding.la \
3627 $(top_builddir)/lib/libmiscutil.la \
3629 $(SQUID_CPPUNIT_LIBS) \
3630 $(SQUID_CPPUNIT_LA) \
3635 tests_testURL_LDFLAGS = $(LIBADD_DL)
3636 tests_testURL_DEPENDENCIES = \
3640 tests_testSBuf_SOURCES= \
3644 tests/SBufFindTest.h \
3645 tests/SBufFindTest.cc \
3647 SBufDetailedStats.h \
3648 tests/stub_SBufDetailedStats.cc \
3650 tests/stub_time.cc \
3652 tests/stub_debug.cc \
3653 tests/stub_fatal.cc \
3654 tests/stub_HelperChildConfig.cc \
3655 tests/stub_cache_cf.cc \
3656 tests/stub_cache_manager.cc \
3657 tests/stub_store.cc \
3658 tests/stub_store_stats.cc \
3659 tests/stub_tools.cc \
3662 tests/stub_wordlist.cc \
3663 tests/stub_MemBuf.cc
3664 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3665 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3666 tests_testSBuf_LDADD=\
3667 $(SQUID_CPPUNIT_LIBS) \
3668 $(SQUID_CPPUNIT_LA) \
3674 $(top_builddir)/lib/libmiscutil.la \
3676 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3678 tests_testSBufList_SOURCES= \
3679 tests/testSBufList.h \
3680 tests/testSBufList.cc \
3686 SBufDetailedStats.h \
3687 tests/stub_SBufDetailedStats.cc \
3689 tests/stub_time.cc \
3691 tests/stub_debug.cc \
3692 tests/stub_event.cc \
3693 tests/stub_fatal.cc \
3694 tests/stub_HelperChildConfig.cc \
3695 tests/stub_cache_cf.cc \
3696 tests/stub_cache_manager.cc \
3697 tests/stub_store_stats.cc \
3698 tests/stub_tools.cc \
3701 tests/stub_wordlist.cc \
3702 tests/stub_MemBuf.cc
3703 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3704 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3705 tests_testSBufList_LDADD=\
3706 $(SQUID_CPPUNIT_LIBS) \
3707 $(SQUID_CPPUNIT_LA) \
3713 $(top_builddir)/lib/libmiscutil.la \
3715 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3717 tests_testConfigParser_SOURCES = \
3721 tests/stub_MemBuf.cc \
3722 tests/stub_time.cc \
3724 SBufDetailedStats.h \
3725 tests/stub_SBufDetailedStats.cc \
3729 tests/stub_fatal.cc \
3731 tests/testConfigParser.cc \
3732 tests/testConfigParser.h \
3735 tests/stub_cache_cf.cc \
3736 tests/stub_cache_manager.cc \
3737 tests/stub_debug.cc \
3738 tests/stub_HelperChildConfig.cc \
3740 tests/stub_tools.cc \
3743 nodist_tests_testConfigParser_SOURCES = \
3745 tests_testConfigParser_LDADD = \
3749 $(top_builddir)/lib/libmiscutil.la \
3751 $(SQUID_CPPUNIT_LIBS) \
3755 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3756 tests_testConfigParser_DEPENDENCIES = \
3759 tests_testStatHist_SOURCES = \
3760 tests/stub_cbdata.cc \
3762 tests/stub_fatal.cc \
3763 tests/stub_MemBuf.cc \
3767 tests/stub_cache_manager.cc \
3768 tests/stub_comm.cc \
3769 tests/stub_debug.cc \
3770 tests/stub_DelayId.cc \
3771 tests/stub_HelperChildConfig.cc \
3774 tests/stub_MemObject.cc \
3776 tests/stub_mime.cc \
3777 tests/stub_pconn.cc \
3778 tests/stub_stmem.cc \
3780 tests/stub_store.cc \
3781 tests/stub_store_stats.cc \
3783 tests/stub_tools.cc \
3785 tests/testStatHist.cc \
3786 tests/testStatHist.h
3787 nodist_tests_testStatHist_SOURCES = \
3789 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3790 tests_testStatHist_LDADD = \
3792 $(top_builddir)/lib/libmiscutil.la \
3793 $(top_builddir)/lib/libmisccontainers.la \
3794 $(SQUID_CPPUNIT_LIBS) \
3795 $(SQUID_CPPUNIT_LA) \
3797 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3799 tests_testVector_SOURCES = \
3800 tests/testVector.cc \
3803 nodist_tests_testVector_SOURCES = \
3805 tests_testVector_LDADD= \
3806 $(SQUID_CPPUNIT_LIBS) \
3809 tests_testVector_LDFLAGS = $(LIBADD_DL)
3810 tests_testVector_DEPENDENCIES = \
3814 TESTS += testHeaders
3816 ## Special Universal .h dependency test script
3817 ## aborts if error encountered
3818 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3819 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3820 ## src/repl/ has no .h files and its own makefile.
3822 CLEANFILES += testHeaders