1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
10 AUTOMAKE_OPTIONS = subdir-objects
20 OutOfBoundsException.h \
41 LOADABLE_MODULES_SOURCES = \
47 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl
48 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl
52 AUTH_LIBS= auth/libauth.la
53 AUTH_ACL_LIBS= auth/libacls.la
54 check_PROGRAMS+= tests/testACLMaxUserIP
58 SUBDIRS += http ip icmp ident log ipc mgr security
59 DIST_SUBDIRS += http ip icmp ident log ipc mgr security
77 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
79 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
88 DIST_SUBDIRS += adaptation
94 $(top_builddir)/lib/libTrie/libTrie.a
95 ESI_LIBS = $(ESI_LOCAL_LIBS) \
103 DELAY_POOL_ALL_SOURCE = \
105 CompositePoolNode.h \
127 ClientDelayConfig.cc \
130 if ENABLE_DELAY_POOLS
131 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
136 if ENABLE_XPROF_STATS
137 XPROF_STATS_SOURCE = ProfStats.cc
143 HTCPSOURCE = htcp.cc htcp.h
147 LEAKFINDERSOURCE = LeakFinder.cc
153 UNLINKDSOURCE = unlinkd.h unlinkd.cc
156 UNLINKDSOURCE = unlinkd.h
165 if ENABLE_WIN32SPECIFIC
166 WIN32_SOURCE = win32.cc
167 WINSVC_SOURCE = WinSvc.cc
174 IPC_SOURCE = SquidIpc.h ipc_win32.cc
176 IPC_SOURCE = SquidIpc.h ipc.cc
179 AIO_WIN32_ALL_SOURCES = \
180 DiskIO/AIO/aio_win32.cc \
181 DiskIO/AIO/aio_win32.h
183 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
188 if ENABLE_WIN32_AIOPS
189 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
190 DiskIO/DiskThreads/CommIO.cc \
191 DiskIO/DiskThreads/CommIO.h
193 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
194 DiskIO/DiskThreads/CommIO.cc \
195 DiskIO/DiskThreads/CommIO.h
198 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
199 libMmapped.a libIpcIo.a
200 noinst_LIBRARIES = $(DISK_LIBS)
201 noinst_LTLIBRARIES = libsquid.la
204 DiskIO/DiskDaemon/diskd \
211 ## cfgen is used when building squid
212 ## ufsdump is a debug utility, it is possibly useful for end users with cache
213 ## corruption, but at this point we do not install it.
227 cf_gen_SOURCES = cf_gen.cc
228 nodist_cf_gen_HEADER = cf_gen_defines.cci
229 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
231 cf_gen.$(OBJEXT): cf_gen_defines.cci
233 ## cf_gen.cc needs src/cf_gen_defines.cci
234 AM_CPPFLAGS += -I$(top_builddir)/src
237 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
240 DiskIO/DiskIOModule.cc \
241 DiskIO/ReadRequest.cc \
242 DiskIO/ReadRequest.h \
243 DiskIO/WriteRequest.cc \
244 DiskIO/WriteRequest.h \
246 DiskIO/DiskIOStrategy.h \
247 DiskIO/IORequestor.h \
248 DiskIO/DiskIOModule.h \
251 DISKIO_GEN_SOURCE = \
252 DiskIO/DiskIOModules_gen.cc
254 DiskIO/DiskIOModules_gen.cc: Makefile
255 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
258 # common library for all the binaries and tests. This is kindof a catch all
259 # and smaller libraries split from this are encouraged. Using lt convenience
260 # libraries, dependencies should not be a problem either.
261 libsquid_la_SOURCES = \
272 $(ACL_REGISTRATION_SOURCES) \
286 NeighborTypeDomainList.h \
299 client_side_reply.cc \
300 client_side_reply.h \
301 client_side_request.cc \
302 client_side_request.h \
307 ClientRequestContext.h \
310 clientStreamForward.h \
311 CollapsedForwarding.cc \
312 CollapsedForwarding.h \
313 CompletionDispatcher.cc \
314 CompletionDispatcher.h \
328 $(DELAY_POOL_SOURCE) \
348 ExternalACLEntry.cc \
371 HierarchyLogEntry.h \
376 HttpHeaderFieldStat.h \
385 HttpHdrContRange.cc \
392 HttpHeaderFieldInfo.h \
417 $(LEAKFINDERSOURCE) \
443 $(XPROF_STATS_SOURCE) \
448 peer_proxy_negotiate_auth.h \
449 peer_proxy_negotiate_auth.cc \
469 SBufDetailedStats.h \
470 SBufDetailedStats.cc \
514 StoreMetaUnpacker.cc \
515 StoreMetaUnpacker.h \
516 $(STOREMETA_SOURCE) \
520 StoreSwapLogData.cc \
551 EXTRA_squid_SOURCES = \
552 $(AIO_WIN32_ALL_SOURCES) \
555 $(DELAY_POOL_ALL_SOURCE) \
565 $(WIN32_ALL_SOURCE) \
566 $(LOADABLE_MODULES_SOURCES)
569 client_side_request.cci \
589 CLEANFILES += $(BUILT_SOURCES)
591 nodist_squid_SOURCES = \
592 $(DISKIO_GEN_SOURCE) \
603 clients/libclients.la \
604 servers/libservers.la \
606 helper/libhelper.la \
607 http/libsquid-http.la \
608 parser/libsquid-parser.la \
610 security/libsecurity.la \
621 icmp/libicmp.la icmp/libicmp-core.la \
623 format/libformat.la \
635 $(top_builddir)/lib/libmisccontainers.la \
636 $(top_builddir)/lib/libmiscencoding.la \
637 $(top_builddir)/lib/libmiscutil.la \
644 squid_DEPENDENCIES = \
659 clients/libclients.la \
664 format/libformat.la \
667 servers/libservers.la
669 if ENABLE_LOADABLE_MODULES
670 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
671 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
672 squid_LDFLAGS = -export-dynamic -dlopen force
673 ## when static module linking is supported and enabled:
674 ## squid_LDFLAGS = -all-static -dlopen self
676 ## LTDL headers require their local include path...
677 AM_CPPFLAGS += $(INCLTDL)
680 ## Kerberos libraries require their include path...
681 AM_CPPFLAGS += $(KRB5INCS)
684 unlinkd_SOURCES = unlinkd_daemon.cc
689 recv_announce_SOURCES = recv-announce.cc
691 ## What requires what..
692 ## many things want ACLChecklist.cc
693 ## ACLChecklist.cc wants AuthUserRequest.cc
694 ## ACLChecklist.cc wants AuthScheme.cc
695 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
696 ## ACLProxyAuth.cc wants ACLUserData
697 ## ACLProxyAuth.cc wants ACLRegexData
698 ## cache_cf.cc wants $(AUTH_LIBS)
699 ## cache_cf.cc wants Swapdir
700 ## cache_cf.cc wants AnyP::PortCfg
701 ## client_side wants client_db
702 ## client_db wants SNMP_SOURCE
703 ## snmp_core wants ACLStringData
704 ## SwapDir wants ConfigOption
705 ## tools.cc wants ip/libip.la
706 ## client_side.cc wants ip/libip.la
707 ## libbase.la wants cbdata.*
708 ## libbase.la wants MemBuf.*
722 tests/stub_StoreMeta.cc \
723 StoreMetaUnpacker.cc \
730 helper/ChildConfig.h \
731 tests/stub_HelperChildConfig.cc \
758 ufsdump_DEPENDENCIES = \
774 nodist_ufsdump_SOURCES = \
779 squid.conf.documented \
804 include $(srcdir)/tests/Stub.list
813 mk-string-arrays.pl \
814 mk-string-arrays.awk \
821 $(AIO_WIN32_SOURCES) \
822 DiskIO/AIO/async_io.h \
823 DiskIO/AIO/AIODiskFile.cc \
824 DiskIO/AIO/AIODiskFile.h \
825 DiskIO/AIO/AIODiskIOStrategy.cc \
826 DiskIO/AIO/AIODiskIOStrategy.h \
827 DiskIO/AIO/AIODiskIOModule.cc \
828 DiskIO/AIO/AIODiskIOModule.h
830 libBlocking_a_SOURCES = \
831 DiskIO/Blocking/BlockingFile.cc \
832 DiskIO/Blocking/BlockingFile.h \
833 DiskIO/Blocking/BlockingIOStrategy.cc \
834 DiskIO/Blocking/BlockingIOStrategy.h \
835 DiskIO/Blocking/BlockingDiskIOModule.cc \
836 DiskIO/Blocking/BlockingDiskIOModule.h
838 libMmapped_a_SOURCES = \
839 DiskIO/Mmapped/MmappedFile.cc \
840 DiskIO/Mmapped/MmappedFile.h \
841 DiskIO/Mmapped/MmappedIOStrategy.cc \
842 DiskIO/Mmapped/MmappedIOStrategy.h \
843 DiskIO/Mmapped/MmappedDiskIOModule.cc \
844 DiskIO/Mmapped/MmappedDiskIOModule.h
846 libIpcIo_a_SOURCES = \
847 DiskIO/IpcIo/IpcIoFile.cc \
848 DiskIO/IpcIo/IpcIoFile.h \
849 DiskIO/IpcIo/IpcIoIOStrategy.cc \
850 DiskIO/IpcIo/IpcIoIOStrategy.h \
851 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
852 DiskIO/IpcIo/IpcIoDiskIOModule.h
854 libDiskDaemon_a_SOURCES = \
855 DiskIO/DiskDaemon/DiskdFile.cc \
856 DiskIO/DiskDaemon/DiskdFile.h \
857 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
858 DiskIO/DiskDaemon/DiskdIOStrategy.h \
859 DiskIO/DiskDaemon/diomsg.h \
860 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
861 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
862 DiskIO/DiskDaemon/DiskdAction.cc \
863 DiskIO/DiskDaemon/DiskdAction.h
865 libDiskThreads_a_SOURCES = \
867 DiskIO/DiskThreads/async_io.cc \
868 DiskIO/DiskThreads/DiskThreads.h \
869 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
870 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
871 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
872 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
873 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
874 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
876 EXTRA_libDiskThreads_a_SOURCES = \
877 DiskIO/DiskThreads/aiops.cc \
878 DiskIO/DiskThreads/aiops_win32.cc \
879 DiskIO/DiskThreads/CommIO.cc \
880 DiskIO/DiskThreads/CommIO.h
882 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
883 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
884 DiskIO_DiskDaemon_diskd_LDADD = \
885 $(top_builddir)/lib/libmisccontainers.la \
886 $(top_builddir)/lib/libmiscencoding.la \
887 $(top_builddir)/lib/libmiscutil.la \
892 DEFAULT_HTTP_PORT = 3128
893 DEFAULT_ICP_PORT = 3130
894 DEFAULT_PREFIX = $(prefix)
895 DEFAULT_CONFIG_DIR = $(sysconfdir)
896 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
897 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
898 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
899 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
900 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
901 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
902 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
903 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
904 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
905 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
906 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
907 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
908 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
909 DEFAULT_ICON_DIR = $(datadir)/icons
910 DEFAULT_ERROR_DIR = $(datadir)/errors
912 # Make location configure settings available to the code
913 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
915 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
917 globals.cc: globals.h mk-globals-c.awk
918 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
920 ## Generate files containing string arrays for various enums....
921 hier_code.cc: hier_code.h mk-string-arrays.awk
922 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
924 err_type.cc: err_type.h mk-string-arrays.awk
925 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
927 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
928 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
930 LogTags.cc: LogTags.h mk-string-arrays.awk
931 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
933 lookup_t.cc: lookup_t.h mk-string-arrays.awk
934 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
936 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
937 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
939 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
940 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
943 ## other generated files...
945 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
946 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
948 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
949 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
951 ## If autodependency works well this is not needed anymore
952 cache_cf.o: cf_parser.cci
954 # cf_gen builds the configuration files.
955 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
956 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
958 # squid.conf.default is built by cf_gen when making cf_parser.cci
959 squid.conf.default squid.conf.documented: cf_parser.cci
962 cf_parser.cci: cf.data cf_gen$(EXEEXT)
963 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
965 # The cf_gen_defines.cci is auto-generated and does not exist when the
966 # dependencies computed. We need to add its include files (autoconf.h) here
967 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
968 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
971 ## FIXME: generate a sed command file from configure. Then this doesn't
972 ## depend on the Makefile.
973 cf.data: cf.data.pre Makefile
975 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
976 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
977 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
978 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
979 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
980 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
981 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
982 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
983 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
984 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
985 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
986 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
987 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
988 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
989 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
990 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
991 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
992 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
993 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
994 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
995 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
996 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
997 < $(srcdir)/cf.data.pre >$@
999 repl_modules.cc: repl_modules.sh Makefile
1000 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1002 include $(top_srcdir)/doc/manuals/Substitute.am
1004 squid.8: $(srcdir)/squid.8.in Makefile
1005 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1008 EXTRA_DIST += squid.8.in
1009 CLEANFILES += squid.8
1011 install-data-local: install-sysconfDATA install-dataDATA
1012 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1013 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1015 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1016 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1018 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1019 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1021 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1022 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1024 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1025 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1026 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1027 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1028 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1029 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1030 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1032 uninstall-local: squid.conf.default
1033 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1034 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1036 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1037 DiskIO/DiskIOModules_gen.cc \
1040 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1041 cp $(top_srcdir)/test-suite/test_tools.cc .
1043 # stock tools for unit tests - library independent versions of dlink_list
1045 # globals.cc is needed by test_tools.cc.
1046 # Neither of these should be disted from here.
1053 tests/testBoilerplate \
1054 tests/testCacheManager \
1058 tests/testEventLoop \
1059 tests/test_http_range \
1060 tests/testHttp1Parser \
1061 tests/testHttpReply \
1062 tests/testHttpRequest \
1067 tests/testSBufList \
1068 tests/testConfigParser \
1072 check_PROGRAMS += tests/testRock
1075 check_PROGRAMS += tests/testUfs
1078 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1079 TESTS += $(check_PROGRAMS)
1081 ### Template for new Unit Test Program
1082 ## - add tests/testX to check_PROGRAMS above.
1083 ## - copy template below and substitue X for class name
1084 ## - add other component .(h|cc) files needed to link and run tests
1086 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1088 #tests_testX_SOURCES=\
1093 #nodist_tests_testX_SOURCES=\
1095 #tests_testX_LDFLAGS = $(LIBADD_DL)
1096 #tests_testX_LDADD=\
1097 # $(SQUID_CPPUNIT_LIBS) \
1098 # $(SQUID_CPPUNIT_LA) \
1100 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1103 # - add other component .(h|cc) files needed to link and run tests
1104 tests_testHttpReply_SOURCES=\
1108 tests/stub_ETag.cc \
1110 tests/stub_fatal.cc \
1113 HttpHeaderFieldStat.h \
1117 HttpHdrContRange.cc \
1118 HttpHdrContRange.h \
1122 HttpHdrScTarget.cc \
1127 HttpHeaderFieldInfo.h \
1129 HttpHeaderTools.cc \
1148 SBufDetailedStats.h \
1149 tests/stub_SBufDetailedStats.cc \
1154 tests/stub_access_log.cc \
1157 tests/stub_cache_cf.cc \
1158 tests/stub_cache_manager.cc \
1159 tests/stub_comm.cc \
1160 tests/stub_debug.cc \
1161 tests/stub_errorpage.cc \
1162 tests/stub_event.cc \
1164 tests/stub_HelperChildConfig.cc \
1165 tests/stub_libformat.cc \
1166 tests/stub_libauth.cc \
1167 tests/stub_libcomm.cc \
1168 tests/stub_libmgr.cc \
1169 tests/stub_libsslsquid.cc \
1173 tests/stub_StatHist.cc \
1175 tests/stub_store.cc \
1176 tests/stub_store_stats.cc \
1178 tests/stub_tools.cc \
1179 tests/stub_HttpRequest.cc \
1180 tests/testHttpReply.cc \
1181 tests/testHttpReply.h \
1182 tests/stub_time.cc \
1186 nodist_tests_testHttpReply_SOURCES=\
1188 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1189 tests_testHttpReply_LDADD=\
1191 http/libsquid-http.la \
1192 parser/libsquid-parser.la \
1201 $(top_builddir)/lib/libmisccontainers.la \
1202 $(top_builddir)/lib/libmiscencoding.la \
1203 $(top_builddir)/lib/libmiscutil.la \
1204 $(SQUID_CPPUNIT_LIBS) \
1205 $(SQUID_CPPUNIT_LA) \
1210 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1212 tests_testACLMaxUserIP_SOURCES= \
1215 tests/stub_CollapsedForwarding.cc \
1218 DiskIO/ReadRequest.cc \
1219 DiskIO/WriteRequest.cc \
1220 tests/stub_ETag.cc \
1223 tests/stub_fatal.cc \
1229 HttpHeaderFieldInfo.h \
1231 HttpHeaderTools.cc \
1232 HttpHdrContRange.cc \
1234 HttpHeaderFieldStat.h \
1239 HttpHdrScTarget.cc \
1257 tests/stub_StatHist.cc \
1260 SBufDetailedStats.h \
1261 tests/stub_SBufDetailedStats.cc \
1265 tests/stub_StoreMeta.cc \
1266 StoreMetaUnpacker.cc \
1267 StoreSwapLogData.cc \
1272 tests/stub_SwapDir.cc \
1276 tests/stub_access_log.cc \
1279 tests/stub_cache_cf.cc \
1280 tests/stub_client_side.cc \
1281 tests/stub_debug.cc \
1282 tests/stub_DelayId.cc \
1283 tests/stub_DiskIOModule.cc \
1284 tests/stub_errorpage.cc \
1287 tests/stub_HttpRequest.cc \
1288 tests/stub_HttpReply.cc \
1289 tests/stub_ipc_TypedMsgHdr.cc \
1290 tests/stub_libauth.cc \
1291 tests/stub_libcomm.cc \
1292 tests/stub_libformat.cc \
1293 tests/stub_libsslsquid.cc \
1294 tests/stub_MemObject.cc \
1295 tests/stub_MemStore.cc \
1297 tests/stub_mime.cc \
1298 tests/stub_pconn.cc \
1299 tests/stub_Port.cc \
1301 tests/stub_store.cc \
1302 tests/stub_store_client.cc \
1304 tests/stub_store_rebuild.cc \
1305 tests/stub_store_stats.cc \
1306 tests/stub_store_swapout.cc \
1308 tests/stub_tools.cc \
1309 tests/stub_cache_manager.cc \
1310 tests/stub_UdsOp.cc \
1311 tests/testACLMaxUserIP.cc \
1312 tests/testACLMaxUserIP.h \
1313 tests/stub_time.cc \
1316 tests/stub_libmem.cc \
1320 nodist_tests_testACLMaxUserIP_SOURCES= \
1322 tests_testACLMaxUserIP_LDADD= \
1324 helper/libhelper.la \
1325 http/libsquid-http.la \
1326 parser/libsquid-parser.la \
1338 $(top_builddir)/lib/libmisccontainers.la \
1339 $(top_builddir)/lib/libmiscencoding.la \
1340 $(top_builddir)/lib/libmiscutil.la \
1344 $(SQUID_CPPUNIT_LIBS) \
1348 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1349 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1350 ## $(SQUID_CPPUNIT_LA)
1352 ## a demonstration test that does nothing but shows the salient points
1353 ## involved in writing tests.
1354 tests_testBoilerplate_SOURCES = \
1355 tests/testBoilerplate.cc \
1356 tests/testBoilerplate.h \
1357 tests/stub_debug.cc \
1359 nodist_tests_testBoilerplate_SOURCES = \
1360 tests/stub_cbdata.cc \
1361 tests/stub_MemBuf.cc \
1363 tests_testBoilerplate_LDADD= \
1364 $(SQUID_CPPUNIT_LIBS) \
1369 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1370 tests_testBoilerplate_DEPENDENCIES = \
1373 ## Tests of the CacheManager module.
1374 tests_testCacheManager_SOURCES = \
1381 tests/testCacheManager.cc \
1382 tests/testCacheManager.h \
1383 tests/stub_main_cc.cc \
1384 tests/stub_ipc_Forwarder.cc \
1385 tests/stub_store_stats.cc \
1386 tests/stub_EventLoop.cc \
1399 tests/stub_CacheDigest.cc \
1401 tests/stub_carp.cc \
1407 client_side_reply.cc \
1408 client_side_request.cc \
1411 tests/stub_CollapsedForwarding.cc \
1418 $(DELAY_POOL_SOURCE) \
1426 tests/stub_ETag.cc \
1429 ExternalACLEntry.cc \
1431 tests/stub_fatal.cc \
1452 HttpHeaderFieldInfo.h \
1454 HttpHeaderTools.cc \
1455 HttpHeaderFieldStat.h \
1459 HttpHdrContRange.cc \
1462 HttpHdrScTarget.cc \
1473 tests/stub_libsecurity.cc \
1494 peer_proxy_negotiate_auth.h \
1495 peer_proxy_negotiate_auth.cc \
1498 peer_sourcehash.cc \
1504 tests/stub_redirect.cc \
1509 SBufDetailedStats.h \
1510 tests/stub_SBufDetailedStats.cc \
1522 tests/stub_libauth_acls.cc \
1523 tests/stub_libauth.cc \
1524 tests/stub_StatHist.cc \
1530 tests/stub_store_digest.cc \
1543 StoreFileSystem.cc \
1545 tests/stub_StoreMeta.cc \
1546 StoreMetaUnpacker.cc \
1547 StoreSwapLogData.cc \
1551 tests/stub_tunnel.cc \
1552 tests/stub_SwapDir.cc \
1559 tests/stub_wccp2.cc \
1561 tests/stub_whois.cc \
1566 nodist_tests_testCacheManager_SOURCES = \
1568 $(DISKIO_GEN_SOURCE)
1569 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1570 tests_testCacheManager_LDADD = \
1572 clients/libclients.la \
1573 servers/libservers.la \
1575 helper/libhelper.la \
1576 http/libsquid-http.la \
1577 parser/libsquid-parser.la \
1588 icmp/libicmp.la icmp/libicmp-core.la \
1590 format/libformat.la \
1594 $(ADAPTATION_LIBS) \
1602 $(top_builddir)/lib/libmisccontainers.la \
1603 $(top_builddir)/lib/libmiscencoding.la \
1604 $(top_builddir)/lib/libmiscutil.la \
1607 $(SQUID_CPPUNIT_LIBS) \
1608 $(SQUID_CPPUNIT_LA) \
1613 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1614 tests_testCacheManager_DEPENDENCIES = \
1618 tests_testDiskIO_SOURCES = \
1620 tests/stub_CacheDigest.cc \
1624 tests/stub_CollapsedForwarding.cc \
1627 $(DELAY_POOL_SOURCE) \
1631 tests/stub_ETag.cc \
1635 tests/stub_fatal.cc \
1644 HttpHeaderFieldStat.h \
1648 HttpHdrContRange.cc \
1650 HttpHdrScTarget.cc \
1652 HttpHeaderFieldInfo.h \
1654 HttpHeaderTools.cc \
1679 tests/stub_StatHist.cc \
1682 SBufDetailedStats.h \
1683 tests/stub_SBufDetailedStats.cc \
1684 StoreFileSystem.cc \
1686 tests/stub_StoreMeta.cc \
1687 StoreMetaUnpacker.cc \
1688 StoreSwapLogData.cc \
1700 tests/stub_SwapDir.cc \
1703 tests/stub_access_log.cc \
1707 tests/stub_cache_cf.cc \
1708 tests/stub_cache_manager.cc \
1709 tests/stub_client_db.cc \
1710 client_side_request.h \
1711 tests/stub_client_side_request.cc \
1712 tests/stub_debug.cc \
1713 tests/stub_errorpage.cc \
1714 tests/stub_helper.cc \
1715 tests/stub_HelperChildConfig.cc \
1716 tests/stub_HttpRequest.cc \
1717 tests/stub_http.cc \
1720 tests/stub_internal.cc \
1722 tests/stub_ipcache.cc \
1723 tests/stub_libauth_acls.cc \
1724 tests/stub_libauth.cc \
1725 tests/stub_libeui.cc \
1726 tests/stub_libformat.cc \
1727 tests/stub_libicmp.cc \
1728 tests/stub_MemStore.cc \
1730 tests/stub_mime.cc \
1731 tests/stub_neighbors.cc \
1732 tests/stub_pconn.cc \
1733 tests/stub_Port.cc \
1734 tests/stub_stat.cc \
1735 tests/stub_store_client.cc \
1736 tests/stub_store_stats.cc \
1738 tests/stub_store_rebuild.cc \
1739 tests/stub_UdsOp.cc \
1740 tests/testDiskIO.cc \
1741 tests/testDiskIO.h \
1742 tests/testStoreSupport.cc \
1743 tests/testStoreSupport.h \
1744 tests/stub_time.cc \
1752 nodist_tests_testDiskIO_SOURCES= \
1754 $(DISKIO_GEN_SOURCE) \
1758 tests_testDiskIO_LDADD = \
1760 http/libsquid-http.la \
1761 parser/libsquid-parser.la \
1782 $(top_builddir)/lib/libmisccontainers.la \
1783 $(top_builddir)/lib/libmiscencoding.la \
1784 $(top_builddir)/lib/libmiscutil.la \
1787 $(SQUID_CPPUNIT_LIBS) \
1792 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1793 tests_testDiskIO_DEPENDENCIES = \
1798 tests_testDns_SOURCES= \
1799 tests/testRFC1035.cc \
1801 nodist_tests_testDns_SOURCES= \
1802 tests/stub_debug.cc \
1803 tests/stub_SBuf.cc \
1805 tests_testDns_LDADD= \
1808 $(top_builddir)/lib/libmiscutil.la \
1811 $(SQUID_CPPUNIT_LA) \
1812 $(SQUID_CPPUNIT_LIBS)
1813 tests_testDns_LDFLAGS= $(LIBADD_DL)
1815 tests_testEvent_SOURCES = \
1819 tests/stub_CacheDigest.cc \
1830 tests/stub_carp.cc \
1836 client_side_reply.cc \
1837 client_side_request.cc \
1840 tests/stub_CollapsedForwarding.cc \
1848 $(DELAY_POOL_SOURCE) \
1856 tests/stub_ETag.cc \
1861 ExternalACLEntry.cc \
1864 tests/stub_fatal.cc \
1884 HttpHeaderFieldInfo.h \
1886 HttpHeaderTools.cc \
1887 HttpHeaderFieldStat.h \
1891 HttpHdrContRange.cc \
1894 HttpHdrScTarget.cc \
1910 tests/stub_libsecurity.cc \
1915 tests/stub_libmem.cc \
1932 peer_proxy_negotiate_auth.h \
1933 peer_proxy_negotiate_auth.cc \
1936 peer_sourcehash.cc \
1940 tests/stub_redirect.cc \
1947 SBufDetailedStats.h \
1948 tests/stub_SBufDetailedStats.cc \
1964 tests/stub_store_digest.cc \
1977 StoreFileSystem.cc \
1979 tests/stub_StoreMeta.cc \
1980 StoreMetaUnpacker.cc \
1981 StoreSwapLogData.cc \
1983 tests/stub_SwapDir.cc \
1984 tests/CapturingStoreEntry.h \
1985 tests/testEvent.cc \
1987 tests/stub_main_cc.cc \
1988 tests/stub_ipc_Forwarder.cc \
1989 tests/stub_libauth_acls.cc \
1990 tests/stub_libauth.cc \
1991 tests/stub_libeui.cc \
1992 tests/stub_store_stats.cc \
1997 tests/stub_tunnel.cc \
2004 tests/stub_wccp2.cc \
2006 tests/stub_whois.cc \
2010 nodist_tests_testEvent_SOURCES = \
2012 $(DISKIO_GEN_SOURCE)
2013 tests_testEvent_LDADD = \
2015 clients/libclients.la \
2016 servers/libservers.la \
2018 helper/libhelper.la \
2019 http/libsquid-http.la \
2020 parser/libsquid-parser.la \
2030 icmp/libicmp.la icmp/libicmp-core.la \
2033 format/libformat.la \
2035 $(ADAPTATION_LIBS) \
2038 $(top_builddir)/lib/libmisccontainers.la \
2039 $(top_builddir)/lib/libmiscencoding.la \
2040 $(top_builddir)/lib/libmiscutil.la \
2048 $(SQUID_CPPUNIT_LIBS) \
2049 $(SQUID_CPPUNIT_LA) \
2054 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2055 tests_testEvent_DEPENDENCIES = \
2059 ## Tests of the EventLoop module.
2060 tests_testEventLoop_SOURCES = \
2064 tests/stub_CacheDigest.cc \
2075 tests/stub_carp.cc \
2081 client_side_reply.cc \
2082 client_side_request.cc \
2085 tests/stub_CollapsedForwarding.cc \
2093 $(DELAY_POOL_SOURCE) \
2101 tests/stub_ETag.cc \
2106 ExternalACLEntry.cc \
2109 tests/stub_fatal.cc \
2129 HttpHeaderFieldInfo.h \
2131 HttpHeaderTools.cc \
2132 HttpHeaderFieldStat.h \
2136 HttpHdrContRange.cc \
2139 HttpHdrScTarget.cc \
2155 tests/stub_libsecurity.cc \
2162 tests/stub_libmem.cc \
2177 peer_proxy_negotiate_auth.h \
2178 peer_proxy_negotiate_auth.cc \
2181 peer_sourcehash.cc \
2186 tests/stub_redirect.cc \
2190 SBufDetailedStats.h \
2191 tests/stub_SBufDetailedStats.cc \
2207 tests/stub_store_digest.cc \
2220 StoreFileSystem.cc \
2222 tests/stub_StoreMeta.cc \
2223 StoreMetaUnpacker.cc \
2224 StoreSwapLogData.cc \
2228 tests/stub_SwapDir.cc \
2229 tests/testEventLoop.cc \
2230 tests/testEventLoop.h \
2231 tests/stub_main_cc.cc \
2232 tests/stub_ipc_Forwarder.cc \
2233 tests/stub_libauth_acls.cc \
2234 tests/stub_libauth.cc \
2235 tests/stub_libeui.cc \
2236 tests/stub_store_stats.cc \
2241 tests/stub_tunnel.cc \
2248 tests/stub_wccp2.cc \
2250 tests/stub_whois.cc \
2254 nodist_tests_testEventLoop_SOURCES = \
2256 $(DISKIO_GEN_SOURCE)
2257 tests_testEventLoop_LDADD = \
2259 clients/libclients.la \
2260 servers/libservers.la \
2262 helper/libhelper.la \
2263 http/libsquid-http.la \
2264 parser/libsquid-parser.la \
2274 icmp/libicmp.la icmp/libicmp-core.la \
2277 format/libformat.la \
2279 $(ADAPTATION_LIBS) \
2282 $(top_builddir)/lib/libmisccontainers.la \
2283 $(top_builddir)/lib/libmiscencoding.la \
2284 $(top_builddir)/lib/libmiscutil.la \
2292 $(SQUID_CPPUNIT_LIBS) \
2293 $(SQUID_CPPUNIT_LA) \
2298 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2299 tests_testEventLoop_DEPENDENCIES = \
2303 tests_test_http_range_SOURCES = \
2316 tests/stub_CacheDigest.cc \
2318 tests/stub_carp.cc \
2324 client_side_reply.cc \
2325 client_side_request.cc \
2328 tests/stub_CollapsedForwarding.cc \
2336 $(DELAY_POOL_SOURCE) \
2344 tests/stub_ETag.cc \
2348 tests/stub_libauth.cc \
2349 tests/stub_fatal.cc \
2367 HttpHeaderFieldStat.h \
2371 HttpHdrContRange.cc \
2374 HttpHdrScTarget.cc \
2377 HttpHeaderFieldInfo.h \
2379 HttpHeaderTools.cc \
2395 tests/stub_libsecurity.cc \
2402 tests/stub_libmem.cc \
2416 peer_proxy_negotiate_auth.h \
2417 peer_proxy_negotiate_auth.cc \
2420 peer_sourcehash.cc \
2425 tests/stub_redirect.cc \
2430 SBufDetailedStats.h \
2431 tests/stub_SBufDetailedStats.cc \
2447 tests/stub_store_digest.cc \
2460 StoreFileSystem.cc \
2462 tests/stub_StoreMeta.cc \
2463 StoreMetaUnpacker.cc \
2464 StoreSwapLogData.cc \
2468 tests/stub_SwapDir.cc \
2470 tests/test_http_range.cc \
2471 tests/stub_external_acl.cc \
2472 tests/stub_ipc_Forwarder.cc \
2473 tests/stub_libeui.cc \
2474 tests/stub_main_cc.cc \
2475 tests/stub_MemStore.cc \
2476 tests/stub_store_stats.cc \
2477 tests/stub_EventLoop.cc \
2481 tests/stub_tunnel.cc \
2487 tests/stub_wccp2.cc \
2489 tests/stub_whois.cc \
2493 nodist_tests_test_http_range_SOURCES = \
2495 $(DISKIO_GEN_SOURCE)
2496 tests_test_http_range_LDADD = \
2498 clients/libclients.la \
2499 servers/libservers.la \
2501 helper/libhelper.la \
2502 http/libsquid-http.la \
2503 parser/libsquid-parser.la \
2508 parser/libsquid-parser.la \
2512 icmp/libicmp.la icmp/libicmp-core.la \
2515 format/libformat.la \
2519 $(ADAPTATION_LIBS) \
2527 $(top_builddir)/lib/libmisccontainers.la \
2528 $(top_builddir)/lib/libmiscencoding.la \
2529 $(top_builddir)/lib/libmiscutil.la \
2532 $(SQUID_CPPUNIT_LIBS) \
2533 $(SQUID_CPPUNIT_LA) \
2538 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2539 tests_test_http_range_DEPENDENCIES = \
2542 tests_testHttp1Parser_SOURCES = \
2546 tests/stub_MemObject.cc \
2547 tests/stub_libmem.cc \
2554 tests/stub_SBufDetailedStats.cc \
2555 tests/stub_cache_cf.cc \
2556 tests/stub_cache_manager.cc \
2557 tests/stub_comm.cc \
2558 tests/stub_cbdata.cc \
2559 tests/stub_debug.cc \
2560 tests/stub_event.cc \
2561 tests/stub_HelperChildConfig.cc \
2562 tests/stub_stmem.cc \
2563 tests/stub_store.cc \
2564 tests/stub_store_stats.cc \
2566 tests/stub_tools.cc \
2567 tests/testHttp1Parser.cc \
2568 tests/testHttp1Parser.h \
2569 tests/stub_time.cc \
2572 nodist_tests_testHttp1Parser_SOURCES = \
2574 tests_testHttp1Parser_LDADD= \
2575 http/libsquid-http.la \
2576 parser/libsquid-parser.la \
2581 $(top_builddir)/lib/libmiscutil.la \
2582 $(SQUID_CPPUNIT_LIBS) \
2585 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2586 tests_testHttp1Parser_DEPENDENCIES = \
2589 ## Tests of the HttpRequest module.
2590 tests_testHttpRequest_SOURCES = \
2595 tests/stub_libmem.cc \
2597 tests/testHttpRequest.h \
2598 tests/testHttpRequest.cc \
2599 tests/testHttpRequestMethod.h \
2600 tests/testHttpRequestMethod.cc \
2601 tests/stub_DiskIOModule.cc \
2602 tests/stub_libauth.cc \
2603 tests/stub_main_cc.cc \
2604 tests/stub_ipc_Forwarder.cc \
2605 tests/stub_libeui.cc \
2606 tests/stub_store_stats.cc \
2607 tests/stub_EventLoop.cc \
2619 tests/stub_CacheDigest.cc \
2623 tests/stub_carp.cc \
2629 client_side_reply.cc \
2630 client_side_request.cc \
2633 tests/stub_CollapsedForwarding.cc \
2640 $(DELAY_POOL_SOURCE) \
2647 tests/stub_ETag.cc \
2649 ExternalACLEntry.cc \
2651 tests/stub_fatal.cc \
2669 HttpHeaderFieldInfo.h \
2671 HttpHeaderTools.cc \
2672 HttpHeaderFieldStat.h \
2676 HttpHdrContRange.cc \
2679 HttpHdrScTarget.cc \
2690 tests/stub_libsecurity.cc \
2711 peer_proxy_negotiate_auth.h \
2712 peer_proxy_negotiate_auth.cc \
2715 peer_sourcehash.cc \
2721 tests/stub_libauth_acls.cc \
2722 tests/stub_redirect.cc \
2727 SBufDetailedStats.h \
2728 tests/stub_SBufDetailedStats.cc \
2744 tests/stub_store_digest.cc \
2757 StoreFileSystem.cc \
2759 tests/stub_StoreMeta.cc \
2760 StoreMetaUnpacker.cc \
2761 StoreSwapLogData.cc \
2768 tests/stub_tunnel.cc \
2769 tests/stub_SwapDir.cc \
2775 tests/stub_wccp2.cc \
2777 tests/stub_whois.cc \
2782 nodist_tests_testHttpRequest_SOURCES = \
2784 tests_testHttpRequest_LDADD = \
2786 clients/libclients.la \
2787 servers/libservers.la \
2788 helper/libhelper.la \
2790 http/libsquid-http.la \
2795 parser/libsquid-parser.la \
2800 parser/libsquid-parser.la \
2806 icmp/libicmp.la icmp/libicmp-core.la \
2809 format/libformat.la \
2811 $(ADAPTATION_LIBS) \
2813 $(top_builddir)/lib/libmisccontainers.la \
2814 $(top_builddir)/lib/libmiscencoding.la \
2815 $(top_builddir)/lib/libmiscutil.la \
2819 $(SQUID_CPPUNIT_LIBS) \
2820 $(SQUID_CPPUNIT_LA) \
2825 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2826 tests_testHttpRequest_DEPENDENCIES = \
2830 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2831 ## first line - what we are testing.
2832 tests_testStore_SOURCES= \
2834 tests/stub_CacheDigest.cc \
2837 tests/stub_CollapsedForwarding.cc \
2840 $(DELAY_POOL_SOURCE) \
2843 DiskIO/ReadRequest.cc \
2844 DiskIO/WriteRequest.cc \
2849 tests/stub_fatal.cc \
2852 HttpHeaderFieldStat.h \
2856 HttpHdrContRange.cc \
2859 HttpHdrScTarget.cc \
2860 HttpHeaderFieldInfo.h \
2862 HttpHeaderTools.cc \
2894 tests/stub_StoreMeta.cc \
2895 StoreMetaUnpacker.cc \
2896 StoreSwapLogData.cc \
2900 SBufDetailedStats.h \
2901 tests/stub_SBufDetailedStats.cc \
2906 tests/CapturingStoreEntry.h \
2908 tests/stub_access_log.cc \
2912 tests/stub_cache_cf.cc \
2913 tests/stub_cache_manager.cc \
2914 tests/stub_client_side_request.cc \
2915 tests/stub_comm.cc \
2916 tests/stub_debug.cc \
2917 tests/stub_DiskIOModule.cc \
2918 tests/stub_errorpage.cc \
2922 tests/stub_helper.cc \
2923 tests/stub_HelperChildConfig.cc \
2924 tests/stub_http.cc \
2925 tests/stub_libauth.cc \
2926 tests/stub_libeui.cc \
2927 tests/stub_libformat.cc \
2928 tests/stub_libsslsquid.cc \
2931 tests/stub_HttpReply.cc \
2932 tests/stub_HttpRequest.cc \
2933 tests/stub_libcomm.cc \
2934 tests/stub_MemStore.cc \
2936 tests/stub_mime.cc \
2937 tests/stub_Port.cc \
2938 tests/stub_stat.cc \
2939 tests/stub_store_client.cc \
2940 tests/stub_store_stats.cc \
2942 tests/stub_store_rebuild.cc \
2943 tests/stub_store_swapout.cc \
2946 tests/stub_tools.cc \
2947 tests/stub_UdsOp.cc \
2948 tests/testStore.cc \
2950 tests/testStoreEntryStream.cc \
2951 tests/testStoreEntryStream.h \
2952 tests/testStoreController.cc \
2953 tests/testStoreController.h \
2954 tests/testStoreHashIndex.cc \
2955 tests/testStoreHashIndex.h \
2956 tests/testStoreSupport.cc \
2957 tests/testStoreSupport.h \
2958 tests/TestSwapDir.cc \
2959 tests/TestSwapDir.h \
2960 tests/stub_time.cc \
2965 nodist_tests_testStore_SOURCES= \
2971 tests_testStore_LDADD= \
2973 http/libsquid-http.la \
2974 parser/libsquid-parser.la \
2987 $(top_builddir)/lib/libmisccontainers.la \
2988 $(top_builddir)/lib/libmiscencoding.la \
2989 $(top_builddir)/lib/libmiscutil.la \
2992 $(SQUID_CPPUNIT_LIBS) \
2997 tests_testStore_LDFLAGS = $(LIBADD_DL)
2998 tests_testStore_DEPENDENCIES = \
3001 ## string needs mem.cc.
3002 ## mem.cc needs ClientInfo.h
3003 ## libsquid pulls in SquidConfig and children. stub them.
3004 tests_testString_SOURCES = \
3006 tests/stub_libmem.cc \
3010 SBufDetailedStats.h \
3011 tests/stub_SBufDetailedStats.cc \
3012 tests/testString.cc \
3013 tests/testString.h \
3016 tests/stub_cache_cf.cc \
3017 tests/stub_cache_manager.cc \
3018 tests/stub_cbdata.cc \
3019 tests/stub_debug.cc \
3020 tests/stub_HelperChildConfig.cc \
3022 tests/stub_tools.cc \
3023 tests/stub_time.cc \
3026 nodist_tests_testString_SOURCES = \
3028 tests_testString_LDADD = \
3032 $(top_builddir)/lib/libmiscutil.la \
3034 $(SQUID_CPPUNIT_LIBS) \
3038 tests_testString_LDFLAGS = $(LIBADD_DL)
3039 tests_testString_DEPENDENCIES = \
3058 tests_testUfs_SOURCES = \
3061 tests/stub_cache_manager.cc \
3062 tests/stub_client_db.cc \
3063 tests/stub_CollapsedForwarding.cc \
3064 tests/stub_HelperChildConfig.cc \
3067 tests/stub_ipcache.cc \
3068 tests/stub_libeui.cc \
3069 tests/stub_libicmp.cc \
3070 tests/stub_MemStore.cc \
3071 tests/stub_neighbors.cc \
3072 tests/stub_pconn.cc \
3073 tests/stub_Port.cc \
3074 tests/stub_UdsOp.cc \
3076 tests/stub_internal.cc \
3077 tests/stub_libformat.cc \
3078 tests/stub_stat.cc \
3080 tests/stub_store_rebuild.cc \
3081 tests/stub_store_stats.cc \
3083 tests/stub_fatal.cc \
3108 StoreSwapLogData.cc \
3110 StoreMetaUnpacker.cc \
3111 $(STOREMETA_SOURCE) \
3112 StoreFileSystem.cc \
3119 $(DELAY_POOL_SOURCE) \
3121 tests/stub_CacheDigest.cc \
3137 tests/stub_cache_cf.cc \
3138 tests/stub_helper.cc \
3141 SBufDetailedStats.h \
3142 tests/stub_SBufDetailedStats.cc \
3144 tests/stub_debug.cc \
3145 tests/stub_client_side_request.cc \
3146 tests/stub_http.cc \
3147 tests/stub_libauth.cc \
3151 tests/stub_mime.cc \
3152 HttpHeaderFieldInfo.h \
3154 HttpHeaderTools.cc \
3159 HttpHdrContRange.cc \
3160 HttpHeaderFieldStat.h \
3165 HttpHdrScTarget.cc \
3175 tests/stub_errorpage.cc \
3176 tests/stub_HttpRequest.cc \
3178 tests/stub_access_log.cc \
3181 tests/stub_store_client.cc \
3183 tests/stub_tools.cc \
3184 tests/testStoreSupport.cc \
3185 tests/testStoreSupport.h \
3191 nodist_tests_testUfs_SOURCES = \
3193 $(DISKIO_GEN_SOURCE) \
3197 tests_testUfs_LDADD = \
3198 http/libsquid-http.la \
3199 parser/libsquid-parser.la \
3222 $(top_builddir)/lib/libmisccontainers.la \
3223 $(top_builddir)/lib/libmiscencoding.la \
3224 $(top_builddir)/lib/libmiscutil.la \
3227 $(SQUID_CPPUNIT_LIBS) \
3231 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3232 tests_testUfs_DEPENDENCIES = \
3235 check_PROGRAMS += testRefCount
3236 testRefCount_SOURCES= \
3239 tests/stub_cbdata.cc \
3240 tests/stub_debug.cc \
3241 tests/stub_MemBuf.cc \
3242 tests/testRefCount.cc
3243 testRefCount_LDADD = \
3245 $(top_builddir)/lib/libmiscutil.la \
3249 tests_testRock_SOURCES = \
3252 CollapsedForwarding.h \
3253 CollapsedForwarding.cc \
3254 tests/stub_CacheDigest.cc \
3270 HttpHeaderFieldStat.h \
3274 HttpHdrContRange.cc \
3277 HttpHdrScTarget.cc \
3280 HttpHeaderFieldInfo.h \
3282 HttpHeaderTools.cc \
3303 tests/stub_StatHist.cc \
3306 tests/stub_stat.cc \
3308 StoreFileSystem.cc \
3310 StoreMetaUnpacker.cc \
3311 $(STOREMETA_SOURCE) \
3312 StoreSwapLogData.cc \
3320 SBufDetailedStats.h \
3321 tests/stub_SBufDetailedStats.cc \
3330 tests/testStoreSupport.cc \
3331 tests/testStoreSupport.h \
3333 tests/stub_access_log.cc \
3336 tests/stub_cache_cf.cc \
3338 tests/stub_cache_manager.cc \
3339 tests/stub_client_db.cc \
3340 tests/stub_client_side_request.cc \
3341 tests/stub_debug.cc \
3342 tests/stub_errorpage.cc \
3343 tests/stub_HelperChildConfig.cc \
3344 tests/stub_http.cc \
3345 tests/stub_HttpRequest.cc \
3346 tests/stub_libauth.cc \
3349 tests/stub_ipcache.cc \
3350 tests/stub_libeui.cc \
3351 tests/stub_libformat.cc \
3352 tests/stub_libicmp.cc \
3353 tests/stub_libmgr.cc \
3354 tests/stub_MemStore.cc \
3356 tests/stub_mime.cc \
3357 tests/stub_neighbors.cc \
3358 tests/stub_Port.cc \
3359 tests/stub_pconn.cc \
3360 tests/stub_store_client.cc \
3362 tests/stub_store_rebuild.cc \
3363 tests/stub_store_stats.cc \
3365 tests/stub_tools.cc \
3370 $(DELAY_POOL_SOURCE) \
3373 nodist_tests_testRock_SOURCES = \
3374 $(DISKIO_GEN_SOURCE) \
3379 tests_testRock_LDADD = \
3380 http/libsquid-http.la \
3381 parser/libsquid-parser.la \
3399 $(top_builddir)/lib/libmisccontainers.la \
3400 $(top_builddir)/lib/libmiscencoding.la \
3401 $(top_builddir)/lib/libmiscutil.la \
3404 $(SQUID_CPPUNIT_LIBS) \
3408 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3409 tests_testRock_DEPENDENCIES = \
3412 ## Tests of the URL module.
3413 ## TODO: Trim this down once the insanity is over.
3414 tests_testURL_SOURCES = \
3423 tests/stub_cache_manager.cc \
3425 tests/stub_CacheDigest.cc \
3429 tests/stub_carp.cc \
3435 client_side_reply.cc \
3436 client_side_request.cc \
3439 tests/stub_CollapsedForwarding.cc \
3446 $(DELAY_POOL_SOURCE) \
3449 DiskIO/ReadRequest.cc \
3450 DiskIO/WriteRequest.cc \
3458 ExternalACLEntry.cc \
3460 tests/stub_fatal.cc \
3478 HttpHeaderFieldStat.h \
3482 HttpHdrContRange.cc \
3485 HttpHdrScTarget.cc \
3488 HttpHeaderFieldInfo.h \
3490 HttpHeaderTools.cc \
3506 tests/stub_libsecurity.cc \
3513 tests/stub_libmem.cc \
3528 peer_proxy_negotiate_auth.h \
3529 peer_proxy_negotiate_auth.cc \
3532 peer_sourcehash.cc \
3536 tests/stub_redirect.cc \
3541 SBufDetailedStats.h \
3542 tests/stub_SBufDetailedStats.cc \
3552 tests/stub_StatHist.cc \
3558 tests/stub_store_digest.cc \
3571 StoreFileSystem.cc \
3573 tests/stub_StoreMeta.cc \
3574 StoreMetaUnpacker.cc \
3575 StoreSwapLogData.cc \
3580 tests/stub_SwapDir.cc \
3582 tests/stub_debug.cc \
3583 tests/stub_DiskIOModule.cc \
3584 tests/stub_libauth_acls.cc \
3585 tests/stub_libauth.cc \
3586 tests/stub_main_cc.cc \
3587 tests/stub_ipc_Forwarder.cc \
3588 tests/stub_store_stats.cc \
3591 tests/testUriScheme.cc \
3592 tests/testUriScheme.h \
3593 tests/stub_time.cc \
3594 tests/stub_EventLoop.cc \
3597 tests/stub_tunnel.cc \
3602 tests/stub_wccp2.cc \
3604 tests/stub_whois.cc \
3609 nodist_tests_testURL_SOURCES = \
3611 tests_testURL_LDADD = \
3613 clients/libclients.la \
3614 servers/libservers.la \
3615 helper/libhelper.la \
3616 http/libsquid-http.la \
3618 parser/libsquid-parser.la \
3633 icmp/libicmp.la icmp/libicmp-core.la \
3637 format/libformat.la \
3640 $(ADAPTATION_LIBS) \
3642 $(top_builddir)/lib/libmisccontainers.la \
3643 $(top_builddir)/lib/libmiscencoding.la \
3644 $(top_builddir)/lib/libmiscutil.la \
3647 $(SQUID_CPPUNIT_LIBS) \
3648 $(SQUID_CPPUNIT_LA) \
3653 tests_testURL_LDFLAGS = $(LIBADD_DL)
3654 tests_testURL_DEPENDENCIES = \
3658 tests_testSBuf_SOURCES= \
3661 tests/SBufFindTest.h \
3662 tests/SBufFindTest.cc \
3664 SBufDetailedStats.h \
3665 tests/stub_SBufDetailedStats.cc \
3667 tests/stub_time.cc \
3668 tests/stub_debug.cc \
3669 tests/stub_fatal.cc \
3670 tests/stub_HelperChildConfig.cc \
3671 tests/stub_libmem.cc \
3672 tests/stub_cache_cf.cc \
3673 tests/stub_cache_manager.cc \
3674 tests/stub_cbdata.cc \
3675 tests/stub_store.cc \
3676 tests/stub_store_stats.cc \
3677 tests/stub_tools.cc \
3680 tests/stub_wordlist.cc \
3681 tests/stub_MemBuf.cc
3682 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3683 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3684 tests_testSBuf_LDADD=\
3689 $(top_builddir)/lib/libmiscutil.la \
3691 $(SQUID_CPPUNIT_LIBS) \
3694 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3696 tests_testSBufList_SOURCES= \
3697 tests/testSBufList.h \
3698 tests/testSBufList.cc \
3703 SBufDetailedStats.h \
3704 tests/stub_SBufDetailedStats.cc \
3706 tests/stub_time.cc \
3707 tests/stub_MemObject.cc \
3708 tests/stub_cbdata.cc \
3709 tests/stub_comm.cc \
3710 tests/stub_debug.cc \
3711 tests/stub_event.cc \
3712 tests/stub_fatal.cc \
3714 tests/stub_HelperChildConfig.cc \
3715 tests/stub_libmem.cc \
3716 tests/stub_cache_cf.cc \
3717 tests/stub_cache_manager.cc \
3718 tests/stub_store.cc \
3719 tests/stub_stmem.cc \
3720 tests/stub_store_stats.cc \
3721 tests/stub_tools.cc \
3725 tests/stub_wordlist.cc \
3726 tests/stub_MemBuf.cc
3727 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3728 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3729 tests_testSBufList_LDADD=\
3734 $(top_builddir)/lib/libmiscutil.la \
3735 $(SQUID_CPPUNIT_LIBS) \
3738 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3740 tests_testConfigParser_SOURCES = \
3742 tests/stub_libmem.cc \
3743 tests/stub_MemBuf.cc \
3744 tests/stub_time.cc \
3746 SBufDetailedStats.h \
3747 tests/stub_SBufDetailedStats.cc \
3751 tests/stub_fatal.cc \
3752 tests/testConfigParser.cc \
3753 tests/testConfigParser.h \
3756 tests/stub_cache_cf.cc \
3757 tests/stub_cache_manager.cc \
3758 tests/stub_cbdata.cc \
3759 tests/stub_debug.cc \
3760 tests/stub_HelperChildConfig.cc \
3762 tests/stub_tools.cc \
3765 nodist_tests_testConfigParser_SOURCES = \
3767 tests_testConfigParser_LDADD = \
3771 $(top_builddir)/lib/libmiscutil.la \
3773 $(SQUID_CPPUNIT_LIBS) \
3777 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3778 tests_testConfigParser_DEPENDENCIES = \
3781 tests_testStatHist_SOURCES = \
3782 tests/stub_cbdata.cc \
3784 tests/stub_fatal.cc \
3785 tests/stub_MemBuf.cc \
3787 SBufDetailedStats.h \
3788 tests/stub_SBufDetailedStats.cc \
3792 tests/stub_cache_manager.cc \
3793 tests/stub_comm.cc \
3794 tests/stub_debug.cc \
3795 tests/stub_DelayId.cc \
3796 tests/stub_HelperChildConfig.cc \
3797 tests/stub_libmem.cc \
3798 tests/stub_MemObject.cc \
3800 tests/stub_mime.cc \
3801 tests/stub_pconn.cc \
3802 tests/stub_stmem.cc \
3804 tests/stub_store.cc \
3805 tests/stub_store_stats.cc \
3808 tests/stub_tools.cc \
3809 tests/testStatHist.cc \
3810 tests/testStatHist.h
3811 nodist_tests_testStatHist_SOURCES = \
3813 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3814 tests_testStatHist_LDADD = \
3816 $(top_builddir)/lib/libmiscutil.la \
3817 $(top_builddir)/lib/libmisccontainers.la \
3818 $(SQUID_CPPUNIT_LIBS) \
3819 $(SQUID_CPPUNIT_LA) \
3821 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3823 TESTS += testHeaders
3825 ## Special Universal .h dependency test script
3826 ## aborts if error encountered
3827 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3828 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3829 ## src/repl/ has no .h files and its own makefile.
3831 CLEANFILES += testHeaders