1 ## Copyright (C) 1996-2014 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
23 OutOfBoundsException.h \
44 LOADABLE_MODULES_SOURCES = \
50 SUBDIRS = base anyp helper ftp parser comm eui acl format clients servers fs repl
51 DIST_SUBDIRS = base anyp helper ftp parser comm eui acl format clients servers fs repl
55 AUTH_LIBS= auth/libauth.la
56 AUTH_ACL_LIBS= auth/libacls.la
57 check_PROGRAMS+= tests/testACLMaxUserIP
61 SUBDIRS += http ip icmp ident log ipc mgr
62 DIST_SUBDIRS += http ip icmp ident log ipc mgr
81 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
83 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
92 DIST_SUBDIRS += adaptation
98 $(top_builddir)/lib/libTrie/libTrie.a
99 ESI_LIBS = $(ESI_LOCAL_LIBS) \
107 DELAY_POOL_ALL_SOURCE = \
109 CompositePoolNode.h \
131 ClientDelayConfig.cc \
134 if ENABLE_DELAY_POOLS
135 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
140 if ENABLE_XPROF_STATS
141 XPROF_STATS_SOURCE = ProfStats.cc
147 HTCPSOURCE = htcp.cc htcp.h
151 LEAKFINDERSOURCE = LeakFinder.cc
157 UNLINKDSOURCE = unlinkd.h unlinkd.cc
160 UNLINKDSOURCE = unlinkd.h
169 if ENABLE_WIN32SPECIFIC
170 WIN32_SOURCE = win32.cc
171 WINSVC_SOURCE = WinSvc.cc
178 IPC_SOURCE = SquidIpc.h ipc_win32.cc
180 IPC_SOURCE = SquidIpc.h ipc.cc
183 AIO_WIN32_ALL_SOURCES = \
184 DiskIO/AIO/aio_win32.cc \
185 DiskIO/AIO/aio_win32.h
187 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
192 if ENABLE_WIN32_AIOPS
193 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
194 DiskIO/DiskThreads/CommIO.cc \
195 DiskIO/DiskThreads/CommIO.h
197 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
198 DiskIO/DiskThreads/CommIO.cc \
199 DiskIO/DiskThreads/CommIO.h
202 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
203 libMmapped.a libIpcIo.a
204 noinst_LIBRARIES = $(DISK_LIBS)
205 noinst_LTLIBRARIES = libsquid.la
208 DiskIO/DiskDaemon/diskd \
215 ## cfgen is used when building squid
216 ## ufsdump is a debug utility, it is possibly useful for end users with cache
217 ## corruption, but at this point we do not install it.
231 cf_gen_SOURCES = cf_gen.cc
232 nodist_cf_gen_HEADER = cf_gen_defines.cci
233 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
235 cf_gen.$(OBJEXT): cf_gen_defines.cci
237 ## cf_gen.cc needs src/cf_gen_defines.cci
238 AM_CPPFLAGS += -I$(top_builddir)/src
241 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
244 DiskIO/DiskIOModule.cc \
245 DiskIO/ReadRequest.cc \
246 DiskIO/ReadRequest.h \
247 DiskIO/WriteRequest.cc \
248 DiskIO/WriteRequest.h \
250 DiskIO/DiskIOStrategy.h \
251 DiskIO/IORequestor.h \
252 DiskIO/DiskIOModule.h \
255 DISKIO_GEN_SOURCE = \
256 DiskIO/DiskIOModules_gen.cc
258 DiskIO/DiskIOModules_gen.cc: Makefile
259 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
262 # common library for all the binaries and tests. This is kindof a catch all
263 # and smaller libraries split from this are encouraged. Using lt convenience
264 # libraries, dependencies should not be a problem either.
265 libsquid_la_SOURCES = \
276 $(ACL_REGISTRATION_SOURCES) \
290 NeighborTypeDomainList.h \
291 CachePeerDomainList.h \
298 ChunkedCodingParser.cc \
299 ChunkedCodingParser.h \
305 client_side_reply.cc \
306 client_side_reply.h \
307 client_side_request.cc \
308 client_side_request.h \
313 ClientRequestContext.h \
316 clientStreamForward.h \
317 CollapsedForwarding.cc \
318 CollapsedForwarding.h \
319 CompletionDispatcher.cc \
320 CompletionDispatcher.h \
334 $(DELAY_POOL_SOURCE) \
354 ExternalACLEntry.cc \
377 HierarchyLogEntry.h \
382 HttpHeaderFieldStat.h \
391 HttpHdrContRange.cc \
398 HttpHeaderFieldInfo.h \
423 $(LEAKFINDERSOURCE) \
454 $(XPROF_STATS_SOURCE) \
459 peer_proxy_negotiate_auth.h \
460 peer_proxy_negotiate_auth.cc \
480 SBufDetailedStats.h \
481 SBufDetailedStats.cc \
525 StoreMetaUnpacker.cc \
526 StoreMetaUnpacker.h \
527 $(STOREMETA_SOURCE) \
531 StoreSwapLogData.cc \
562 EXTRA_squid_SOURCES = \
563 $(AIO_WIN32_ALL_SOURCES) \
566 $(DELAY_POOL_ALL_SOURCE) \
576 $(WIN32_ALL_SOURCE) \
577 $(LOADABLE_MODULES_SOURCES)
580 client_side_request.cci \
600 CLEANFILES += $(BUILT_SOURCES)
602 nodist_squid_SOURCES = \
603 $(DISKIO_GEN_SOURCE) \
614 clients/libclients.la \
615 servers/libservers.la \
617 helper/libhelper.la \
618 http/libsquid-http.la \
619 parser/libsquid-parser.la \
630 icmp/libicmp.la icmp/libicmp-core.la \
632 format/libformat.la \
643 $(top_builddir)/lib/libmisccontainers.la \
644 $(top_builddir)/lib/libmiscencoding.la \
645 $(top_builddir)/lib/libmiscutil.la \
652 squid_DEPENDENCIES = \
667 clients/libclients.la \
672 format/libformat.la \
675 servers/libservers.la
677 if ENABLE_LOADABLE_MODULES
678 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
679 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
680 squid_LDFLAGS = -export-dynamic -dlopen force
681 ## when static module linking is supported and enabled:
682 ## squid_LDFLAGS = -all-static -dlopen self
684 ## LTDL headers require their local include path...
685 AM_CPPFLAGS += $(INCLTDL)
688 ## Kerberos libraries require their include path...
689 AM_CPPFLAGS += $(KRB5INCS)
692 unlinkd_SOURCES = unlinkd_daemon.cc
697 recv_announce_SOURCES = recv-announce.cc
699 ## What requires what..
700 ## many things want ACLChecklist.cc
701 ## ACLChecklist.cc wants AuthUserRequest.cc
702 ## ACLChecklist.cc wants AuthScheme.cc
703 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
704 ## ACLProxyAuth.cc wants ACLUserData
705 ## ACLProxyAuth.cc wants ACLRegexData
706 ## cache_cf.cc wants $(AUTH_LIBS)
707 ## cache_cf.cc wants Swapdir
708 ## cache_cf.cc wants AnyP::PortCfg
709 ## client_side wants client_db
710 ## client_db wants SNMP_SOURCE
711 ## snmp_core wants ACLStringData
712 ## SwapDir wants ConfigOption
713 ## tools.cc wants ip/libip.la
714 ## client_side.cc wants ip/libip.la
715 ## mem.cc wants ClientInfo.h
716 ## libbase.la wants cbdata.*
717 ## libbase.la wants MemBuf.*
732 tests/stub_StoreMeta.cc \
733 StoreMetaUnpacker.cc \
740 helper/ChildConfig.h \
741 tests/stub_HelperChildConfig.cc \
768 ufsdump_DEPENDENCIES = \
784 nodist_ufsdump_SOURCES = \
789 squid.conf.documented \
814 include $(srcdir)/tests/Stub.list
823 mk-string-arrays.pl \
824 mk-string-arrays.awk \
831 $(AIO_WIN32_SOURCES) \
832 DiskIO/AIO/async_io.h \
833 DiskIO/AIO/AIODiskFile.cc \
834 DiskIO/AIO/AIODiskFile.h \
835 DiskIO/AIO/AIODiskIOStrategy.cc \
836 DiskIO/AIO/AIODiskIOStrategy.h \
837 DiskIO/AIO/AIODiskIOModule.cc \
838 DiskIO/AIO/AIODiskIOModule.h
840 libBlocking_a_SOURCES = \
841 DiskIO/Blocking/BlockingFile.cc \
842 DiskIO/Blocking/BlockingFile.h \
843 DiskIO/Blocking/BlockingIOStrategy.cc \
844 DiskIO/Blocking/BlockingIOStrategy.h \
845 DiskIO/Blocking/BlockingDiskIOModule.cc \
846 DiskIO/Blocking/BlockingDiskIOModule.h
848 libMmapped_a_SOURCES = \
849 DiskIO/Mmapped/MmappedFile.cc \
850 DiskIO/Mmapped/MmappedFile.h \
851 DiskIO/Mmapped/MmappedIOStrategy.cc \
852 DiskIO/Mmapped/MmappedIOStrategy.h \
853 DiskIO/Mmapped/MmappedDiskIOModule.cc \
854 DiskIO/Mmapped/MmappedDiskIOModule.h
856 libIpcIo_a_SOURCES = \
857 DiskIO/IpcIo/IpcIoFile.cc \
858 DiskIO/IpcIo/IpcIoFile.h \
859 DiskIO/IpcIo/IpcIoIOStrategy.cc \
860 DiskIO/IpcIo/IpcIoIOStrategy.h \
861 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
862 DiskIO/IpcIo/IpcIoDiskIOModule.h
864 libDiskDaemon_a_SOURCES = \
865 DiskIO/DiskDaemon/DiskdFile.cc \
866 DiskIO/DiskDaemon/DiskdFile.h \
867 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
868 DiskIO/DiskDaemon/DiskdIOStrategy.h \
869 DiskIO/DiskDaemon/diomsg.h \
870 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
871 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
872 DiskIO/DiskDaemon/DiskdAction.cc \
873 DiskIO/DiskDaemon/DiskdAction.h
875 libDiskThreads_a_SOURCES = \
877 DiskIO/DiskThreads/async_io.cc \
878 DiskIO/DiskThreads/DiskThreads.h \
879 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
880 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
881 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
882 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
883 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
884 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
886 EXTRA_libDiskThreads_a_SOURCES = \
887 DiskIO/DiskThreads/aiops.cc \
888 DiskIO/DiskThreads/aiops_win32.cc \
889 DiskIO/DiskThreads/CommIO.cc \
890 DiskIO/DiskThreads/CommIO.h
892 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
893 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
894 DiskIO_DiskDaemon_diskd_LDADD = \
895 $(top_builddir)/lib/libmisccontainers.la \
896 $(top_builddir)/lib/libmiscencoding.la \
897 $(top_builddir)/lib/libmiscutil.la \
902 DEFAULT_HTTP_PORT = 3128
903 DEFAULT_ICP_PORT = 3130
904 DEFAULT_PREFIX = $(prefix)
905 DEFAULT_CONFIG_DIR = $(sysconfdir)
906 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
907 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
908 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
909 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
910 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
911 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
912 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
913 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
914 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
915 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_ICON_DIR = $(datadir)/icons
920 DEFAULT_ERROR_DIR = $(datadir)/errors
922 # Make location configure settings available to the code
923 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
925 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
927 globals.cc: globals.h mk-globals-c.awk
928 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
930 ## Generate files containing string arrays for various enums....
931 hier_code.cc: hier_code.h mk-string-arrays.awk
932 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
934 err_type.cc: err_type.h mk-string-arrays.awk
935 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
937 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
938 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
940 LogTags.cc: LogTags.h mk-string-arrays.awk
941 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
943 lookup_t.cc: lookup_t.h mk-string-arrays.awk
944 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
946 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
947 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
949 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
950 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
953 ## other generated files...
955 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
956 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
958 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
959 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
961 ## If autodependency works well this is not needed anymore
962 cache_cf.o: cf_parser.cci
964 # cf_gen builds the configuration files.
965 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
966 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
968 # squid.conf.default is built by cf_gen when making cf_parser.cci
969 squid.conf.default squid.conf.documented: cf_parser.cci
972 cf_parser.cci: cf.data cf_gen$(EXEEXT)
973 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
975 # The cf_gen_defines.cci is auto-generated and does not exist when the
976 # dependencies computed. We need to add its include files (autoconf.h) here
977 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
978 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
981 ## FIXME: generate a sed command file from configure. Then this doesn't
982 ## depend on the Makefile.
983 cf.data: cf.data.pre Makefile
985 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
986 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
987 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
988 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
989 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
990 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
991 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
992 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
993 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
994 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
995 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
996 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
997 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
998 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
999 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1000 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1001 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1002 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1003 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1004 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1005 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1006 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1007 < $(srcdir)/cf.data.pre >$@
1009 repl_modules.cc: repl_modules.sh Makefile
1010 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1012 include $(top_srcdir)/doc/manuals/Substitute.am
1014 squid.8: $(srcdir)/squid.8.in Makefile
1015 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1018 EXTRA_DIST += squid.8.in
1019 CLEANFILES += squid.8
1021 install-data-local: install-sysconfDATA install-dataDATA
1022 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1023 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1025 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1026 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1028 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1029 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1031 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1032 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1034 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1035 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1036 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1037 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1038 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1039 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1040 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1042 uninstall-local: squid.conf.default
1043 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1044 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1046 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1047 DiskIO/DiskIOModules_gen.cc \
1050 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1051 cp $(top_srcdir)/test-suite/test_tools.cc .
1053 # stock tools for unit tests - library independent versions of dlink_list
1055 # globals.cc is needed by test_tools.cc.
1056 # Neither of these should be disted from here.
1063 tests/testBoilerplate \
1064 tests/testCacheManager \
1067 tests/testEventLoop \
1068 tests/test_http_range \
1069 tests/testHttp1Parser \
1070 tests/testHttpReply \
1071 tests/testHttpRequest \
1076 tests/testSBufList \
1077 tests/testConfigParser \
1081 check_PROGRAMS += tests/testRock
1084 check_PROGRAMS += tests/testUfs
1087 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1088 TESTS += $(check_PROGRAMS)
1090 ### Template for new Unit Test Program
1091 ## - add tests/testX to check_PROGRAMS above.
1092 ## - copy template below and substitue X for class name
1093 ## - add other component .(h|cc) files needed to link and run tests
1095 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1097 #tests_testX_SOURCES=\
1100 # tests/testMain.cc \
1103 #nodist_tests_testX_SOURCES=\
1105 #tests_testX_LDFLAGS = $(LIBADD_DL)
1106 #tests_testX_LDADD=\
1107 # $(SQUID_CPPUNIT_LIBS) \
1108 # $(SQUID_CPPUNIT_LA) \
1110 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1113 # - add other component .(h|cc) files needed to link and run tests
1114 tests_testHttpReply_SOURCES=\
1118 tests/stub_ETag.cc \
1120 tests/stub_fatal.cc \
1123 HttpHeaderFieldStat.h \
1127 HttpHdrContRange.cc \
1128 HttpHdrContRange.h \
1132 HttpHdrScTarget.cc \
1137 HttpHeaderFieldInfo.h \
1139 HttpHeaderTools.cc \
1162 SBufDetailedStats.h \
1163 tests/stub_SBufDetailedStats.cc \
1168 tests/stub_access_log.cc \
1171 tests/stub_cache_cf.cc \
1172 tests/stub_cache_manager.cc \
1173 tests/stub_comm.cc \
1174 tests/stub_debug.cc \
1175 tests/stub_errorpage.cc \
1176 tests/stub_event.cc \
1178 tests/stub_HelperChildConfig.cc \
1179 tests/stub_libformat.cc \
1180 tests/stub_libauth.cc \
1181 tests/stub_libcomm.cc \
1182 tests/stub_libmgr.cc \
1183 tests/stub_libsslsquid.cc \
1187 tests/stub_StatHist.cc \
1189 tests/stub_store.cc \
1190 tests/stub_store_stats.cc \
1192 tests/stub_tools.cc \
1193 tests/stub_HttpRequest.cc \
1194 tests/testHttpReply.cc \
1195 tests/testHttpReply.h \
1197 tests/stub_time.cc \
1201 nodist_tests_testHttpReply_SOURCES=\
1203 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1204 tests_testHttpReply_LDADD=\
1206 http/libsquid-http.la \
1207 parser/libsquid-parser.la \
1215 $(top_builddir)/lib/libmisccontainers.la \
1216 $(top_builddir)/lib/libmiscencoding.la \
1217 $(top_builddir)/lib/libmiscutil.la \
1218 $(SQUID_CPPUNIT_LIBS) \
1219 $(SQUID_CPPUNIT_LA) \
1224 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1226 tests_testACLMaxUserIP_SOURCES= \
1229 tests/stub_CollapsedForwarding.cc \
1232 DiskIO/ReadRequest.cc \
1233 DiskIO/WriteRequest.cc \
1234 tests/stub_ETag.cc \
1237 tests/stub_fatal.cc \
1243 HttpHeaderFieldInfo.h \
1245 HttpHeaderTools.cc \
1246 HttpHdrContRange.cc \
1248 HttpHeaderFieldStat.h \
1253 HttpHdrScTarget.cc \
1272 tests/stub_StatHist.cc \
1275 SBufDetailedStats.h \
1276 tests/stub_SBufDetailedStats.cc \
1280 tests/stub_StoreMeta.cc \
1281 StoreMetaUnpacker.cc \
1282 StoreSwapLogData.cc \
1287 tests/stub_SwapDir.cc \
1291 tests/stub_access_log.cc \
1294 tests/stub_cache_cf.cc \
1295 tests/stub_client_side.cc \
1296 tests/stub_debug.cc \
1297 tests/stub_DelayId.cc \
1298 tests/stub_DiskIOModule.cc \
1299 tests/stub_errorpage.cc \
1302 tests/stub_HttpRequest.cc \
1303 tests/stub_HttpReply.cc \
1304 tests/stub_ipc_TypedMsgHdr.cc \
1305 tests/stub_libauth.cc \
1306 tests/stub_libcomm.cc \
1307 tests/stub_libformat.cc \
1308 tests/stub_libsslsquid.cc \
1309 tests/stub_MemObject.cc \
1310 tests/stub_MemStore.cc \
1312 tests/stub_mime.cc \
1313 tests/stub_pconn.cc \
1314 tests/stub_Port.cc \
1316 tests/stub_store.cc \
1317 tests/stub_store_client.cc \
1319 tests/stub_store_rebuild.cc \
1320 tests/stub_store_stats.cc \
1321 tests/stub_store_swapout.cc \
1323 tests/stub_tools.cc \
1324 tests/stub_cache_manager.cc \
1325 tests/stub_UdsOp.cc \
1326 tests/testACLMaxUserIP.cc \
1327 tests/testACLMaxUserIP.h \
1329 tests/stub_time.cc \
1337 nodist_tests_testACLMaxUserIP_SOURCES= \
1339 tests_testACLMaxUserIP_LDADD= \
1341 helper/libhelper.la \
1342 http/libsquid-http.la \
1343 parser/libsquid-parser.la \
1355 $(top_builddir)/lib/libmisccontainers.la \
1356 $(top_builddir)/lib/libmiscencoding.la \
1357 $(top_builddir)/lib/libmiscutil.la \
1361 $(SQUID_CPPUNIT_LIBS) \
1365 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1366 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1367 ## $(SQUID_CPPUNIT_LA)
1369 ## a demonstration test that does nothing but shows the salient points
1370 ## involved in writing tests.
1371 tests_testBoilerplate_SOURCES = \
1372 tests/testBoilerplate.cc \
1374 tests/testBoilerplate.h \
1375 tests/stub_debug.cc \
1377 nodist_tests_testBoilerplate_SOURCES = \
1378 tests/stub_cbdata.cc \
1379 tests/stub_MemBuf.cc \
1381 tests_testBoilerplate_LDADD= \
1382 $(SQUID_CPPUNIT_LIBS) \
1387 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1388 tests_testBoilerplate_DEPENDENCIES = \
1391 ## Tests of the CacheManager module.
1392 tests_testCacheManager_SOURCES = \
1401 tests/testCacheManager.cc \
1402 tests/testCacheManager.h \
1404 tests/stub_main_cc.cc \
1405 tests/stub_ipc_Forwarder.cc \
1406 tests/stub_store_stats.cc \
1407 tests/stub_EventLoop.cc \
1418 tests/stub_CacheDigest.cc \
1420 tests/stub_carp.cc \
1422 ChunkedCodingParser.cc \
1427 client_side_reply.cc \
1428 client_side_request.cc \
1431 tests/stub_CollapsedForwarding.cc \
1438 $(DELAY_POOL_SOURCE) \
1446 tests/stub_ETag.cc \
1449 ExternalACLEntry.cc \
1451 tests/stub_fatal.cc \
1472 HttpHeaderFieldInfo.h \
1474 HttpHeaderTools.cc \
1475 HttpHeaderFieldStat.h \
1479 HttpHdrContRange.cc \
1482 HttpHdrScTarget.cc \
1514 peer_proxy_negotiate_auth.h \
1515 peer_proxy_negotiate_auth.cc \
1518 peer_sourcehash.cc \
1524 tests/stub_redirect.cc \
1529 SBufDetailedStats.h \
1530 tests/stub_SBufDetailedStats.cc \
1542 tests/stub_libauth_acls.cc \
1543 tests/stub_libauth.cc \
1544 tests/stub_StatHist.cc \
1550 tests/stub_store_digest.cc \
1563 StoreFileSystem.cc \
1565 tests/stub_StoreMeta.cc \
1566 StoreMetaUnpacker.cc \
1567 StoreSwapLogData.cc \
1571 tests/stub_tunnel.cc \
1572 tests/stub_SwapDir.cc \
1579 tests/stub_wccp2.cc \
1581 tests/stub_whois.cc \
1586 nodist_tests_testCacheManager_SOURCES = \
1588 $(DISKIO_GEN_SOURCE)
1589 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1590 tests_testCacheManager_LDADD = \
1592 clients/libclients.la \
1593 servers/libservers.la \
1595 helper/libhelper.la \
1596 http/libsquid-http.la \
1597 parser/libsquid-parser.la \
1607 icmp/libicmp.la icmp/libicmp-core.la \
1609 format/libformat.la \
1613 $(ADAPTATION_LIBS) \
1620 $(top_builddir)/lib/libmisccontainers.la \
1621 $(top_builddir)/lib/libmiscencoding.la \
1622 $(top_builddir)/lib/libmiscutil.la \
1625 $(SQUID_CPPUNIT_LIBS) \
1626 $(SQUID_CPPUNIT_LA) \
1631 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1632 tests_testCacheManager_DEPENDENCIES = \
1636 tests_testDiskIO_SOURCES = \
1638 tests/stub_CacheDigest.cc \
1642 tests/stub_CollapsedForwarding.cc \
1645 $(DELAY_POOL_SOURCE) \
1649 tests/stub_ETag.cc \
1653 tests/stub_fatal.cc \
1662 HttpHeaderFieldStat.h \
1666 HttpHdrContRange.cc \
1668 HttpHdrScTarget.cc \
1670 HttpHeaderFieldInfo.h \
1672 HttpHeaderTools.cc \
1700 tests/stub_StatHist.cc \
1703 SBufDetailedStats.h \
1704 tests/stub_SBufDetailedStats.cc \
1705 StoreFileSystem.cc \
1707 tests/stub_StoreMeta.cc \
1708 StoreMetaUnpacker.cc \
1709 StoreSwapLogData.cc \
1721 tests/stub_SwapDir.cc \
1724 tests/stub_access_log.cc \
1728 tests/stub_cache_cf.cc \
1729 tests/stub_cache_manager.cc \
1730 tests/stub_client_db.cc \
1731 client_side_request.h \
1732 tests/stub_client_side_request.cc \
1733 tests/stub_debug.cc \
1734 tests/stub_errorpage.cc \
1735 tests/stub_helper.cc \
1736 tests/stub_HelperChildConfig.cc \
1737 tests/stub_HttpRequest.cc \
1738 tests/stub_http.cc \
1741 tests/stub_internal.cc \
1743 tests/stub_ipcache.cc \
1744 tests/stub_libauth_acls.cc \
1745 tests/stub_libauth.cc \
1746 tests/stub_libeui.cc \
1747 tests/stub_libformat.cc \
1748 tests/stub_libicmp.cc \
1749 tests/stub_MemStore.cc \
1751 tests/stub_mime.cc \
1752 tests/stub_neighbors.cc \
1753 tests/stub_pconn.cc \
1754 tests/stub_Port.cc \
1755 tests/stub_stat.cc \
1756 tests/stub_store_client.cc \
1757 tests/stub_store_stats.cc \
1759 tests/stub_store_rebuild.cc \
1760 tests/stub_UdsOp.cc \
1761 tests/testDiskIO.cc \
1762 tests/testDiskIO.h \
1764 tests/testStoreSupport.cc \
1765 tests/testStoreSupport.h \
1766 tests/stub_time.cc \
1774 nodist_tests_testDiskIO_SOURCES= \
1776 $(DISKIO_GEN_SOURCE) \
1780 tests_testDiskIO_LDADD = \
1782 http/libsquid-http.la \
1783 parser/libsquid-parser.la \
1786 DnsLookupDetails.o \
1803 $(top_builddir)/lib/libmisccontainers.la \
1804 $(top_builddir)/lib/libmiscencoding.la \
1805 $(top_builddir)/lib/libmiscutil.la \
1808 $(SQUID_CPPUNIT_LIBS) \
1813 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1814 tests_testDiskIO_DEPENDENCIES = \
1819 ## Tests of the Even module.
1820 tests_testEvent_SOURCES = \
1824 tests/stub_CacheDigest.cc \
1833 tests/stub_carp.cc \
1835 ChunkedCodingParser.cc \
1840 client_side_reply.cc \
1841 client_side_request.cc \
1844 tests/stub_CollapsedForwarding.cc \
1852 $(DELAY_POOL_SOURCE) \
1860 tests/stub_ETag.cc \
1865 ExternalACLEntry.cc \
1868 tests/stub_fatal.cc \
1888 HttpHeaderFieldInfo.h \
1890 HttpHeaderTools.cc \
1891 HttpHeaderFieldStat.h \
1895 HttpHdrContRange.cc \
1898 HttpHdrScTarget.cc \
1937 peer_proxy_negotiate_auth.h \
1938 peer_proxy_negotiate_auth.cc \
1941 peer_sourcehash.cc \
1945 tests/stub_redirect.cc \
1952 SBufDetailedStats.h \
1953 tests/stub_SBufDetailedStats.cc \
1969 tests/stub_store_digest.cc \
1982 StoreFileSystem.cc \
1984 tests/stub_StoreMeta.cc \
1985 StoreMetaUnpacker.cc \
1986 StoreSwapLogData.cc \
1988 tests/stub_SwapDir.cc \
1989 tests/CapturingStoreEntry.h \
1990 tests/testEvent.cc \
1993 tests/stub_main_cc.cc \
1994 tests/stub_ipc_Forwarder.cc \
1995 tests/stub_libauth_acls.cc \
1996 tests/stub_libauth.cc \
1997 tests/stub_libeui.cc \
1998 tests/stub_store_stats.cc \
2003 tests/stub_tunnel.cc \
2010 tests/stub_wccp2.cc \
2012 tests/stub_whois.cc \
2016 nodist_tests_testEvent_SOURCES = \
2018 $(DISKIO_GEN_SOURCE)
2019 tests_testEvent_LDADD = \
2021 clients/libclients.la \
2022 servers/libservers.la \
2024 helper/libhelper.la \
2025 http/libsquid-http.la \
2026 parser/libsquid-parser.la \
2035 icmp/libicmp.la icmp/libicmp-core.la \
2038 format/libformat.la \
2040 $(ADAPTATION_LIBS) \
2043 $(top_builddir)/lib/libmisccontainers.la \
2044 $(top_builddir)/lib/libmiscencoding.la \
2045 $(top_builddir)/lib/libmiscutil.la \
2053 $(SQUID_CPPUNIT_LIBS) \
2054 $(SQUID_CPPUNIT_LA) \
2059 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2060 tests_testEvent_DEPENDENCIES = \
2064 ## Tests of the EventLoop module.
2065 tests_testEventLoop_SOURCES = \
2069 tests/stub_CacheDigest.cc \
2078 tests/stub_carp.cc \
2080 ChunkedCodingParser.cc \
2085 client_side_reply.cc \
2086 client_side_request.cc \
2089 tests/stub_CollapsedForwarding.cc \
2097 $(DELAY_POOL_SOURCE) \
2105 tests/stub_ETag.cc \
2110 ExternalACLEntry.cc \
2113 tests/stub_fatal.cc \
2133 HttpHeaderFieldInfo.h \
2135 HttpHeaderTools.cc \
2136 HttpHeaderFieldStat.h \
2140 HttpHdrContRange.cc \
2143 HttpHdrScTarget.cc \
2182 peer_proxy_negotiate_auth.h \
2183 peer_proxy_negotiate_auth.cc \
2186 peer_sourcehash.cc \
2191 tests/stub_redirect.cc \
2195 SBufDetailedStats.h \
2196 tests/stub_SBufDetailedStats.cc \
2213 tests/stub_store_digest.cc \
2226 StoreFileSystem.cc \
2228 tests/stub_StoreMeta.cc \
2229 StoreMetaUnpacker.cc \
2230 StoreSwapLogData.cc \
2234 tests/stub_SwapDir.cc \
2235 tests/testEventLoop.cc \
2236 tests/testEventLoop.h \
2238 tests/stub_main_cc.cc \
2239 tests/stub_ipc_Forwarder.cc \
2240 tests/stub_libauth_acls.cc \
2241 tests/stub_libauth.cc \
2242 tests/stub_libeui.cc \
2243 tests/stub_store_stats.cc \
2248 tests/stub_tunnel.cc \
2255 tests/stub_wccp2.cc \
2257 tests/stub_whois.cc \
2261 nodist_tests_testEventLoop_SOURCES = \
2263 $(DISKIO_GEN_SOURCE)
2264 tests_testEventLoop_LDADD = \
2266 clients/libclients.la \
2267 servers/libservers.la \
2269 helper/libhelper.la \
2270 http/libsquid-http.la \
2271 parser/libsquid-parser.la \
2280 icmp/libicmp.la icmp/libicmp-core.la \
2283 format/libformat.la \
2285 $(ADAPTATION_LIBS) \
2288 $(top_builddir)/lib/libmisccontainers.la \
2289 $(top_builddir)/lib/libmiscencoding.la \
2290 $(top_builddir)/lib/libmiscutil.la \
2298 $(SQUID_CPPUNIT_LIBS) \
2299 $(SQUID_CPPUNIT_LA) \
2304 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2305 tests_testEventLoop_DEPENDENCIES = \
2309 tests_test_http_range_SOURCES = \
2320 tests/stub_CacheDigest.cc \
2322 tests/stub_carp.cc \
2324 ChunkedCodingParser.cc \
2329 client_side_reply.cc \
2330 client_side_request.cc \
2333 tests/stub_CollapsedForwarding.cc \
2341 $(DELAY_POOL_SOURCE) \
2349 tests/stub_ETag.cc \
2353 tests/stub_libauth.cc \
2354 tests/stub_fatal.cc \
2372 HttpHeaderFieldStat.h \
2376 HttpHdrContRange.cc \
2379 HttpHdrScTarget.cc \
2382 HttpHeaderFieldInfo.h \
2384 HttpHeaderTools.cc \
2422 peer_proxy_negotiate_auth.h \
2423 peer_proxy_negotiate_auth.cc \
2426 peer_sourcehash.cc \
2431 tests/stub_redirect.cc \
2436 SBufDetailedStats.h \
2437 tests/stub_SBufDetailedStats.cc \
2453 tests/stub_store_digest.cc \
2466 StoreFileSystem.cc \
2468 tests/stub_StoreMeta.cc \
2469 StoreMetaUnpacker.cc \
2470 StoreSwapLogData.cc \
2474 tests/stub_SwapDir.cc \
2476 tests/test_http_range.cc \
2477 tests/stub_external_acl.cc \
2478 tests/stub_ipc_Forwarder.cc \
2479 tests/stub_libeui.cc \
2480 tests/stub_main_cc.cc \
2481 tests/stub_MemStore.cc \
2482 tests/stub_store_stats.cc \
2483 tests/stub_EventLoop.cc \
2487 tests/stub_tunnel.cc \
2493 tests/stub_wccp2.cc \
2495 tests/stub_whois.cc \
2499 nodist_tests_test_http_range_SOURCES = \
2501 $(DISKIO_GEN_SOURCE)
2502 tests_test_http_range_LDADD = \
2504 clients/libclients.la \
2505 servers/libservers.la \
2507 helper/libhelper.la \
2508 http/libsquid-http.la \
2509 parser/libsquid-parser.la \
2514 parser/libsquid-parser.la \
2518 icmp/libicmp.la icmp/libicmp-core.la \
2521 format/libformat.la \
2525 $(ADAPTATION_LIBS) \
2532 $(top_builddir)/lib/libmisccontainers.la \
2533 $(top_builddir)/lib/libmiscencoding.la \
2534 $(top_builddir)/lib/libmiscutil.la \
2537 $(SQUID_CPPUNIT_LIBS) \
2538 $(SQUID_CPPUNIT_LA) \
2543 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2544 tests_test_http_range_DEPENDENCIES = \
2547 tests_testHttp1Parser_SOURCES = \
2551 tests/stub_MemObject.cc \
2560 tests/stub_SBufDetailedStats.cc \
2561 tests/stub_cache_cf.cc \
2562 tests/stub_cache_manager.cc \
2563 tests/stub_comm.cc \
2564 tests/stub_cbdata.cc \
2565 tests/stub_debug.cc \
2566 tests/stub_event.cc \
2567 tests/stub_HelperChildConfig.cc \
2568 tests/stub_stmem.cc \
2569 tests/stub_store.cc \
2570 tests/stub_store_stats.cc \
2572 tests/stub_tools.cc \
2573 tests/testHttp1Parser.cc \
2574 tests/testHttp1Parser.h \
2576 tests/stub_time.cc \
2579 nodist_tests_testHttp1Parser_SOURCES = \
2581 tests_testHttp1Parser_LDADD= \
2582 http/libsquid-http.la \
2583 parser/libsquid-parser.la \
2588 $(top_builddir)/lib/libmiscutil.la \
2589 $(SQUID_CPPUNIT_LIBS) \
2592 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2593 tests_testHttp1Parser_DEPENDENCIES = \
2596 ## Tests of the HttpRequest module.
2597 tests_testHttpRequest_SOURCES = \
2605 tests/testHttpRequest.h \
2606 tests/testHttpRequest.cc \
2607 tests/testHttpRequestMethod.h \
2608 tests/testHttpRequestMethod.cc \
2610 tests/stub_DiskIOModule.cc \
2611 tests/stub_libauth.cc \
2612 tests/stub_main_cc.cc \
2613 tests/stub_ipc_Forwarder.cc \
2614 tests/stub_libeui.cc \
2615 tests/stub_store_stats.cc \
2616 tests/stub_EventLoop.cc \
2628 tests/stub_CacheDigest.cc \
2630 tests/stub_carp.cc \
2632 ChunkedCodingParser.cc \
2637 client_side_reply.cc \
2638 client_side_request.cc \
2641 tests/stub_CollapsedForwarding.cc \
2648 $(DELAY_POOL_SOURCE) \
2655 tests/stub_ETag.cc \
2657 ExternalACLEntry.cc \
2659 tests/stub_fatal.cc \
2677 HttpHeaderFieldInfo.h \
2679 HttpHeaderTools.cc \
2680 HttpHeaderFieldStat.h \
2684 HttpHdrContRange.cc \
2687 HttpHdrScTarget.cc \
2719 peer_proxy_negotiate_auth.h \
2720 peer_proxy_negotiate_auth.cc \
2723 peer_sourcehash.cc \
2729 tests/stub_libauth_acls.cc \
2730 tests/stub_redirect.cc \
2735 SBufDetailedStats.h \
2736 tests/stub_SBufDetailedStats.cc \
2752 tests/stub_store_digest.cc \
2765 StoreFileSystem.cc \
2767 tests/stub_StoreMeta.cc \
2768 StoreMetaUnpacker.cc \
2769 StoreSwapLogData.cc \
2776 tests/stub_tunnel.cc \
2777 tests/stub_SwapDir.cc \
2783 tests/stub_wccp2.cc \
2785 tests/stub_whois.cc \
2790 nodist_tests_testHttpRequest_SOURCES = \
2792 tests_testHttpRequest_LDADD = \
2794 clients/libclients.la \
2795 servers/libservers.la \
2796 helper/libhelper.la \
2798 http/libsquid-http.la \
2803 parser/libsquid-parser.la \
2808 parser/libsquid-parser.la \
2813 icmp/libicmp.la icmp/libicmp-core.la \
2816 format/libformat.la \
2818 $(ADAPTATION_LIBS) \
2820 $(top_builddir)/lib/libmisccontainers.la \
2821 $(top_builddir)/lib/libmiscencoding.la \
2822 $(top_builddir)/lib/libmiscutil.la \
2826 $(SQUID_CPPUNIT_LIBS) \
2827 $(SQUID_CPPUNIT_LA) \
2832 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2833 tests_testHttpRequest_DEPENDENCIES = \
2837 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2838 ## first line - what we are testing.
2839 tests_testStore_SOURCES= \
2841 tests/stub_CacheDigest.cc \
2844 tests/stub_CollapsedForwarding.cc \
2847 $(DELAY_POOL_SOURCE) \
2850 DiskIO/ReadRequest.cc \
2851 DiskIO/WriteRequest.cc \
2856 tests/stub_fatal.cc \
2859 HttpHeaderFieldStat.h \
2863 HttpHdrContRange.cc \
2866 HttpHdrScTarget.cc \
2867 HttpHeaderFieldInfo.h \
2869 HttpHeaderTools.cc \
2904 tests/stub_StoreMeta.cc \
2905 StoreMetaUnpacker.cc \
2906 StoreSwapLogData.cc \
2910 SBufDetailedStats.h \
2911 tests/stub_SBufDetailedStats.cc \
2916 tests/CapturingStoreEntry.h \
2918 tests/stub_access_log.cc \
2922 tests/stub_cache_cf.cc \
2923 tests/stub_cache_manager.cc \
2924 tests/stub_client_side_request.cc \
2925 tests/stub_comm.cc \
2926 tests/stub_debug.cc \
2927 tests/stub_DiskIOModule.cc \
2928 tests/stub_errorpage.cc \
2932 tests/stub_helper.cc \
2933 tests/stub_HelperChildConfig.cc \
2934 tests/stub_http.cc \
2935 tests/stub_libauth.cc \
2936 tests/stub_libeui.cc \
2937 tests/stub_libformat.cc \
2938 tests/stub_libsslsquid.cc \
2941 tests/stub_HttpReply.cc \
2942 tests/stub_HttpRequest.cc \
2943 tests/stub_libcomm.cc \
2944 tests/stub_MemStore.cc \
2946 tests/stub_mime.cc \
2947 tests/stub_Port.cc \
2948 tests/stub_stat.cc \
2949 tests/stub_store_client.cc \
2950 tests/stub_store_stats.cc \
2952 tests/stub_store_rebuild.cc \
2953 tests/stub_store_swapout.cc \
2956 tests/stub_tools.cc \
2957 tests/stub_UdsOp.cc \
2959 tests/testStore.cc \
2961 tests/testStoreEntryStream.cc \
2962 tests/testStoreEntryStream.h \
2963 tests/testStoreController.cc \
2964 tests/testStoreController.h \
2965 tests/testStoreHashIndex.cc \
2966 tests/testStoreHashIndex.h \
2967 tests/testStoreSupport.cc \
2968 tests/testStoreSupport.h \
2969 tests/TestSwapDir.cc \
2970 tests/TestSwapDir.h \
2971 tests/stub_time.cc \
2976 nodist_tests_testStore_SOURCES= \
2982 tests_testStore_LDADD= \
2984 http/libsquid-http.la \
2985 parser/libsquid-parser.la \
2996 $(top_builddir)/lib/libmisccontainers.la \
2997 $(top_builddir)/lib/libmiscencoding.la \
2998 $(top_builddir)/lib/libmiscutil.la \
3001 $(SQUID_CPPUNIT_LIBS) \
3004 DnsLookupDetails.o \
3007 tests_testStore_LDFLAGS = $(LIBADD_DL)
3008 tests_testStore_DEPENDENCIES = \
3011 ## string needs mem.cc.
3012 ## mem.cc needs ClientInfo.h
3013 ## libsquid pulls in SquidConfig and children. stub them.
3014 tests_testString_SOURCES = \
3021 SBufDetailedStats.h \
3022 tests/stub_SBufDetailedStats.cc \
3024 tests/testString.cc \
3025 tests/testString.h \
3028 tests/stub_cache_cf.cc \
3029 tests/stub_cache_manager.cc \
3030 tests/stub_debug.cc \
3031 tests/stub_HelperChildConfig.cc \
3033 tests/stub_tools.cc \
3034 tests/stub_time.cc \
3037 nodist_tests_testString_SOURCES = \
3039 tests_testString_LDADD = \
3043 $(top_builddir)/lib/libmiscutil.la \
3045 $(SQUID_CPPUNIT_LIBS) \
3049 tests_testString_LDFLAGS = $(LIBADD_DL)
3050 tests_testString_DEPENDENCIES = \
3069 tests_testUfs_SOURCES = \
3073 tests/stub_cache_manager.cc \
3074 tests/stub_client_db.cc \
3075 tests/stub_CollapsedForwarding.cc \
3076 tests/stub_HelperChildConfig.cc \
3079 tests/stub_ipcache.cc \
3080 tests/stub_libeui.cc \
3081 tests/stub_libicmp.cc \
3082 tests/stub_MemStore.cc \
3083 tests/stub_neighbors.cc \
3084 tests/stub_pconn.cc \
3085 tests/stub_Port.cc \
3086 tests/stub_UdsOp.cc \
3088 tests/stub_internal.cc \
3089 tests/stub_libformat.cc \
3090 tests/stub_stat.cc \
3092 tests/stub_store_rebuild.cc \
3093 tests/stub_store_stats.cc \
3095 tests/stub_fatal.cc \
3120 StoreSwapLogData.cc \
3122 StoreMetaUnpacker.cc \
3123 $(STOREMETA_SOURCE) \
3124 StoreFileSystem.cc \
3131 $(DELAY_POOL_SOURCE) \
3133 tests/stub_CacheDigest.cc \
3149 tests/stub_cache_cf.cc \
3150 tests/stub_helper.cc \
3153 SBufDetailedStats.h \
3154 tests/stub_SBufDetailedStats.cc \
3156 tests/stub_debug.cc \
3157 tests/stub_client_side_request.cc \
3158 tests/stub_http.cc \
3159 tests/stub_libauth.cc \
3163 tests/stub_mime.cc \
3164 HttpHeaderFieldInfo.h \
3166 HttpHeaderTools.cc \
3173 HttpHdrContRange.cc \
3175 HttpHeaderFieldStat.h \
3180 HttpHdrScTarget.cc \
3190 tests/stub_errorpage.cc \
3191 tests/stub_HttpRequest.cc \
3193 tests/stub_access_log.cc \
3196 tests/stub_store_client.cc \
3198 tests/stub_tools.cc \
3199 tests/testStoreSupport.cc \
3200 tests/testStoreSupport.h \
3206 nodist_tests_testUfs_SOURCES = \
3208 $(DISKIO_GEN_SOURCE) \
3212 tests_testUfs_LDADD = \
3213 http/libsquid-http.la \
3214 parser/libsquid-parser.la \
3216 DnsLookupDetails.o \
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 \
3320 tests/stub_StatHist.cc \
3323 tests/stub_stat.cc \
3325 StoreFileSystem.cc \
3327 StoreMetaUnpacker.cc \
3328 $(STOREMETA_SOURCE) \
3329 StoreSwapLogData.cc \
3337 SBufDetailedStats.h \
3338 tests/stub_SBufDetailedStats.cc \
3348 tests/testStoreSupport.cc \
3349 tests/testStoreSupport.h \
3351 tests/stub_access_log.cc \
3354 tests/stub_cache_cf.cc \
3356 tests/stub_cache_manager.cc \
3357 tests/stub_client_db.cc \
3358 tests/stub_client_side_request.cc \
3359 tests/stub_debug.cc \
3360 tests/stub_errorpage.cc \
3361 tests/stub_HelperChildConfig.cc \
3362 tests/stub_http.cc \
3363 tests/stub_HttpRequest.cc \
3364 tests/stub_libauth.cc \
3367 tests/stub_ipcache.cc \
3368 tests/stub_libeui.cc \
3369 tests/stub_libformat.cc \
3370 tests/stub_libicmp.cc \
3371 tests/stub_libmgr.cc \
3372 tests/stub_MemStore.cc \
3374 tests/stub_mime.cc \
3375 tests/stub_neighbors.cc \
3376 tests/stub_Port.cc \
3377 tests/stub_pconn.cc \
3378 tests/stub_store_client.cc \
3380 tests/stub_store_rebuild.cc \
3381 tests/stub_store_stats.cc \
3383 tests/stub_tools.cc \
3388 $(DELAY_POOL_SOURCE) \
3391 nodist_tests_testRock_SOURCES = \
3392 $(DISKIO_GEN_SOURCE) \
3397 tests_testRock_LDADD = \
3398 http/libsquid-http.la \
3399 parser/libsquid-parser.la \
3416 $(top_builddir)/lib/libmisccontainers.la \
3417 $(top_builddir)/lib/libmiscencoding.la \
3418 $(top_builddir)/lib/libmiscutil.la \
3421 $(SQUID_CPPUNIT_LIBS) \
3425 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3426 tests_testRock_DEPENDENCIES = \
3429 ## Tests of the URL module.
3430 ## TODO: Trim this down once the insanity is over.
3431 tests_testURL_SOURCES = \
3440 tests/stub_cache_manager.cc \
3442 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 \
3545 peer_proxy_negotiate_auth.h \
3546 peer_proxy_negotiate_auth.cc \
3549 peer_sourcehash.cc \
3553 tests/stub_redirect.cc \
3558 SBufDetailedStats.h \
3559 tests/stub_SBufDetailedStats.cc \
3569 tests/stub_StatHist.cc \
3575 tests/stub_store_digest.cc \
3588 StoreFileSystem.cc \
3590 tests/stub_StoreMeta.cc \
3591 StoreMetaUnpacker.cc \
3592 StoreSwapLogData.cc \
3597 tests/stub_SwapDir.cc \
3599 tests/stub_debug.cc \
3600 tests/stub_DiskIOModule.cc \
3601 tests/stub_libauth_acls.cc \
3602 tests/stub_libauth.cc \
3603 tests/stub_main_cc.cc \
3604 tests/stub_ipc_Forwarder.cc \
3605 tests/stub_store_stats.cc \
3608 tests/testUriScheme.cc \
3609 tests/testUriScheme.h \
3611 tests/stub_time.cc \
3612 tests/stub_EventLoop.cc \
3615 tests/stub_tunnel.cc \
3620 tests/stub_wccp2.cc \
3622 tests/stub_whois.cc \
3627 nodist_tests_testURL_SOURCES = \
3629 tests_testURL_LDADD = \
3631 clients/libclients.la \
3632 servers/libservers.la \
3633 helper/libhelper.la \
3634 http/libsquid-http.la \
3636 parser/libsquid-parser.la \
3650 icmp/libicmp.la icmp/libicmp-core.la \
3654 format/libformat.la \
3657 $(ADAPTATION_LIBS) \
3659 $(top_builddir)/lib/libmisccontainers.la \
3660 $(top_builddir)/lib/libmiscencoding.la \
3661 $(top_builddir)/lib/libmiscutil.la \
3664 $(SQUID_CPPUNIT_LIBS) \
3665 $(SQUID_CPPUNIT_LA) \
3670 tests_testURL_LDFLAGS = $(LIBADD_DL)
3671 tests_testURL_DEPENDENCIES = \
3675 tests_testSBuf_SOURCES= \
3679 tests/SBufFindTest.h \
3680 tests/SBufFindTest.cc \
3682 SBufDetailedStats.h \
3683 tests/stub_SBufDetailedStats.cc \
3685 tests/stub_time.cc \
3687 tests/stub_debug.cc \
3688 tests/stub_fatal.cc \
3689 tests/stub_HelperChildConfig.cc \
3690 tests/stub_cache_cf.cc \
3691 tests/stub_cache_manager.cc \
3692 tests/stub_store.cc \
3693 tests/stub_store_stats.cc \
3694 tests/stub_tools.cc \
3697 tests/stub_wordlist.cc \
3698 tests/stub_MemBuf.cc
3699 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3700 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3701 tests_testSBuf_LDADD=\
3706 $(top_builddir)/lib/libmiscutil.la \
3708 $(SQUID_CPPUNIT_LIBS) \
3711 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3713 tests_testSBufList_SOURCES= \
3714 tests/testSBufList.h \
3715 tests/testSBufList.cc \
3721 SBufDetailedStats.h \
3722 tests/stub_SBufDetailedStats.cc \
3724 tests/stub_time.cc \
3726 tests/stub_MemObject.cc \
3727 tests/stub_cbdata.cc \
3728 tests/stub_comm.cc \
3729 tests/stub_debug.cc \
3730 tests/stub_event.cc \
3731 tests/stub_fatal.cc \
3733 tests/stub_HelperChildConfig.cc \
3734 tests/stub_cache_cf.cc \
3735 tests/stub_cache_manager.cc \
3736 tests/stub_store.cc \
3737 tests/stub_stmem.cc \
3738 tests/stub_store_stats.cc \
3739 tests/stub_tools.cc \
3743 tests/stub_wordlist.cc \
3744 tests/stub_MemBuf.cc
3745 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3746 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3747 tests_testSBufList_LDADD=\
3752 $(top_builddir)/lib/libmiscutil.la \
3753 $(SQUID_CPPUNIT_LIBS) \
3756 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3758 tests_testConfigParser_SOURCES = \
3762 tests/stub_MemBuf.cc \
3763 tests/stub_time.cc \
3765 SBufDetailedStats.h \
3766 tests/stub_SBufDetailedStats.cc \
3770 tests/stub_fatal.cc \
3772 tests/testConfigParser.cc \
3773 tests/testConfigParser.h \
3776 tests/stub_cache_cf.cc \
3777 tests/stub_cache_manager.cc \
3778 tests/stub_debug.cc \
3779 tests/stub_HelperChildConfig.cc \
3781 tests/stub_tools.cc \
3784 nodist_tests_testConfigParser_SOURCES = \
3786 tests_testConfigParser_LDADD = \
3790 $(top_builddir)/lib/libmiscutil.la \
3792 $(SQUID_CPPUNIT_LIBS) \
3796 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3797 tests_testConfigParser_DEPENDENCIES = \
3800 tests_testStatHist_SOURCES = \
3801 tests/stub_cbdata.cc \
3803 tests/stub_fatal.cc \
3804 tests/stub_MemBuf.cc \
3806 SBufDetailedStats.h \
3807 tests/stub_SBufDetailedStats.cc \
3811 tests/stub_cache_manager.cc \
3812 tests/stub_comm.cc \
3813 tests/stub_debug.cc \
3814 tests/stub_DelayId.cc \
3815 tests/stub_HelperChildConfig.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 \
3830 tests/testStatHist.cc \
3831 tests/testStatHist.h
3832 nodist_tests_testStatHist_SOURCES = \
3834 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3835 tests_testStatHist_LDADD = \
3837 $(top_builddir)/lib/libmiscutil.la \
3838 $(top_builddir)/lib/libmisccontainers.la \
3839 $(SQUID_CPPUNIT_LIBS) \
3840 $(SQUID_CPPUNIT_LA) \
3842 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3844 TESTS += testHeaders
3846 ## Special Universal .h dependency test script
3847 ## aborts if error encountered
3848 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3849 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3850 ## src/repl/ has no .h files and its own makefile.
3852 CLEANFILES += testHeaders