1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
10 AUTOMAKE_OPTIONS = subdir-objects
20 OutOfBoundsException.h \
41 LOADABLE_MODULES_SOURCES = \
47 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl
48 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl
52 AUTH_LIBS= auth/libauth.la
53 AUTH_ACL_LIBS= auth/libacls.la
54 check_PROGRAMS+= tests/testACLMaxUserIP
58 SUBDIRS += http ip icmp ident log ipc mgr security
59 DIST_SUBDIRS += http ip icmp ident log ipc mgr security
77 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
79 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
88 DIST_SUBDIRS += adaptation
94 $(top_builddir)/lib/libTrie/libTrie.a
95 ESI_LIBS = $(ESI_LOCAL_LIBS) \
103 DELAY_POOL_ALL_SOURCE = \
105 CompositePoolNode.h \
127 ClientDelayConfig.cc \
130 if ENABLE_DELAY_POOLS
131 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
136 if ENABLE_XPROF_STATS
137 XPROF_STATS_SOURCE = ProfStats.cc
143 HTCPSOURCE = htcp.cc htcp.h
147 LEAKFINDERSOURCE = LeakFinder.cc
153 UNLINKDSOURCE = unlinkd.h unlinkd.cc
156 UNLINKDSOURCE = unlinkd.h
165 if ENABLE_WIN32SPECIFIC
166 WIN32_SOURCE = win32.cc
167 WINSVC_SOURCE = WinSvc.cc
174 IPC_SOURCE = SquidIpc.h ipc_win32.cc
176 IPC_SOURCE = SquidIpc.h ipc.cc
179 AIO_WIN32_ALL_SOURCES = \
180 DiskIO/AIO/aio_win32.cc \
181 DiskIO/AIO/aio_win32.h
183 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
188 if ENABLE_WIN32_AIOPS
189 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
190 DiskIO/DiskThreads/CommIO.cc \
191 DiskIO/DiskThreads/CommIO.h
193 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
194 DiskIO/DiskThreads/CommIO.cc \
195 DiskIO/DiskThreads/CommIO.h
198 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
199 libMmapped.a libIpcIo.a
200 noinst_LIBRARIES = $(DISK_LIBS)
201 noinst_LTLIBRARIES = libsquid.la
204 DiskIO/DiskDaemon/diskd \
211 ## cfgen is used when building squid
212 ## ufsdump is a debug utility, it is possibly useful for end users with cache
213 ## corruption, but at this point we do not install it.
227 cf_gen_SOURCES = cf_gen.cc
228 nodist_cf_gen_HEADER = cf_gen_defines.cci
229 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
231 cf_gen.$(OBJEXT): cf_gen_defines.cci
233 ## cf_gen.cc needs src/cf_gen_defines.cci
234 AM_CPPFLAGS += -I$(top_builddir)/src
237 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
240 DiskIO/DiskIOModule.cc \
241 DiskIO/ReadRequest.cc \
242 DiskIO/ReadRequest.h \
243 DiskIO/WriteRequest.cc \
244 DiskIO/WriteRequest.h \
246 DiskIO/DiskIOStrategy.h \
247 DiskIO/IORequestor.h \
248 DiskIO/DiskIOModule.h \
251 DISKIO_GEN_SOURCE = \
252 DiskIO/DiskIOModules_gen.cc
254 DiskIO/DiskIOModules_gen.cc: Makefile
255 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
258 # common library for all the binaries and tests. This is kindof a catch all
259 # and smaller libraries split from this are encouraged. Using lt convenience
260 # libraries, dependencies should not be a problem either.
261 libsquid_la_SOURCES = \
272 $(ACL_REGISTRATION_SOURCES) \
286 NeighborTypeDomainList.h \
294 ChunkedCodingParser.cc \
295 ChunkedCodingParser.h \
301 client_side_reply.cc \
302 client_side_reply.h \
303 client_side_request.cc \
304 client_side_request.h \
309 ClientRequestContext.h \
312 clientStreamForward.h \
313 CollapsedForwarding.cc \
314 CollapsedForwarding.h \
315 CompletionDispatcher.cc \
316 CompletionDispatcher.h \
330 $(DELAY_POOL_SOURCE) \
350 ExternalACLEntry.cc \
373 HierarchyLogEntry.h \
378 HttpHeaderFieldStat.h \
387 HttpHdrContRange.cc \
394 HttpHeaderFieldInfo.h \
419 $(LEAKFINDERSOURCE) \
447 $(XPROF_STATS_SOURCE) \
452 peer_proxy_negotiate_auth.h \
453 peer_proxy_negotiate_auth.cc \
473 SBufDetailedStats.h \
474 SBufDetailedStats.cc \
518 StoreMetaUnpacker.cc \
519 StoreMetaUnpacker.h \
520 $(STOREMETA_SOURCE) \
524 StoreSwapLogData.cc \
555 EXTRA_squid_SOURCES = \
556 $(AIO_WIN32_ALL_SOURCES) \
559 $(DELAY_POOL_ALL_SOURCE) \
569 $(WIN32_ALL_SOURCE) \
570 $(LOADABLE_MODULES_SOURCES)
573 client_side_request.cci \
593 CLEANFILES += $(BUILT_SOURCES)
595 nodist_squid_SOURCES = \
596 $(DISKIO_GEN_SOURCE) \
607 clients/libclients.la \
608 servers/libservers.la \
610 helper/libhelper.la \
611 http/libsquid-http.la \
612 parser/libsquid-parser.la \
614 security/libsecurity.la \
625 icmp/libicmp.la icmp/libicmp-core.la \
627 format/libformat.la \
639 $(top_builddir)/lib/libmisccontainers.la \
640 $(top_builddir)/lib/libmiscencoding.la \
641 $(top_builddir)/lib/libmiscutil.la \
648 squid_DEPENDENCIES = \
663 clients/libclients.la \
668 format/libformat.la \
671 servers/libservers.la
673 if ENABLE_LOADABLE_MODULES
674 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
675 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
676 squid_LDFLAGS = -export-dynamic -dlopen force
677 ## when static module linking is supported and enabled:
678 ## squid_LDFLAGS = -all-static -dlopen self
680 ## LTDL headers require their local include path...
681 AM_CPPFLAGS += $(INCLTDL)
684 ## Kerberos libraries require their include path...
685 AM_CPPFLAGS += $(KRB5INCS)
688 unlinkd_SOURCES = unlinkd_daemon.cc
693 recv_announce_SOURCES = recv-announce.cc
695 ## What requires what..
696 ## many things want ACLChecklist.cc
697 ## ACLChecklist.cc wants AuthUserRequest.cc
698 ## ACLChecklist.cc wants AuthScheme.cc
699 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
700 ## ACLProxyAuth.cc wants ACLUserData
701 ## ACLProxyAuth.cc wants ACLRegexData
702 ## cache_cf.cc wants $(AUTH_LIBS)
703 ## cache_cf.cc wants Swapdir
704 ## cache_cf.cc wants AnyP::PortCfg
705 ## client_side wants client_db
706 ## client_db wants SNMP_SOURCE
707 ## snmp_core wants ACLStringData
708 ## SwapDir wants ConfigOption
709 ## tools.cc wants ip/libip.la
710 ## client_side.cc wants ip/libip.la
711 ## libbase.la wants cbdata.*
712 ## libbase.la wants MemBuf.*
726 tests/stub_StoreMeta.cc \
727 StoreMetaUnpacker.cc \
734 helper/ChildConfig.h \
735 tests/stub_HelperChildConfig.cc \
762 ufsdump_DEPENDENCIES = \
778 nodist_ufsdump_SOURCES = \
783 squid.conf.documented \
808 include $(srcdir)/tests/Stub.list
817 mk-string-arrays.pl \
818 mk-string-arrays.awk \
825 $(AIO_WIN32_SOURCES) \
826 DiskIO/AIO/async_io.h \
827 DiskIO/AIO/AIODiskFile.cc \
828 DiskIO/AIO/AIODiskFile.h \
829 DiskIO/AIO/AIODiskIOStrategy.cc \
830 DiskIO/AIO/AIODiskIOStrategy.h \
831 DiskIO/AIO/AIODiskIOModule.cc \
832 DiskIO/AIO/AIODiskIOModule.h
834 libBlocking_a_SOURCES = \
835 DiskIO/Blocking/BlockingFile.cc \
836 DiskIO/Blocking/BlockingFile.h \
837 DiskIO/Blocking/BlockingIOStrategy.cc \
838 DiskIO/Blocking/BlockingIOStrategy.h \
839 DiskIO/Blocking/BlockingDiskIOModule.cc \
840 DiskIO/Blocking/BlockingDiskIOModule.h
842 libMmapped_a_SOURCES = \
843 DiskIO/Mmapped/MmappedFile.cc \
844 DiskIO/Mmapped/MmappedFile.h \
845 DiskIO/Mmapped/MmappedIOStrategy.cc \
846 DiskIO/Mmapped/MmappedIOStrategy.h \
847 DiskIO/Mmapped/MmappedDiskIOModule.cc \
848 DiskIO/Mmapped/MmappedDiskIOModule.h
850 libIpcIo_a_SOURCES = \
851 DiskIO/IpcIo/IpcIoFile.cc \
852 DiskIO/IpcIo/IpcIoFile.h \
853 DiskIO/IpcIo/IpcIoIOStrategy.cc \
854 DiskIO/IpcIo/IpcIoIOStrategy.h \
855 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
856 DiskIO/IpcIo/IpcIoDiskIOModule.h
858 libDiskDaemon_a_SOURCES = \
859 DiskIO/DiskDaemon/DiskdFile.cc \
860 DiskIO/DiskDaemon/DiskdFile.h \
861 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
862 DiskIO/DiskDaemon/DiskdIOStrategy.h \
863 DiskIO/DiskDaemon/diomsg.h \
864 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
865 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
866 DiskIO/DiskDaemon/DiskdAction.cc \
867 DiskIO/DiskDaemon/DiskdAction.h
869 libDiskThreads_a_SOURCES = \
871 DiskIO/DiskThreads/async_io.cc \
872 DiskIO/DiskThreads/DiskThreads.h \
873 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
874 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
875 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
876 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
877 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
878 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
880 EXTRA_libDiskThreads_a_SOURCES = \
881 DiskIO/DiskThreads/aiops.cc \
882 DiskIO/DiskThreads/aiops_win32.cc \
883 DiskIO/DiskThreads/CommIO.cc \
884 DiskIO/DiskThreads/CommIO.h
886 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
887 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
888 DiskIO_DiskDaemon_diskd_LDADD = \
889 $(top_builddir)/lib/libmisccontainers.la \
890 $(top_builddir)/lib/libmiscencoding.la \
891 $(top_builddir)/lib/libmiscutil.la \
896 DEFAULT_HTTP_PORT = 3128
897 DEFAULT_ICP_PORT = 3130
898 DEFAULT_PREFIX = $(prefix)
899 DEFAULT_CONFIG_DIR = $(sysconfdir)
900 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
901 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
902 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
903 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
904 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
905 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
906 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
907 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
908 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
909 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
910 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
911 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
912 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
913 DEFAULT_ICON_DIR = $(datadir)/icons
914 DEFAULT_ERROR_DIR = $(datadir)/errors
916 # Make location configure settings available to the code
917 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
919 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
921 globals.cc: globals.h mk-globals-c.awk
922 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
924 ## Generate files containing string arrays for various enums....
925 hier_code.cc: hier_code.h mk-string-arrays.awk
926 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
928 err_type.cc: err_type.h mk-string-arrays.awk
929 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
931 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
932 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
934 LogTags.cc: LogTags.h mk-string-arrays.awk
935 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
937 lookup_t.cc: lookup_t.h mk-string-arrays.awk
938 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
940 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
941 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
943 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
944 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
947 ## other generated files...
949 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
950 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
952 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
953 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
955 ## If autodependency works well this is not needed anymore
956 cache_cf.o: cf_parser.cci
958 # cf_gen builds the configuration files.
959 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
960 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
962 # squid.conf.default is built by cf_gen when making cf_parser.cci
963 squid.conf.default squid.conf.documented: cf_parser.cci
966 cf_parser.cci: cf.data cf_gen$(EXEEXT)
967 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
969 # The cf_gen_defines.cci is auto-generated and does not exist when the
970 # dependencies computed. We need to add its include files (autoconf.h) here
971 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
972 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
975 ## FIXME: generate a sed command file from configure. Then this doesn't
976 ## depend on the Makefile.
977 cf.data: cf.data.pre Makefile
979 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
980 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
981 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
982 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
983 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
984 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
985 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
986 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
987 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
988 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
989 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
990 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
991 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
992 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
993 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
994 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
995 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
996 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
997 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
998 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
999 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1000 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1001 < $(srcdir)/cf.data.pre >$@
1003 repl_modules.cc: repl_modules.sh Makefile
1004 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1006 include $(top_srcdir)/doc/manuals/Substitute.am
1008 squid.8: $(srcdir)/squid.8.in Makefile
1009 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1012 EXTRA_DIST += squid.8.in
1013 CLEANFILES += squid.8
1015 install-data-local: install-sysconfDATA install-dataDATA
1016 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1017 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1019 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1020 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1022 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1023 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1025 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1026 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1028 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1029 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1030 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1031 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1032 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1033 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1034 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1036 uninstall-local: squid.conf.default
1037 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1038 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1040 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1041 DiskIO/DiskIOModules_gen.cc \
1044 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1045 cp $(top_srcdir)/test-suite/test_tools.cc .
1047 # stock tools for unit tests - library independent versions of dlink_list
1049 # globals.cc is needed by test_tools.cc.
1050 # Neither of these should be disted from here.
1057 tests/testBoilerplate \
1058 tests/testCacheManager \
1062 tests/testEventLoop \
1063 tests/test_http_range \
1064 tests/testHttp1Parser \
1065 tests/testHttpReply \
1066 tests/testHttpRequest \
1071 tests/testSBufList \
1072 tests/testConfigParser \
1076 check_PROGRAMS += tests/testRock
1079 check_PROGRAMS += tests/testUfs
1082 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1083 TESTS += $(check_PROGRAMS)
1085 ### Template for new Unit Test Program
1086 ## - add tests/testX to check_PROGRAMS above.
1087 ## - copy template below and substitue X for class name
1088 ## - add other component .(h|cc) files needed to link and run tests
1090 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1092 #tests_testX_SOURCES=\
1097 #nodist_tests_testX_SOURCES=\
1099 #tests_testX_LDFLAGS = $(LIBADD_DL)
1100 #tests_testX_LDADD=\
1101 # $(SQUID_CPPUNIT_LIBS) \
1102 # $(SQUID_CPPUNIT_LA) \
1104 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1107 # - add other component .(h|cc) files needed to link and run tests
1108 tests_testHttpReply_SOURCES=\
1112 tests/stub_ETag.cc \
1114 tests/stub_fatal.cc \
1117 HttpHeaderFieldStat.h \
1121 HttpHdrContRange.cc \
1122 HttpHdrContRange.h \
1126 HttpHdrScTarget.cc \
1131 HttpHeaderFieldInfo.h \
1133 HttpHeaderTools.cc \
1154 SBufDetailedStats.h \
1155 tests/stub_SBufDetailedStats.cc \
1160 tests/stub_access_log.cc \
1163 tests/stub_cache_cf.cc \
1164 tests/stub_cache_manager.cc \
1165 tests/stub_comm.cc \
1166 tests/stub_debug.cc \
1167 tests/stub_errorpage.cc \
1168 tests/stub_event.cc \
1170 tests/stub_HelperChildConfig.cc \
1171 tests/stub_libformat.cc \
1172 tests/stub_libauth.cc \
1173 tests/stub_libcomm.cc \
1174 tests/stub_libmgr.cc \
1175 tests/stub_libsslsquid.cc \
1179 tests/stub_StatHist.cc \
1181 tests/stub_store.cc \
1182 tests/stub_store_stats.cc \
1184 tests/stub_tools.cc \
1185 tests/stub_HttpRequest.cc \
1186 tests/testHttpReply.cc \
1187 tests/testHttpReply.h \
1188 tests/stub_time.cc \
1192 nodist_tests_testHttpReply_SOURCES=\
1194 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1195 tests_testHttpReply_LDADD=\
1197 http/libsquid-http.la \
1198 parser/libsquid-parser.la \
1207 $(top_builddir)/lib/libmisccontainers.la \
1208 $(top_builddir)/lib/libmiscencoding.la \
1209 $(top_builddir)/lib/libmiscutil.la \
1210 $(SQUID_CPPUNIT_LIBS) \
1211 $(SQUID_CPPUNIT_LA) \
1216 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1218 tests_testACLMaxUserIP_SOURCES= \
1221 tests/stub_CollapsedForwarding.cc \
1224 DiskIO/ReadRequest.cc \
1225 DiskIO/WriteRequest.cc \
1226 tests/stub_ETag.cc \
1229 tests/stub_fatal.cc \
1235 HttpHeaderFieldInfo.h \
1237 HttpHeaderTools.cc \
1238 HttpHdrContRange.cc \
1240 HttpHeaderFieldStat.h \
1245 HttpHdrScTarget.cc \
1264 tests/stub_StatHist.cc \
1267 SBufDetailedStats.h \
1268 tests/stub_SBufDetailedStats.cc \
1272 tests/stub_StoreMeta.cc \
1273 StoreMetaUnpacker.cc \
1274 StoreSwapLogData.cc \
1279 tests/stub_SwapDir.cc \
1283 tests/stub_access_log.cc \
1286 tests/stub_cache_cf.cc \
1287 tests/stub_client_side.cc \
1288 tests/stub_debug.cc \
1289 tests/stub_DelayId.cc \
1290 tests/stub_DiskIOModule.cc \
1291 tests/stub_errorpage.cc \
1294 tests/stub_HttpRequest.cc \
1295 tests/stub_HttpReply.cc \
1296 tests/stub_ipc_TypedMsgHdr.cc \
1297 tests/stub_libauth.cc \
1298 tests/stub_libcomm.cc \
1299 tests/stub_libformat.cc \
1300 tests/stub_libsslsquid.cc \
1301 tests/stub_MemObject.cc \
1302 tests/stub_MemStore.cc \
1304 tests/stub_mime.cc \
1305 tests/stub_pconn.cc \
1306 tests/stub_Port.cc \
1308 tests/stub_store.cc \
1309 tests/stub_store_client.cc \
1311 tests/stub_store_rebuild.cc \
1312 tests/stub_store_stats.cc \
1313 tests/stub_store_swapout.cc \
1315 tests/stub_tools.cc \
1316 tests/stub_cache_manager.cc \
1317 tests/stub_UdsOp.cc \
1318 tests/testACLMaxUserIP.cc \
1319 tests/testACLMaxUserIP.h \
1320 tests/stub_time.cc \
1323 tests/stub_libmem.cc \
1327 nodist_tests_testACLMaxUserIP_SOURCES= \
1329 tests_testACLMaxUserIP_LDADD= \
1331 helper/libhelper.la \
1332 http/libsquid-http.la \
1333 parser/libsquid-parser.la \
1345 $(top_builddir)/lib/libmisccontainers.la \
1346 $(top_builddir)/lib/libmiscencoding.la \
1347 $(top_builddir)/lib/libmiscutil.la \
1351 $(SQUID_CPPUNIT_LIBS) \
1355 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1356 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1357 ## $(SQUID_CPPUNIT_LA)
1359 ## a demonstration test that does nothing but shows the salient points
1360 ## involved in writing tests.
1361 tests_testBoilerplate_SOURCES = \
1362 tests/testBoilerplate.cc \
1363 tests/testBoilerplate.h \
1364 tests/stub_debug.cc \
1366 nodist_tests_testBoilerplate_SOURCES = \
1367 tests/stub_cbdata.cc \
1368 tests/stub_MemBuf.cc \
1370 tests_testBoilerplate_LDADD= \
1371 $(SQUID_CPPUNIT_LIBS) \
1376 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1377 tests_testBoilerplate_DEPENDENCIES = \
1380 ## Tests of the CacheManager module.
1381 tests_testCacheManager_SOURCES = \
1388 tests/testCacheManager.cc \
1389 tests/testCacheManager.h \
1390 tests/stub_main_cc.cc \
1391 tests/stub_ipc_Forwarder.cc \
1392 tests/stub_store_stats.cc \
1393 tests/stub_EventLoop.cc \
1406 tests/stub_CacheDigest.cc \
1408 tests/stub_carp.cc \
1410 ChunkedCodingParser.cc \
1415 client_side_reply.cc \
1416 client_side_request.cc \
1419 tests/stub_CollapsedForwarding.cc \
1426 $(DELAY_POOL_SOURCE) \
1434 tests/stub_ETag.cc \
1437 ExternalACLEntry.cc \
1439 tests/stub_fatal.cc \
1460 HttpHeaderFieldInfo.h \
1462 HttpHeaderTools.cc \
1463 HttpHeaderFieldStat.h \
1467 HttpHdrContRange.cc \
1470 HttpHdrScTarget.cc \
1481 tests/stub_libsecurity.cc \
1503 peer_proxy_negotiate_auth.h \
1504 peer_proxy_negotiate_auth.cc \
1507 peer_sourcehash.cc \
1513 tests/stub_redirect.cc \
1518 SBufDetailedStats.h \
1519 tests/stub_SBufDetailedStats.cc \
1531 tests/stub_libauth_acls.cc \
1532 tests/stub_libauth.cc \
1533 tests/stub_StatHist.cc \
1539 tests/stub_store_digest.cc \
1552 StoreFileSystem.cc \
1554 tests/stub_StoreMeta.cc \
1555 StoreMetaUnpacker.cc \
1556 StoreSwapLogData.cc \
1560 tests/stub_tunnel.cc \
1561 tests/stub_SwapDir.cc \
1568 tests/stub_wccp2.cc \
1570 tests/stub_whois.cc \
1575 nodist_tests_testCacheManager_SOURCES = \
1577 $(DISKIO_GEN_SOURCE)
1578 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1579 tests_testCacheManager_LDADD = \
1581 clients/libclients.la \
1582 servers/libservers.la \
1584 helper/libhelper.la \
1585 http/libsquid-http.la \
1586 parser/libsquid-parser.la \
1597 icmp/libicmp.la icmp/libicmp-core.la \
1599 format/libformat.la \
1603 $(ADAPTATION_LIBS) \
1611 $(top_builddir)/lib/libmisccontainers.la \
1612 $(top_builddir)/lib/libmiscencoding.la \
1613 $(top_builddir)/lib/libmiscutil.la \
1616 $(SQUID_CPPUNIT_LIBS) \
1617 $(SQUID_CPPUNIT_LA) \
1622 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1623 tests_testCacheManager_DEPENDENCIES = \
1627 tests_testDiskIO_SOURCES = \
1629 tests/stub_CacheDigest.cc \
1633 tests/stub_CollapsedForwarding.cc \
1636 $(DELAY_POOL_SOURCE) \
1640 tests/stub_ETag.cc \
1644 tests/stub_fatal.cc \
1653 HttpHeaderFieldStat.h \
1657 HttpHdrContRange.cc \
1659 HttpHdrScTarget.cc \
1661 HttpHeaderFieldInfo.h \
1663 HttpHeaderTools.cc \
1689 tests/stub_StatHist.cc \
1692 SBufDetailedStats.h \
1693 tests/stub_SBufDetailedStats.cc \
1694 StoreFileSystem.cc \
1696 tests/stub_StoreMeta.cc \
1697 StoreMetaUnpacker.cc \
1698 StoreSwapLogData.cc \
1710 tests/stub_SwapDir.cc \
1713 tests/stub_access_log.cc \
1717 tests/stub_cache_cf.cc \
1718 tests/stub_cache_manager.cc \
1719 tests/stub_client_db.cc \
1720 client_side_request.h \
1721 tests/stub_client_side_request.cc \
1722 tests/stub_debug.cc \
1723 tests/stub_errorpage.cc \
1724 tests/stub_helper.cc \
1725 tests/stub_HelperChildConfig.cc \
1726 tests/stub_HttpRequest.cc \
1727 tests/stub_http.cc \
1730 tests/stub_internal.cc \
1732 tests/stub_ipcache.cc \
1733 tests/stub_libauth_acls.cc \
1734 tests/stub_libauth.cc \
1735 tests/stub_libeui.cc \
1736 tests/stub_libformat.cc \
1737 tests/stub_libicmp.cc \
1738 tests/stub_MemStore.cc \
1740 tests/stub_mime.cc \
1741 tests/stub_neighbors.cc \
1742 tests/stub_pconn.cc \
1743 tests/stub_Port.cc \
1744 tests/stub_stat.cc \
1745 tests/stub_store_client.cc \
1746 tests/stub_store_stats.cc \
1748 tests/stub_store_rebuild.cc \
1749 tests/stub_UdsOp.cc \
1750 tests/testDiskIO.cc \
1751 tests/testDiskIO.h \
1752 tests/testStoreSupport.cc \
1753 tests/testStoreSupport.h \
1754 tests/stub_time.cc \
1762 nodist_tests_testDiskIO_SOURCES= \
1764 $(DISKIO_GEN_SOURCE) \
1768 tests_testDiskIO_LDADD = \
1770 http/libsquid-http.la \
1771 parser/libsquid-parser.la \
1792 $(top_builddir)/lib/libmisccontainers.la \
1793 $(top_builddir)/lib/libmiscencoding.la \
1794 $(top_builddir)/lib/libmiscutil.la \
1797 $(SQUID_CPPUNIT_LIBS) \
1802 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1803 tests_testDiskIO_DEPENDENCIES = \
1808 tests_testDns_SOURCES= \
1809 tests/testRFC1035.cc \
1811 nodist_tests_testDns_SOURCES= \
1812 tests/stub_debug.cc \
1813 tests/stub_SBuf.cc \
1815 tests_testDns_LDADD= \
1818 $(top_builddir)/lib/libmiscutil.la \
1821 $(SQUID_CPPUNIT_LA) \
1822 $(SQUID_CPPUNIT_LIBS)
1823 tests_testDns_LDFLAGS= $(LIBADD_DL)
1825 tests_testEvent_SOURCES = \
1829 tests/stub_CacheDigest.cc \
1840 tests/stub_carp.cc \
1842 ChunkedCodingParser.cc \
1847 client_side_reply.cc \
1848 client_side_request.cc \
1851 tests/stub_CollapsedForwarding.cc \
1859 $(DELAY_POOL_SOURCE) \
1867 tests/stub_ETag.cc \
1872 ExternalACLEntry.cc \
1875 tests/stub_fatal.cc \
1895 HttpHeaderFieldInfo.h \
1897 HttpHeaderTools.cc \
1898 HttpHeaderFieldStat.h \
1902 HttpHdrContRange.cc \
1905 HttpHdrScTarget.cc \
1921 tests/stub_libsecurity.cc \
1926 tests/stub_libmem.cc \
1944 peer_proxy_negotiate_auth.h \
1945 peer_proxy_negotiate_auth.cc \
1948 peer_sourcehash.cc \
1952 tests/stub_redirect.cc \
1959 SBufDetailedStats.h \
1960 tests/stub_SBufDetailedStats.cc \
1976 tests/stub_store_digest.cc \
1989 StoreFileSystem.cc \
1991 tests/stub_StoreMeta.cc \
1992 StoreMetaUnpacker.cc \
1993 StoreSwapLogData.cc \
1995 tests/stub_SwapDir.cc \
1996 tests/CapturingStoreEntry.h \
1997 tests/testEvent.cc \
1999 tests/stub_main_cc.cc \
2000 tests/stub_ipc_Forwarder.cc \
2001 tests/stub_libauth_acls.cc \
2002 tests/stub_libauth.cc \
2003 tests/stub_libeui.cc \
2004 tests/stub_store_stats.cc \
2009 tests/stub_tunnel.cc \
2016 tests/stub_wccp2.cc \
2018 tests/stub_whois.cc \
2022 nodist_tests_testEvent_SOURCES = \
2024 $(DISKIO_GEN_SOURCE)
2025 tests_testEvent_LDADD = \
2027 clients/libclients.la \
2028 servers/libservers.la \
2030 helper/libhelper.la \
2031 http/libsquid-http.la \
2032 parser/libsquid-parser.la \
2042 icmp/libicmp.la icmp/libicmp-core.la \
2045 format/libformat.la \
2047 $(ADAPTATION_LIBS) \
2050 $(top_builddir)/lib/libmisccontainers.la \
2051 $(top_builddir)/lib/libmiscencoding.la \
2052 $(top_builddir)/lib/libmiscutil.la \
2060 $(SQUID_CPPUNIT_LIBS) \
2061 $(SQUID_CPPUNIT_LA) \
2066 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2067 tests_testEvent_DEPENDENCIES = \
2071 ## Tests of the EventLoop module.
2072 tests_testEventLoop_SOURCES = \
2076 tests/stub_CacheDigest.cc \
2087 tests/stub_carp.cc \
2089 ChunkedCodingParser.cc \
2094 client_side_reply.cc \
2095 client_side_request.cc \
2098 tests/stub_CollapsedForwarding.cc \
2106 $(DELAY_POOL_SOURCE) \
2114 tests/stub_ETag.cc \
2119 ExternalACLEntry.cc \
2122 tests/stub_fatal.cc \
2142 HttpHeaderFieldInfo.h \
2144 HttpHeaderTools.cc \
2145 HttpHeaderFieldStat.h \
2149 HttpHdrContRange.cc \
2152 HttpHdrScTarget.cc \
2168 tests/stub_libsecurity.cc \
2175 tests/stub_libmem.cc \
2191 peer_proxy_negotiate_auth.h \
2192 peer_proxy_negotiate_auth.cc \
2195 peer_sourcehash.cc \
2200 tests/stub_redirect.cc \
2204 SBufDetailedStats.h \
2205 tests/stub_SBufDetailedStats.cc \
2221 tests/stub_store_digest.cc \
2234 StoreFileSystem.cc \
2236 tests/stub_StoreMeta.cc \
2237 StoreMetaUnpacker.cc \
2238 StoreSwapLogData.cc \
2242 tests/stub_SwapDir.cc \
2243 tests/testEventLoop.cc \
2244 tests/testEventLoop.h \
2245 tests/stub_main_cc.cc \
2246 tests/stub_ipc_Forwarder.cc \
2247 tests/stub_libauth_acls.cc \
2248 tests/stub_libauth.cc \
2249 tests/stub_libeui.cc \
2250 tests/stub_store_stats.cc \
2255 tests/stub_tunnel.cc \
2262 tests/stub_wccp2.cc \
2264 tests/stub_whois.cc \
2268 nodist_tests_testEventLoop_SOURCES = \
2270 $(DISKIO_GEN_SOURCE)
2271 tests_testEventLoop_LDADD = \
2273 clients/libclients.la \
2274 servers/libservers.la \
2276 helper/libhelper.la \
2277 http/libsquid-http.la \
2278 parser/libsquid-parser.la \
2288 icmp/libicmp.la icmp/libicmp-core.la \
2291 format/libformat.la \
2293 $(ADAPTATION_LIBS) \
2296 $(top_builddir)/lib/libmisccontainers.la \
2297 $(top_builddir)/lib/libmiscencoding.la \
2298 $(top_builddir)/lib/libmiscutil.la \
2306 $(SQUID_CPPUNIT_LIBS) \
2307 $(SQUID_CPPUNIT_LA) \
2312 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2313 tests_testEventLoop_DEPENDENCIES = \
2317 tests_test_http_range_SOURCES = \
2330 tests/stub_CacheDigest.cc \
2332 tests/stub_carp.cc \
2334 ChunkedCodingParser.cc \
2339 client_side_reply.cc \
2340 client_side_request.cc \
2343 tests/stub_CollapsedForwarding.cc \
2351 $(DELAY_POOL_SOURCE) \
2359 tests/stub_ETag.cc \
2363 tests/stub_libauth.cc \
2364 tests/stub_fatal.cc \
2382 HttpHeaderFieldStat.h \
2386 HttpHdrContRange.cc \
2389 HttpHdrScTarget.cc \
2392 HttpHeaderFieldInfo.h \
2394 HttpHeaderTools.cc \
2410 tests/stub_libsecurity.cc \
2417 tests/stub_libmem.cc \
2432 peer_proxy_negotiate_auth.h \
2433 peer_proxy_negotiate_auth.cc \
2436 peer_sourcehash.cc \
2441 tests/stub_redirect.cc \
2446 SBufDetailedStats.h \
2447 tests/stub_SBufDetailedStats.cc \
2463 tests/stub_store_digest.cc \
2476 StoreFileSystem.cc \
2478 tests/stub_StoreMeta.cc \
2479 StoreMetaUnpacker.cc \
2480 StoreSwapLogData.cc \
2484 tests/stub_SwapDir.cc \
2486 tests/test_http_range.cc \
2487 tests/stub_external_acl.cc \
2488 tests/stub_ipc_Forwarder.cc \
2489 tests/stub_libeui.cc \
2490 tests/stub_main_cc.cc \
2491 tests/stub_MemStore.cc \
2492 tests/stub_store_stats.cc \
2493 tests/stub_EventLoop.cc \
2497 tests/stub_tunnel.cc \
2503 tests/stub_wccp2.cc \
2505 tests/stub_whois.cc \
2509 nodist_tests_test_http_range_SOURCES = \
2511 $(DISKIO_GEN_SOURCE)
2512 tests_test_http_range_LDADD = \
2514 clients/libclients.la \
2515 servers/libservers.la \
2517 helper/libhelper.la \
2518 http/libsquid-http.la \
2519 parser/libsquid-parser.la \
2524 parser/libsquid-parser.la \
2528 icmp/libicmp.la icmp/libicmp-core.la \
2531 format/libformat.la \
2535 $(ADAPTATION_LIBS) \
2543 $(top_builddir)/lib/libmisccontainers.la \
2544 $(top_builddir)/lib/libmiscencoding.la \
2545 $(top_builddir)/lib/libmiscutil.la \
2548 $(SQUID_CPPUNIT_LIBS) \
2549 $(SQUID_CPPUNIT_LA) \
2554 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2555 tests_test_http_range_DEPENDENCIES = \
2558 tests_testHttp1Parser_SOURCES = \
2562 tests/stub_MemObject.cc \
2563 tests/stub_libmem.cc \
2570 tests/stub_SBufDetailedStats.cc \
2571 tests/stub_cache_cf.cc \
2572 tests/stub_cache_manager.cc \
2573 tests/stub_comm.cc \
2574 tests/stub_cbdata.cc \
2575 tests/stub_debug.cc \
2576 tests/stub_event.cc \
2577 tests/stub_HelperChildConfig.cc \
2578 tests/stub_stmem.cc \
2579 tests/stub_store.cc \
2580 tests/stub_store_stats.cc \
2582 tests/stub_tools.cc \
2583 tests/testHttp1Parser.cc \
2584 tests/testHttp1Parser.h \
2585 tests/stub_time.cc \
2588 nodist_tests_testHttp1Parser_SOURCES = \
2590 tests_testHttp1Parser_LDADD= \
2591 http/libsquid-http.la \
2592 parser/libsquid-parser.la \
2597 $(top_builddir)/lib/libmiscutil.la \
2598 $(SQUID_CPPUNIT_LIBS) \
2601 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2602 tests_testHttp1Parser_DEPENDENCIES = \
2605 ## Tests of the HttpRequest module.
2606 tests_testHttpRequest_SOURCES = \
2611 tests/stub_libmem.cc \
2613 tests/testHttpRequest.h \
2614 tests/testHttpRequest.cc \
2615 tests/testHttpRequestMethod.h \
2616 tests/testHttpRequestMethod.cc \
2617 tests/stub_DiskIOModule.cc \
2618 tests/stub_libauth.cc \
2619 tests/stub_main_cc.cc \
2620 tests/stub_ipc_Forwarder.cc \
2621 tests/stub_libeui.cc \
2622 tests/stub_store_stats.cc \
2623 tests/stub_EventLoop.cc \
2635 tests/stub_CacheDigest.cc \
2639 tests/stub_carp.cc \
2641 ChunkedCodingParser.cc \
2646 client_side_reply.cc \
2647 client_side_request.cc \
2650 tests/stub_CollapsedForwarding.cc \
2657 $(DELAY_POOL_SOURCE) \
2664 tests/stub_ETag.cc \
2666 ExternalACLEntry.cc \
2668 tests/stub_fatal.cc \
2686 HttpHeaderFieldInfo.h \
2688 HttpHeaderTools.cc \
2689 HttpHeaderFieldStat.h \
2693 HttpHdrContRange.cc \
2696 HttpHdrScTarget.cc \
2707 tests/stub_libsecurity.cc \
2729 peer_proxy_negotiate_auth.h \
2730 peer_proxy_negotiate_auth.cc \
2733 peer_sourcehash.cc \
2739 tests/stub_libauth_acls.cc \
2740 tests/stub_redirect.cc \
2745 SBufDetailedStats.h \
2746 tests/stub_SBufDetailedStats.cc \
2762 tests/stub_store_digest.cc \
2775 StoreFileSystem.cc \
2777 tests/stub_StoreMeta.cc \
2778 StoreMetaUnpacker.cc \
2779 StoreSwapLogData.cc \
2786 tests/stub_tunnel.cc \
2787 tests/stub_SwapDir.cc \
2793 tests/stub_wccp2.cc \
2795 tests/stub_whois.cc \
2800 nodist_tests_testHttpRequest_SOURCES = \
2802 tests_testHttpRequest_LDADD = \
2804 clients/libclients.la \
2805 servers/libservers.la \
2806 helper/libhelper.la \
2808 http/libsquid-http.la \
2813 parser/libsquid-parser.la \
2818 parser/libsquid-parser.la \
2824 icmp/libicmp.la icmp/libicmp-core.la \
2827 format/libformat.la \
2829 $(ADAPTATION_LIBS) \
2831 $(top_builddir)/lib/libmisccontainers.la \
2832 $(top_builddir)/lib/libmiscencoding.la \
2833 $(top_builddir)/lib/libmiscutil.la \
2837 $(SQUID_CPPUNIT_LIBS) \
2838 $(SQUID_CPPUNIT_LA) \
2843 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2844 tests_testHttpRequest_DEPENDENCIES = \
2848 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2849 ## first line - what we are testing.
2850 tests_testStore_SOURCES= \
2852 tests/stub_CacheDigest.cc \
2855 tests/stub_CollapsedForwarding.cc \
2858 $(DELAY_POOL_SOURCE) \
2861 DiskIO/ReadRequest.cc \
2862 DiskIO/WriteRequest.cc \
2867 tests/stub_fatal.cc \
2870 HttpHeaderFieldStat.h \
2874 HttpHdrContRange.cc \
2877 HttpHdrScTarget.cc \
2878 HttpHeaderFieldInfo.h \
2880 HttpHeaderTools.cc \
2913 tests/stub_StoreMeta.cc \
2914 StoreMetaUnpacker.cc \
2915 StoreSwapLogData.cc \
2919 SBufDetailedStats.h \
2920 tests/stub_SBufDetailedStats.cc \
2925 tests/CapturingStoreEntry.h \
2927 tests/stub_access_log.cc \
2931 tests/stub_cache_cf.cc \
2932 tests/stub_cache_manager.cc \
2933 tests/stub_client_side_request.cc \
2934 tests/stub_comm.cc \
2935 tests/stub_debug.cc \
2936 tests/stub_DiskIOModule.cc \
2937 tests/stub_errorpage.cc \
2941 tests/stub_helper.cc \
2942 tests/stub_HelperChildConfig.cc \
2943 tests/stub_http.cc \
2944 tests/stub_libauth.cc \
2945 tests/stub_libeui.cc \
2946 tests/stub_libformat.cc \
2947 tests/stub_libsslsquid.cc \
2950 tests/stub_HttpReply.cc \
2951 tests/stub_HttpRequest.cc \
2952 tests/stub_libcomm.cc \
2953 tests/stub_MemStore.cc \
2955 tests/stub_mime.cc \
2956 tests/stub_Port.cc \
2957 tests/stub_stat.cc \
2958 tests/stub_store_client.cc \
2959 tests/stub_store_stats.cc \
2961 tests/stub_store_rebuild.cc \
2962 tests/stub_store_swapout.cc \
2965 tests/stub_tools.cc \
2966 tests/stub_UdsOp.cc \
2967 tests/testStore.cc \
2969 tests/testStoreEntryStream.cc \
2970 tests/testStoreEntryStream.h \
2971 tests/testStoreController.cc \
2972 tests/testStoreController.h \
2973 tests/testStoreHashIndex.cc \
2974 tests/testStoreHashIndex.h \
2975 tests/testStoreSupport.cc \
2976 tests/testStoreSupport.h \
2977 tests/TestSwapDir.cc \
2978 tests/TestSwapDir.h \
2979 tests/stub_time.cc \
2984 nodist_tests_testStore_SOURCES= \
2990 tests_testStore_LDADD= \
2992 http/libsquid-http.la \
2993 parser/libsquid-parser.la \
3006 $(top_builddir)/lib/libmisccontainers.la \
3007 $(top_builddir)/lib/libmiscencoding.la \
3008 $(top_builddir)/lib/libmiscutil.la \
3011 $(SQUID_CPPUNIT_LIBS) \
3016 tests_testStore_LDFLAGS = $(LIBADD_DL)
3017 tests_testStore_DEPENDENCIES = \
3020 ## string needs mem.cc.
3021 ## mem.cc needs ClientInfo.h
3022 ## libsquid pulls in SquidConfig and children. stub them.
3023 tests_testString_SOURCES = \
3025 tests/stub_libmem.cc \
3029 SBufDetailedStats.h \
3030 tests/stub_SBufDetailedStats.cc \
3031 tests/testString.cc \
3032 tests/testString.h \
3035 tests/stub_cache_cf.cc \
3036 tests/stub_cache_manager.cc \
3037 tests/stub_debug.cc \
3038 tests/stub_HelperChildConfig.cc \
3040 tests/stub_tools.cc \
3041 tests/stub_time.cc \
3044 nodist_tests_testString_SOURCES = \
3046 tests_testString_LDADD = \
3050 $(top_builddir)/lib/libmiscutil.la \
3052 $(SQUID_CPPUNIT_LIBS) \
3056 tests_testString_LDFLAGS = $(LIBADD_DL)
3057 tests_testString_DEPENDENCIES = \
3076 tests_testUfs_SOURCES = \
3079 tests/stub_cache_manager.cc \
3080 tests/stub_client_db.cc \
3081 tests/stub_CollapsedForwarding.cc \
3082 tests/stub_HelperChildConfig.cc \
3085 tests/stub_ipcache.cc \
3086 tests/stub_libeui.cc \
3087 tests/stub_libicmp.cc \
3088 tests/stub_MemStore.cc \
3089 tests/stub_neighbors.cc \
3090 tests/stub_pconn.cc \
3091 tests/stub_Port.cc \
3092 tests/stub_UdsOp.cc \
3094 tests/stub_internal.cc \
3095 tests/stub_libformat.cc \
3096 tests/stub_stat.cc \
3098 tests/stub_store_rebuild.cc \
3099 tests/stub_store_stats.cc \
3101 tests/stub_fatal.cc \
3126 StoreSwapLogData.cc \
3128 StoreMetaUnpacker.cc \
3129 $(STOREMETA_SOURCE) \
3130 StoreFileSystem.cc \
3137 $(DELAY_POOL_SOURCE) \
3139 tests/stub_CacheDigest.cc \
3155 tests/stub_cache_cf.cc \
3156 tests/stub_helper.cc \
3159 SBufDetailedStats.h \
3160 tests/stub_SBufDetailedStats.cc \
3162 tests/stub_debug.cc \
3163 tests/stub_client_side_request.cc \
3164 tests/stub_http.cc \
3165 tests/stub_libauth.cc \
3169 tests/stub_mime.cc \
3170 HttpHeaderFieldInfo.h \
3172 HttpHeaderTools.cc \
3177 HttpHdrContRange.cc \
3179 HttpHeaderFieldStat.h \
3184 HttpHdrScTarget.cc \
3194 tests/stub_errorpage.cc \
3195 tests/stub_HttpRequest.cc \
3197 tests/stub_access_log.cc \
3200 tests/stub_store_client.cc \
3202 tests/stub_tools.cc \
3203 tests/testStoreSupport.cc \
3204 tests/testStoreSupport.h \
3210 nodist_tests_testUfs_SOURCES = \
3212 $(DISKIO_GEN_SOURCE) \
3216 tests_testUfs_LDADD = \
3217 http/libsquid-http.la \
3218 parser/libsquid-parser.la \
3241 $(top_builddir)/lib/libmisccontainers.la \
3242 $(top_builddir)/lib/libmiscencoding.la \
3243 $(top_builddir)/lib/libmiscutil.la \
3246 $(SQUID_CPPUNIT_LIBS) \
3250 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3251 tests_testUfs_DEPENDENCIES = \
3254 check_PROGRAMS += testRefCount
3255 testRefCount_SOURCES= \
3258 tests/stub_cbdata.cc \
3259 tests/stub_debug.cc \
3260 tests/stub_MemBuf.cc \
3261 tests/testRefCount.cc
3262 testRefCount_LDADD = \
3264 $(top_builddir)/lib/libmiscutil.la \
3268 tests_testRock_SOURCES = \
3271 CollapsedForwarding.h \
3272 CollapsedForwarding.cc \
3273 tests/stub_CacheDigest.cc \
3289 HttpHeaderFieldStat.h \
3293 HttpHdrContRange.cc \
3296 HttpHdrScTarget.cc \
3299 HttpHeaderFieldInfo.h \
3301 HttpHeaderTools.cc \
3323 tests/stub_StatHist.cc \
3326 tests/stub_stat.cc \
3328 StoreFileSystem.cc \
3330 StoreMetaUnpacker.cc \
3331 $(STOREMETA_SOURCE) \
3332 StoreSwapLogData.cc \
3340 SBufDetailedStats.h \
3341 tests/stub_SBufDetailedStats.cc \
3350 tests/testStoreSupport.cc \
3351 tests/testStoreSupport.h \
3353 tests/stub_access_log.cc \
3356 tests/stub_cache_cf.cc \
3358 tests/stub_cache_manager.cc \
3359 tests/stub_client_db.cc \
3360 tests/stub_client_side_request.cc \
3361 tests/stub_debug.cc \
3362 tests/stub_errorpage.cc \
3363 tests/stub_HelperChildConfig.cc \
3364 tests/stub_http.cc \
3365 tests/stub_HttpRequest.cc \
3366 tests/stub_libauth.cc \
3369 tests/stub_ipcache.cc \
3370 tests/stub_libeui.cc \
3371 tests/stub_libformat.cc \
3372 tests/stub_libicmp.cc \
3373 tests/stub_libmgr.cc \
3374 tests/stub_MemStore.cc \
3376 tests/stub_mime.cc \
3377 tests/stub_neighbors.cc \
3378 tests/stub_Port.cc \
3379 tests/stub_pconn.cc \
3380 tests/stub_store_client.cc \
3382 tests/stub_store_rebuild.cc \
3383 tests/stub_store_stats.cc \
3385 tests/stub_tools.cc \
3390 $(DELAY_POOL_SOURCE) \
3393 nodist_tests_testRock_SOURCES = \
3394 $(DISKIO_GEN_SOURCE) \
3399 tests_testRock_LDADD = \
3400 http/libsquid-http.la \
3401 parser/libsquid-parser.la \
3419 $(top_builddir)/lib/libmisccontainers.la \
3420 $(top_builddir)/lib/libmiscencoding.la \
3421 $(top_builddir)/lib/libmiscutil.la \
3424 $(SQUID_CPPUNIT_LIBS) \
3428 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3429 tests_testRock_DEPENDENCIES = \
3432 ## Tests of the URL module.
3433 ## TODO: Trim this down once the insanity is over.
3434 tests_testURL_SOURCES = \
3443 tests/stub_cache_manager.cc \
3445 tests/stub_CacheDigest.cc \
3449 tests/stub_carp.cc \
3451 ChunkedCodingParser.cc \
3456 client_side_reply.cc \
3457 client_side_request.cc \
3460 tests/stub_CollapsedForwarding.cc \
3467 $(DELAY_POOL_SOURCE) \
3470 DiskIO/ReadRequest.cc \
3471 DiskIO/WriteRequest.cc \
3479 ExternalACLEntry.cc \
3481 tests/stub_fatal.cc \
3499 HttpHeaderFieldStat.h \
3503 HttpHdrContRange.cc \
3506 HttpHdrScTarget.cc \
3509 HttpHeaderFieldInfo.h \
3511 HttpHeaderTools.cc \
3527 tests/stub_libsecurity.cc \
3534 tests/stub_libmem.cc \
3550 peer_proxy_negotiate_auth.h \
3551 peer_proxy_negotiate_auth.cc \
3554 peer_sourcehash.cc \
3558 tests/stub_redirect.cc \
3563 SBufDetailedStats.h \
3564 tests/stub_SBufDetailedStats.cc \
3574 tests/stub_StatHist.cc \
3580 tests/stub_store_digest.cc \
3593 StoreFileSystem.cc \
3595 tests/stub_StoreMeta.cc \
3596 StoreMetaUnpacker.cc \
3597 StoreSwapLogData.cc \
3602 tests/stub_SwapDir.cc \
3604 tests/stub_debug.cc \
3605 tests/stub_DiskIOModule.cc \
3606 tests/stub_libauth_acls.cc \
3607 tests/stub_libauth.cc \
3608 tests/stub_main_cc.cc \
3609 tests/stub_ipc_Forwarder.cc \
3610 tests/stub_store_stats.cc \
3613 tests/testUriScheme.cc \
3614 tests/testUriScheme.h \
3615 tests/stub_time.cc \
3616 tests/stub_EventLoop.cc \
3619 tests/stub_tunnel.cc \
3624 tests/stub_wccp2.cc \
3626 tests/stub_whois.cc \
3631 nodist_tests_testURL_SOURCES = \
3633 tests_testURL_LDADD = \
3635 clients/libclients.la \
3636 servers/libservers.la \
3637 helper/libhelper.la \
3638 http/libsquid-http.la \
3640 parser/libsquid-parser.la \
3655 icmp/libicmp.la icmp/libicmp-core.la \
3659 format/libformat.la \
3662 $(ADAPTATION_LIBS) \
3664 $(top_builddir)/lib/libmisccontainers.la \
3665 $(top_builddir)/lib/libmiscencoding.la \
3666 $(top_builddir)/lib/libmiscutil.la \
3669 $(SQUID_CPPUNIT_LIBS) \
3670 $(SQUID_CPPUNIT_LA) \
3675 tests_testURL_LDFLAGS = $(LIBADD_DL)
3676 tests_testURL_DEPENDENCIES = \
3680 tests_testSBuf_SOURCES= \
3683 tests/SBufFindTest.h \
3684 tests/SBufFindTest.cc \
3686 SBufDetailedStats.h \
3687 tests/stub_SBufDetailedStats.cc \
3689 tests/stub_time.cc \
3690 tests/stub_debug.cc \
3691 tests/stub_fatal.cc \
3692 tests/stub_HelperChildConfig.cc \
3693 tests/stub_libmem.cc \
3694 tests/stub_cache_cf.cc \
3695 tests/stub_cache_manager.cc \
3696 tests/stub_store.cc \
3697 tests/stub_store_stats.cc \
3698 tests/stub_tools.cc \
3701 tests/stub_wordlist.cc \
3702 tests/stub_MemBuf.cc
3703 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3704 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3705 tests_testSBuf_LDADD=\
3710 $(top_builddir)/lib/libmiscutil.la \
3712 $(SQUID_CPPUNIT_LIBS) \
3715 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3717 tests_testSBufList_SOURCES= \
3718 tests/testSBufList.h \
3719 tests/testSBufList.cc \
3724 SBufDetailedStats.h \
3725 tests/stub_SBufDetailedStats.cc \
3727 tests/stub_time.cc \
3728 tests/stub_MemObject.cc \
3729 tests/stub_cbdata.cc \
3730 tests/stub_comm.cc \
3731 tests/stub_debug.cc \
3732 tests/stub_event.cc \
3733 tests/stub_fatal.cc \
3735 tests/stub_HelperChildConfig.cc \
3736 tests/stub_libmem.cc \
3737 tests/stub_cache_cf.cc \
3738 tests/stub_cache_manager.cc \
3739 tests/stub_store.cc \
3740 tests/stub_stmem.cc \
3741 tests/stub_store_stats.cc \
3742 tests/stub_tools.cc \
3746 tests/stub_wordlist.cc \
3747 tests/stub_MemBuf.cc
3748 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3749 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3750 tests_testSBufList_LDADD=\
3755 $(top_builddir)/lib/libmiscutil.la \
3756 $(SQUID_CPPUNIT_LIBS) \
3759 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3761 tests_testConfigParser_SOURCES = \
3763 tests/stub_libmem.cc \
3764 tests/stub_MemBuf.cc \
3765 tests/stub_time.cc \
3767 SBufDetailedStats.h \
3768 tests/stub_SBufDetailedStats.cc \
3772 tests/stub_fatal.cc \
3773 tests/testConfigParser.cc \
3774 tests/testConfigParser.h \
3777 tests/stub_cache_cf.cc \
3778 tests/stub_cache_manager.cc \
3779 tests/stub_debug.cc \
3780 tests/stub_HelperChildConfig.cc \
3782 tests/stub_tools.cc \
3785 nodist_tests_testConfigParser_SOURCES = \
3787 tests_testConfigParser_LDADD = \
3791 $(top_builddir)/lib/libmiscutil.la \
3793 $(SQUID_CPPUNIT_LIBS) \
3797 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3798 tests_testConfigParser_DEPENDENCIES = \
3801 tests_testStatHist_SOURCES = \
3802 tests/stub_cbdata.cc \
3804 tests/stub_fatal.cc \
3805 tests/stub_MemBuf.cc \
3807 SBufDetailedStats.h \
3808 tests/stub_SBufDetailedStats.cc \
3812 tests/stub_cache_manager.cc \
3813 tests/stub_comm.cc \
3814 tests/stub_debug.cc \
3815 tests/stub_DelayId.cc \
3816 tests/stub_HelperChildConfig.cc \
3817 tests/stub_libmem.cc \
3818 tests/stub_MemObject.cc \
3820 tests/stub_mime.cc \
3821 tests/stub_pconn.cc \
3822 tests/stub_stmem.cc \
3824 tests/stub_store.cc \
3825 tests/stub_store_stats.cc \
3828 tests/stub_tools.cc \
3829 tests/testStatHist.cc \
3830 tests/testStatHist.h
3831 nodist_tests_testStatHist_SOURCES = \
3833 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3834 tests_testStatHist_LDADD = \
3836 $(top_builddir)/lib/libmiscutil.la \
3837 $(top_builddir)/lib/libmisccontainers.la \
3838 $(SQUID_CPPUNIT_LIBS) \
3839 $(SQUID_CPPUNIT_LA) \
3841 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3843 TESTS += testHeaders
3845 ## Special Universal .h dependency test script
3846 ## aborts if error encountered
3847 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3848 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3849 ## src/repl/ has no .h files and its own makefile.
3851 CLEANFILES += testHeaders