2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
21 OutOfBoundsException.h \
27 LOADABLE_MODULES_SOURCES = \
33 SUBDIRS = base anyp comm eui acl format fs repl
34 DIST_SUBDIRS = base anyp comm eui acl format fs repl
38 AUTH_LIBS= auth/libauth.la
39 AUTH_ACL_LIBS= auth/libacls.la
40 check_PROGRAMS+= tests/testACLMaxUserIP
44 SUBDIRS += http ip icmp ident log ipc mgr
45 DIST_SUBDIRS += http ip icmp ident log ipc mgr
64 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
66 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
75 DIST_SUBDIRS += adaptation
81 $(top_builddir)/lib/libTrie/libTrie.a
82 ESI_LIBS = $(ESI_LOCAL_LIBS) \
90 DELAY_POOL_ALL_SOURCE = \
114 ClientDelayConfig.cc \
117 if ENABLE_DELAY_POOLS
118 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
123 if ENABLE_XPROF_STATS
124 XPROF_STATS_SOURCE = ProfStats.cc
130 HTCPSOURCE = htcp.cc htcp.h
134 LEAKFINDERSOURCE = LeakFinder.cc
140 UNLINKDSOURCE = unlinkd.h unlinkd.cc
143 UNLINKDSOURCE = unlinkd.h
152 if ENABLE_WIN32SPECIFIC
153 WIN32_SOURCE = win32.cc
154 WINSVC_SOURCE = WinSvc.cc
161 IPC_SOURCE = SquidIpc.h ipc_win32.cc
163 IPC_SOURCE = SquidIpc.h ipc.cc
166 AIO_WIN32_ALL_SOURCES = \
167 DiskIO/AIO/aio_win32.cc \
168 DiskIO/AIO/aio_win32.h
170 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
176 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
177 DiskIO/DiskThreads/CommIO.cc \
178 DiskIO/DiskThreads/CommIO.h
180 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
181 DiskIO/DiskThreads/CommIO.cc \
182 DiskIO/DiskThreads/CommIO.h
185 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
186 libMmapped.a libIpcIo.a
187 noinst_LIBRARIES = $(DISK_LIBS)
188 noinst_LTLIBRARIES = libsquid.la
191 DiskIO/DiskDaemon/diskd \
198 ## cfgen is used when building squid
199 ## ufsdump is a debug utility, it is possibly useful for end users with cache
200 ## corruption, but at this point we do not install it.
214 cf_gen_SOURCES = cf_gen.cc
215 nodist_cf_gen_HEADER = cf_gen_defines.cci
216 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
218 cf_gen.$(OBJEXT): cf_gen_defines.cci
220 ## cf_gen.cc needs src/cf_gen_defines.cci
221 INCLUDES += -I$(top_builddir)/src
224 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
227 DiskIO/DiskIOModule.cc \
228 DiskIO/ReadRequest.cc \
229 DiskIO/ReadRequest.h \
230 DiskIO/WriteRequest.cc \
231 DiskIO/WriteRequest.h \
233 DiskIO/DiskIOStrategy.h \
234 DiskIO/IORequestor.h \
235 DiskIO/DiskIOModule.h \
238 DISKIO_GEN_SOURCE = \
239 DiskIO/DiskIOModules_gen.cc
241 DiskIO/DiskIOModules_gen.cc: Makefile
242 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
245 # common library for all the binaries and tests. This is kindof a catch all
246 # and smaller libraries split from this are encouraged. Using lt convenience
247 # libraries, dependencies should not be a problem either.
248 libsquid_la_SOURCES = \
260 $(ACL_REGISTRATION_SOURCES) \
274 NeighborTypeDomainList.h \
275 CachePeerDomainList.h \
282 ChunkedCodingParser.cc \
283 ChunkedCodingParser.h \
289 client_side_reply.cc \
290 client_side_reply.h \
291 client_side_request.cc \
292 client_side_request.h \
297 ClientRequestContext.h \
300 CompletionDispatcher.cc \
301 CompletionDispatcher.h \
315 $(DELAY_POOL_SOURCE) \
335 ExternalACLEntry.cc \
359 HelperChildConfig.h \
360 HelperChildConfig.cc \
364 HierarchyLogEntry.h \
369 HttpHeaderFieldStat.h \
378 HttpHdrContRange.cc \
385 HttpHeaderFieldInfo.h \
401 HttpRequestMethod.cc \
402 HttpRequestMethod.h \
414 $(LEAKFINDERSOURCE) \
444 $(XPROF_STATS_SOURCE) \
449 peer_proxy_negotiate_auth.h \
450 peer_proxy_negotiate_auth.cc \
520 StoreMetaUnpacker.cc \
521 StoreMetaUnpacker.h \
529 StoreSwapLogData.cc \
562 EXTRA_squid_SOURCES = \
563 $(AIO_WIN32_ALL_SOURCES) \
566 $(DELAY_POOL_ALL_SOURCE) \
576 $(WIN32_ALL_SOURCE) \
577 $(LOADABLE_MODULES_SOURCES)
580 client_side_request.cci \
602 CLEANFILES += $(BUILT_SOURCES)
604 nodist_squid_SOURCES = \
605 $(DISKIO_GEN_SOURCE) \
625 http/libsquid-http.la \
626 icmp/libicmp.la icmp/libicmp-core.la \
628 format/libformat.la \
639 $(top_builddir)/lib/libmisccontainers.la \
640 $(top_builddir)/lib/libmiscencoding.la \
641 $(top_builddir)/lib/libmiscutil.la \
648 squid_DEPENDENCIES = \
666 format/libformat.la \
670 if USE_LOADABLE_MODULES
671 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
672 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
673 squid_LDFLAGS = -export-dynamic -dlopen force
674 ## when static module linking is supported and enabled:
675 ## squid_LDFLAGS = -all-static -dlopen self
677 ## LTDL headers require their local include path...
678 INCLUDES += $(INCLTDL)
681 ## Kerberos libraries require their include path...
682 INCLUDES += $(KRB5INCS)
685 unlinkd_SOURCES = unlinkd_daemon.cc
690 recv_announce_SOURCES = recv-announce.cc
692 ## What requires what..
693 ## many things want ACLChecklist.cc
694 ## ACLChecklist.cc wants AuthUserRequest.cc
695 ## ACLChecklist.cc wants AuthScheme.cc
696 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
697 ## ACLProxyAuth.cc wants ACLUserData
698 ## ACLProxyAuth.cc wants ACLRegexData
699 ## cache_cf.cc wants $(AUTH_LIBS)
700 ## cache_cf.cc wants Swapdir
701 ## cache_cf.cc wants AnyP::PortCfg
702 ## client_side wants client_db
703 ## client_db wants SNMP_SOURCE
704 ## snmp_core wants ACLStringData
705 ## SwapDir wants ConfigOption
706 ## tools.cc wants ip/libip.la
707 ## client_side.cc wants ip/libip.la
708 ## mem.cc wants ClientInfo.h
709 ## libbase.la wants cbdata.*
710 ## libbase.la wants MemBuf.*
730 StoreMetaUnpacker.cc \
739 HelperChildConfig.h \
740 tests/stub_HelperChildConfig.cc \
741 HttpRequestMethod.cc \
767 ufsdump_DEPENDENCIES = \
783 nodist_ufsdump_SOURCES = \
788 squid.conf.documented \
813 include $(srcdir)/tests/Stub.list
822 mk-string-arrays.pl \
823 mk-string-arrays.awk \
830 $(AIO_WIN32_SOURCES) \
831 DiskIO/AIO/async_io.h \
832 DiskIO/AIO/AIODiskFile.cc \
833 DiskIO/AIO/AIODiskFile.h \
834 DiskIO/AIO/AIODiskIOStrategy.cc \
835 DiskIO/AIO/AIODiskIOStrategy.h \
836 DiskIO/AIO/AIODiskIOModule.cc \
837 DiskIO/AIO/AIODiskIOModule.h
839 libBlocking_a_SOURCES = \
840 DiskIO/Blocking/BlockingFile.cc \
841 DiskIO/Blocking/BlockingFile.h \
842 DiskIO/Blocking/BlockingIOStrategy.cc \
843 DiskIO/Blocking/BlockingIOStrategy.h \
844 DiskIO/Blocking/BlockingDiskIOModule.cc \
845 DiskIO/Blocking/BlockingDiskIOModule.h
847 libMmapped_a_SOURCES = \
848 DiskIO/Mmapped/MmappedFile.cc \
849 DiskIO/Mmapped/MmappedFile.h \
850 DiskIO/Mmapped/MmappedIOStrategy.cc \
851 DiskIO/Mmapped/MmappedIOStrategy.h \
852 DiskIO/Mmapped/MmappedDiskIOModule.cc \
853 DiskIO/Mmapped/MmappedDiskIOModule.h
855 libIpcIo_a_SOURCES = \
856 DiskIO/IpcIo/IpcIoFile.cc \
857 DiskIO/IpcIo/IpcIoFile.h \
858 DiskIO/IpcIo/IpcIoIOStrategy.cc \
859 DiskIO/IpcIo/IpcIoIOStrategy.h \
860 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
861 DiskIO/IpcIo/IpcIoDiskIOModule.h
863 libDiskDaemon_a_SOURCES = \
864 DiskIO/DiskDaemon/DiskdFile.cc \
865 DiskIO/DiskDaemon/DiskdFile.h \
866 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
867 DiskIO/DiskDaemon/DiskdIOStrategy.h \
868 DiskIO/DiskDaemon/diomsg.h \
869 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
870 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
871 DiskIO/DiskDaemon/DiskdAction.cc \
872 DiskIO/DiskDaemon/DiskdAction.h
874 libDiskThreads_a_SOURCES = \
876 DiskIO/DiskThreads/async_io.cc \
877 DiskIO/DiskThreads/DiskThreads.h \
878 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
879 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
880 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
881 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
882 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
883 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
885 EXTRA_libDiskThreads_a_SOURCES = \
886 DiskIO/DiskThreads/aiops.cc \
887 DiskIO/DiskThreads/aiops_win32.cc \
888 DiskIO/DiskThreads/CommIO.cc \
889 DiskIO/DiskThreads/CommIO.h
891 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
892 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
893 DiskIO_DiskDaemon_diskd_LDADD = \
894 $(top_builddir)/lib/libmisccontainers.la \
895 $(top_builddir)/lib/libmiscencoding.la \
896 $(top_builddir)/lib/libmiscutil.la \
901 DEFAULT_HTTP_PORT = 3128
902 DEFAULT_ICP_PORT = 3130
903 DEFAULT_PREFIX = $(prefix)
904 DEFAULT_CONFIG_DIR = $(sysconfdir)
905 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
906 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
907 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
908 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
909 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
910 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
911 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
912 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
913 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
914 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
915 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_ICON_DIR = $(datadir)/icons
919 DEFAULT_ERROR_DIR = $(datadir)/errors
921 # Make location configure settings available to the code
922 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
924 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
926 globals.cc: globals.h mk-globals-c.awk
927 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
929 ## Generate files containing string arrays for various enums....
930 hier_code.cc: hier_code.h mk-string-arrays.awk
931 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
933 err_type.cc: err_type.h mk-string-arrays.awk
934 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
936 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
937 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
939 LogTags.cc: LogTags.h mk-string-arrays.awk
940 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
942 lookup_t.cc: lookup_t.h mk-string-arrays.awk
943 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
945 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
946 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
948 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
949 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
952 ## other generated files...
954 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
955 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
957 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
958 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
960 ## If autodependency works well this is not needed anymore
961 cache_cf.o: cf_parser.cci
963 # cf_gen builds the configuration files.
964 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
965 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
967 # squid.conf.default is built by cf_gen when making cf_parser.cci
968 squid.conf.default squid.conf.documented: cf_parser.cci
971 cf_parser.cci: cf.data cf_gen$(EXEEXT)
972 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
974 # The cf_gen_defines.cci is auto-generated and does not exist when the
975 # dependencies computed. We need to add its include files (autoconf.h) here
976 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
977 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
980 ## FIXME: generate a sed command file from configure. Then this doesn't
981 ## depend on the Makefile.
982 cf.data: cf.data.pre Makefile
984 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
985 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
986 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
987 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
988 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
989 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
990 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
991 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
992 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
993 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
994 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
995 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
996 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
997 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
998 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
999 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1000 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1001 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1002 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1003 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1004 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1005 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1006 < $(srcdir)/cf.data.pre >$@
1008 repl_modules.cc: repl_modules.sh Makefile
1009 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1011 include $(top_srcdir)/doc/manuals/Substitute.am
1013 squid.8: $(srcdir)/squid.8.in Makefile
1014 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1017 EXTRA_DIST += squid.8.in
1018 CLEANFILES += squid.8
1020 install-data-local: install-sysconfDATA install-dataDATA
1021 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1022 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1024 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1025 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1027 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1028 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1030 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1031 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1033 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1034 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1035 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1036 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1037 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1038 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1039 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1041 uninstall-local: squid.conf.default
1042 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1043 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1045 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1046 DiskIO/DiskIOModules_gen.cc \
1049 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1050 cp $(top_srcdir)/test-suite/test_tools.cc .
1052 # stock tools for unit tests - library independent versions of dlink_list
1054 # globals.cc is needed by test_tools.cc.
1055 # Neither of these should be disted from here.
1062 tests/testBoilerplate \
1063 tests/testCacheManager \
1066 tests/testEventLoop \
1067 tests/test_http_range \
1068 tests/testHttpParser \
1069 tests/testHttpReply \
1070 tests/testHttpRequest \
1075 tests/testConfigParser \
1076 tests/testStatHist \
1080 check_PROGRAMS += tests/testRock
1083 check_PROGRAMS += tests/testUfs
1086 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1087 TESTS += $(check_PROGRAMS)
1089 ### Template for new Unit Test Program
1090 ## - add tests/testX to check_PROGRAMS above.
1091 ## - copy template below and substitue X for class name
1092 ## - add other component .(h|cc) files needed to link and run tests
1094 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1096 #tests_testX_SOURCES=\
1099 # tests/testMain.cc \
1102 #nodist_tests_testX_SOURCES=\
1104 #tests_testX_LDFLAGS = $(LIBADD_DL)
1105 #tests_testX_LDADD=\
1106 # $(SQUID_CPPUNIT_LIBS) \
1107 # $(SQUID_CPPUNIT_LA) \
1109 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1112 # - add other component .(h|cc) files needed to link and run tests
1113 tests_testHttpReply_SOURCES=\
1119 tests/stub_fatal.cc \
1122 HttpHeaderFieldStat.h \
1126 HttpHdrContRange.cc \
1127 HttpHdrContRange.h \
1131 HttpHdrScTarget.cc \
1136 HttpHeaderFieldInfo.h \
1138 HttpHeaderTools.cc \
1162 tests/stub_access_log.cc \
1165 tests/stub_cache_cf.cc \
1166 tests/stub_cache_manager.cc \
1167 tests/stub_debug.cc \
1168 tests/stub_errorpage.cc \
1169 tests/stub_HelperChildConfig.cc \
1170 tests/stub_libformat.cc \
1171 tests/stub_libauth.cc \
1175 tests/stub_StatHist.cc \
1177 tests/stub_store.cc \
1178 tests/stub_store_stats.cc \
1180 tests/stub_tools.cc \
1181 tests/stub_HttpRequest.cc \
1182 tests/testHttpReply.cc \
1183 tests/testHttpReply.h \
1190 nodist_tests_testHttpReply_SOURCES=\
1192 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1193 tests_testHttpReply_LDADD=\
1194 http/libsquid-http.la \
1202 $(top_builddir)/lib/libmisccontainers.la \
1203 $(top_builddir)/lib/libmiscencoding.la \
1204 $(top_builddir)/lib/libmiscutil.la \
1205 $(SQUID_CPPUNIT_LIBS) \
1206 $(SQUID_CPPUNIT_LA) \
1210 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1212 tests_testACLMaxUserIP_SOURCES= \
1217 DiskIO/ReadRequest.cc \
1218 DiskIO/WriteRequest.cc \
1222 tests/stub_fatal.cc \
1225 HelperChildConfig.h \
1226 HelperChildConfig.cc \
1230 HttpHeaderFieldInfo.h \
1232 HttpHeaderTools.cc \
1233 HttpHdrContRange.cc \
1235 HttpHeaderFieldStat.h \
1240 HttpHdrScTarget.cc \
1242 HttpRequestMethod.cc \
1260 tests/stub_StatHist.cc \
1268 StoreMetaSTDLFS.cc \
1269 StoreMetaUnpacker.cc \
1272 StoreSwapLogData.cc \
1280 tests/stub_access_log.cc \
1283 tests/stub_cache_cf.cc \
1284 tests/stub_client_side.cc \
1285 tests/stub_debug.cc \
1286 tests/stub_DelayId.cc \
1287 tests/stub_DiskIOModule.cc \
1288 tests/stub_errorpage.cc \
1291 tests/stub_HttpRequest.cc \
1292 tests/stub_HttpReply.cc \
1293 tests/stub_ipc_TypedMsgHdr.cc \
1294 tests/stub_libauth.cc \
1295 tests/stub_libcomm.cc \
1296 tests/stub_libformat.cc \
1297 tests/stub_libsslsquid.cc \
1298 tests/stub_MemObject.cc \
1299 tests/stub_MemStore.cc \
1301 tests/stub_mime.cc \
1302 tests/stub_pconn.cc \
1303 tests/stub_Port.cc \
1305 tests/stub_store.cc \
1307 tests/stub_store_rebuild.cc \
1308 tests/stub_store_stats.cc \
1309 tests/stub_store_swapout.cc \
1311 tests/stub_tools.cc \
1312 tests/stub_cache_manager.cc \
1313 tests/stub_UdsOp.cc \
1314 tests/testACLMaxUserIP.cc \
1315 tests/testACLMaxUserIP.h \
1327 nodist_tests_testACLMaxUserIP_SOURCES= \
1329 tests_testACLMaxUserIP_LDADD= \
1330 http/libsquid-http.la \
1343 $(top_builddir)/lib/libmisccontainers.la \
1344 $(top_builddir)/lib/libmiscencoding.la \
1345 $(top_builddir)/lib/libmiscutil.la \
1348 $(SQUID_CPPUNIT_LIBS) \
1352 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1353 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1354 ## $(SQUID_CPPUNIT_LA)
1356 ## a demonstration test that does nothing but shows the salient points
1357 ## involved in writing tests.
1358 tests_testBoilerplate_SOURCES = \
1359 tests/testBoilerplate.cc \
1361 tests/testBoilerplate.h \
1363 nodist_tests_testBoilerplate_SOURCES = \
1365 tests_testBoilerplate_LDADD= \
1366 $(SQUID_CPPUNIT_LIBS) \
1370 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1371 tests_testBoilerplate_DEPENDENCIES = \
1374 ## Tests of the CacheManager module.
1375 tests_testCacheManager_SOURCES = \
1383 HttpRequestMethod.cc \
1387 tests/testCacheManager.cc \
1388 tests/testCacheManager.h \
1390 tests/stub_main_cc.cc \
1391 tests/stub_ipc_Forwarder.cc \
1392 tests/stub_store_stats.cc \
1407 ChunkedCodingParser.cc \
1412 client_side_reply.cc \
1413 client_side_request.cc \
1422 $(DELAY_POOL_SOURCE) \
1433 ExternalACLEntry.cc \
1435 tests/stub_fatal.cc \
1451 HelperChildConfig.h \
1452 HelperChildConfig.cc \
1462 HttpHeaderFieldInfo.h \
1464 HttpHeaderTools.cc \
1465 HttpHeaderFieldStat.h \
1469 HttpHdrContRange.cc \
1472 HttpHdrScTarget.cc \
1505 peer_proxy_negotiate_auth.h \
1506 peer_proxy_negotiate_auth.cc \
1509 peer_sourcehash.cc \
1513 tests/stub_redirect.cc \
1529 tests/stub_libauth_acls.cc \
1530 tests/stub_libauth.cc \
1531 tests/stub_StatHist.cc \
1550 StoreFileSystem.cc \
1555 StoreMetaSTDLFS.cc \
1556 StoreMetaUnpacker.cc \
1559 StoreSwapLogData.cc \
1578 nodist_tests_testCacheManager_SOURCES = \
1580 $(DISKIO_GEN_SOURCE)
1581 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1582 tests_testCacheManager_LDADD = \
1583 http/libsquid-http.la \
1594 icmp/libicmp.la icmp/libicmp-core.la \
1596 format/libformat.la \
1600 $(ADAPTATION_LIBS) \
1607 $(top_builddir)/lib/libmisccontainers.la \
1608 $(top_builddir)/lib/libmiscencoding.la \
1609 $(top_builddir)/lib/libmiscutil.la \
1611 $(SQUID_CPPUNIT_LIBS) \
1612 $(SQUID_CPPUNIT_LA) \
1617 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1618 tests_testCacheManager_DEPENDENCIES = \
1622 tests_testDiskIO_SOURCES = \
1630 $(DELAY_POOL_SOURCE) \
1638 tests/stub_fatal.cc \
1647 HttpHeaderFieldStat.h \
1651 HttpHdrContRange.cc \
1653 HttpHdrScTarget.cc \
1655 HttpHeaderFieldInfo.h \
1657 HttpHeaderTools.cc \
1662 HttpRequestMethod.cc \
1686 tests/stub_StatHist.cc \
1688 StoreFileSystem.cc \
1693 StoreMetaSTDLFS.cc \
1694 StoreMetaUnpacker.cc \
1697 StoreSwapLogData.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 \
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 = \
1819 ChunkedCodingParser.cc \
1824 client_side_reply.cc \
1825 client_side_request.cc \
1835 $(DELAY_POOL_SOURCE) \
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 \
1928 peer_proxy_negotiate_auth.h \
1929 peer_proxy_negotiate_auth.cc \
1932 peer_sourcehash.cc \
1936 tests/stub_redirect.cc \
1971 StoreFileSystem.cc \
1976 StoreMetaSTDLFS.cc \
1977 StoreMetaUnpacker.cc \
1980 StoreSwapLogData.cc \
1983 tests/CapturingStoreEntry.h \
1984 tests/testEvent.cc \
1987 tests/stub_main_cc.cc \
1988 tests/stub_ipc_Forwarder.cc \
1989 tests/stub_libauth_acls.cc \
1990 tests/stub_libauth.cc \
1991 tests/stub_libeui.cc \
1992 tests/stub_store_stats.cc \
2010 nodist_tests_testEvent_SOURCES = \
2012 $(DISKIO_GEN_SOURCE)
2013 tests_testEvent_LDADD = \
2014 http/libsquid-http.la \
2024 icmp/libicmp.la icmp/libicmp-core.la \
2027 format/libformat.la \
2029 $(ADAPTATION_LIBS) \
2032 $(top_builddir)/lib/libmisccontainers.la \
2033 $(top_builddir)/lib/libmiscencoding.la \
2034 $(top_builddir)/lib/libmiscutil.la \
2041 $(SQUID_CPPUNIT_LIBS) \
2042 $(SQUID_CPPUNIT_LA) \
2047 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2048 tests_testEvent_DEPENDENCIES = \
2052 ## Tests of the EventLoop module.
2053 tests_testEventLoop_SOURCES = \
2068 ChunkedCodingParser.cc \
2073 client_side_reply.cc \
2074 client_side_request.cc \
2084 $(DELAY_POOL_SOURCE) \
2097 ExternalACLEntry.cc \
2100 tests/stub_fatal.cc \
2115 HelperChildConfig.h \
2116 HelperChildConfig.cc \
2126 HttpHeaderFieldInfo.h \
2128 HttpHeaderTools.cc \
2129 HttpHeaderFieldStat.h \
2133 HttpHdrContRange.cc \
2136 HttpHdrScTarget.cc \
2144 HttpRequestMethod.cc \
2177 peer_proxy_negotiate_auth.h \
2178 peer_proxy_negotiate_auth.cc \
2181 peer_sourcehash.cc \
2186 tests/stub_redirect.cc \
2219 StoreFileSystem.cc \
2224 StoreMetaSTDLFS.cc \
2225 StoreMetaUnpacker.cc \
2228 StoreSwapLogData.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 \
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 = \
2316 ChunkedCodingParser.cc \
2321 client_side_reply.cc \
2322 client_side_request.cc \
2332 $(DELAY_POOL_SOURCE) \
2344 tests/stub_libauth.cc \
2345 tests/stub_fatal.cc \
2360 HelperChildConfig.h \
2361 HelperChildConfig.cc \
2369 HttpHeaderFieldStat.h \
2373 HttpHdrContRange.cc \
2376 HttpHdrScTarget.cc \
2379 HttpHeaderFieldInfo.h \
2381 HttpHeaderTools.cc \
2389 HttpRequestMethod.cc \
2421 peer_proxy_negotiate_auth.h \
2422 peer_proxy_negotiate_auth.cc \
2425 peer_sourcehash.cc \
2430 tests/stub_redirect.cc \
2463 StoreFileSystem.cc \
2468 StoreMetaSTDLFS.cc \
2469 StoreMetaUnpacker.cc \
2472 StoreSwapLogData.cc \
2477 tests/test_http_range.cc \
2478 tests/stub_external_acl.cc \
2479 tests/stub_ipc_Forwarder.cc \
2480 tests/stub_libeui.cc \
2481 tests/stub_main_cc.cc \
2482 tests/stub_MemStore.cc \
2483 tests/stub_store_stats.cc \
2500 nodist_tests_test_http_range_SOURCES = \
2502 $(DISKIO_GEN_SOURCE)
2503 tests_test_http_range_LDADD = \
2504 http/libsquid-http.la \
2513 icmp/libicmp.la icmp/libicmp-core.la \
2516 format/libformat.la \
2520 $(ADAPTATION_LIBS) \
2527 $(top_builddir)/lib/libmisccontainers.la \
2528 $(top_builddir)/lib/libmiscencoding.la \
2529 $(top_builddir)/lib/libmiscutil.la \
2531 $(SQUID_CPPUNIT_LIBS) \
2532 $(SQUID_CPPUNIT_LA) \
2537 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2538 tests_test_http_range_DEPENDENCIES = \
2541 tests_testHttpParser_SOURCES = \
2552 tests/stub_cache_cf.cc \
2553 tests/stub_cache_manager.cc \
2554 tests/stub_debug.cc \
2555 tests/stub_event.cc \
2556 tests/stub_HelperChildConfig.cc \
2558 tests/stub_tools.cc \
2559 tests/testHttpParser.cc \
2560 tests/testHttpParser.h \
2565 nodist_tests_testHttpParser_SOURCES = \
2567 tests_testHttpParser_LDADD= \
2568 http/libsquid-http.la \
2572 $(top_builddir)/lib/libmiscutil.la \
2573 $(SQUID_CPPUNIT_LIBS) \
2576 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2577 tests_testHttpParser_DEPENDENCIES = \
2580 ## Tests of the HttpRequest module.
2581 tests_testHttpRequest_SOURCES = \
2588 HttpRequestMethod.cc \
2592 tests/testHttpRequest.h \
2593 tests/testHttpRequest.cc \
2594 tests/testHttpRequestMethod.h \
2595 tests/testHttpRequestMethod.cc \
2597 tests/stub_DiskIOModule.cc \
2598 tests/stub_libauth.cc \
2599 tests/stub_main_cc.cc \
2600 tests/stub_ipc_Forwarder.cc \
2601 tests/stub_libeui.cc \
2602 tests/stub_store_stats.cc \
2618 ChunkedCodingParser.cc \
2623 client_side_reply.cc \
2624 client_side_request.cc \
2633 $(DELAY_POOL_SOURCE) \
2642 ExternalACLEntry.cc \
2644 tests/stub_fatal.cc \
2657 HelperChildConfig.h \
2658 HelperChildConfig.cc \
2668 HttpHeaderFieldInfo.h \
2670 HttpHeaderTools.cc \
2671 HttpHeaderFieldStat.h \
2675 HttpHdrContRange.cc \
2678 HttpHdrScTarget.cc \
2711 peer_proxy_negotiate_auth.h \
2712 peer_proxy_negotiate_auth.cc \
2715 peer_sourcehash.cc \
2719 tests/stub_libauth_acls.cc \
2720 tests/stub_redirect.cc \
2753 StoreFileSystem.cc \
2758 StoreMetaSTDLFS.cc \
2759 StoreMetaUnpacker.cc \
2762 StoreSwapLogData.cc \
2783 nodist_tests_testHttpRequest_SOURCES = \
2785 tests_testHttpRequest_LDADD = \
2798 icmp/libicmp.la icmp/libicmp-core.la \
2801 format/libformat.la \
2802 http/libsquid-http.la \
2804 $(ADAPTATION_LIBS) \
2807 $(top_builddir)/lib/libmisccontainers.la \
2808 $(top_builddir)/lib/libmiscencoding.la \
2809 $(top_builddir)/lib/libmiscutil.la \
2812 $(SQUID_CPPUNIT_LIBS) \
2813 $(SQUID_CPPUNIT_LA) \
2818 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2819 tests_testHttpRequest_DEPENDENCIES = \
2823 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2824 ## first line - what we are testing.
2825 tests_testStore_SOURCES= \
2832 $(DELAY_POOL_SOURCE) \
2835 DiskIO/ReadRequest.cc \
2836 DiskIO/WriteRequest.cc \
2841 tests/stub_fatal.cc \
2844 HttpHeaderFieldStat.h \
2848 HttpHdrContRange.cc \
2851 HttpHdrScTarget.cc \
2852 HttpHeaderFieldInfo.h \
2854 HttpHeaderTools.cc \
2858 HttpRequestMethod.cc \
2893 StoreMetaSTDLFS.cc \
2894 StoreMetaUnpacker.cc \
2897 StoreSwapLogData.cc \
2904 tests/CapturingStoreEntry.h \
2906 tests/stub_access_log.cc \
2910 tests/stub_cache_cf.cc \
2911 tests/stub_cache_manager.cc \
2912 tests/stub_client_side_request.cc \
2913 tests/stub_comm.cc \
2914 tests/stub_debug.cc \
2915 tests/stub_DiskIOModule.cc \
2916 tests/stub_errorpage.cc \
2920 tests/stub_helper.cc \
2921 tests/stub_HelperChildConfig.cc \
2922 tests/stub_http.cc \
2923 tests/stub_libauth.cc \
2924 tests/stub_libeui.cc \
2925 tests/stub_libformat.cc \
2928 tests/stub_HttpReply.cc \
2929 tests/stub_HttpRequest.cc \
2930 tests/stub_libcomm.cc \
2931 tests/stub_MemStore.cc \
2933 tests/stub_mime.cc \
2934 tests/stub_Port.cc \
2935 tests/stub_store_client.cc \
2936 tests/stub_store_stats.cc \
2938 tests/stub_store_rebuild.cc \
2939 tests/stub_store_swapout.cc \
2941 tests/stub_tools.cc \
2942 tests/stub_UdsOp.cc \
2944 tests/testStore.cc \
2946 tests/testStoreEntryStream.cc \
2947 tests/testStoreEntryStream.h \
2948 tests/testStoreController.cc \
2949 tests/testStoreController.h \
2950 tests/testStoreHashIndex.cc \
2951 tests/testStoreHashIndex.h \
2952 tests/testStoreSupport.cc \
2953 tests/testStoreSupport.h \
2954 tests/TestSwapDir.cc \
2955 tests/TestSwapDir.h \
2962 nodist_tests_testStore_SOURCES= \
2968 tests_testStore_LDADD= \
2969 http/libsquid-http.la \
2982 $(top_builddir)/lib/libmisccontainers.la \
2983 $(top_builddir)/lib/libmiscencoding.la \
2984 $(top_builddir)/lib/libmiscutil.la \
2986 $(SQUID_CPPUNIT_LIBS) \
2989 DnsLookupDetails.o \
2992 tests_testStore_LDFLAGS = $(LIBADD_DL)
2993 tests_testStore_DEPENDENCIES = \
2996 ## string needs mem.cc.
2997 ## mem.cc needs ClientInfo.h
2998 ## libsquid pulls in SquidConfig and children. stub them.
2999 tests_testString_SOURCES = \
3006 tests/testString.cc \
3007 tests/testString.h \
3010 tests/stub_cache_cf.cc \
3011 tests/stub_cache_manager.cc \
3012 tests/stub_debug.cc \
3013 tests/stub_HelperChildConfig.cc \
3015 tests/stub_tools.cc \
3019 nodist_tests_testString_SOURCES = \
3021 tests_testString_LDADD = \
3025 $(top_builddir)/lib/libmiscutil.la \
3027 $(SQUID_CPPUNIT_LIBS) \
3031 tests_testString_LDFLAGS = $(LIBADD_DL)
3032 tests_testString_DEPENDENCIES = \
3051 tests_testUfs_SOURCES = \
3055 tests/stub_cache_manager.cc \
3056 tests/stub_client_db.cc \
3057 tests/stub_HelperChildConfig.cc \
3060 tests/stub_libeui.cc \
3061 tests/stub_MemStore.cc \
3062 tests/stub_pconn.cc \
3063 tests/stub_Port.cc \
3064 tests/stub_UdsOp.cc \
3066 tests/stub_internal.cc \
3067 tests/stub_libformat.cc \
3069 tests/stub_store_rebuild.cc \
3070 tests/stub_store_stats.cc \
3072 tests/stub_fatal.cc \
3096 StoreSwapLogData.cc \
3101 StoreMetaSTDLFS.cc \
3102 StoreMetaUnpacker.cc \
3105 StoreFileSystem.cc \
3112 $(DELAY_POOL_SOURCE) \
3122 HttpRequestMethod.cc \
3131 tests/stub_cache_cf.cc \
3132 tests/stub_helper.cc \
3135 tests/stub_debug.cc \
3136 tests/stub_client_side_request.cc \
3137 tests/stub_http.cc \
3138 tests/stub_libauth.cc \
3142 tests/stub_mime.cc \
3143 HttpHeaderFieldInfo.h \
3145 HttpHeaderTools.cc \
3152 HttpHdrContRange.cc \
3154 HttpHeaderFieldStat.h \
3159 HttpHdrScTarget.cc \
3169 tests/stub_errorpage.cc \
3170 tests/stub_HttpRequest.cc \
3172 tests/stub_access_log.cc \
3175 tests/stub_store_client.cc \
3177 tests/stub_tools.cc \
3178 tests/testStoreSupport.cc \
3179 tests/testStoreSupport.h \
3186 nodist_tests_testUfs_SOURCES = \
3188 $(DISKIO_GEN_SOURCE) \
3192 tests_testUfs_LDADD = \
3193 http/libsquid-http.la \
3195 DnsLookupDetails.o \
3215 $(top_builddir)/lib/libmisccontainers.la \
3216 $(top_builddir)/lib/libmiscencoding.la \
3217 $(top_builddir)/lib/libmiscutil.la \
3219 $(SQUID_CPPUNIT_LIBS) \
3223 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3224 tests_testUfs_DEPENDENCIES = \
3227 check_PROGRAMS += testRefCount
3228 testRefCount_SOURCES= \
3231 tests/stub_cbdata.cc \
3232 tests/stub_debug.cc \
3233 tests/stub_MemBuf.cc \
3234 tests/testRefCount.cc
3235 testRefCount_LDADD = \
3237 $(top_builddir)/lib/libmiscutil.la \
3241 tests_testRock_SOURCES = \
3253 tests/stub_fatal.cc \
3260 HttpHeaderFieldStat.h \
3264 HttpHdrContRange.cc \
3267 HttpHdrScTarget.cc \
3270 HttpHeaderFieldInfo.h \
3272 HttpHeaderTools.cc \
3275 HttpRequestMethod.cc \
3297 tests/stub_StatHist.cc \
3301 StoreFileSystem.cc \
3306 StoreMetaSTDLFS.cc \
3308 StoreMetaUnpacker.cc \
3310 StoreSwapLogData.cc \
3324 tests/testStoreSupport.cc \
3325 tests/testStoreSupport.h \
3327 tests/stub_access_log.cc \
3330 tests/stub_cache_cf.cc \
3332 tests/stub_cache_manager.cc \
3333 tests/stub_client_db.cc \
3334 tests/stub_client_side_request.cc \
3335 tests/stub_debug.cc \
3336 tests/stub_errorpage.cc \
3337 tests/stub_HelperChildConfig.cc \
3338 tests/stub_http.cc \
3339 tests/stub_HttpRequest.cc \
3340 tests/stub_libauth.cc \
3343 tests/stub_ipcache.cc \
3344 tests/stub_libeui.cc \
3345 tests/stub_libformat.cc \
3346 tests/stub_libicmp.cc \
3347 tests/stub_libmgr.cc \
3348 tests/stub_MemStore.cc \
3350 tests/stub_mime.cc \
3351 tests/stub_Port.cc \
3352 tests/stub_pconn.cc \
3353 tests/stub_store_client.cc \
3355 tests/stub_store_rebuild.cc \
3356 tests/stub_store_stats.cc \
3358 tests/stub_tools.cc \
3364 $(DELAY_POOL_SOURCE) \
3367 nodist_tests_testRock_SOURCES = \
3368 $(DISKIO_GEN_SOURCE) \
3373 tests_testRock_LDADD = \
3374 http/libsquid-http.la \
3390 $(top_builddir)/lib/libmisccontainers.la \
3391 $(top_builddir)/lib/libmiscencoding.la \
3392 $(top_builddir)/lib/libmiscutil.la \
3394 $(SQUID_CPPUNIT_LIBS) \
3398 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3399 tests_testRock_DEPENDENCIES = \
3402 ## Tests of the URL module.
3403 ## TODO: Trim this down once the insanity is over.
3404 tests_testURL_SOURCES = \
3419 ChunkedCodingParser.cc \
3424 client_side_reply.cc \
3425 client_side_request.cc \
3434 $(DELAY_POOL_SOURCE) \
3437 DiskIO/ReadRequest.cc \
3438 DiskIO/WriteRequest.cc \
3446 ExternalACLEntry.cc \
3448 tests/stub_fatal.cc \
3463 HelperChildConfig.h \
3464 HelperChildConfig.cc \
3472 HttpHeaderFieldStat.h \
3476 HttpHdrContRange.cc \
3479 HttpHdrScTarget.cc \
3482 HttpHeaderFieldInfo.h \
3484 HttpHeaderTools.cc \
3492 HttpRequestMethod.cc \
3525 peer_proxy_negotiate_auth.h \
3526 peer_proxy_negotiate_auth.cc \
3529 peer_sourcehash.cc \
3533 tests/stub_redirect.cc \
3547 tests/stub_StatHist.cc \
3566 StoreFileSystem.cc \
3571 StoreMetaSTDLFS.cc \
3572 StoreMetaUnpacker.cc \
3575 StoreSwapLogData.cc \
3581 tests/stub_debug.cc \
3582 tests/stub_DiskIOModule.cc \
3583 tests/stub_libauth_acls.cc \
3584 tests/stub_libauth.cc \
3585 tests/stub_main_cc.cc \
3586 tests/stub_ipc_Forwarder.cc \
3587 tests/stub_store_stats.cc \
3590 tests/testURLScheme.cc \
3591 tests/testURLScheme.h \
3609 nodist_tests_testURL_SOURCES = \
3611 tests_testURL_LDADD = \
3612 http/libsquid-http.la \
3626 icmp/libicmp.la icmp/libicmp-core.la \
3630 format/libformat.la \
3633 $(ADAPTATION_LIBS) \
3636 $(top_builddir)/lib/libmisccontainers.la \
3637 $(top_builddir)/lib/libmiscencoding.la \
3638 $(top_builddir)/lib/libmiscutil.la \
3640 $(SQUID_CPPUNIT_LIBS) \
3641 $(SQUID_CPPUNIT_LA) \
3646 tests_testURL_LDFLAGS = $(LIBADD_DL)
3647 tests_testURL_DEPENDENCIES = \
3651 tests_testSBuf_SOURCES= \
3655 tests/SBufFindTest.h \
3656 tests/SBufFindTest.cc \
3659 tests/stub_time.cc \
3661 tests/stub_debug.cc \
3662 tests/stub_fatal.cc \
3663 tests/stub_HelperChildConfig.cc \
3664 tests/stub_cache_cf.cc \
3665 tests/stub_cache_manager.cc \
3666 tests/stub_store.cc \
3667 tests/stub_store_stats.cc \
3668 tests/stub_tools.cc \
3671 tests/stub_wordlist.cc \
3672 tests/stub_MemBuf.cc
3673 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3674 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3675 tests_testSBuf_LDADD=\
3676 $(SQUID_CPPUNIT_LIBS) \
3677 $(SQUID_CPPUNIT_LA) \
3683 $(top_builddir)/lib/libmiscutil.la \
3685 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3687 tests_testConfigParser_SOURCES = \
3691 tests/stub_MemBuf.cc \
3692 tests/stub_time.cc \
3696 tests/stub_fatal.cc \
3698 tests/testConfigParser.cc \
3699 tests/testConfigParser.h \
3702 tests/stub_cache_cf.cc \
3703 tests/stub_cache_manager.cc \
3704 tests/stub_debug.cc \
3705 tests/stub_HelperChildConfig.cc \
3707 tests/stub_tools.cc \
3710 nodist_tests_testConfigParser_SOURCES = \
3712 tests_testConfigParser_LDADD = \
3716 $(top_builddir)/lib/libmiscutil.la \
3718 $(SQUID_CPPUNIT_LIBS) \
3722 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3723 tests_testConfigParser_DEPENDENCIES = \
3726 tests_testStatHist_SOURCES = \
3727 tests/stub_cbdata.cc \
3729 tests/stub_fatal.cc \
3730 tests/stub_MemBuf.cc \
3734 tests/stub_cache_manager.cc \
3735 tests/stub_comm.cc \
3736 tests/stub_debug.cc \
3737 tests/stub_DelayId.cc \
3738 tests/stub_HelperChildConfig.cc \
3741 tests/stub_MemObject.cc \
3743 tests/stub_mime.cc \
3744 tests/stub_pconn.cc \
3745 tests/stub_stmem.cc \
3747 tests/stub_store.cc \
3748 tests/stub_store_stats.cc \
3750 tests/stub_tools.cc \
3752 tests/testStatHist.cc \
3753 tests/testStatHist.h
3754 nodist_tests_testStatHist_SOURCES = \
3756 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3757 tests_testStatHist_LDADD = \
3759 $(top_builddir)/lib/libmiscutil.la \
3760 $(top_builddir)/lib/libmisccontainers.la \
3761 $(SQUID_CPPUNIT_LIBS) \
3762 $(SQUID_CPPUNIT_LA) \
3764 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3766 tests_testVector_SOURCES = \
3767 tests/testVector.cc \
3770 nodist_tests_testVector_SOURCES = \
3772 tests_testVector_LDADD= \
3773 $(SQUID_CPPUNIT_LIBS) \
3776 tests_testVector_LDFLAGS = $(LIBADD_DL)
3777 tests_testVector_DEPENDENCIES = \
3781 TESTS += testHeaders
3783 ## Special Universal .h dependency test script
3784 ## aborts if error encountered
3785 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3786 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3787 ## src/repl/ has no .h files and its own makefile.
3789 CLEANFILES += testHeaders