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 \
768 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.a $(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/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=\
1122 tests/stub_fatal.cc \
1125 HttpHeaderFieldStat.h \
1129 HttpHdrContRange.cc \
1130 HttpHdrContRange.h \
1134 HttpHdrScTarget.cc \
1139 HttpHeaderFieldInfo.h \
1141 HttpHeaderTools.cc \
1163 tests/stub_access_log.cc \
1166 tests/stub_cache_cf.cc \
1167 tests/stub_cache_manager.cc \
1168 tests/stub_debug.cc \
1169 tests/stub_errorpage.cc \
1170 tests/stub_HelperChildConfig.cc \
1171 tests/stub_libformat.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 \
1203 $(top_builddir)/lib/libmisccontainers.la \
1204 $(top_builddir)/lib/libmiscencoding.la \
1205 $(top_builddir)/lib/libmiscutil.la \
1206 $(SQUID_CPPUNIT_LIBS) \
1207 $(SQUID_CPPUNIT_LA) \
1211 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1213 tests_testACLMaxUserIP_SOURCES= \
1218 DiskIO/ReadRequest.cc \
1219 DiskIO/WriteRequest.cc \
1223 tests/stub_fatal.cc \
1226 HelperChildConfig.h \
1227 HelperChildConfig.cc \
1231 HttpHeaderFieldInfo.h \
1233 HttpHeaderTools.cc \
1234 HttpHdrContRange.cc \
1236 HttpHeaderFieldStat.h \
1241 HttpHdrScTarget.cc \
1243 HttpRequestMethod.cc \
1259 tests/stub_StatHist.cc \
1267 StoreMetaSTDLFS.cc \
1268 StoreMetaUnpacker.cc \
1271 StoreSwapLogData.cc \
1279 tests/stub_access_log.cc \
1282 tests/stub_cache_cf.cc \
1283 tests/stub_client_side.cc \
1284 tests/stub_debug.cc \
1285 tests/stub_DelayId.cc \
1286 tests/stub_DiskIOModule.cc \
1287 tests/stub_errorpage.cc \
1290 tests/stub_HttpRequest.cc \
1291 tests/stub_HttpReply.cc \
1292 tests/stub_ipc_TypedMsgHdr.cc \
1293 tests/stub_libcomm.cc \
1294 tests/stub_libformat.cc \
1295 tests/stub_libsslsquid.cc \
1296 tests/stub_MemObject.cc \
1297 tests/stub_MemStore.cc \
1299 tests/stub_mime.cc \
1300 tests/stub_pconn.cc \
1301 tests/stub_Port.cc \
1303 tests/stub_store.cc \
1305 tests/stub_store_rebuild.cc \
1306 tests/stub_store_stats.cc \
1307 tests/stub_store_swapout.cc \
1309 tests/stub_tools.cc \
1310 tests/stub_cache_manager.cc \
1311 tests/stub_UdsOp.cc \
1312 tests/testACLMaxUserIP.cc \
1313 tests/testACLMaxUserIP.h \
1325 nodist_tests_testACLMaxUserIP_SOURCES= \
1327 tests_testACLMaxUserIP_LDADD= \
1328 http/libsquid-http.la \
1342 $(top_builddir)/lib/libmisccontainers.la \
1343 $(top_builddir)/lib/libmiscencoding.la \
1344 $(top_builddir)/lib/libmiscutil.la \
1347 $(SQUID_CPPUNIT_LIBS) \
1351 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1352 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1353 ## $(SQUID_CPPUNIT_LA)
1355 ## a demonstration test that does nothing but shows the salient points
1356 ## involved in writing tests.
1357 tests_testBoilerplate_SOURCES = \
1358 tests/testBoilerplate.cc \
1360 tests/testBoilerplate.h \
1362 nodist_tests_testBoilerplate_SOURCES = \
1364 tests_testBoilerplate_LDADD= \
1365 $(SQUID_CPPUNIT_LIBS) \
1369 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1370 tests_testBoilerplate_DEPENDENCIES = \
1373 ## Tests of the CacheManager module.
1374 tests_testCacheManager_SOURCES = \
1376 $(ACL_REGISTRATION_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 \
1529 tests/stub_StatHist.cc \
1548 StoreFileSystem.cc \
1553 StoreMetaSTDLFS.cc \
1554 StoreMetaUnpacker.cc \
1557 StoreSwapLogData.cc \
1576 nodist_tests_testCacheManager_SOURCES = \
1578 $(DISKIO_GEN_SOURCE)
1579 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1580 tests_testCacheManager_LDADD = \
1581 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 \
1684 tests/stub_StatHist.cc \
1686 StoreFileSystem.cc \
1691 StoreMetaSTDLFS.cc \
1692 StoreMetaUnpacker.cc \
1695 StoreSwapLogData.cc \
1709 tests/stub_access_log.cc \
1713 tests/stub_cache_cf.cc \
1714 tests/stub_cache_manager.cc \
1715 tests/stub_client_db.cc \
1716 client_side_request.h \
1717 tests/stub_client_side_request.cc \
1718 tests/stub_debug.cc \
1719 tests/stub_errorpage.cc \
1720 tests/stub_helper.cc \
1721 tests/stub_HelperChildConfig.cc \
1722 tests/stub_HttpRequest.cc \
1723 tests/stub_http.cc \
1726 tests/stub_internal.cc \
1728 tests/stub_ipcache.cc \
1729 tests/stub_libeui.cc \
1730 tests/stub_libformat.cc \
1731 tests/stub_libicmp.cc \
1732 tests/stub_MemStore.cc \
1734 tests/stub_mime.cc \
1735 tests/stub_pconn.cc \
1736 tests/stub_Port.cc \
1737 tests/stub_store_client.cc \
1738 tests/stub_store_stats.cc \
1740 tests/stub_store_rebuild.cc \
1741 tests/stub_UdsOp.cc \
1742 tests/testDiskIO.cc \
1743 tests/testDiskIO.h \
1745 tests/testStoreSupport.cc \
1746 tests/testStoreSupport.h \
1756 nodist_tests_testDiskIO_SOURCES= \
1758 $(DISKIO_GEN_SOURCE) \
1762 tests_testDiskIO_LDADD = \
1763 http/libsquid-http.la \
1766 DnsLookupDetails.o \
1786 $(top_builddir)/lib/libmisccontainers.la \
1787 $(top_builddir)/lib/libmiscencoding.la \
1788 $(top_builddir)/lib/libmiscutil.la \
1790 $(SQUID_CPPUNIT_LIBS) \
1795 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1796 tests_testDiskIO_DEPENDENCIES = \
1801 ## Tests of the Even module.
1802 tests_testEvent_SOURCES = \
1804 $(ACL_REGISTRATION_SOURCES) \
1818 ChunkedCodingParser.cc \
1823 client_side_reply.cc \
1824 client_side_request.cc \
1834 $(DELAY_POOL_SOURCE) \
1847 ExternalACLEntry.cc \
1850 tests/stub_fatal.cc \
1865 HelperChildConfig.h \
1866 HelperChildConfig.cc \
1876 HttpHeaderFieldInfo.h \
1878 HttpHeaderTools.cc \
1879 HttpHeaderFieldStat.h \
1883 HttpHdrContRange.cc \
1886 HttpHdrScTarget.cc \
1894 HttpRequestMethod.cc \
1927 peer_proxy_negotiate_auth.h \
1928 peer_proxy_negotiate_auth.cc \
1931 peer_sourcehash.cc \
1970 StoreFileSystem.cc \
1975 StoreMetaSTDLFS.cc \
1976 StoreMetaUnpacker.cc \
1979 StoreSwapLogData.cc \
1982 tests/CapturingStoreEntry.h \
1983 tests/testEvent.cc \
1986 tests/stub_main_cc.cc \
1987 tests/stub_ipc_Forwarder.cc \
1988 tests/stub_libeui.cc \
1989 tests/stub_store_stats.cc \
2007 nodist_tests_testEvent_SOURCES = \
2009 $(DISKIO_GEN_SOURCE)
2010 tests_testEvent_LDADD = \
2011 http/libsquid-http.la \
2023 icmp/libicmp.la icmp/libicmp-core.la \
2026 format/libformat.la \
2028 $(ADAPTATION_LIBS) \
2031 $(top_builddir)/lib/libmisccontainers.la \
2032 $(top_builddir)/lib/libmiscencoding.la \
2033 $(top_builddir)/lib/libmiscutil.la \
2040 $(SQUID_CPPUNIT_LIBS) \
2041 $(SQUID_CPPUNIT_LA) \
2046 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2047 tests_testEvent_DEPENDENCIES = \
2051 ## Tests of the EventLoop module.
2052 tests_testEventLoop_SOURCES = \
2054 $(ACL_REGISTRATION_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 \
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_libeui.cc \
2239 tests/stub_store_stats.cc \
2257 nodist_tests_testEventLoop_SOURCES = \
2259 $(DISKIO_GEN_SOURCE)
2260 tests_testEventLoop_LDADD = \
2261 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 = \
2303 $(ACL_REGISTRATION_SOURCES) \
2317 ChunkedCodingParser.cc \
2322 client_side_reply.cc \
2323 client_side_request.cc \
2333 $(DELAY_POOL_SOURCE) \
2344 ExternalACLEntry.cc \
2347 tests/stub_fatal.cc \
2362 HelperChildConfig.h \
2363 HelperChildConfig.cc \
2371 HttpHeaderFieldStat.h \
2375 HttpHdrContRange.cc \
2378 HttpHdrScTarget.cc \
2381 HttpHeaderFieldInfo.h \
2383 HttpHeaderTools.cc \
2391 HttpRequestMethod.cc \
2423 peer_proxy_negotiate_auth.h \
2424 peer_proxy_negotiate_auth.cc \
2427 peer_sourcehash.cc \
2465 StoreFileSystem.cc \
2470 StoreMetaSTDLFS.cc \
2471 StoreMetaUnpacker.cc \
2474 StoreSwapLogData.cc \
2479 tests/test_http_range.cc \
2480 tests/stub_ipc_Forwarder.cc \
2481 tests/stub_libeui.cc \
2482 tests/stub_main_cc.cc \
2483 tests/stub_MemStore.cc \
2484 tests/stub_store_stats.cc \
2501 nodist_tests_test_http_range_SOURCES = \
2503 $(DISKIO_GEN_SOURCE)
2504 tests_test_http_range_LDADD = \
2505 http/libsquid-http.la \
2516 icmp/libicmp.la icmp/libicmp-core.la \
2519 format/libformat.la \
2523 $(ADAPTATION_LIBS) \
2530 $(top_builddir)/lib/libmisccontainers.la \
2531 $(top_builddir)/lib/libmiscencoding.la \
2532 $(top_builddir)/lib/libmiscutil.la \
2534 $(SQUID_CPPUNIT_LIBS) \
2535 $(SQUID_CPPUNIT_LA) \
2540 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2541 tests_test_http_range_DEPENDENCIES = \
2544 tests_testHttpParser_SOURCES = \
2555 tests/stub_cache_cf.cc \
2556 tests/stub_cache_manager.cc \
2557 tests/stub_debug.cc \
2558 tests/stub_event.cc \
2559 tests/stub_HelperChildConfig.cc \
2561 tests/stub_tools.cc \
2562 tests/testHttpParser.cc \
2563 tests/testHttpParser.h \
2568 nodist_tests_testHttpParser_SOURCES = \
2570 tests_testHttpParser_LDADD= \
2571 http/libsquid-http.la \
2575 $(top_builddir)/lib/libmiscutil.la \
2576 $(SQUID_CPPUNIT_LIBS) \
2579 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2580 tests_testHttpParser_DEPENDENCIES = \
2583 ## Tests of the HttpRequest module.
2584 tests_testHttpRequest_SOURCES = \
2586 $(ACL_REGISTRATION_SOURCES) \
2592 HttpRequestMethod.cc \
2596 tests/testHttpRequest.h \
2597 tests/testHttpRequest.cc \
2598 tests/testHttpRequestMethod.h \
2599 tests/testHttpRequestMethod.cc \
2601 tests/stub_DiskIOModule.cc \
2602 tests/stub_main_cc.cc \
2603 tests/stub_ipc_Forwarder.cc \
2604 tests/stub_libeui.cc \
2605 tests/stub_store_stats.cc \
2621 ChunkedCodingParser.cc \
2626 client_side_reply.cc \
2627 client_side_request.cc \
2636 $(DELAY_POOL_SOURCE) \
2645 ExternalACLEntry.cc \
2647 tests/stub_fatal.cc \
2660 HelperChildConfig.h \
2661 HelperChildConfig.cc \
2671 HttpHeaderFieldInfo.h \
2673 HttpHeaderTools.cc \
2674 HttpHeaderFieldStat.h \
2678 HttpHdrContRange.cc \
2681 HttpHdrScTarget.cc \
2714 peer_proxy_negotiate_auth.h \
2715 peer_proxy_negotiate_auth.cc \
2718 peer_sourcehash.cc \
2755 StoreFileSystem.cc \
2760 StoreMetaSTDLFS.cc \
2761 StoreMetaUnpacker.cc \
2764 StoreSwapLogData.cc \
2785 nodist_tests_testHttpRequest_SOURCES = \
2787 tests_testHttpRequest_LDADD = \
2802 icmp/libicmp.la icmp/libicmp-core.la \
2805 format/libformat.la \
2806 http/libsquid-http.la \
2808 $(ADAPTATION_LIBS) \
2811 $(top_builddir)/lib/libmisccontainers.la \
2812 $(top_builddir)/lib/libmiscencoding.la \
2813 $(top_builddir)/lib/libmiscutil.la \
2816 $(SQUID_CPPUNIT_LIBS) \
2817 $(SQUID_CPPUNIT_LA) \
2822 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2823 tests_testHttpRequest_DEPENDENCIES = \
2827 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2828 ## first line - what we are testing.
2829 tests_testStore_SOURCES= \
2836 $(DELAY_POOL_SOURCE) \
2839 DiskIO/ReadRequest.cc \
2840 DiskIO/WriteRequest.cc \
2845 tests/stub_fatal.cc \
2848 HttpHeaderFieldStat.h \
2852 HttpHdrContRange.cc \
2855 HttpHdrScTarget.cc \
2856 HttpHeaderFieldInfo.h \
2858 HttpHeaderTools.cc \
2862 HttpRequestMethod.cc \
2895 StoreMetaSTDLFS.cc \
2896 StoreMetaUnpacker.cc \
2899 StoreSwapLogData.cc \
2906 tests/CapturingStoreEntry.h \
2908 tests/stub_access_log.cc \
2912 tests/stub_cache_cf.cc \
2913 tests/stub_cache_manager.cc \
2914 tests/stub_client_side_request.cc \
2915 tests/stub_comm.cc \
2916 tests/stub_debug.cc \
2917 tests/stub_DiskIOModule.cc \
2918 tests/stub_errorpage.cc \
2922 tests/stub_helper.cc \
2923 tests/stub_HelperChildConfig.cc \
2924 tests/stub_http.cc \
2925 tests/stub_libeui.cc \
2926 tests/stub_libformat.cc \
2929 tests/stub_HttpReply.cc \
2930 tests/stub_HttpRequest.cc \
2931 tests/stub_libcomm.cc \
2932 tests/stub_MemStore.cc \
2934 tests/stub_mime.cc \
2935 tests/stub_Port.cc \
2936 tests/stub_store_client.cc \
2937 tests/stub_store_stats.cc \
2939 tests/stub_store_rebuild.cc \
2940 tests/stub_store_swapout.cc \
2942 tests/stub_tools.cc \
2943 tests/stub_UdsOp.cc \
2945 tests/testStore.cc \
2947 tests/testStoreEntryStream.cc \
2948 tests/testStoreEntryStream.h \
2949 tests/testStoreController.cc \
2950 tests/testStoreController.h \
2951 tests/testStoreHashIndex.cc \
2952 tests/testStoreHashIndex.h \
2953 tests/testStoreSupport.cc \
2954 tests/testStoreSupport.h \
2955 tests/TestSwapDir.cc \
2956 tests/TestSwapDir.h \
2963 nodist_tests_testStore_SOURCES= \
2969 tests_testStore_LDADD= \
2970 http/libsquid-http.la \
2985 $(top_builddir)/lib/libmisccontainers.la \
2986 $(top_builddir)/lib/libmiscencoding.la \
2987 $(top_builddir)/lib/libmiscutil.la \
2989 $(SQUID_CPPUNIT_LIBS) \
2992 DnsLookupDetails.o \
2995 tests_testStore_LDFLAGS = $(LIBADD_DL)
2996 tests_testStore_DEPENDENCIES = \
2999 ## string needs mem.cc.
3000 ## mem.cc needs ClientInfo.h
3001 ## libsquid pulls in SquidConfig and children. stub them.
3002 tests_testString_SOURCES = \
3009 tests/testString.cc \
3010 tests/testString.h \
3013 tests/stub_cache_cf.cc \
3014 tests/stub_cache_manager.cc \
3015 tests/stub_debug.cc \
3016 tests/stub_HelperChildConfig.cc \
3018 tests/stub_tools.cc \
3022 nodist_tests_testString_SOURCES = \
3024 tests_testString_LDADD = \
3028 $(top_builddir)/lib/libmiscutil.la \
3030 $(SQUID_CPPUNIT_LIBS) \
3034 tests_testString_LDFLAGS = $(LIBADD_DL)
3035 tests_testString_DEPENDENCIES = \
3056 tests_testUfs_SOURCES = \
3060 tests/stub_cache_manager.cc \
3061 tests/stub_client_db.cc \
3062 tests/stub_HelperChildConfig.cc \
3065 tests/stub_libeui.cc \
3066 tests/stub_MemStore.cc \
3067 tests/stub_pconn.cc \
3068 tests/stub_Port.cc \
3069 tests/stub_UdsOp.cc \
3071 tests/stub_internal.cc \
3072 tests/stub_libformat.cc \
3074 tests/stub_store_rebuild.cc \
3075 tests/stub_store_stats.cc \
3077 tests/stub_fatal.cc \
3099 StoreSwapLogData.cc \
3104 StoreMetaSTDLFS.cc \
3105 StoreMetaUnpacker.cc \
3108 StoreFileSystem.cc \
3115 $(DELAY_POOL_SOURCE) \
3125 HttpRequestMethod.cc \
3134 tests/stub_cache_cf.cc \
3135 tests/stub_helper.cc \
3138 tests/stub_debug.cc \
3139 tests/stub_client_side_request.cc \
3140 tests/stub_http.cc \
3144 tests/stub_mime.cc \
3145 HttpHeaderFieldInfo.h \
3147 HttpHeaderTools.cc \
3154 HttpHdrContRange.cc \
3156 HttpHeaderFieldStat.h \
3161 HttpHdrScTarget.cc \
3171 tests/stub_errorpage.cc \
3172 tests/stub_HttpRequest.cc \
3174 tests/stub_access_log.cc \
3177 tests/stub_store_client.cc \
3179 tests/stub_tools.cc \
3180 tests/testStoreSupport.cc \
3181 tests/testStoreSupport.h \
3188 nodist_tests_testUfs_SOURCES = \
3190 $(DISKIO_GEN_SOURCE) \
3194 tests_testUfs_LDADD = \
3195 http/libsquid-http.la \
3197 DnsLookupDetails.o \
3219 $(top_builddir)/lib/libmisccontainers.la \
3220 $(top_builddir)/lib/libmiscencoding.la \
3221 $(top_builddir)/lib/libmiscutil.la \
3223 $(SQUID_CPPUNIT_LIBS) \
3227 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3228 tests_testUfs_DEPENDENCIES = \
3231 check_PROGRAMS += testRefCount
3232 testRefCount_SOURCES= \
3235 tests/stub_cbdata.cc \
3236 tests/stub_debug.cc \
3237 tests/stub_MemBuf.cc \
3238 tests/testRefCount.cc
3239 testRefCount_LDADD = \
3241 $(top_builddir)/lib/libmiscutil.la \
3245 tests_testRock_SOURCES = \
3257 tests/stub_fatal.cc \
3264 HttpHeaderFieldStat.h \
3268 HttpHdrContRange.cc \
3271 HttpHdrScTarget.cc \
3274 HttpHeaderFieldInfo.h \
3276 HttpHeaderTools.cc \
3279 HttpRequestMethod.cc \
3299 tests/stub_StatHist.cc \
3303 StoreFileSystem.cc \
3308 StoreMetaSTDLFS.cc \
3310 StoreMetaUnpacker.cc \
3312 StoreSwapLogData.cc \
3326 tests/testStoreSupport.cc \
3327 tests/testStoreSupport.h \
3329 tests/stub_access_log.cc \
3332 tests/stub_cache_cf.cc \
3334 tests/stub_cache_manager.cc \
3335 tests/stub_client_db.cc \
3336 tests/stub_client_side_request.cc \
3337 tests/stub_debug.cc \
3338 tests/stub_errorpage.cc \
3339 tests/stub_HelperChildConfig.cc \
3340 tests/stub_http.cc \
3341 tests/stub_HttpRequest.cc \
3344 tests/stub_ipcache.cc \
3345 tests/stub_libeui.cc \
3346 tests/stub_libformat.cc \
3347 tests/stub_libicmp.cc \
3348 tests/stub_libmgr.cc \
3349 tests/stub_MemStore.cc \
3351 tests/stub_mime.cc \
3352 tests/stub_Port.cc \
3353 tests/stub_pconn.cc \
3354 tests/stub_store_client.cc \
3356 tests/stub_store_rebuild.cc \
3357 tests/stub_store_stats.cc \
3359 tests/stub_tools.cc \
3365 $(DELAY_POOL_SOURCE) \
3368 nodist_tests_testRock_SOURCES = \
3369 $(DISKIO_GEN_SOURCE) \
3374 tests_testRock_LDADD = \
3375 http/libsquid-http.la \
3392 $(top_builddir)/lib/libmisccontainers.la \
3393 $(top_builddir)/lib/libmiscencoding.la \
3394 $(top_builddir)/lib/libmiscutil.la \
3396 $(SQUID_CPPUNIT_LIBS) \
3400 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3401 tests_testRock_DEPENDENCIES = \
3404 ## Tests of the URL module.
3405 ## TODO: Trim this down once the insanity is over.
3406 tests_testURL_SOURCES = \
3408 $(ACL_REGISTRATION_SOURCES) \
3422 ChunkedCodingParser.cc \
3427 client_side_reply.cc \
3428 client_side_request.cc \
3437 $(DELAY_POOL_SOURCE) \
3440 DiskIO/ReadRequest.cc \
3441 DiskIO/WriteRequest.cc \
3449 ExternalACLEntry.cc \
3451 tests/stub_fatal.cc \
3466 HelperChildConfig.h \
3467 HelperChildConfig.cc \
3475 HttpHeaderFieldStat.h \
3479 HttpHdrContRange.cc \
3482 HttpHdrScTarget.cc \
3485 HttpHeaderFieldInfo.h \
3487 HttpHeaderTools.cc \
3495 HttpRequestMethod.cc \
3528 peer_proxy_negotiate_auth.h \
3529 peer_proxy_negotiate_auth.cc \
3532 peer_sourcehash.cc \
3550 tests/stub_StatHist.cc \
3569 StoreFileSystem.cc \
3574 StoreMetaSTDLFS.cc \
3575 StoreMetaUnpacker.cc \
3578 StoreSwapLogData.cc \
3584 tests/stub_debug.cc \
3585 tests/stub_DiskIOModule.cc \
3586 tests/stub_main_cc.cc \
3587 tests/stub_ipc_Forwarder.cc \
3588 tests/stub_store_stats.cc \
3591 tests/testURLScheme.cc \
3592 tests/testURLScheme.h \
3610 nodist_tests_testURL_SOURCES = \
3612 tests_testURL_LDADD = \
3613 http/libsquid-http.la \
3629 icmp/libicmp.la icmp/libicmp-core.la \
3633 format/libformat.la \
3636 $(ADAPTATION_LIBS) \
3639 $(top_builddir)/lib/libmisccontainers.la \
3640 $(top_builddir)/lib/libmiscencoding.la \
3641 $(top_builddir)/lib/libmiscutil.la \
3643 $(SQUID_CPPUNIT_LIBS) \
3644 $(SQUID_CPPUNIT_LA) \
3649 tests_testURL_LDFLAGS = $(LIBADD_DL)
3650 tests_testURL_DEPENDENCIES = \
3654 tests_testSBuf_SOURCES= \
3658 tests/SBufFindTest.h \
3659 tests/SBufFindTest.cc \
3664 tests/stub_debug.cc \
3665 tests/stub_fatal.cc \
3666 tests/stub_HelperChildConfig.cc \
3667 tests/stub_cache_cf.cc \
3668 tests/stub_cache_manager.cc \
3669 tests/stub_store.cc \
3670 tests/stub_store_stats.cc \
3671 tests/stub_tools.cc \
3676 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3677 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3678 tests_testSBuf_LDADD=\
3679 $(SQUID_CPPUNIT_LIBS) \
3680 $(SQUID_CPPUNIT_LA) \
3686 $(top_builddir)/lib/libmiscutil.la \
3688 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3690 tests_testConfigParser_SOURCES = \
3698 tests/stub_fatal.cc \
3700 tests/testConfigParser.cc \
3701 tests/testConfigParser.h \
3704 tests/stub_cache_cf.cc \
3705 tests/stub_cache_manager.cc \
3706 tests/stub_debug.cc \
3707 tests/stub_HelperChildConfig.cc \
3709 tests/stub_tools.cc \
3713 nodist_tests_testConfigParser_SOURCES = \
3715 tests_testConfigParser_LDADD = \
3719 $(top_builddir)/lib/libmiscutil.la \
3721 $(SQUID_CPPUNIT_LIBS) \
3725 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3726 tests_testConfigParser_DEPENDENCIES = \
3729 tests_testStatHist_SOURCES = \
3732 tests/stub_fatal.cc \
3737 tests/stub_cache_manager.cc \
3738 tests/stub_comm.cc \
3739 tests/stub_debug.cc \
3740 tests/stub_DelayId.cc \
3741 tests/stub_HelperChildConfig.cc \
3744 tests/stub_MemObject.cc \
3746 tests/stub_mime.cc \
3747 tests/stub_pconn.cc \
3748 tests/stub_stmem.cc \
3750 tests/stub_store.cc \
3751 tests/stub_store_stats.cc \
3753 tests/stub_tools.cc \
3755 tests/testStatHist.cc \
3756 tests/testStatHist.h \
3758 nodist_tests_testStatHist_SOURCES = \
3760 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3761 tests_testStatHist_LDADD = \
3763 $(top_builddir)/lib/libmiscutil.la \
3764 $(top_builddir)/lib/libmisccontainers.la \
3765 $(SQUID_CPPUNIT_LIBS) \
3766 $(SQUID_CPPUNIT_LA) \
3768 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3770 tests_testVector_SOURCES = \
3771 tests/testVector.cc \
3773 tests/testVector.h \
3775 nodist_tests_testVector_SOURCES = \
3777 tests_testVector_LDADD= \
3778 $(SQUID_CPPUNIT_LIBS) \
3781 tests_testVector_LDFLAGS = $(LIBADD_DL)
3782 tests_testVector_DEPENDENCIES = \
3786 TESTS += testHeaders
3788 ## Special Universal .h dependency test script
3789 ## aborts if error encountered
3790 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3791 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3792 ## src/repl/ has no .h files and its own makefile.
3794 CLEANFILES += testHeaders