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 \
1160 tests/stub_access_log.cc \
1163 tests/stub_cache_cf.cc \
1164 tests/stub_cache_manager.cc \
1165 tests/stub_debug.cc \
1166 tests/stub_errorpage.cc \
1167 tests/stub_HelperChildConfig.cc \
1168 tests/stub_libformat.cc \
1169 tests/stub_libauth.cc \
1173 tests/stub_StatHist.cc \
1175 tests/stub_store.cc \
1176 tests/stub_store_stats.cc \
1178 tests/stub_tools.cc \
1179 tests/stub_HttpRequest.cc \
1180 tests/testHttpReply.cc \
1181 tests/testHttpReply.h \
1188 nodist_tests_testHttpReply_SOURCES=\
1190 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1191 tests_testHttpReply_LDADD=\
1192 http/libsquid-http.la \
1200 $(top_builddir)/lib/libmisccontainers.la \
1201 $(top_builddir)/lib/libmiscencoding.la \
1202 $(top_builddir)/lib/libmiscutil.la \
1203 $(SQUID_CPPUNIT_LIBS) \
1204 $(SQUID_CPPUNIT_LA) \
1208 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1210 tests_testACLMaxUserIP_SOURCES= \
1215 DiskIO/ReadRequest.cc \
1216 DiskIO/WriteRequest.cc \
1220 tests/stub_fatal.cc \
1223 HelperChildConfig.h \
1224 HelperChildConfig.cc \
1228 HttpHeaderFieldInfo.h \
1230 HttpHeaderTools.cc \
1231 HttpHdrContRange.cc \
1233 HttpHeaderFieldStat.h \
1238 HttpHdrScTarget.cc \
1240 HttpRequestMethod.cc \
1258 tests/stub_StatHist.cc \
1266 StoreMetaSTDLFS.cc \
1267 StoreMetaUnpacker.cc \
1270 StoreSwapLogData.cc \
1278 tests/stub_access_log.cc \
1281 tests/stub_cache_cf.cc \
1282 tests/stub_client_side.cc \
1283 tests/stub_debug.cc \
1284 tests/stub_DelayId.cc \
1285 tests/stub_DiskIOModule.cc \
1286 tests/stub_errorpage.cc \
1289 tests/stub_HttpRequest.cc \
1290 tests/stub_HttpReply.cc \
1291 tests/stub_ipc_TypedMsgHdr.cc \
1292 tests/stub_libauth.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 \
1341 $(top_builddir)/lib/libmisccontainers.la \
1342 $(top_builddir)/lib/libmiscencoding.la \
1343 $(top_builddir)/lib/libmiscutil.la \
1346 $(SQUID_CPPUNIT_LIBS) \
1350 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1351 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1352 ## $(SQUID_CPPUNIT_LA)
1354 ## a demonstration test that does nothing but shows the salient points
1355 ## involved in writing tests.
1356 tests_testBoilerplate_SOURCES = \
1357 tests/testBoilerplate.cc \
1359 tests/testBoilerplate.h \
1361 nodist_tests_testBoilerplate_SOURCES = \
1363 tests_testBoilerplate_LDADD= \
1364 $(SQUID_CPPUNIT_LIBS) \
1368 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1369 tests_testBoilerplate_DEPENDENCIES = \
1372 ## Tests of the CacheManager module.
1373 tests_testCacheManager_SOURCES = \
1381 HttpRequestMethod.cc \
1385 tests/testCacheManager.cc \
1386 tests/testCacheManager.h \
1388 tests/stub_main_cc.cc \
1389 tests/stub_ipc_Forwarder.cc \
1390 tests/stub_store_stats.cc \
1405 ChunkedCodingParser.cc \
1410 client_side_reply.cc \
1411 client_side_request.cc \
1420 $(DELAY_POOL_SOURCE) \
1431 ExternalACLEntry.cc \
1433 tests/stub_fatal.cc \
1449 HelperChildConfig.h \
1450 HelperChildConfig.cc \
1460 HttpHeaderFieldInfo.h \
1462 HttpHeaderTools.cc \
1463 HttpHeaderFieldStat.h \
1467 HttpHdrContRange.cc \
1470 HttpHdrScTarget.cc \
1503 peer_proxy_negotiate_auth.h \
1504 peer_proxy_negotiate_auth.cc \
1507 peer_sourcehash.cc \
1511 tests/stub_redirect.cc \
1527 tests/stub_libacls.cc \
1528 tests/stub_libauth.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 \
1592 icmp/libicmp.la icmp/libicmp-core.la \
1594 format/libformat.la \
1598 $(ADAPTATION_LIBS) \
1605 $(top_builddir)/lib/libmisccontainers.la \
1606 $(top_builddir)/lib/libmiscencoding.la \
1607 $(top_builddir)/lib/libmiscutil.la \
1609 $(SQUID_CPPUNIT_LIBS) \
1610 $(SQUID_CPPUNIT_LA) \
1615 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1616 tests_testCacheManager_DEPENDENCIES = \
1620 tests_testDiskIO_SOURCES = \
1628 $(DELAY_POOL_SOURCE) \
1636 tests/stub_fatal.cc \
1645 HttpHeaderFieldStat.h \
1649 HttpHdrContRange.cc \
1651 HttpHdrScTarget.cc \
1653 HttpHeaderFieldInfo.h \
1655 HttpHeaderTools.cc \
1660 HttpRequestMethod.cc \
1682 tests/stub_StatHist.cc \
1684 StoreFileSystem.cc \
1689 StoreMetaSTDLFS.cc \
1690 StoreMetaUnpacker.cc \
1693 StoreSwapLogData.cc \
1707 tests/stub_access_log.cc \
1711 tests/stub_cache_cf.cc \
1712 tests/stub_cache_manager.cc \
1713 tests/stub_client_db.cc \
1714 client_side_request.h \
1715 tests/stub_client_side_request.cc \
1716 tests/stub_debug.cc \
1717 tests/stub_errorpage.cc \
1718 tests/stub_helper.cc \
1719 tests/stub_HelperChildConfig.cc \
1720 tests/stub_HttpRequest.cc \
1721 tests/stub_http.cc \
1724 tests/stub_internal.cc \
1726 tests/stub_ipcache.cc \
1727 tests/stub_libacls.cc \
1728 tests/stub_libauth.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 \
1784 $(top_builddir)/lib/libmisccontainers.la \
1785 $(top_builddir)/lib/libmiscencoding.la \
1786 $(top_builddir)/lib/libmiscutil.la \
1788 $(SQUID_CPPUNIT_LIBS) \
1793 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1794 tests_testDiskIO_DEPENDENCIES = \
1799 ## Tests of the Even module.
1800 tests_testEvent_SOURCES = \
1815 ChunkedCodingParser.cc \
1820 client_side_reply.cc \
1821 client_side_request.cc \
1831 $(DELAY_POOL_SOURCE) \
1844 ExternalACLEntry.cc \
1847 tests/stub_fatal.cc \
1862 HelperChildConfig.h \
1863 HelperChildConfig.cc \
1873 HttpHeaderFieldInfo.h \
1875 HttpHeaderTools.cc \
1876 HttpHeaderFieldStat.h \
1880 HttpHdrContRange.cc \
1883 HttpHdrScTarget.cc \
1891 HttpRequestMethod.cc \
1924 peer_proxy_negotiate_auth.h \
1925 peer_proxy_negotiate_auth.cc \
1928 peer_sourcehash.cc \
1932 tests/stub_redirect.cc \
1967 StoreFileSystem.cc \
1972 StoreMetaSTDLFS.cc \
1973 StoreMetaUnpacker.cc \
1976 StoreSwapLogData.cc \
1979 tests/CapturingStoreEntry.h \
1980 tests/testEvent.cc \
1983 tests/stub_main_cc.cc \
1984 tests/stub_ipc_Forwarder.cc \
1985 tests/stub_libacls.cc \
1986 tests/stub_libauth.cc \
1987 tests/stub_libeui.cc \
1988 tests/stub_store_stats.cc \
2006 nodist_tests_testEvent_SOURCES = \
2008 $(DISKIO_GEN_SOURCE)
2009 tests_testEvent_LDADD = \
2010 http/libsquid-http.la \
2020 icmp/libicmp.la icmp/libicmp-core.la \
2023 format/libformat.la \
2025 $(ADAPTATION_LIBS) \
2028 $(top_builddir)/lib/libmisccontainers.la \
2029 $(top_builddir)/lib/libmiscencoding.la \
2030 $(top_builddir)/lib/libmiscutil.la \
2037 $(SQUID_CPPUNIT_LIBS) \
2038 $(SQUID_CPPUNIT_LA) \
2043 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2044 tests_testEvent_DEPENDENCIES = \
2048 ## Tests of the EventLoop module.
2049 tests_testEventLoop_SOURCES = \
2064 ChunkedCodingParser.cc \
2069 client_side_reply.cc \
2070 client_side_request.cc \
2080 $(DELAY_POOL_SOURCE) \
2093 ExternalACLEntry.cc \
2096 tests/stub_fatal.cc \
2111 HelperChildConfig.h \
2112 HelperChildConfig.cc \
2122 HttpHeaderFieldInfo.h \
2124 HttpHeaderTools.cc \
2125 HttpHeaderFieldStat.h \
2129 HttpHdrContRange.cc \
2132 HttpHdrScTarget.cc \
2140 HttpRequestMethod.cc \
2173 peer_proxy_negotiate_auth.h \
2174 peer_proxy_negotiate_auth.cc \
2177 peer_sourcehash.cc \
2182 tests/stub_redirect.cc \
2215 StoreFileSystem.cc \
2220 StoreMetaSTDLFS.cc \
2221 StoreMetaUnpacker.cc \
2224 StoreSwapLogData.cc \
2229 tests/testEventLoop.cc \
2230 tests/testEventLoop.h \
2232 tests/stub_main_cc.cc \
2233 tests/stub_ipc_Forwarder.cc \
2234 tests/stub_libacls.cc \
2235 tests/stub_libauth.cc \
2236 tests/stub_libeui.cc \
2237 tests/stub_store_stats.cc \
2255 nodist_tests_testEventLoop_SOURCES = \
2257 $(DISKIO_GEN_SOURCE)
2258 tests_testEventLoop_LDADD = \
2259 http/libsquid-http.la \
2269 icmp/libicmp.la icmp/libicmp-core.la \
2272 format/libformat.la \
2274 $(ADAPTATION_LIBS) \
2277 $(top_builddir)/lib/libmisccontainers.la \
2278 $(top_builddir)/lib/libmiscencoding.la \
2279 $(top_builddir)/lib/libmiscutil.la \
2286 $(SQUID_CPPUNIT_LIBS) \
2287 $(SQUID_CPPUNIT_LA) \
2292 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2293 tests_testEventLoop_DEPENDENCIES = \
2297 tests_test_http_range_SOURCES = \
2312 ChunkedCodingParser.cc \
2317 client_side_reply.cc \
2318 client_side_request.cc \
2328 $(DELAY_POOL_SOURCE) \
2340 tests/stub_libauth.cc \
2341 tests/stub_fatal.cc \
2356 HelperChildConfig.h \
2357 HelperChildConfig.cc \
2365 HttpHeaderFieldStat.h \
2369 HttpHdrContRange.cc \
2372 HttpHdrScTarget.cc \
2375 HttpHeaderFieldInfo.h \
2377 HttpHeaderTools.cc \
2385 HttpRequestMethod.cc \
2417 peer_proxy_negotiate_auth.h \
2418 peer_proxy_negotiate_auth.cc \
2421 peer_sourcehash.cc \
2426 tests/stub_redirect.cc \
2459 StoreFileSystem.cc \
2464 StoreMetaSTDLFS.cc \
2465 StoreMetaUnpacker.cc \
2468 StoreSwapLogData.cc \
2473 tests/test_http_range.cc \
2474 tests/stub_external_acl.cc \
2475 tests/stub_ipc_Forwarder.cc \
2476 tests/stub_libeui.cc \
2477 tests/stub_main_cc.cc \
2478 tests/stub_MemStore.cc \
2479 tests/stub_store_stats.cc \
2496 nodist_tests_test_http_range_SOURCES = \
2498 $(DISKIO_GEN_SOURCE)
2499 tests_test_http_range_LDADD = \
2500 http/libsquid-http.la \
2509 icmp/libicmp.la icmp/libicmp-core.la \
2512 format/libformat.la \
2516 $(ADAPTATION_LIBS) \
2523 $(top_builddir)/lib/libmisccontainers.la \
2524 $(top_builddir)/lib/libmiscencoding.la \
2525 $(top_builddir)/lib/libmiscutil.la \
2527 $(SQUID_CPPUNIT_LIBS) \
2528 $(SQUID_CPPUNIT_LA) \
2533 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2534 tests_test_http_range_DEPENDENCIES = \
2537 tests_testHttpParser_SOURCES = \
2548 tests/stub_cache_cf.cc \
2549 tests/stub_cache_manager.cc \
2550 tests/stub_debug.cc \
2551 tests/stub_event.cc \
2552 tests/stub_HelperChildConfig.cc \
2554 tests/stub_tools.cc \
2555 tests/testHttpParser.cc \
2556 tests/testHttpParser.h \
2561 nodist_tests_testHttpParser_SOURCES = \
2563 tests_testHttpParser_LDADD= \
2564 http/libsquid-http.la \
2568 $(top_builddir)/lib/libmiscutil.la \
2569 $(SQUID_CPPUNIT_LIBS) \
2572 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2573 tests_testHttpParser_DEPENDENCIES = \
2576 ## Tests of the HttpRequest module.
2577 tests_testHttpRequest_SOURCES = \
2584 HttpRequestMethod.cc \
2588 tests/testHttpRequest.h \
2589 tests/testHttpRequest.cc \
2590 tests/testHttpRequestMethod.h \
2591 tests/testHttpRequestMethod.cc \
2593 tests/stub_DiskIOModule.cc \
2594 tests/stub_libauth.cc \
2595 tests/stub_main_cc.cc \
2596 tests/stub_ipc_Forwarder.cc \
2597 tests/stub_libeui.cc \
2598 tests/stub_store_stats.cc \
2614 ChunkedCodingParser.cc \
2619 client_side_reply.cc \
2620 client_side_request.cc \
2629 $(DELAY_POOL_SOURCE) \
2638 ExternalACLEntry.cc \
2640 tests/stub_fatal.cc \
2653 HelperChildConfig.h \
2654 HelperChildConfig.cc \
2664 HttpHeaderFieldInfo.h \
2666 HttpHeaderTools.cc \
2667 HttpHeaderFieldStat.h \
2671 HttpHdrContRange.cc \
2674 HttpHdrScTarget.cc \
2707 peer_proxy_negotiate_auth.h \
2708 peer_proxy_negotiate_auth.cc \
2711 peer_sourcehash.cc \
2715 tests/stub_libacls.cc \
2716 tests/stub_redirect.cc \
2749 StoreFileSystem.cc \
2754 StoreMetaSTDLFS.cc \
2755 StoreMetaUnpacker.cc \
2758 StoreSwapLogData.cc \
2779 nodist_tests_testHttpRequest_SOURCES = \
2781 tests_testHttpRequest_LDADD = \
2794 icmp/libicmp.la icmp/libicmp-core.la \
2797 format/libformat.la \
2798 http/libsquid-http.la \
2800 $(ADAPTATION_LIBS) \
2803 $(top_builddir)/lib/libmisccontainers.la \
2804 $(top_builddir)/lib/libmiscencoding.la \
2805 $(top_builddir)/lib/libmiscutil.la \
2808 $(SQUID_CPPUNIT_LIBS) \
2809 $(SQUID_CPPUNIT_LA) \
2814 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2815 tests_testHttpRequest_DEPENDENCIES = \
2819 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2820 ## first line - what we are testing.
2821 tests_testStore_SOURCES= \
2828 $(DELAY_POOL_SOURCE) \
2831 DiskIO/ReadRequest.cc \
2832 DiskIO/WriteRequest.cc \
2837 tests/stub_fatal.cc \
2840 HttpHeaderFieldStat.h \
2844 HttpHdrContRange.cc \
2847 HttpHdrScTarget.cc \
2848 HttpHeaderFieldInfo.h \
2850 HttpHeaderTools.cc \
2854 HttpRequestMethod.cc \
2887 StoreMetaSTDLFS.cc \
2888 StoreMetaUnpacker.cc \
2891 StoreSwapLogData.cc \
2898 tests/CapturingStoreEntry.h \
2900 tests/stub_access_log.cc \
2904 tests/stub_cache_cf.cc \
2905 tests/stub_cache_manager.cc \
2906 tests/stub_client_side_request.cc \
2907 tests/stub_comm.cc \
2908 tests/stub_debug.cc \
2909 tests/stub_DiskIOModule.cc \
2910 tests/stub_errorpage.cc \
2914 tests/stub_helper.cc \
2915 tests/stub_HelperChildConfig.cc \
2916 tests/stub_http.cc \
2917 tests/stub_libauth.cc \
2918 tests/stub_libeui.cc \
2919 tests/stub_libformat.cc \
2922 tests/stub_HttpReply.cc \
2923 tests/stub_HttpRequest.cc \
2924 tests/stub_libcomm.cc \
2925 tests/stub_MemStore.cc \
2927 tests/stub_mime.cc \
2928 tests/stub_Port.cc \
2929 tests/stub_store_client.cc \
2930 tests/stub_store_stats.cc \
2932 tests/stub_store_rebuild.cc \
2933 tests/stub_store_swapout.cc \
2935 tests/stub_tools.cc \
2936 tests/stub_UdsOp.cc \
2938 tests/testStore.cc \
2940 tests/testStoreEntryStream.cc \
2941 tests/testStoreEntryStream.h \
2942 tests/testStoreController.cc \
2943 tests/testStoreController.h \
2944 tests/testStoreHashIndex.cc \
2945 tests/testStoreHashIndex.h \
2946 tests/testStoreSupport.cc \
2947 tests/testStoreSupport.h \
2948 tests/TestSwapDir.cc \
2949 tests/TestSwapDir.h \
2956 nodist_tests_testStore_SOURCES= \
2962 tests_testStore_LDADD= \
2963 http/libsquid-http.la \
2976 $(top_builddir)/lib/libmisccontainers.la \
2977 $(top_builddir)/lib/libmiscencoding.la \
2978 $(top_builddir)/lib/libmiscutil.la \
2980 $(SQUID_CPPUNIT_LIBS) \
2983 DnsLookupDetails.o \
2986 tests_testStore_LDFLAGS = $(LIBADD_DL)
2987 tests_testStore_DEPENDENCIES = \
2990 ## string needs mem.cc.
2991 ## mem.cc needs ClientInfo.h
2992 ## libsquid pulls in SquidConfig and children. stub them.
2993 tests_testString_SOURCES = \
3000 tests/testString.cc \
3001 tests/testString.h \
3004 tests/stub_cache_cf.cc \
3005 tests/stub_cache_manager.cc \
3006 tests/stub_debug.cc \
3007 tests/stub_HelperChildConfig.cc \
3009 tests/stub_tools.cc \
3013 nodist_tests_testString_SOURCES = \
3015 tests_testString_LDADD = \
3019 $(top_builddir)/lib/libmiscutil.la \
3021 $(SQUID_CPPUNIT_LIBS) \
3025 tests_testString_LDFLAGS = $(LIBADD_DL)
3026 tests_testString_DEPENDENCIES = \
3045 tests_testUfs_SOURCES = \
3049 tests/stub_cache_manager.cc \
3050 tests/stub_client_db.cc \
3051 tests/stub_HelperChildConfig.cc \
3054 tests/stub_libeui.cc \
3055 tests/stub_MemStore.cc \
3056 tests/stub_pconn.cc \
3057 tests/stub_Port.cc \
3058 tests/stub_UdsOp.cc \
3060 tests/stub_internal.cc \
3061 tests/stub_libformat.cc \
3063 tests/stub_store_rebuild.cc \
3064 tests/stub_store_stats.cc \
3066 tests/stub_fatal.cc \
3088 StoreSwapLogData.cc \
3093 StoreMetaSTDLFS.cc \
3094 StoreMetaUnpacker.cc \
3097 StoreFileSystem.cc \
3104 $(DELAY_POOL_SOURCE) \
3114 HttpRequestMethod.cc \
3123 tests/stub_cache_cf.cc \
3124 tests/stub_helper.cc \
3127 tests/stub_debug.cc \
3128 tests/stub_client_side_request.cc \
3129 tests/stub_http.cc \
3130 tests/stub_libauth.cc \
3134 tests/stub_mime.cc \
3135 HttpHeaderFieldInfo.h \
3137 HttpHeaderTools.cc \
3144 HttpHdrContRange.cc \
3146 HttpHeaderFieldStat.h \
3151 HttpHdrScTarget.cc \
3161 tests/stub_errorpage.cc \
3162 tests/stub_HttpRequest.cc \
3164 tests/stub_access_log.cc \
3167 tests/stub_store_client.cc \
3169 tests/stub_tools.cc \
3170 tests/testStoreSupport.cc \
3171 tests/testStoreSupport.h \
3178 nodist_tests_testUfs_SOURCES = \
3180 $(DISKIO_GEN_SOURCE) \
3184 tests_testUfs_LDADD = \
3185 http/libsquid-http.la \
3187 DnsLookupDetails.o \
3207 $(top_builddir)/lib/libmisccontainers.la \
3208 $(top_builddir)/lib/libmiscencoding.la \
3209 $(top_builddir)/lib/libmiscutil.la \
3211 $(SQUID_CPPUNIT_LIBS) \
3215 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3216 tests_testUfs_DEPENDENCIES = \
3219 check_PROGRAMS += testRefCount
3220 testRefCount_SOURCES= \
3223 tests/stub_cbdata.cc \
3224 tests/stub_debug.cc \
3225 tests/stub_MemBuf.cc \
3226 tests/testRefCount.cc
3227 testRefCount_LDADD = \
3229 $(top_builddir)/lib/libmiscutil.la \
3233 tests_testRock_SOURCES = \
3245 tests/stub_fatal.cc \
3252 HttpHeaderFieldStat.h \
3256 HttpHdrContRange.cc \
3259 HttpHdrScTarget.cc \
3262 HttpHeaderFieldInfo.h \
3264 HttpHeaderTools.cc \
3267 HttpRequestMethod.cc \
3287 tests/stub_StatHist.cc \
3291 StoreFileSystem.cc \
3296 StoreMetaSTDLFS.cc \
3298 StoreMetaUnpacker.cc \
3300 StoreSwapLogData.cc \
3314 tests/testStoreSupport.cc \
3315 tests/testStoreSupport.h \
3317 tests/stub_access_log.cc \
3320 tests/stub_cache_cf.cc \
3322 tests/stub_cache_manager.cc \
3323 tests/stub_client_db.cc \
3324 tests/stub_client_side_request.cc \
3325 tests/stub_debug.cc \
3326 tests/stub_errorpage.cc \
3327 tests/stub_HelperChildConfig.cc \
3328 tests/stub_http.cc \
3329 tests/stub_HttpRequest.cc \
3330 tests/stub_libauth.cc \
3333 tests/stub_ipcache.cc \
3334 tests/stub_libeui.cc \
3335 tests/stub_libformat.cc \
3336 tests/stub_libicmp.cc \
3337 tests/stub_libmgr.cc \
3338 tests/stub_MemStore.cc \
3340 tests/stub_mime.cc \
3341 tests/stub_Port.cc \
3342 tests/stub_pconn.cc \
3343 tests/stub_store_client.cc \
3345 tests/stub_store_rebuild.cc \
3346 tests/stub_store_stats.cc \
3348 tests/stub_tools.cc \
3354 $(DELAY_POOL_SOURCE) \
3357 nodist_tests_testRock_SOURCES = \
3358 $(DISKIO_GEN_SOURCE) \
3363 tests_testRock_LDADD = \
3364 http/libsquid-http.la \
3380 $(top_builddir)/lib/libmisccontainers.la \
3381 $(top_builddir)/lib/libmiscencoding.la \
3382 $(top_builddir)/lib/libmiscutil.la \
3384 $(SQUID_CPPUNIT_LIBS) \
3388 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3389 tests_testRock_DEPENDENCIES = \
3392 ## Tests of the URL module.
3393 ## TODO: Trim this down once the insanity is over.
3394 tests_testURL_SOURCES = \
3409 ChunkedCodingParser.cc \
3414 client_side_reply.cc \
3415 client_side_request.cc \
3424 $(DELAY_POOL_SOURCE) \
3427 DiskIO/ReadRequest.cc \
3428 DiskIO/WriteRequest.cc \
3436 ExternalACLEntry.cc \
3438 tests/stub_fatal.cc \
3453 HelperChildConfig.h \
3454 HelperChildConfig.cc \
3462 HttpHeaderFieldStat.h \
3466 HttpHdrContRange.cc \
3469 HttpHdrScTarget.cc \
3472 HttpHeaderFieldInfo.h \
3474 HttpHeaderTools.cc \
3482 HttpRequestMethod.cc \
3515 peer_proxy_negotiate_auth.h \
3516 peer_proxy_negotiate_auth.cc \
3519 peer_sourcehash.cc \
3523 tests/stub_redirect.cc \
3537 tests/stub_StatHist.cc \
3556 StoreFileSystem.cc \
3561 StoreMetaSTDLFS.cc \
3562 StoreMetaUnpacker.cc \
3565 StoreSwapLogData.cc \
3571 tests/stub_debug.cc \
3572 tests/stub_DiskIOModule.cc \
3573 tests/stub_libacls.cc \
3574 tests/stub_libauth.cc \
3575 tests/stub_main_cc.cc \
3576 tests/stub_ipc_Forwarder.cc \
3577 tests/stub_store_stats.cc \
3580 tests/testURLScheme.cc \
3581 tests/testURLScheme.h \
3599 nodist_tests_testURL_SOURCES = \
3601 tests_testURL_LDADD = \
3602 http/libsquid-http.la \
3616 icmp/libicmp.la icmp/libicmp-core.la \
3620 format/libformat.la \
3623 $(ADAPTATION_LIBS) \
3626 $(top_builddir)/lib/libmisccontainers.la \
3627 $(top_builddir)/lib/libmiscencoding.la \
3628 $(top_builddir)/lib/libmiscutil.la \
3630 $(SQUID_CPPUNIT_LIBS) \
3631 $(SQUID_CPPUNIT_LA) \
3636 tests_testURL_LDFLAGS = $(LIBADD_DL)
3637 tests_testURL_DEPENDENCIES = \
3641 tests_testSBuf_SOURCES= \
3645 tests/SBufFindTest.h \
3646 tests/SBufFindTest.cc \
3651 tests/stub_debug.cc \
3652 tests/stub_fatal.cc \
3653 tests/stub_HelperChildConfig.cc \
3654 tests/stub_cache_cf.cc \
3655 tests/stub_cache_manager.cc \
3656 tests/stub_store.cc \
3657 tests/stub_store_stats.cc \
3658 tests/stub_tools.cc \
3663 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3664 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3665 tests_testSBuf_LDADD=\
3666 $(SQUID_CPPUNIT_LIBS) \
3667 $(SQUID_CPPUNIT_LA) \
3673 $(top_builddir)/lib/libmiscutil.la \
3675 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3677 tests_testConfigParser_SOURCES = \
3685 tests/stub_fatal.cc \
3687 tests/testConfigParser.cc \
3688 tests/testConfigParser.h \
3691 tests/stub_cache_cf.cc \
3692 tests/stub_cache_manager.cc \
3693 tests/stub_debug.cc \
3694 tests/stub_HelperChildConfig.cc \
3696 tests/stub_tools.cc \
3700 nodist_tests_testConfigParser_SOURCES = \
3702 tests_testConfigParser_LDADD = \
3706 $(top_builddir)/lib/libmiscutil.la \
3708 $(SQUID_CPPUNIT_LIBS) \
3712 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3713 tests_testConfigParser_DEPENDENCIES = \
3716 tests_testStatHist_SOURCES = \
3719 tests/stub_fatal.cc \
3724 tests/stub_cache_manager.cc \
3725 tests/stub_comm.cc \
3726 tests/stub_debug.cc \
3727 tests/stub_DelayId.cc \
3728 tests/stub_HelperChildConfig.cc \
3731 tests/stub_MemObject.cc \
3733 tests/stub_mime.cc \
3734 tests/stub_pconn.cc \
3735 tests/stub_stmem.cc \
3737 tests/stub_store.cc \
3738 tests/stub_store_stats.cc \
3740 tests/stub_tools.cc \
3742 tests/testStatHist.cc \
3743 tests/testStatHist.h \
3745 nodist_tests_testStatHist_SOURCES = \
3747 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3748 tests_testStatHist_LDADD = \
3750 $(top_builddir)/lib/libmiscutil.la \
3751 $(top_builddir)/lib/libmisccontainers.la \
3752 $(SQUID_CPPUNIT_LIBS) \
3753 $(SQUID_CPPUNIT_LA) \
3755 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3757 tests_testVector_SOURCES = \
3758 tests/testVector.cc \
3760 tests/testVector.h \
3762 nodist_tests_testVector_SOURCES = \
3764 tests_testVector_LDADD= \
3765 $(SQUID_CPPUNIT_LIBS) \
3768 tests_testVector_LDFLAGS = $(LIBADD_DL)
3769 tests_testVector_DEPENDENCIES = \
3773 TESTS += testHeaders
3775 ## Special Universal .h dependency test script
3776 ## aborts if error encountered
3777 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3778 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3779 ## src/repl/ has no .h files and its own makefile.
3781 CLEANFILES += testHeaders