2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
21 OutOfBoundsException.h \
42 LOADABLE_MODULES_SOURCES = \
48 SUBDIRS = base anyp comm eui acl format fs repl
49 DIST_SUBDIRS = base anyp comm eui acl format fs repl
53 AUTH_LIBS= auth/libauth.la
54 AUTH_ACL_LIBS= auth/libacls.la
55 check_PROGRAMS+= tests/testACLMaxUserIP
59 SUBDIRS += http ip icmp ident log ipc mgr
60 DIST_SUBDIRS += http ip icmp ident log ipc mgr
79 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
81 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
90 DIST_SUBDIRS += adaptation
96 $(top_builddir)/lib/libTrie/libTrie.a
97 ESI_LIBS = $(ESI_LOCAL_LIBS) \
105 DELAY_POOL_ALL_SOURCE = \
107 CompositePoolNode.h \
129 ClientDelayConfig.cc \
132 if ENABLE_DELAY_POOLS
133 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
138 if ENABLE_XPROF_STATS
139 XPROF_STATS_SOURCE = ProfStats.cc
145 HTCPSOURCE = htcp.cc htcp.h
149 LEAKFINDERSOURCE = LeakFinder.cc
155 UNLINKDSOURCE = unlinkd.h unlinkd.cc
158 UNLINKDSOURCE = unlinkd.h
167 if ENABLE_WIN32SPECIFIC
168 WIN32_SOURCE = win32.cc
169 WINSVC_SOURCE = WinSvc.cc
176 IPC_SOURCE = SquidIpc.h ipc_win32.cc
178 IPC_SOURCE = SquidIpc.h ipc.cc
181 AIO_WIN32_ALL_SOURCES = \
182 DiskIO/AIO/aio_win32.cc \
183 DiskIO/AIO/aio_win32.h
185 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
191 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
192 DiskIO/DiskThreads/CommIO.cc \
193 DiskIO/DiskThreads/CommIO.h
195 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
196 DiskIO/DiskThreads/CommIO.cc \
197 DiskIO/DiskThreads/CommIO.h
200 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
201 libMmapped.a libIpcIo.a
202 noinst_LIBRARIES = $(DISK_LIBS)
203 noinst_LTLIBRARIES = libsquid.la
206 DiskIO/DiskDaemon/diskd \
213 ## cfgen is used when building squid
214 ## ufsdump is a debug utility, it is possibly useful for end users with cache
215 ## corruption, but at this point we do not install it.
229 cf_gen_SOURCES = cf_gen.cc
230 nodist_cf_gen_HEADER = cf_gen_defines.cci
231 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
233 cf_gen.$(OBJEXT): cf_gen_defines.cci
235 ## cf_gen.cc needs src/cf_gen_defines.cci
236 INCLUDES += -I$(top_builddir)/src
239 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
242 DiskIO/DiskIOModule.cc \
243 DiskIO/ReadRequest.cc \
244 DiskIO/ReadRequest.h \
245 DiskIO/WriteRequest.cc \
246 DiskIO/WriteRequest.h \
248 DiskIO/DiskIOStrategy.h \
249 DiskIO/IORequestor.h \
250 DiskIO/DiskIOModule.h \
253 DISKIO_GEN_SOURCE = \
254 DiskIO/DiskIOModules_gen.cc
256 DiskIO/DiskIOModules_gen.cc: Makefile
257 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
260 # common library for all the binaries and tests. This is kindof a catch all
261 # and smaller libraries split from this are encouraged. Using lt convenience
262 # libraries, dependencies should not be a problem either.
263 libsquid_la_SOURCES = \
275 $(ACL_REGISTRATION_SOURCES) \
289 NeighborTypeDomainList.h \
290 CachePeerDomainList.h \
297 ChunkedCodingParser.cc \
298 ChunkedCodingParser.h \
304 client_side_reply.cc \
305 client_side_reply.h \
306 client_side_request.cc \
307 client_side_request.h \
312 ClientRequestContext.h \
315 CompletionDispatcher.cc \
316 CompletionDispatcher.h \
330 $(DELAY_POOL_SOURCE) \
350 ExternalACLEntry.cc \
374 HelperChildConfig.h \
375 HelperChildConfig.cc \
379 HierarchyLogEntry.h \
384 HttpHeaderFieldStat.h \
393 HttpHdrContRange.cc \
400 HttpHeaderFieldInfo.h \
416 HttpRequestMethod.cc \
417 HttpRequestMethod.h \
429 $(LEAKFINDERSOURCE) \
460 $(XPROF_STATS_SOURCE) \
465 peer_proxy_negotiate_auth.h \
466 peer_proxy_negotiate_auth.cc \
527 StoreMetaUnpacker.cc \
528 StoreMetaUnpacker.h \
529 $(STOREMETA_SOURCE) \
533 StoreSwapLogData.cc \
566 EXTRA_squid_SOURCES = \
567 $(AIO_WIN32_ALL_SOURCES) \
570 $(DELAY_POOL_ALL_SOURCE) \
580 $(WIN32_ALL_SOURCE) \
581 $(LOADABLE_MODULES_SOURCES)
584 client_side_request.cci \
606 CLEANFILES += $(BUILT_SOURCES)
608 nodist_squid_SOURCES = \
609 $(DISKIO_GEN_SOURCE) \
629 http/libsquid-http.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 = \
670 format/libformat.la \
674 if USE_LOADABLE_MODULES
675 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
676 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
677 squid_LDFLAGS = -export-dynamic -dlopen force
678 ## when static module linking is supported and enabled:
679 ## squid_LDFLAGS = -all-static -dlopen self
681 ## LTDL headers require their local include path...
682 INCLUDES += $(INCLTDL)
685 ## Kerberos libraries require their include path...
686 INCLUDES += $(KRB5INCS)
689 unlinkd_SOURCES = unlinkd_daemon.cc
694 recv_announce_SOURCES = recv-announce.cc
696 ## What requires what..
697 ## many things want ACLChecklist.cc
698 ## ACLChecklist.cc wants AuthUserRequest.cc
699 ## ACLChecklist.cc wants AuthScheme.cc
700 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
701 ## ACLProxyAuth.cc wants ACLUserData
702 ## ACLProxyAuth.cc wants ACLRegexData
703 ## cache_cf.cc wants $(AUTH_LIBS)
704 ## cache_cf.cc wants Swapdir
705 ## cache_cf.cc wants AnyP::PortCfg
706 ## client_side wants client_db
707 ## client_db wants SNMP_SOURCE
708 ## snmp_core wants ACLStringData
709 ## SwapDir wants ConfigOption
710 ## tools.cc wants ip/libip.la
711 ## client_side.cc wants ip/libip.la
712 ## mem.cc wants ClientInfo.h
713 ## libbase.la wants cbdata.*
714 ## libbase.la wants MemBuf.*
730 tests/stub_StoreMeta.cc \
731 StoreMetaUnpacker.cc \
738 HelperChildConfig.h \
739 tests/stub_HelperChildConfig.cc \
740 HttpRequestMethod.cc \
766 ufsdump_DEPENDENCIES = \
782 nodist_ufsdump_SOURCES = \
787 squid.conf.documented \
812 include $(srcdir)/tests/Stub.list
821 mk-string-arrays.pl \
822 mk-string-arrays.awk \
829 $(AIO_WIN32_SOURCES) \
830 DiskIO/AIO/async_io.h \
831 DiskIO/AIO/AIODiskFile.cc \
832 DiskIO/AIO/AIODiskFile.h \
833 DiskIO/AIO/AIODiskIOStrategy.cc \
834 DiskIO/AIO/AIODiskIOStrategy.h \
835 DiskIO/AIO/AIODiskIOModule.cc \
836 DiskIO/AIO/AIODiskIOModule.h
838 libBlocking_a_SOURCES = \
839 DiskIO/Blocking/BlockingFile.cc \
840 DiskIO/Blocking/BlockingFile.h \
841 DiskIO/Blocking/BlockingIOStrategy.cc \
842 DiskIO/Blocking/BlockingIOStrategy.h \
843 DiskIO/Blocking/BlockingDiskIOModule.cc \
844 DiskIO/Blocking/BlockingDiskIOModule.h
846 libMmapped_a_SOURCES = \
847 DiskIO/Mmapped/MmappedFile.cc \
848 DiskIO/Mmapped/MmappedFile.h \
849 DiskIO/Mmapped/MmappedIOStrategy.cc \
850 DiskIO/Mmapped/MmappedIOStrategy.h \
851 DiskIO/Mmapped/MmappedDiskIOModule.cc \
852 DiskIO/Mmapped/MmappedDiskIOModule.h
854 libIpcIo_a_SOURCES = \
855 DiskIO/IpcIo/IpcIoFile.cc \
856 DiskIO/IpcIo/IpcIoFile.h \
857 DiskIO/IpcIo/IpcIoIOStrategy.cc \
858 DiskIO/IpcIo/IpcIoIOStrategy.h \
859 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
860 DiskIO/IpcIo/IpcIoDiskIOModule.h
862 libDiskDaemon_a_SOURCES = \
863 DiskIO/DiskDaemon/DiskdFile.cc \
864 DiskIO/DiskDaemon/DiskdFile.h \
865 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
866 DiskIO/DiskDaemon/DiskdIOStrategy.h \
867 DiskIO/DiskDaemon/diomsg.h \
868 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
869 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
870 DiskIO/DiskDaemon/DiskdAction.cc \
871 DiskIO/DiskDaemon/DiskdAction.h
873 libDiskThreads_a_SOURCES = \
875 DiskIO/DiskThreads/async_io.cc \
876 DiskIO/DiskThreads/DiskThreads.h \
877 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
878 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
879 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
880 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
881 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
882 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
884 EXTRA_libDiskThreads_a_SOURCES = \
885 DiskIO/DiskThreads/aiops.cc \
886 DiskIO/DiskThreads/aiops_win32.cc \
887 DiskIO/DiskThreads/CommIO.cc \
888 DiskIO/DiskThreads/CommIO.h
890 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
891 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
892 DiskIO_DiskDaemon_diskd_LDADD = \
893 $(top_builddir)/lib/libmisccontainers.la \
894 $(top_builddir)/lib/libmiscencoding.la \
895 $(top_builddir)/lib/libmiscutil.la \
900 DEFAULT_HTTP_PORT = 3128
901 DEFAULT_ICP_PORT = 3130
902 DEFAULT_PREFIX = $(prefix)
903 DEFAULT_CONFIG_DIR = $(sysconfdir)
904 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
905 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
906 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
907 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
908 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
909 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
910 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
911 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
912 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
913 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
914 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
915 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_ICON_DIR = $(datadir)/icons
918 DEFAULT_ERROR_DIR = $(datadir)/errors
920 # Make location configure settings available to the code
921 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
923 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
925 globals.cc: globals.h mk-globals-c.awk
926 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
928 ## Generate files containing string arrays for various enums....
929 hier_code.cc: hier_code.h mk-string-arrays.awk
930 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
932 err_type.cc: err_type.h mk-string-arrays.awk
933 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
935 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
936 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
938 LogTags.cc: LogTags.h mk-string-arrays.awk
939 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
941 lookup_t.cc: lookup_t.h mk-string-arrays.awk
942 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
944 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
945 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
947 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
948 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
951 ## other generated files...
953 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
954 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
956 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
957 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
959 ## If autodependency works well this is not needed anymore
960 cache_cf.o: cf_parser.cci
962 # cf_gen builds the configuration files.
963 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
964 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
966 # squid.conf.default is built by cf_gen when making cf_parser.cci
967 squid.conf.default squid.conf.documented: cf_parser.cci
970 cf_parser.cci: cf.data cf_gen$(EXEEXT)
971 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
973 # The cf_gen_defines.cci is auto-generated and does not exist when the
974 # dependencies computed. We need to add its include files (autoconf.h) here
975 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
976 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
979 ## FIXME: generate a sed command file from configure. Then this doesn't
980 ## depend on the Makefile.
981 cf.data: cf.data.pre Makefile
983 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
984 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
985 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
986 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
987 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
988 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
989 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
990 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
991 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
992 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
993 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
994 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
995 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
996 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
997 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
998 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
999 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1000 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1001 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1002 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1003 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1004 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1005 < $(srcdir)/cf.data.pre >$@
1007 repl_modules.cc: repl_modules.sh Makefile
1008 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1010 include $(top_srcdir)/doc/manuals/Substitute.am
1012 squid.8: $(srcdir)/squid.8.in Makefile
1013 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1016 EXTRA_DIST += squid.8.in
1017 CLEANFILES += squid.8
1019 install-data-local: install-sysconfDATA install-dataDATA
1020 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1021 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1023 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1024 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1026 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1027 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1029 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1030 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1032 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1033 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1034 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1035 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1036 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1037 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1038 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1040 uninstall-local: squid.conf.default
1041 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1042 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1044 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1045 DiskIO/DiskIOModules_gen.cc \
1048 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1049 cp $(top_srcdir)/test-suite/test_tools.cc .
1051 # stock tools for unit tests - library independent versions of dlink_list
1053 # globals.cc is needed by test_tools.cc.
1054 # Neither of these should be disted from here.
1061 tests/testBoilerplate \
1062 tests/testCacheManager \
1065 tests/testEventLoop \
1066 tests/test_http_range \
1067 tests/testHttpParser \
1068 tests/testHttpReply \
1069 tests/testHttpRequest \
1074 tests/testConfigParser \
1075 tests/testStatHist \
1079 check_PROGRAMS += tests/testRock
1082 check_PROGRAMS += tests/testUfs
1085 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1086 TESTS += $(check_PROGRAMS)
1088 ### Template for new Unit Test Program
1089 ## - add tests/testX to check_PROGRAMS above.
1090 ## - copy template below and substitue X for class name
1091 ## - add other component .(h|cc) files needed to link and run tests
1093 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1095 #tests_testX_SOURCES=\
1098 # tests/testMain.cc \
1101 #nodist_tests_testX_SOURCES=\
1103 #tests_testX_LDFLAGS = $(LIBADD_DL)
1104 #tests_testX_LDADD=\
1105 # $(SQUID_CPPUNIT_LIBS) \
1106 # $(SQUID_CPPUNIT_LA) \
1108 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1111 # - add other component .(h|cc) files needed to link and run tests
1112 tests_testHttpReply_SOURCES=\
1116 tests/stub_ETag.cc \
1118 tests/stub_fatal.cc \
1121 HttpHeaderFieldStat.h \
1125 HttpHdrContRange.cc \
1126 HttpHdrContRange.h \
1130 HttpHdrScTarget.cc \
1135 HttpHeaderFieldInfo.h \
1137 HttpHeaderTools.cc \
1161 tests/stub_access_log.cc \
1164 tests/stub_cache_cf.cc \
1165 tests/stub_cache_manager.cc \
1166 tests/stub_debug.cc \
1167 tests/stub_errorpage.cc \
1168 tests/stub_HelperChildConfig.cc \
1169 tests/stub_libformat.cc \
1170 tests/stub_libauth.cc \
1174 tests/stub_StatHist.cc \
1176 tests/stub_store.cc \
1177 tests/stub_store_stats.cc \
1179 tests/stub_tools.cc \
1180 tests/stub_HttpRequest.cc \
1181 tests/testHttpReply.cc \
1182 tests/testHttpReply.h \
1184 tests/stub_time.cc \
1189 nodist_tests_testHttpReply_SOURCES=\
1191 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1192 tests_testHttpReply_LDADD=\
1193 http/libsquid-http.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) \
1209 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1211 tests_testACLMaxUserIP_SOURCES= \
1216 DiskIO/ReadRequest.cc \
1217 DiskIO/WriteRequest.cc \
1218 tests/stub_ETag.cc \
1221 tests/stub_fatal.cc \
1224 HelperChildConfig.h \
1225 HelperChildConfig.cc \
1229 HttpHeaderFieldInfo.h \
1231 HttpHeaderTools.cc \
1232 HttpHdrContRange.cc \
1234 HttpHeaderFieldStat.h \
1239 HttpHdrScTarget.cc \
1241 HttpRequestMethod.cc \
1259 tests/stub_StatHist.cc \
1264 tests/stub_StoreMeta.cc \
1265 StoreMetaUnpacker.cc \
1266 StoreSwapLogData.cc \
1271 tests/stub_SwapDir.cc \
1274 tests/stub_access_log.cc \
1277 tests/stub_cache_cf.cc \
1278 tests/stub_client_side.cc \
1279 tests/stub_debug.cc \
1280 tests/stub_DelayId.cc \
1281 tests/stub_DiskIOModule.cc \
1282 tests/stub_errorpage.cc \
1285 tests/stub_HttpRequest.cc \
1286 tests/stub_HttpReply.cc \
1287 tests/stub_ipc_TypedMsgHdr.cc \
1288 tests/stub_libauth.cc \
1289 tests/stub_libcomm.cc \
1290 tests/stub_libformat.cc \
1291 tests/stub_libsslsquid.cc \
1292 tests/stub_MemObject.cc \
1293 tests/stub_MemStore.cc \
1295 tests/stub_mime.cc \
1296 tests/stub_pconn.cc \
1297 tests/stub_Port.cc \
1299 tests/stub_store.cc \
1301 tests/stub_store_rebuild.cc \
1302 tests/stub_store_stats.cc \
1303 tests/stub_store_swapout.cc \
1305 tests/stub_tools.cc \
1306 tests/stub_cache_manager.cc \
1307 tests/stub_UdsOp.cc \
1308 tests/testACLMaxUserIP.cc \
1309 tests/testACLMaxUserIP.h \
1311 tests/stub_time.cc \
1321 nodist_tests_testACLMaxUserIP_SOURCES= \
1323 tests_testACLMaxUserIP_LDADD= \
1324 http/libsquid-http.la \
1337 $(top_builddir)/lib/libmisccontainers.la \
1338 $(top_builddir)/lib/libmiscencoding.la \
1339 $(top_builddir)/lib/libmiscutil.la \
1342 $(SQUID_CPPUNIT_LIBS) \
1346 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1347 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1348 ## $(SQUID_CPPUNIT_LA)
1350 ## a demonstration test that does nothing but shows the salient points
1351 ## involved in writing tests.
1352 tests_testBoilerplate_SOURCES = \
1353 tests/testBoilerplate.cc \
1355 tests/testBoilerplate.h \
1357 nodist_tests_testBoilerplate_SOURCES = \
1359 tests_testBoilerplate_LDADD= \
1360 $(SQUID_CPPUNIT_LIBS) \
1364 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1365 tests_testBoilerplate_DEPENDENCIES = \
1368 ## Tests of the CacheManager module.
1369 tests_testCacheManager_SOURCES = \
1377 HttpRequestMethod.cc \
1381 tests/testCacheManager.cc \
1382 tests/testCacheManager.h \
1384 tests/stub_main_cc.cc \
1385 tests/stub_ipc_Forwarder.cc \
1386 tests/stub_store_stats.cc \
1397 tests/stub_CacheDigest.cc \
1399 tests/stub_carp.cc \
1401 ChunkedCodingParser.cc \
1406 client_side_reply.cc \
1407 client_side_request.cc \
1416 $(DELAY_POOL_SOURCE) \
1424 tests/stub_ETag.cc \
1427 ExternalACLEntry.cc \
1429 tests/stub_fatal.cc \
1445 HelperChildConfig.h \
1446 HelperChildConfig.cc \
1456 HttpHeaderFieldInfo.h \
1458 HttpHeaderTools.cc \
1459 HttpHeaderFieldStat.h \
1463 HttpHdrContRange.cc \
1466 HttpHdrScTarget.cc \
1498 peer_proxy_negotiate_auth.h \
1499 peer_proxy_negotiate_auth.cc \
1502 peer_sourcehash.cc \
1506 tests/stub_redirect.cc \
1523 tests/stub_libauth_acls.cc \
1524 tests/stub_libauth.cc \
1525 tests/stub_StatHist.cc \
1531 tests/stub_store_digest.cc \
1544 StoreFileSystem.cc \
1546 tests/stub_StoreMeta.cc \
1547 StoreMetaUnpacker.cc \
1548 StoreSwapLogData.cc \
1551 tests/stub_tunnel.cc \
1552 tests/stub_SwapDir.cc \
1560 tests/stub_wccp2.cc \
1562 tests/stub_whois.cc \
1567 nodist_tests_testCacheManager_SOURCES = \
1569 $(DISKIO_GEN_SOURCE)
1570 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1571 tests_testCacheManager_LDADD = \
1572 http/libsquid-http.la \
1583 icmp/libicmp.la icmp/libicmp-core.la \
1585 format/libformat.la \
1589 $(ADAPTATION_LIBS) \
1596 $(top_builddir)/lib/libmisccontainers.la \
1597 $(top_builddir)/lib/libmiscencoding.la \
1598 $(top_builddir)/lib/libmiscutil.la \
1600 $(SQUID_CPPUNIT_LIBS) \
1601 $(SQUID_CPPUNIT_LA) \
1606 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1607 tests_testCacheManager_DEPENDENCIES = \
1611 tests_testDiskIO_SOURCES = \
1613 tests/stub_CacheDigest.cc \
1619 $(DELAY_POOL_SOURCE) \
1623 tests/stub_ETag.cc \
1627 tests/stub_fatal.cc \
1636 HttpHeaderFieldStat.h \
1640 HttpHdrContRange.cc \
1642 HttpHdrScTarget.cc \
1644 HttpHeaderFieldInfo.h \
1646 HttpHeaderTools.cc \
1651 HttpRequestMethod.cc \
1675 tests/stub_StatHist.cc \
1677 StoreFileSystem.cc \
1679 tests/stub_StoreMeta.cc \
1680 StoreMetaUnpacker.cc \
1681 StoreSwapLogData.cc \
1693 tests/stub_SwapDir.cc \
1695 tests/stub_access_log.cc \
1699 tests/stub_cache_cf.cc \
1700 tests/stub_cache_manager.cc \
1701 tests/stub_client_db.cc \
1702 client_side_request.h \
1703 tests/stub_client_side_request.cc \
1704 tests/stub_debug.cc \
1705 tests/stub_errorpage.cc \
1706 tests/stub_helper.cc \
1707 tests/stub_HelperChildConfig.cc \
1708 tests/stub_HttpRequest.cc \
1709 tests/stub_http.cc \
1712 tests/stub_internal.cc \
1714 tests/stub_ipcache.cc \
1715 tests/stub_libauth_acls.cc \
1716 tests/stub_libauth.cc \
1717 tests/stub_libeui.cc \
1718 tests/stub_libformat.cc \
1719 tests/stub_libicmp.cc \
1720 tests/stub_MemStore.cc \
1722 tests/stub_mime.cc \
1723 tests/stub_pconn.cc \
1724 tests/stub_Port.cc \
1725 tests/stub_store_client.cc \
1726 tests/stub_store_stats.cc \
1728 tests/stub_store_rebuild.cc \
1729 tests/stub_UdsOp.cc \
1730 tests/testDiskIO.cc \
1731 tests/testDiskIO.h \
1733 tests/testStoreSupport.cc \
1734 tests/testStoreSupport.h \
1735 tests/stub_time.cc \
1744 nodist_tests_testDiskIO_SOURCES= \
1746 $(DISKIO_GEN_SOURCE) \
1750 tests_testDiskIO_LDADD = \
1751 http/libsquid-http.la \
1754 DnsLookupDetails.o \
1772 $(top_builddir)/lib/libmisccontainers.la \
1773 $(top_builddir)/lib/libmiscencoding.la \
1774 $(top_builddir)/lib/libmiscutil.la \
1776 $(SQUID_CPPUNIT_LIBS) \
1781 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1782 tests_testDiskIO_DEPENDENCIES = \
1787 ## Tests of the Even module.
1788 tests_testEvent_SOURCES = \
1792 tests/stub_CacheDigest.cc \
1801 tests/stub_carp.cc \
1803 ChunkedCodingParser.cc \
1808 client_side_reply.cc \
1809 client_side_request.cc \
1819 $(DELAY_POOL_SOURCE) \
1827 tests/stub_ETag.cc \
1832 ExternalACLEntry.cc \
1835 tests/stub_fatal.cc \
1850 HelperChildConfig.h \
1851 HelperChildConfig.cc \
1861 HttpHeaderFieldInfo.h \
1863 HttpHeaderTools.cc \
1864 HttpHeaderFieldStat.h \
1868 HttpHdrContRange.cc \
1871 HttpHdrScTarget.cc \
1879 HttpRequestMethod.cc \
1911 peer_proxy_negotiate_auth.h \
1912 peer_proxy_negotiate_auth.cc \
1915 peer_sourcehash.cc \
1919 tests/stub_redirect.cc \
1942 tests/stub_store_digest.cc \
1955 StoreFileSystem.cc \
1957 tests/stub_StoreMeta.cc \
1958 StoreMetaUnpacker.cc \
1959 StoreSwapLogData.cc \
1961 tests/stub_SwapDir.cc \
1962 tests/CapturingStoreEntry.h \
1963 tests/testEvent.cc \
1966 tests/stub_main_cc.cc \
1967 tests/stub_ipc_Forwarder.cc \
1968 tests/stub_libauth_acls.cc \
1969 tests/stub_libauth.cc \
1970 tests/stub_libeui.cc \
1971 tests/stub_store_stats.cc \
1975 tests/stub_tunnel.cc \
1983 tests/stub_wccp2.cc \
1985 tests/stub_whois.cc \
1989 nodist_tests_testEvent_SOURCES = \
1991 $(DISKIO_GEN_SOURCE)
1992 tests_testEvent_LDADD = \
1993 http/libsquid-http.la \
2003 icmp/libicmp.la icmp/libicmp-core.la \
2006 format/libformat.la \
2008 $(ADAPTATION_LIBS) \
2011 $(top_builddir)/lib/libmisccontainers.la \
2012 $(top_builddir)/lib/libmiscencoding.la \
2013 $(top_builddir)/lib/libmiscutil.la \
2020 $(SQUID_CPPUNIT_LIBS) \
2021 $(SQUID_CPPUNIT_LA) \
2026 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2027 tests_testEvent_DEPENDENCIES = \
2031 ## Tests of the EventLoop module.
2032 tests_testEventLoop_SOURCES = \
2036 tests/stub_CacheDigest.cc \
2045 tests/stub_carp.cc \
2047 ChunkedCodingParser.cc \
2052 client_side_reply.cc \
2053 client_side_request.cc \
2063 $(DELAY_POOL_SOURCE) \
2071 tests/stub_ETag.cc \
2076 ExternalACLEntry.cc \
2079 tests/stub_fatal.cc \
2094 HelperChildConfig.h \
2095 HelperChildConfig.cc \
2105 HttpHeaderFieldInfo.h \
2107 HttpHeaderTools.cc \
2108 HttpHeaderFieldStat.h \
2112 HttpHdrContRange.cc \
2115 HttpHdrScTarget.cc \
2123 HttpRequestMethod.cc \
2155 peer_proxy_negotiate_auth.h \
2156 peer_proxy_negotiate_auth.cc \
2159 peer_sourcehash.cc \
2164 tests/stub_redirect.cc \
2185 tests/stub_store_digest.cc \
2198 StoreFileSystem.cc \
2200 tests/stub_StoreMeta.cc \
2201 StoreMetaUnpacker.cc \
2202 StoreSwapLogData.cc \
2206 tests/stub_SwapDir.cc \
2207 tests/testEventLoop.cc \
2208 tests/testEventLoop.h \
2210 tests/stub_main_cc.cc \
2211 tests/stub_ipc_Forwarder.cc \
2212 tests/stub_libauth_acls.cc \
2213 tests/stub_libauth.cc \
2214 tests/stub_libeui.cc \
2215 tests/stub_store_stats.cc \
2219 tests/stub_tunnel.cc \
2227 tests/stub_wccp2.cc \
2229 tests/stub_whois.cc \
2233 nodist_tests_testEventLoop_SOURCES = \
2235 $(DISKIO_GEN_SOURCE)
2236 tests_testEventLoop_LDADD = \
2237 http/libsquid-http.la \
2247 icmp/libicmp.la icmp/libicmp-core.la \
2250 format/libformat.la \
2252 $(ADAPTATION_LIBS) \
2255 $(top_builddir)/lib/libmisccontainers.la \
2256 $(top_builddir)/lib/libmiscencoding.la \
2257 $(top_builddir)/lib/libmiscutil.la \
2264 $(SQUID_CPPUNIT_LIBS) \
2265 $(SQUID_CPPUNIT_LA) \
2270 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2271 tests_testEventLoop_DEPENDENCIES = \
2275 tests_test_http_range_SOURCES = \
2286 tests/stub_CacheDigest.cc \
2288 tests/stub_carp.cc \
2290 ChunkedCodingParser.cc \
2295 client_side_reply.cc \
2296 client_side_request.cc \
2306 $(DELAY_POOL_SOURCE) \
2314 tests/stub_ETag.cc \
2318 tests/stub_libauth.cc \
2319 tests/stub_fatal.cc \
2334 HelperChildConfig.h \
2335 HelperChildConfig.cc \
2343 HttpHeaderFieldStat.h \
2347 HttpHdrContRange.cc \
2350 HttpHdrScTarget.cc \
2353 HttpHeaderFieldInfo.h \
2355 HttpHeaderTools.cc \
2363 HttpRequestMethod.cc \
2394 peer_proxy_negotiate_auth.h \
2395 peer_proxy_negotiate_auth.cc \
2398 peer_sourcehash.cc \
2403 tests/stub_redirect.cc \
2424 tests/stub_store_digest.cc \
2437 StoreFileSystem.cc \
2439 tests/stub_StoreMeta.cc \
2440 StoreMetaUnpacker.cc \
2441 StoreSwapLogData.cc \
2445 tests/stub_SwapDir.cc \
2446 tests/test_http_range.cc \
2447 tests/stub_external_acl.cc \
2448 tests/stub_ipc_Forwarder.cc \
2449 tests/stub_libeui.cc \
2450 tests/stub_main_cc.cc \
2451 tests/stub_MemStore.cc \
2452 tests/stub_store_stats.cc \
2456 tests/stub_tunnel.cc \
2463 tests/stub_wccp2.cc \
2465 tests/stub_whois.cc \
2469 nodist_tests_test_http_range_SOURCES = \
2471 $(DISKIO_GEN_SOURCE)
2472 tests_test_http_range_LDADD = \
2473 http/libsquid-http.la \
2482 icmp/libicmp.la icmp/libicmp-core.la \
2485 format/libformat.la \
2489 $(ADAPTATION_LIBS) \
2496 $(top_builddir)/lib/libmisccontainers.la \
2497 $(top_builddir)/lib/libmiscencoding.la \
2498 $(top_builddir)/lib/libmiscutil.la \
2500 $(SQUID_CPPUNIT_LIBS) \
2501 $(SQUID_CPPUNIT_LA) \
2506 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2507 tests_test_http_range_DEPENDENCIES = \
2510 tests_testHttpParser_SOURCES = \
2521 tests/stub_cache_cf.cc \
2522 tests/stub_cache_manager.cc \
2523 tests/stub_debug.cc \
2524 tests/stub_event.cc \
2525 tests/stub_HelperChildConfig.cc \
2527 tests/stub_tools.cc \
2528 tests/testHttpParser.cc \
2529 tests/testHttpParser.h \
2531 tests/stub_time.cc \
2534 nodist_tests_testHttpParser_SOURCES = \
2536 tests_testHttpParser_LDADD= \
2537 http/libsquid-http.la \
2541 $(top_builddir)/lib/libmiscutil.la \
2542 $(SQUID_CPPUNIT_LIBS) \
2545 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2546 tests_testHttpParser_DEPENDENCIES = \
2549 ## Tests of the HttpRequest module.
2550 tests_testHttpRequest_SOURCES = \
2557 HttpRequestMethod.cc \
2561 tests/testHttpRequest.h \
2562 tests/testHttpRequest.cc \
2563 tests/testHttpRequestMethod.h \
2564 tests/testHttpRequestMethod.cc \
2566 tests/stub_DiskIOModule.cc \
2567 tests/stub_libauth.cc \
2568 tests/stub_main_cc.cc \
2569 tests/stub_ipc_Forwarder.cc \
2570 tests/stub_libeui.cc \
2571 tests/stub_store_stats.cc \
2583 tests/stub_CacheDigest.cc \
2585 tests/stub_carp.cc \
2587 ChunkedCodingParser.cc \
2592 client_side_reply.cc \
2593 client_side_request.cc \
2602 $(DELAY_POOL_SOURCE) \
2609 tests/stub_ETag.cc \
2611 ExternalACLEntry.cc \
2613 tests/stub_fatal.cc \
2626 HelperChildConfig.h \
2627 HelperChildConfig.cc \
2637 HttpHeaderFieldInfo.h \
2639 HttpHeaderTools.cc \
2640 HttpHeaderFieldStat.h \
2644 HttpHdrContRange.cc \
2647 HttpHdrScTarget.cc \
2679 peer_proxy_negotiate_auth.h \
2680 peer_proxy_negotiate_auth.cc \
2683 peer_sourcehash.cc \
2687 tests/stub_libauth_acls.cc \
2688 tests/stub_redirect.cc \
2709 tests/stub_store_digest.cc \
2722 StoreFileSystem.cc \
2724 tests/stub_StoreMeta.cc \
2725 StoreMetaUnpacker.cc \
2726 StoreSwapLogData.cc \
2732 tests/stub_tunnel.cc \
2733 tests/stub_SwapDir.cc \
2740 tests/stub_wccp2.cc \
2742 tests/stub_whois.cc \
2747 nodist_tests_testHttpRequest_SOURCES = \
2749 tests_testHttpRequest_LDADD = \
2762 icmp/libicmp.la icmp/libicmp-core.la \
2765 format/libformat.la \
2766 http/libsquid-http.la \
2768 $(ADAPTATION_LIBS) \
2771 $(top_builddir)/lib/libmisccontainers.la \
2772 $(top_builddir)/lib/libmiscencoding.la \
2773 $(top_builddir)/lib/libmiscutil.la \
2776 $(SQUID_CPPUNIT_LIBS) \
2777 $(SQUID_CPPUNIT_LA) \
2782 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2783 tests_testHttpRequest_DEPENDENCIES = \
2787 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2788 ## first line - what we are testing.
2789 tests_testStore_SOURCES= \
2791 tests/stub_CacheDigest.cc \
2796 $(DELAY_POOL_SOURCE) \
2799 DiskIO/ReadRequest.cc \
2800 DiskIO/WriteRequest.cc \
2805 tests/stub_fatal.cc \
2808 HttpHeaderFieldStat.h \
2812 HttpHdrContRange.cc \
2815 HttpHdrScTarget.cc \
2816 HttpHeaderFieldInfo.h \
2818 HttpHeaderTools.cc \
2822 HttpRequestMethod.cc \
2854 tests/stub_StoreMeta.cc \
2855 StoreMetaUnpacker.cc \
2856 StoreSwapLogData.cc \
2863 tests/CapturingStoreEntry.h \
2865 tests/stub_access_log.cc \
2869 tests/stub_cache_cf.cc \
2870 tests/stub_cache_manager.cc \
2871 tests/stub_client_side_request.cc \
2872 tests/stub_comm.cc \
2873 tests/stub_debug.cc \
2874 tests/stub_DiskIOModule.cc \
2875 tests/stub_errorpage.cc \
2879 tests/stub_helper.cc \
2880 tests/stub_HelperChildConfig.cc \
2881 tests/stub_http.cc \
2882 tests/stub_libauth.cc \
2883 tests/stub_libeui.cc \
2884 tests/stub_libformat.cc \
2887 tests/stub_HttpReply.cc \
2888 tests/stub_HttpRequest.cc \
2889 tests/stub_libcomm.cc \
2890 tests/stub_MemStore.cc \
2892 tests/stub_mime.cc \
2893 tests/stub_Port.cc \
2894 tests/stub_store_client.cc \
2895 tests/stub_store_stats.cc \
2897 tests/stub_store_rebuild.cc \
2898 tests/stub_store_swapout.cc \
2900 tests/stub_tools.cc \
2901 tests/stub_UdsOp.cc \
2903 tests/testStore.cc \
2905 tests/testStoreEntryStream.cc \
2906 tests/testStoreEntryStream.h \
2907 tests/testStoreController.cc \
2908 tests/testStoreController.h \
2909 tests/testStoreHashIndex.cc \
2910 tests/testStoreHashIndex.h \
2911 tests/testStoreSupport.cc \
2912 tests/testStoreSupport.h \
2913 tests/TestSwapDir.cc \
2914 tests/TestSwapDir.h \
2915 tests/stub_time.cc \
2921 nodist_tests_testStore_SOURCES= \
2927 tests_testStore_LDADD= \
2928 http/libsquid-http.la \
2941 $(top_builddir)/lib/libmisccontainers.la \
2942 $(top_builddir)/lib/libmiscencoding.la \
2943 $(top_builddir)/lib/libmiscutil.la \
2945 $(SQUID_CPPUNIT_LIBS) \
2948 DnsLookupDetails.o \
2951 tests_testStore_LDFLAGS = $(LIBADD_DL)
2952 tests_testStore_DEPENDENCIES = \
2955 ## string needs mem.cc.
2956 ## mem.cc needs ClientInfo.h
2957 ## libsquid pulls in SquidConfig and children. stub them.
2958 tests_testString_SOURCES = \
2965 tests/testString.cc \
2966 tests/testString.h \
2969 tests/stub_cache_cf.cc \
2970 tests/stub_cache_manager.cc \
2971 tests/stub_debug.cc \
2972 tests/stub_HelperChildConfig.cc \
2974 tests/stub_tools.cc \
2975 tests/stub_time.cc \
2978 nodist_tests_testString_SOURCES = \
2980 tests_testString_LDADD = \
2984 $(top_builddir)/lib/libmiscutil.la \
2986 $(SQUID_CPPUNIT_LIBS) \
2990 tests_testString_LDFLAGS = $(LIBADD_DL)
2991 tests_testString_DEPENDENCIES = \
3010 tests_testUfs_SOURCES = \
3014 tests/stub_cache_manager.cc \
3015 tests/stub_client_db.cc \
3016 tests/stub_HelperChildConfig.cc \
3019 tests/stub_libeui.cc \
3020 tests/stub_MemStore.cc \
3021 tests/stub_pconn.cc \
3022 tests/stub_Port.cc \
3023 tests/stub_UdsOp.cc \
3025 tests/stub_internal.cc \
3026 tests/stub_libformat.cc \
3028 tests/stub_store_rebuild.cc \
3029 tests/stub_store_stats.cc \
3031 tests/stub_fatal.cc \
3055 StoreSwapLogData.cc \
3057 StoreMetaUnpacker.cc \
3058 $(STOREMETA_SOURCE) \
3059 StoreFileSystem.cc \
3066 $(DELAY_POOL_SOURCE) \
3068 tests/stub_CacheDigest.cc \
3076 HttpRequestMethod.cc \
3085 tests/stub_cache_cf.cc \
3086 tests/stub_helper.cc \
3089 tests/stub_debug.cc \
3090 tests/stub_client_side_request.cc \
3091 tests/stub_http.cc \
3092 tests/stub_libauth.cc \
3096 tests/stub_mime.cc \
3097 HttpHeaderFieldInfo.h \
3099 HttpHeaderTools.cc \
3106 HttpHdrContRange.cc \
3108 HttpHeaderFieldStat.h \
3113 HttpHdrScTarget.cc \
3123 tests/stub_errorpage.cc \
3124 tests/stub_HttpRequest.cc \
3126 tests/stub_access_log.cc \
3129 tests/stub_store_client.cc \
3131 tests/stub_tools.cc \
3132 tests/testStoreSupport.cc \
3133 tests/testStoreSupport.h \
3140 nodist_tests_testUfs_SOURCES = \
3142 $(DISKIO_GEN_SOURCE) \
3146 tests_testUfs_LDADD = \
3147 http/libsquid-http.la \
3149 DnsLookupDetails.o \
3169 $(top_builddir)/lib/libmisccontainers.la \
3170 $(top_builddir)/lib/libmiscencoding.la \
3171 $(top_builddir)/lib/libmiscutil.la \
3173 $(SQUID_CPPUNIT_LIBS) \
3177 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3178 tests_testUfs_DEPENDENCIES = \
3181 check_PROGRAMS += testRefCount
3182 testRefCount_SOURCES= \
3185 tests/stub_cbdata.cc \
3186 tests/stub_debug.cc \
3187 tests/stub_MemBuf.cc \
3188 tests/testRefCount.cc
3189 testRefCount_LDADD = \
3191 $(top_builddir)/lib/libmiscutil.la \
3195 tests_testRock_SOURCES = \
3198 tests/stub_CacheDigest.cc \
3207 tests/stub_fatal.cc \
3214 HttpHeaderFieldStat.h \
3218 HttpHdrContRange.cc \
3221 HttpHdrScTarget.cc \
3224 HttpHeaderFieldInfo.h \
3226 HttpHeaderTools.cc \
3229 HttpRequestMethod.cc \
3251 tests/stub_StatHist.cc \
3255 StoreFileSystem.cc \
3257 StoreMetaUnpacker.cc \
3258 $(STOREMETA_SOURCE) \
3259 StoreSwapLogData.cc \
3273 tests/testStoreSupport.cc \
3274 tests/testStoreSupport.h \
3276 tests/stub_access_log.cc \
3279 tests/stub_cache_cf.cc \
3281 tests/stub_cache_manager.cc \
3282 tests/stub_client_db.cc \
3283 tests/stub_client_side_request.cc \
3284 tests/stub_debug.cc \
3285 tests/stub_errorpage.cc \
3286 tests/stub_HelperChildConfig.cc \
3287 tests/stub_http.cc \
3288 tests/stub_HttpRequest.cc \
3289 tests/stub_libauth.cc \
3292 tests/stub_ipcache.cc \
3293 tests/stub_libeui.cc \
3294 tests/stub_libformat.cc \
3295 tests/stub_libicmp.cc \
3296 tests/stub_libmgr.cc \
3297 tests/stub_MemStore.cc \
3299 tests/stub_mime.cc \
3300 tests/stub_Port.cc \
3301 tests/stub_pconn.cc \
3302 tests/stub_store_client.cc \
3304 tests/stub_store_rebuild.cc \
3305 tests/stub_store_stats.cc \
3307 tests/stub_tools.cc \
3313 $(DELAY_POOL_SOURCE) \
3316 nodist_tests_testRock_SOURCES = \
3317 $(DISKIO_GEN_SOURCE) \
3322 tests_testRock_LDADD = \
3323 http/libsquid-http.la \
3339 $(top_builddir)/lib/libmisccontainers.la \
3340 $(top_builddir)/lib/libmiscencoding.la \
3341 $(top_builddir)/lib/libmiscutil.la \
3343 $(SQUID_CPPUNIT_LIBS) \
3347 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3348 tests_testRock_DEPENDENCIES = \
3351 ## Tests of the URL module.
3352 ## TODO: Trim this down once the insanity is over.
3353 tests_testURL_SOURCES = \
3362 tests/stub_cache_manager.cc \
3364 tests/stub_CacheDigest.cc \
3366 tests/stub_carp.cc \
3368 ChunkedCodingParser.cc \
3373 client_side_reply.cc \
3374 client_side_request.cc \
3383 $(DELAY_POOL_SOURCE) \
3386 DiskIO/ReadRequest.cc \
3387 DiskIO/WriteRequest.cc \
3395 ExternalACLEntry.cc \
3397 tests/stub_fatal.cc \
3412 HelperChildConfig.h \
3413 HelperChildConfig.cc \
3421 HttpHeaderFieldStat.h \
3425 HttpHdrContRange.cc \
3428 HttpHdrScTarget.cc \
3431 HttpHeaderFieldInfo.h \
3433 HttpHeaderTools.cc \
3441 HttpRequestMethod.cc \
3473 peer_proxy_negotiate_auth.h \
3474 peer_proxy_negotiate_auth.cc \
3477 peer_sourcehash.cc \
3481 tests/stub_redirect.cc \
3496 tests/stub_StatHist.cc \
3502 tests/stub_store_digest.cc \
3515 StoreFileSystem.cc \
3517 tests/stub_StoreMeta.cc \
3518 StoreMetaUnpacker.cc \
3519 StoreSwapLogData.cc \
3523 tests/stub_SwapDir.cc \
3525 tests/stub_debug.cc \
3526 tests/stub_DiskIOModule.cc \
3527 tests/stub_libauth_acls.cc \
3528 tests/stub_libauth.cc \
3529 tests/stub_main_cc.cc \
3530 tests/stub_ipc_Forwarder.cc \
3531 tests/stub_store_stats.cc \
3534 tests/testURLScheme.cc \
3535 tests/testURLScheme.h \
3537 tests/stub_time.cc \
3540 tests/stub_tunnel.cc \
3546 tests/stub_wccp2.cc \
3548 tests/stub_whois.cc \
3553 nodist_tests_testURL_SOURCES = \
3555 tests_testURL_LDADD = \
3556 http/libsquid-http.la \
3570 icmp/libicmp.la icmp/libicmp-core.la \
3574 format/libformat.la \
3577 $(ADAPTATION_LIBS) \
3580 $(top_builddir)/lib/libmisccontainers.la \
3581 $(top_builddir)/lib/libmiscencoding.la \
3582 $(top_builddir)/lib/libmiscutil.la \
3584 $(SQUID_CPPUNIT_LIBS) \
3585 $(SQUID_CPPUNIT_LA) \
3590 tests_testURL_LDFLAGS = $(LIBADD_DL)
3591 tests_testURL_DEPENDENCIES = \
3595 tests_testSBuf_SOURCES= \
3599 tests/SBufFindTest.h \
3600 tests/SBufFindTest.cc \
3603 tests/stub_time.cc \
3605 tests/stub_debug.cc \
3606 tests/stub_fatal.cc \
3607 tests/stub_HelperChildConfig.cc \
3608 tests/stub_cache_cf.cc \
3609 tests/stub_cache_manager.cc \
3610 tests/stub_store.cc \
3611 tests/stub_store_stats.cc \
3612 tests/stub_tools.cc \
3615 tests/stub_wordlist.cc \
3616 tests/stub_MemBuf.cc
3617 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3618 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3619 tests_testSBuf_LDADD=\
3620 $(SQUID_CPPUNIT_LIBS) \
3621 $(SQUID_CPPUNIT_LA) \
3627 $(top_builddir)/lib/libmiscutil.la \
3629 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3631 tests_testConfigParser_SOURCES = \
3635 tests/stub_MemBuf.cc \
3636 tests/stub_time.cc \
3640 tests/stub_fatal.cc \
3642 tests/testConfigParser.cc \
3643 tests/testConfigParser.h \
3646 tests/stub_cache_cf.cc \
3647 tests/stub_cache_manager.cc \
3648 tests/stub_debug.cc \
3649 tests/stub_HelperChildConfig.cc \
3651 tests/stub_tools.cc \
3654 nodist_tests_testConfigParser_SOURCES = \
3656 tests_testConfigParser_LDADD = \
3660 $(top_builddir)/lib/libmiscutil.la \
3662 $(SQUID_CPPUNIT_LIBS) \
3666 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3667 tests_testConfigParser_DEPENDENCIES = \
3670 tests_testStatHist_SOURCES = \
3671 tests/stub_cbdata.cc \
3673 tests/stub_fatal.cc \
3674 tests/stub_MemBuf.cc \
3678 tests/stub_cache_manager.cc \
3679 tests/stub_comm.cc \
3680 tests/stub_debug.cc \
3681 tests/stub_DelayId.cc \
3682 tests/stub_HelperChildConfig.cc \
3685 tests/stub_MemObject.cc \
3687 tests/stub_mime.cc \
3688 tests/stub_pconn.cc \
3689 tests/stub_stmem.cc \
3691 tests/stub_store.cc \
3692 tests/stub_store_stats.cc \
3694 tests/stub_tools.cc \
3696 tests/testStatHist.cc \
3697 tests/testStatHist.h
3698 nodist_tests_testStatHist_SOURCES = \
3700 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3701 tests_testStatHist_LDADD = \
3703 $(top_builddir)/lib/libmiscutil.la \
3704 $(top_builddir)/lib/libmisccontainers.la \
3705 $(SQUID_CPPUNIT_LIBS) \
3706 $(SQUID_CPPUNIT_LA) \
3708 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3710 tests_testVector_SOURCES = \
3711 tests/testVector.cc \
3714 nodist_tests_testVector_SOURCES = \
3716 tests_testVector_LDADD= \
3717 $(SQUID_CPPUNIT_LIBS) \
3720 tests_testVector_LDFLAGS = $(LIBADD_DL)
3721 tests_testVector_DEPENDENCIES = \
3725 TESTS += testHeaders
3727 ## Special Universal .h dependency test script
3728 ## aborts if error encountered
3729 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3730 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3731 ## src/repl/ has no .h files and its own makefile.
3733 CLEANFILES += testHeaders