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
59 DIST_SUBDIRS += http ip icmp ident log ipc mgr
78 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
80 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
89 DIST_SUBDIRS += adaptation
95 $(top_builddir)/lib/libTrie/libTrie.a
96 ESI_LIBS = $(ESI_LOCAL_LIBS) \
104 DELAY_POOL_ALL_SOURCE = \
106 CompositePoolNode.h \
128 ClientDelayConfig.cc \
131 if ENABLE_DELAY_POOLS
132 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
137 if ENABLE_XPROF_STATS
138 XPROF_STATS_SOURCE = ProfStats.cc
144 HTCPSOURCE = htcp.cc htcp.h
148 LEAKFINDERSOURCE = LeakFinder.cc
154 UNLINKDSOURCE = unlinkd.h unlinkd.cc
157 UNLINKDSOURCE = unlinkd.h
166 if ENABLE_WIN32SPECIFIC
167 WIN32_SOURCE = win32.cc
168 WINSVC_SOURCE = WinSvc.cc
175 IPC_SOURCE = SquidIpc.h ipc_win32.cc
177 IPC_SOURCE = SquidIpc.h ipc.cc
180 AIO_WIN32_ALL_SOURCES = \
181 DiskIO/AIO/aio_win32.cc \
182 DiskIO/AIO/aio_win32.h
184 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
189 if ENABLE_WIN32_AIOPS
190 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
191 DiskIO/DiskThreads/CommIO.cc \
192 DiskIO/DiskThreads/CommIO.h
194 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
195 DiskIO/DiskThreads/CommIO.cc \
196 DiskIO/DiskThreads/CommIO.h
199 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
200 libMmapped.a libIpcIo.a
201 noinst_LIBRARIES = $(DISK_LIBS)
202 noinst_LTLIBRARIES = libsquid.la
205 DiskIO/DiskDaemon/diskd \
212 ## cfgen is used when building squid
213 ## ufsdump is a debug utility, it is possibly useful for end users with cache
214 ## corruption, but at this point we do not install it.
228 cf_gen_SOURCES = cf_gen.cc
229 nodist_cf_gen_HEADER = cf_gen_defines.cci
230 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
232 cf_gen.$(OBJEXT): cf_gen_defines.cci
234 ## cf_gen.cc needs src/cf_gen_defines.cci
235 AM_CPPFLAGS += -I$(top_builddir)/src
238 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
241 DiskIO/DiskIOModule.cc \
242 DiskIO/ReadRequest.cc \
243 DiskIO/ReadRequest.h \
244 DiskIO/WriteRequest.cc \
245 DiskIO/WriteRequest.h \
247 DiskIO/DiskIOStrategy.h \
248 DiskIO/IORequestor.h \
249 DiskIO/DiskIOModule.h \
252 DISKIO_GEN_SOURCE = \
253 DiskIO/DiskIOModules_gen.cc
255 DiskIO/DiskIOModules_gen.cc: Makefile
256 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
259 # common library for all the binaries and tests. This is kindof a catch all
260 # and smaller libraries split from this are encouraged. Using lt convenience
261 # libraries, dependencies should not be a problem either.
262 libsquid_la_SOURCES = \
273 $(ACL_REGISTRATION_SOURCES) \
287 NeighborTypeDomainList.h \
295 ChunkedCodingParser.cc \
296 ChunkedCodingParser.h \
302 client_side_reply.cc \
303 client_side_reply.h \
304 client_side_request.cc \
305 client_side_request.h \
310 ClientRequestContext.h \
313 clientStreamForward.h \
314 CollapsedForwarding.cc \
315 CollapsedForwarding.h \
316 CompletionDispatcher.cc \
317 CompletionDispatcher.h \
331 $(DELAY_POOL_SOURCE) \
351 ExternalACLEntry.cc \
374 HierarchyLogEntry.h \
379 HttpHeaderFieldStat.h \
388 HttpHdrContRange.cc \
395 HttpHeaderFieldInfo.h \
420 $(LEAKFINDERSOURCE) \
448 $(XPROF_STATS_SOURCE) \
453 peer_proxy_negotiate_auth.h \
454 peer_proxy_negotiate_auth.cc \
474 SBufDetailedStats.h \
475 SBufDetailedStats.cc \
519 StoreMetaUnpacker.cc \
520 StoreMetaUnpacker.h \
521 $(STOREMETA_SOURCE) \
525 StoreSwapLogData.cc \
556 EXTRA_squid_SOURCES = \
557 $(AIO_WIN32_ALL_SOURCES) \
560 $(DELAY_POOL_ALL_SOURCE) \
570 $(WIN32_ALL_SOURCE) \
571 $(LOADABLE_MODULES_SOURCES)
574 client_side_request.cci \
594 CLEANFILES += $(BUILT_SOURCES)
596 nodist_squid_SOURCES = \
597 $(DISKIO_GEN_SOURCE) \
608 clients/libclients.la \
609 servers/libservers.la \
611 helper/libhelper.la \
612 http/libsquid-http.la \
613 parser/libsquid-parser.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 \
1502 peer_proxy_negotiate_auth.h \
1503 peer_proxy_negotiate_auth.cc \
1506 peer_sourcehash.cc \
1512 tests/stub_redirect.cc \
1517 SBufDetailedStats.h \
1518 tests/stub_SBufDetailedStats.cc \
1530 tests/stub_libauth_acls.cc \
1531 tests/stub_libauth.cc \
1532 tests/stub_StatHist.cc \
1538 tests/stub_store_digest.cc \
1551 StoreFileSystem.cc \
1553 tests/stub_StoreMeta.cc \
1554 StoreMetaUnpacker.cc \
1555 StoreSwapLogData.cc \
1559 tests/stub_tunnel.cc \
1560 tests/stub_SwapDir.cc \
1567 tests/stub_wccp2.cc \
1569 tests/stub_whois.cc \
1574 nodist_tests_testCacheManager_SOURCES = \
1576 $(DISKIO_GEN_SOURCE)
1577 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1578 tests_testCacheManager_LDADD = \
1580 clients/libclients.la \
1581 servers/libservers.la \
1583 helper/libhelper.la \
1584 http/libsquid-http.la \
1585 parser/libsquid-parser.la \
1596 icmp/libicmp.la icmp/libicmp-core.la \
1598 format/libformat.la \
1602 $(ADAPTATION_LIBS) \
1610 $(top_builddir)/lib/libmisccontainers.la \
1611 $(top_builddir)/lib/libmiscencoding.la \
1612 $(top_builddir)/lib/libmiscutil.la \
1615 $(SQUID_CPPUNIT_LIBS) \
1616 $(SQUID_CPPUNIT_LA) \
1621 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1622 tests_testCacheManager_DEPENDENCIES = \
1626 tests_testDiskIO_SOURCES = \
1628 tests/stub_CacheDigest.cc \
1632 tests/stub_CollapsedForwarding.cc \
1635 $(DELAY_POOL_SOURCE) \
1639 tests/stub_ETag.cc \
1643 tests/stub_fatal.cc \
1652 HttpHeaderFieldStat.h \
1656 HttpHdrContRange.cc \
1658 HttpHdrScTarget.cc \
1660 HttpHeaderFieldInfo.h \
1662 HttpHeaderTools.cc \
1688 tests/stub_StatHist.cc \
1691 SBufDetailedStats.h \
1692 tests/stub_SBufDetailedStats.cc \
1693 StoreFileSystem.cc \
1695 tests/stub_StoreMeta.cc \
1696 StoreMetaUnpacker.cc \
1697 StoreSwapLogData.cc \
1709 tests/stub_SwapDir.cc \
1712 tests/stub_access_log.cc \
1716 tests/stub_cache_cf.cc \
1717 tests/stub_cache_manager.cc \
1718 tests/stub_client_db.cc \
1719 client_side_request.h \
1720 tests/stub_client_side_request.cc \
1721 tests/stub_debug.cc \
1722 tests/stub_errorpage.cc \
1723 tests/stub_helper.cc \
1724 tests/stub_HelperChildConfig.cc \
1725 tests/stub_HttpRequest.cc \
1726 tests/stub_http.cc \
1729 tests/stub_internal.cc \
1731 tests/stub_ipcache.cc \
1732 tests/stub_libauth_acls.cc \
1733 tests/stub_libauth.cc \
1734 tests/stub_libeui.cc \
1735 tests/stub_libformat.cc \
1736 tests/stub_libicmp.cc \
1737 tests/stub_MemStore.cc \
1739 tests/stub_mime.cc \
1740 tests/stub_neighbors.cc \
1741 tests/stub_pconn.cc \
1742 tests/stub_Port.cc \
1743 tests/stub_stat.cc \
1744 tests/stub_store_client.cc \
1745 tests/stub_store_stats.cc \
1747 tests/stub_store_rebuild.cc \
1748 tests/stub_UdsOp.cc \
1749 tests/testDiskIO.cc \
1750 tests/testDiskIO.h \
1751 tests/testStoreSupport.cc \
1752 tests/testStoreSupport.h \
1753 tests/stub_time.cc \
1761 nodist_tests_testDiskIO_SOURCES= \
1763 $(DISKIO_GEN_SOURCE) \
1767 tests_testDiskIO_LDADD = \
1769 http/libsquid-http.la \
1770 parser/libsquid-parser.la \
1791 $(top_builddir)/lib/libmisccontainers.la \
1792 $(top_builddir)/lib/libmiscencoding.la \
1793 $(top_builddir)/lib/libmiscutil.la \
1796 $(SQUID_CPPUNIT_LIBS) \
1801 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1802 tests_testDiskIO_DEPENDENCIES = \
1807 tests_testDns_SOURCES= \
1808 tests/testRFC1035.cc \
1810 nodist_tests_testDns_SOURCES= \
1811 tests/stub_debug.cc \
1812 tests/stub_SBuf.cc \
1814 tests_testDns_LDADD= \
1817 $(top_builddir)/lib/libmiscutil.la \
1820 $(SQUID_CPPUNIT_LA) \
1821 $(SQUID_CPPUNIT_LIBS)
1822 tests_testDns_LDFLAGS= $(LIBADD_DL)
1824 tests_testEvent_SOURCES = \
1828 tests/stub_CacheDigest.cc \
1839 tests/stub_carp.cc \
1841 ChunkedCodingParser.cc \
1846 client_side_reply.cc \
1847 client_side_request.cc \
1850 tests/stub_CollapsedForwarding.cc \
1858 $(DELAY_POOL_SOURCE) \
1866 tests/stub_ETag.cc \
1871 ExternalACLEntry.cc \
1874 tests/stub_fatal.cc \
1894 HttpHeaderFieldInfo.h \
1896 HttpHeaderTools.cc \
1897 HttpHeaderFieldStat.h \
1901 HttpHdrContRange.cc \
1904 HttpHdrScTarget.cc \
1924 tests/stub_libmem.cc \
1942 peer_proxy_negotiate_auth.h \
1943 peer_proxy_negotiate_auth.cc \
1946 peer_sourcehash.cc \
1950 tests/stub_redirect.cc \
1957 SBufDetailedStats.h \
1958 tests/stub_SBufDetailedStats.cc \
1974 tests/stub_store_digest.cc \
1987 StoreFileSystem.cc \
1989 tests/stub_StoreMeta.cc \
1990 StoreMetaUnpacker.cc \
1991 StoreSwapLogData.cc \
1993 tests/stub_SwapDir.cc \
1994 tests/CapturingStoreEntry.h \
1995 tests/testEvent.cc \
1997 tests/stub_main_cc.cc \
1998 tests/stub_ipc_Forwarder.cc \
1999 tests/stub_libauth_acls.cc \
2000 tests/stub_libauth.cc \
2001 tests/stub_libeui.cc \
2002 tests/stub_store_stats.cc \
2007 tests/stub_tunnel.cc \
2014 tests/stub_wccp2.cc \
2016 tests/stub_whois.cc \
2020 nodist_tests_testEvent_SOURCES = \
2022 $(DISKIO_GEN_SOURCE)
2023 tests_testEvent_LDADD = \
2025 clients/libclients.la \
2026 servers/libservers.la \
2028 helper/libhelper.la \
2029 http/libsquid-http.la \
2030 parser/libsquid-parser.la \
2040 icmp/libicmp.la icmp/libicmp-core.la \
2043 format/libformat.la \
2045 $(ADAPTATION_LIBS) \
2048 $(top_builddir)/lib/libmisccontainers.la \
2049 $(top_builddir)/lib/libmiscencoding.la \
2050 $(top_builddir)/lib/libmiscutil.la \
2058 $(SQUID_CPPUNIT_LIBS) \
2059 $(SQUID_CPPUNIT_LA) \
2064 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2065 tests_testEvent_DEPENDENCIES = \
2069 ## Tests of the EventLoop module.
2070 tests_testEventLoop_SOURCES = \
2074 tests/stub_CacheDigest.cc \
2085 tests/stub_carp.cc \
2087 ChunkedCodingParser.cc \
2092 client_side_reply.cc \
2093 client_side_request.cc \
2096 tests/stub_CollapsedForwarding.cc \
2104 $(DELAY_POOL_SOURCE) \
2112 tests/stub_ETag.cc \
2117 ExternalACLEntry.cc \
2120 tests/stub_fatal.cc \
2140 HttpHeaderFieldInfo.h \
2142 HttpHeaderTools.cc \
2143 HttpHeaderFieldStat.h \
2147 HttpHdrContRange.cc \
2150 HttpHdrScTarget.cc \
2172 tests/stub_libmem.cc \
2188 peer_proxy_negotiate_auth.h \
2189 peer_proxy_negotiate_auth.cc \
2192 peer_sourcehash.cc \
2197 tests/stub_redirect.cc \
2201 SBufDetailedStats.h \
2202 tests/stub_SBufDetailedStats.cc \
2218 tests/stub_store_digest.cc \
2231 StoreFileSystem.cc \
2233 tests/stub_StoreMeta.cc \
2234 StoreMetaUnpacker.cc \
2235 StoreSwapLogData.cc \
2239 tests/stub_SwapDir.cc \
2240 tests/testEventLoop.cc \
2241 tests/testEventLoop.h \
2242 tests/stub_main_cc.cc \
2243 tests/stub_ipc_Forwarder.cc \
2244 tests/stub_libauth_acls.cc \
2245 tests/stub_libauth.cc \
2246 tests/stub_libeui.cc \
2247 tests/stub_store_stats.cc \
2252 tests/stub_tunnel.cc \
2259 tests/stub_wccp2.cc \
2261 tests/stub_whois.cc \
2265 nodist_tests_testEventLoop_SOURCES = \
2267 $(DISKIO_GEN_SOURCE)
2268 tests_testEventLoop_LDADD = \
2270 clients/libclients.la \
2271 servers/libservers.la \
2273 helper/libhelper.la \
2274 http/libsquid-http.la \
2275 parser/libsquid-parser.la \
2285 icmp/libicmp.la icmp/libicmp-core.la \
2288 format/libformat.la \
2290 $(ADAPTATION_LIBS) \
2293 $(top_builddir)/lib/libmisccontainers.la \
2294 $(top_builddir)/lib/libmiscencoding.la \
2295 $(top_builddir)/lib/libmiscutil.la \
2303 $(SQUID_CPPUNIT_LIBS) \
2304 $(SQUID_CPPUNIT_LA) \
2309 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2310 tests_testEventLoop_DEPENDENCIES = \
2314 tests_test_http_range_SOURCES = \
2327 tests/stub_CacheDigest.cc \
2329 tests/stub_carp.cc \
2331 ChunkedCodingParser.cc \
2336 client_side_reply.cc \
2337 client_side_request.cc \
2340 tests/stub_CollapsedForwarding.cc \
2348 $(DELAY_POOL_SOURCE) \
2356 tests/stub_ETag.cc \
2360 tests/stub_libauth.cc \
2361 tests/stub_fatal.cc \
2379 HttpHeaderFieldStat.h \
2383 HttpHdrContRange.cc \
2386 HttpHdrScTarget.cc \
2389 HttpHeaderFieldInfo.h \
2391 HttpHeaderTools.cc \
2413 tests/stub_libmem.cc \
2428 peer_proxy_negotiate_auth.h \
2429 peer_proxy_negotiate_auth.cc \
2432 peer_sourcehash.cc \
2437 tests/stub_redirect.cc \
2442 SBufDetailedStats.h \
2443 tests/stub_SBufDetailedStats.cc \
2459 tests/stub_store_digest.cc \
2472 StoreFileSystem.cc \
2474 tests/stub_StoreMeta.cc \
2475 StoreMetaUnpacker.cc \
2476 StoreSwapLogData.cc \
2480 tests/stub_SwapDir.cc \
2482 tests/test_http_range.cc \
2483 tests/stub_external_acl.cc \
2484 tests/stub_ipc_Forwarder.cc \
2485 tests/stub_libeui.cc \
2486 tests/stub_main_cc.cc \
2487 tests/stub_MemStore.cc \
2488 tests/stub_store_stats.cc \
2489 tests/stub_EventLoop.cc \
2493 tests/stub_tunnel.cc \
2499 tests/stub_wccp2.cc \
2501 tests/stub_whois.cc \
2505 nodist_tests_test_http_range_SOURCES = \
2507 $(DISKIO_GEN_SOURCE)
2508 tests_test_http_range_LDADD = \
2510 clients/libclients.la \
2511 servers/libservers.la \
2513 helper/libhelper.la \
2514 http/libsquid-http.la \
2515 parser/libsquid-parser.la \
2520 parser/libsquid-parser.la \
2524 icmp/libicmp.la icmp/libicmp-core.la \
2527 format/libformat.la \
2531 $(ADAPTATION_LIBS) \
2539 $(top_builddir)/lib/libmisccontainers.la \
2540 $(top_builddir)/lib/libmiscencoding.la \
2541 $(top_builddir)/lib/libmiscutil.la \
2544 $(SQUID_CPPUNIT_LIBS) \
2545 $(SQUID_CPPUNIT_LA) \
2550 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2551 tests_test_http_range_DEPENDENCIES = \
2554 tests_testHttp1Parser_SOURCES = \
2558 tests/stub_MemObject.cc \
2559 tests/stub_libmem.cc \
2566 tests/stub_SBufDetailedStats.cc \
2567 tests/stub_cache_cf.cc \
2568 tests/stub_cache_manager.cc \
2569 tests/stub_comm.cc \
2570 tests/stub_cbdata.cc \
2571 tests/stub_debug.cc \
2572 tests/stub_event.cc \
2573 tests/stub_HelperChildConfig.cc \
2574 tests/stub_stmem.cc \
2575 tests/stub_store.cc \
2576 tests/stub_store_stats.cc \
2578 tests/stub_tools.cc \
2579 tests/testHttp1Parser.cc \
2580 tests/testHttp1Parser.h \
2581 tests/stub_time.cc \
2584 nodist_tests_testHttp1Parser_SOURCES = \
2586 tests_testHttp1Parser_LDADD= \
2587 http/libsquid-http.la \
2588 parser/libsquid-parser.la \
2593 $(top_builddir)/lib/libmiscutil.la \
2594 $(SQUID_CPPUNIT_LIBS) \
2597 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2598 tests_testHttp1Parser_DEPENDENCIES = \
2601 ## Tests of the HttpRequest module.
2602 tests_testHttpRequest_SOURCES = \
2607 tests/stub_libmem.cc \
2609 tests/testHttpRequest.h \
2610 tests/testHttpRequest.cc \
2611 tests/testHttpRequestMethod.h \
2612 tests/testHttpRequestMethod.cc \
2613 tests/stub_DiskIOModule.cc \
2614 tests/stub_libauth.cc \
2615 tests/stub_main_cc.cc \
2616 tests/stub_ipc_Forwarder.cc \
2617 tests/stub_libeui.cc \
2618 tests/stub_store_stats.cc \
2619 tests/stub_EventLoop.cc \
2631 tests/stub_CacheDigest.cc \
2635 tests/stub_carp.cc \
2637 ChunkedCodingParser.cc \
2642 client_side_reply.cc \
2643 client_side_request.cc \
2646 tests/stub_CollapsedForwarding.cc \
2653 $(DELAY_POOL_SOURCE) \
2660 tests/stub_ETag.cc \
2662 ExternalACLEntry.cc \
2664 tests/stub_fatal.cc \
2682 HttpHeaderFieldInfo.h \
2684 HttpHeaderTools.cc \
2685 HttpHeaderFieldStat.h \
2689 HttpHdrContRange.cc \
2692 HttpHdrScTarget.cc \
2724 peer_proxy_negotiate_auth.h \
2725 peer_proxy_negotiate_auth.cc \
2728 peer_sourcehash.cc \
2734 tests/stub_libauth_acls.cc \
2735 tests/stub_redirect.cc \
2740 SBufDetailedStats.h \
2741 tests/stub_SBufDetailedStats.cc \
2757 tests/stub_store_digest.cc \
2770 StoreFileSystem.cc \
2772 tests/stub_StoreMeta.cc \
2773 StoreMetaUnpacker.cc \
2774 StoreSwapLogData.cc \
2781 tests/stub_tunnel.cc \
2782 tests/stub_SwapDir.cc \
2788 tests/stub_wccp2.cc \
2790 tests/stub_whois.cc \
2795 nodist_tests_testHttpRequest_SOURCES = \
2797 tests_testHttpRequest_LDADD = \
2799 clients/libclients.la \
2800 servers/libservers.la \
2801 helper/libhelper.la \
2803 http/libsquid-http.la \
2808 parser/libsquid-parser.la \
2813 parser/libsquid-parser.la \
2819 icmp/libicmp.la icmp/libicmp-core.la \
2822 format/libformat.la \
2824 $(ADAPTATION_LIBS) \
2826 $(top_builddir)/lib/libmisccontainers.la \
2827 $(top_builddir)/lib/libmiscencoding.la \
2828 $(top_builddir)/lib/libmiscutil.la \
2832 $(SQUID_CPPUNIT_LIBS) \
2833 $(SQUID_CPPUNIT_LA) \
2838 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2839 tests_testHttpRequest_DEPENDENCIES = \
2843 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2844 ## first line - what we are testing.
2845 tests_testStore_SOURCES= \
2847 tests/stub_CacheDigest.cc \
2850 tests/stub_CollapsedForwarding.cc \
2853 $(DELAY_POOL_SOURCE) \
2856 DiskIO/ReadRequest.cc \
2857 DiskIO/WriteRequest.cc \
2862 tests/stub_fatal.cc \
2865 HttpHeaderFieldStat.h \
2869 HttpHdrContRange.cc \
2872 HttpHdrScTarget.cc \
2873 HttpHeaderFieldInfo.h \
2875 HttpHeaderTools.cc \
2908 tests/stub_StoreMeta.cc \
2909 StoreMetaUnpacker.cc \
2910 StoreSwapLogData.cc \
2914 SBufDetailedStats.h \
2915 tests/stub_SBufDetailedStats.cc \
2920 tests/CapturingStoreEntry.h \
2922 tests/stub_access_log.cc \
2926 tests/stub_cache_cf.cc \
2927 tests/stub_cache_manager.cc \
2928 tests/stub_client_side_request.cc \
2929 tests/stub_comm.cc \
2930 tests/stub_debug.cc \
2931 tests/stub_DiskIOModule.cc \
2932 tests/stub_errorpage.cc \
2936 tests/stub_helper.cc \
2937 tests/stub_HelperChildConfig.cc \
2938 tests/stub_http.cc \
2939 tests/stub_libauth.cc \
2940 tests/stub_libeui.cc \
2941 tests/stub_libformat.cc \
2942 tests/stub_libsslsquid.cc \
2945 tests/stub_HttpReply.cc \
2946 tests/stub_HttpRequest.cc \
2947 tests/stub_libcomm.cc \
2948 tests/stub_MemStore.cc \
2950 tests/stub_mime.cc \
2951 tests/stub_Port.cc \
2952 tests/stub_stat.cc \
2953 tests/stub_store_client.cc \
2954 tests/stub_store_stats.cc \
2956 tests/stub_store_rebuild.cc \
2957 tests/stub_store_swapout.cc \
2960 tests/stub_tools.cc \
2961 tests/stub_UdsOp.cc \
2962 tests/testStore.cc \
2964 tests/testStoreEntryStream.cc \
2965 tests/testStoreEntryStream.h \
2966 tests/testStoreController.cc \
2967 tests/testStoreController.h \
2968 tests/testStoreHashIndex.cc \
2969 tests/testStoreHashIndex.h \
2970 tests/testStoreSupport.cc \
2971 tests/testStoreSupport.h \
2972 tests/TestSwapDir.cc \
2973 tests/TestSwapDir.h \
2974 tests/stub_time.cc \
2979 nodist_tests_testStore_SOURCES= \
2985 tests_testStore_LDADD= \
2987 http/libsquid-http.la \
2988 parser/libsquid-parser.la \
3001 $(top_builddir)/lib/libmisccontainers.la \
3002 $(top_builddir)/lib/libmiscencoding.la \
3003 $(top_builddir)/lib/libmiscutil.la \
3006 $(SQUID_CPPUNIT_LIBS) \
3011 tests_testStore_LDFLAGS = $(LIBADD_DL)
3012 tests_testStore_DEPENDENCIES = \
3015 ## string needs mem.cc.
3016 ## mem.cc needs ClientInfo.h
3017 ## libsquid pulls in SquidConfig and children. stub them.
3018 tests_testString_SOURCES = \
3020 tests/stub_libmem.cc \
3024 SBufDetailedStats.h \
3025 tests/stub_SBufDetailedStats.cc \
3026 tests/testString.cc \
3027 tests/testString.h \
3030 tests/stub_cache_cf.cc \
3031 tests/stub_cache_manager.cc \
3032 tests/stub_debug.cc \
3033 tests/stub_HelperChildConfig.cc \
3035 tests/stub_tools.cc \
3036 tests/stub_time.cc \
3039 nodist_tests_testString_SOURCES = \
3041 tests_testString_LDADD = \
3045 $(top_builddir)/lib/libmiscutil.la \
3047 $(SQUID_CPPUNIT_LIBS) \
3051 tests_testString_LDFLAGS = $(LIBADD_DL)
3052 tests_testString_DEPENDENCIES = \
3071 tests_testUfs_SOURCES = \
3074 tests/stub_cache_manager.cc \
3075 tests/stub_client_db.cc \
3076 tests/stub_CollapsedForwarding.cc \
3077 tests/stub_HelperChildConfig.cc \
3080 tests/stub_ipcache.cc \
3081 tests/stub_libeui.cc \
3082 tests/stub_libicmp.cc \
3083 tests/stub_MemStore.cc \
3084 tests/stub_neighbors.cc \
3085 tests/stub_pconn.cc \
3086 tests/stub_Port.cc \
3087 tests/stub_UdsOp.cc \
3089 tests/stub_internal.cc \
3090 tests/stub_libformat.cc \
3091 tests/stub_stat.cc \
3093 tests/stub_store_rebuild.cc \
3094 tests/stub_store_stats.cc \
3096 tests/stub_fatal.cc \
3121 StoreSwapLogData.cc \
3123 StoreMetaUnpacker.cc \
3124 $(STOREMETA_SOURCE) \
3125 StoreFileSystem.cc \
3132 $(DELAY_POOL_SOURCE) \
3134 tests/stub_CacheDigest.cc \
3150 tests/stub_cache_cf.cc \
3151 tests/stub_helper.cc \
3154 SBufDetailedStats.h \
3155 tests/stub_SBufDetailedStats.cc \
3157 tests/stub_debug.cc \
3158 tests/stub_client_side_request.cc \
3159 tests/stub_http.cc \
3160 tests/stub_libauth.cc \
3164 tests/stub_mime.cc \
3165 HttpHeaderFieldInfo.h \
3167 HttpHeaderTools.cc \
3172 HttpHdrContRange.cc \
3174 HttpHeaderFieldStat.h \
3179 HttpHdrScTarget.cc \
3189 tests/stub_errorpage.cc \
3190 tests/stub_HttpRequest.cc \
3192 tests/stub_access_log.cc \
3195 tests/stub_store_client.cc \
3197 tests/stub_tools.cc \
3198 tests/testStoreSupport.cc \
3199 tests/testStoreSupport.h \
3205 nodist_tests_testUfs_SOURCES = \
3207 $(DISKIO_GEN_SOURCE) \
3211 tests_testUfs_LDADD = \
3212 http/libsquid-http.la \
3213 parser/libsquid-parser.la \
3236 $(top_builddir)/lib/libmisccontainers.la \
3237 $(top_builddir)/lib/libmiscencoding.la \
3238 $(top_builddir)/lib/libmiscutil.la \
3241 $(SQUID_CPPUNIT_LIBS) \
3245 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3246 tests_testUfs_DEPENDENCIES = \
3249 check_PROGRAMS += testRefCount
3250 testRefCount_SOURCES= \
3253 tests/stub_cbdata.cc \
3254 tests/stub_debug.cc \
3255 tests/stub_MemBuf.cc \
3256 tests/testRefCount.cc
3257 testRefCount_LDADD = \
3259 $(top_builddir)/lib/libmiscutil.la \
3263 tests_testRock_SOURCES = \
3266 CollapsedForwarding.h \
3267 CollapsedForwarding.cc \
3268 tests/stub_CacheDigest.cc \
3284 HttpHeaderFieldStat.h \
3288 HttpHdrContRange.cc \
3291 HttpHdrScTarget.cc \
3294 HttpHeaderFieldInfo.h \
3296 HttpHeaderTools.cc \
3318 tests/stub_StatHist.cc \
3321 tests/stub_stat.cc \
3323 StoreFileSystem.cc \
3325 StoreMetaUnpacker.cc \
3326 $(STOREMETA_SOURCE) \
3327 StoreSwapLogData.cc \
3335 SBufDetailedStats.h \
3336 tests/stub_SBufDetailedStats.cc \
3345 tests/testStoreSupport.cc \
3346 tests/testStoreSupport.h \
3348 tests/stub_access_log.cc \
3351 tests/stub_cache_cf.cc \
3353 tests/stub_cache_manager.cc \
3354 tests/stub_client_db.cc \
3355 tests/stub_client_side_request.cc \
3356 tests/stub_debug.cc \
3357 tests/stub_errorpage.cc \
3358 tests/stub_HelperChildConfig.cc \
3359 tests/stub_http.cc \
3360 tests/stub_HttpRequest.cc \
3361 tests/stub_libauth.cc \
3364 tests/stub_ipcache.cc \
3365 tests/stub_libeui.cc \
3366 tests/stub_libformat.cc \
3367 tests/stub_libicmp.cc \
3368 tests/stub_libmgr.cc \
3369 tests/stub_MemStore.cc \
3371 tests/stub_mime.cc \
3372 tests/stub_neighbors.cc \
3373 tests/stub_Port.cc \
3374 tests/stub_pconn.cc \
3375 tests/stub_store_client.cc \
3377 tests/stub_store_rebuild.cc \
3378 tests/stub_store_stats.cc \
3380 tests/stub_tools.cc \
3385 $(DELAY_POOL_SOURCE) \
3388 nodist_tests_testRock_SOURCES = \
3389 $(DISKIO_GEN_SOURCE) \
3394 tests_testRock_LDADD = \
3395 http/libsquid-http.la \
3396 parser/libsquid-parser.la \
3414 $(top_builddir)/lib/libmisccontainers.la \
3415 $(top_builddir)/lib/libmiscencoding.la \
3416 $(top_builddir)/lib/libmiscutil.la \
3419 $(SQUID_CPPUNIT_LIBS) \
3423 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3424 tests_testRock_DEPENDENCIES = \
3427 ## Tests of the URL module.
3428 ## TODO: Trim this down once the insanity is over.
3429 tests_testURL_SOURCES = \
3438 tests/stub_cache_manager.cc \
3440 tests/stub_CacheDigest.cc \
3444 tests/stub_carp.cc \
3446 ChunkedCodingParser.cc \
3451 client_side_reply.cc \
3452 client_side_request.cc \
3455 tests/stub_CollapsedForwarding.cc \
3462 $(DELAY_POOL_SOURCE) \
3465 DiskIO/ReadRequest.cc \
3466 DiskIO/WriteRequest.cc \
3474 ExternalACLEntry.cc \
3476 tests/stub_fatal.cc \
3494 HttpHeaderFieldStat.h \
3498 HttpHdrContRange.cc \
3501 HttpHdrScTarget.cc \
3504 HttpHeaderFieldInfo.h \
3506 HttpHeaderTools.cc \
3528 tests/stub_libmem.cc \
3544 peer_proxy_negotiate_auth.h \
3545 peer_proxy_negotiate_auth.cc \
3548 peer_sourcehash.cc \
3552 tests/stub_redirect.cc \
3557 SBufDetailedStats.h \
3558 tests/stub_SBufDetailedStats.cc \
3568 tests/stub_StatHist.cc \
3574 tests/stub_store_digest.cc \
3587 StoreFileSystem.cc \
3589 tests/stub_StoreMeta.cc \
3590 StoreMetaUnpacker.cc \
3591 StoreSwapLogData.cc \
3596 tests/stub_SwapDir.cc \
3598 tests/stub_debug.cc \
3599 tests/stub_DiskIOModule.cc \
3600 tests/stub_libauth_acls.cc \
3601 tests/stub_libauth.cc \
3602 tests/stub_main_cc.cc \
3603 tests/stub_ipc_Forwarder.cc \
3604 tests/stub_store_stats.cc \
3607 tests/testUriScheme.cc \
3608 tests/testUriScheme.h \
3609 tests/stub_time.cc \
3610 tests/stub_EventLoop.cc \
3613 tests/stub_tunnel.cc \
3618 tests/stub_wccp2.cc \
3620 tests/stub_whois.cc \
3625 nodist_tests_testURL_SOURCES = \
3627 tests_testURL_LDADD = \
3629 clients/libclients.la \
3630 servers/libservers.la \
3631 helper/libhelper.la \
3632 http/libsquid-http.la \
3634 parser/libsquid-parser.la \
3649 icmp/libicmp.la icmp/libicmp-core.la \
3653 format/libformat.la \
3656 $(ADAPTATION_LIBS) \
3658 $(top_builddir)/lib/libmisccontainers.la \
3659 $(top_builddir)/lib/libmiscencoding.la \
3660 $(top_builddir)/lib/libmiscutil.la \
3663 $(SQUID_CPPUNIT_LIBS) \
3664 $(SQUID_CPPUNIT_LA) \
3669 tests_testURL_LDFLAGS = $(LIBADD_DL)
3670 tests_testURL_DEPENDENCIES = \
3674 tests_testSBuf_SOURCES= \
3677 tests/SBufFindTest.h \
3678 tests/SBufFindTest.cc \
3680 SBufDetailedStats.h \
3681 tests/stub_SBufDetailedStats.cc \
3683 tests/stub_time.cc \
3684 tests/stub_debug.cc \
3685 tests/stub_fatal.cc \
3686 tests/stub_HelperChildConfig.cc \
3687 tests/stub_libmem.cc \
3688 tests/stub_cache_cf.cc \
3689 tests/stub_cache_manager.cc \
3690 tests/stub_store.cc \
3691 tests/stub_store_stats.cc \
3692 tests/stub_tools.cc \
3695 tests/stub_wordlist.cc \
3696 tests/stub_MemBuf.cc
3697 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3698 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3699 tests_testSBuf_LDADD=\
3704 $(top_builddir)/lib/libmiscutil.la \
3706 $(SQUID_CPPUNIT_LIBS) \
3709 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3711 tests_testSBufList_SOURCES= \
3712 tests/testSBufList.h \
3713 tests/testSBufList.cc \
3718 SBufDetailedStats.h \
3719 tests/stub_SBufDetailedStats.cc \
3721 tests/stub_time.cc \
3722 tests/stub_MemObject.cc \
3723 tests/stub_cbdata.cc \
3724 tests/stub_comm.cc \
3725 tests/stub_debug.cc \
3726 tests/stub_event.cc \
3727 tests/stub_fatal.cc \
3729 tests/stub_HelperChildConfig.cc \
3730 tests/stub_libmem.cc \
3731 tests/stub_cache_cf.cc \
3732 tests/stub_cache_manager.cc \
3733 tests/stub_store.cc \
3734 tests/stub_stmem.cc \
3735 tests/stub_store_stats.cc \
3736 tests/stub_tools.cc \
3740 tests/stub_wordlist.cc \
3741 tests/stub_MemBuf.cc
3742 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3743 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3744 tests_testSBufList_LDADD=\
3749 $(top_builddir)/lib/libmiscutil.la \
3750 $(SQUID_CPPUNIT_LIBS) \
3753 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3755 tests_testConfigParser_SOURCES = \
3757 tests/stub_libmem.cc \
3758 tests/stub_MemBuf.cc \
3759 tests/stub_time.cc \
3761 SBufDetailedStats.h \
3762 tests/stub_SBufDetailedStats.cc \
3766 tests/stub_fatal.cc \
3767 tests/testConfigParser.cc \
3768 tests/testConfigParser.h \
3771 tests/stub_cache_cf.cc \
3772 tests/stub_cache_manager.cc \
3773 tests/stub_debug.cc \
3774 tests/stub_HelperChildConfig.cc \
3776 tests/stub_tools.cc \
3779 nodist_tests_testConfigParser_SOURCES = \
3781 tests_testConfigParser_LDADD = \
3785 $(top_builddir)/lib/libmiscutil.la \
3787 $(SQUID_CPPUNIT_LIBS) \
3791 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3792 tests_testConfigParser_DEPENDENCIES = \
3795 tests_testStatHist_SOURCES = \
3796 tests/stub_cbdata.cc \
3798 tests/stub_fatal.cc \
3799 tests/stub_MemBuf.cc \
3801 SBufDetailedStats.h \
3802 tests/stub_SBufDetailedStats.cc \
3806 tests/stub_cache_manager.cc \
3807 tests/stub_comm.cc \
3808 tests/stub_debug.cc \
3809 tests/stub_DelayId.cc \
3810 tests/stub_HelperChildConfig.cc \
3811 tests/stub_libmem.cc \
3812 tests/stub_MemObject.cc \
3814 tests/stub_mime.cc \
3815 tests/stub_pconn.cc \
3816 tests/stub_stmem.cc \
3818 tests/stub_store.cc \
3819 tests/stub_store_stats.cc \
3822 tests/stub_tools.cc \
3823 tests/testStatHist.cc \
3824 tests/testStatHist.h
3825 nodist_tests_testStatHist_SOURCES = \
3827 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3828 tests_testStatHist_LDADD = \
3830 $(top_builddir)/lib/libmiscutil.la \
3831 $(top_builddir)/lib/libmisccontainers.la \
3832 $(SQUID_CPPUNIT_LIBS) \
3833 $(SQUID_CPPUNIT_LA) \
3835 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3837 TESTS += testHeaders
3839 ## Special Universal .h dependency test script
3840 ## aborts if error encountered
3841 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3842 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3843 ## src/repl/ has no .h files and its own makefile.
3845 CLEANFILES += testHeaders