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 \
27 LOADABLE_MODULES_SOURCES = \
33 SUBDIRS = base anyp comm eui acl format fs repl
34 DIST_SUBDIRS = base anyp comm eui acl format fs repl
38 AUTH_LIBS= auth/libauth.la
39 AUTH_ACL_LIBS= auth/libacls.la
40 check_PROGRAMS+= tests/testACLMaxUserIP
44 SUBDIRS += http ip icmp ident log ipc mgr
45 DIST_SUBDIRS += http ip icmp ident log ipc mgr
64 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
66 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
75 DIST_SUBDIRS += adaptation
81 $(top_builddir)/lib/libTrie/libTrie.a
82 ESI_LIBS = $(ESI_LOCAL_LIBS) \
90 DELAY_POOL_ALL_SOURCE = \
114 ClientDelayConfig.cc \
117 if ENABLE_DELAY_POOLS
118 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
123 if ENABLE_XPROF_STATS
124 XPROF_STATS_SOURCE = ProfStats.cc
130 HTCPSOURCE = htcp.cc htcp.h
134 LEAKFINDERSOURCE = LeakFinder.cc
140 UNLINKDSOURCE = unlinkd.h unlinkd.cc
143 UNLINKDSOURCE = unlinkd.h
152 if ENABLE_WIN32SPECIFIC
153 WIN32_SOURCE = win32.cc
154 WINSVC_SOURCE = WinSvc.cc
161 IPC_SOURCE = SquidIpc.h ipc_win32.cc
163 IPC_SOURCE = SquidIpc.h ipc.cc
166 AIO_WIN32_ALL_SOURCES = \
167 DiskIO/AIO/aio_win32.cc \
168 DiskIO/AIO/aio_win32.h
170 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
176 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
177 DiskIO/DiskThreads/CommIO.cc \
178 DiskIO/DiskThreads/CommIO.h
180 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
181 DiskIO/DiskThreads/CommIO.cc \
182 DiskIO/DiskThreads/CommIO.h
185 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
186 libMmapped.a libIpcIo.a
187 noinst_LIBRARIES = $(DISK_LIBS)
188 noinst_LTLIBRARIES = libsquid.la
191 DiskIO/DiskDaemon/diskd \
198 ## cfgen is used when building squid
199 ## ufsdump is a debug utility, it is possibly useful for end users with cache
200 ## corruption, but at this point we do not install it.
214 cf_gen_SOURCES = cf_gen.cc
215 nodist_cf_gen_HEADER = cf_gen_defines.cci
216 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
218 cf_gen.$(OBJEXT): cf_gen_defines.cci
220 ## cf_gen.cc needs src/cf_gen_defines.cci
221 INCLUDES += -I$(top_builddir)/src
224 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
227 DiskIO/DiskIOModule.cc \
228 DiskIO/ReadRequest.cc \
229 DiskIO/ReadRequest.h \
230 DiskIO/WriteRequest.cc \
231 DiskIO/WriteRequest.h \
233 DiskIO/DiskIOStrategy.h \
234 DiskIO/IORequestor.h \
235 DiskIO/DiskIOModule.h \
238 DISKIO_GEN_SOURCE = \
239 DiskIO/DiskIOModules_gen.cc
241 DiskIO/DiskIOModules_gen.cc: Makefile
242 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
245 # common library for all the binaries and tests. This is kindof a catch all
246 # and smaller libraries split from this are encouraged. Using lt convenience
247 # libraries, dependencies should not be a problem either.
248 libsquid_la_SOURCES = \
260 $(ACL_REGISTRATION_SOURCES) \
274 NeighborTypeDomainList.h \
275 CachePeerDomainList.h \
282 ChunkedCodingParser.cc \
283 ChunkedCodingParser.h \
289 client_side_reply.cc \
290 client_side_reply.h \
291 client_side_request.cc \
292 client_side_request.h \
297 ClientRequestContext.h \
300 CompletionDispatcher.cc \
301 CompletionDispatcher.h \
315 $(DELAY_POOL_SOURCE) \
335 ExternalACLEntry.cc \
359 HelperChildConfig.h \
360 HelperChildConfig.cc \
364 HierarchyLogEntry.h \
369 HttpHeaderFieldStat.h \
378 HttpHdrContRange.cc \
385 HttpHeaderFieldInfo.h \
401 HttpRequestMethod.cc \
402 HttpRequestMethod.h \
414 $(LEAKFINDERSOURCE) \
445 $(XPROF_STATS_SOURCE) \
450 peer_proxy_negotiate_auth.h \
451 peer_proxy_negotiate_auth.cc \
521 StoreMetaUnpacker.cc \
522 StoreMetaUnpacker.h \
530 StoreSwapLogData.cc \
563 EXTRA_squid_SOURCES = \
564 $(AIO_WIN32_ALL_SOURCES) \
567 $(DELAY_POOL_ALL_SOURCE) \
577 $(WIN32_ALL_SOURCE) \
578 $(LOADABLE_MODULES_SOURCES)
581 client_side_request.cci \
603 CLEANFILES += $(BUILT_SOURCES)
605 nodist_squid_SOURCES = \
606 $(DISKIO_GEN_SOURCE) \
626 http/libsquid-http.la \
627 icmp/libicmp.la icmp/libicmp-core.la \
629 format/libformat.la \
640 $(top_builddir)/lib/libmisccontainers.la \
641 $(top_builddir)/lib/libmiscencoding.la \
642 $(top_builddir)/lib/libmiscutil.la \
649 squid_DEPENDENCIES = \
667 format/libformat.la \
671 if USE_LOADABLE_MODULES
672 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
673 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
674 squid_LDFLAGS = -export-dynamic -dlopen force
675 ## when static module linking is supported and enabled:
676 ## squid_LDFLAGS = -all-static -dlopen self
678 ## LTDL headers require their local include path...
679 INCLUDES += $(INCLTDL)
682 ## Kerberos libraries require their include path...
683 INCLUDES += $(KRB5INCS)
686 unlinkd_SOURCES = unlinkd_daemon.cc
691 recv_announce_SOURCES = recv-announce.cc
693 ## What requires what..
694 ## many things want ACLChecklist.cc
695 ## ACLChecklist.cc wants AuthUserRequest.cc
696 ## ACLChecklist.cc wants AuthScheme.cc
697 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
698 ## ACLProxyAuth.cc wants ACLUserData
699 ## ACLProxyAuth.cc wants ACLRegexData
700 ## cache_cf.cc wants $(AUTH_LIBS)
701 ## cache_cf.cc wants Swapdir
702 ## cache_cf.cc wants AnyP::PortCfg
703 ## client_side wants client_db
704 ## client_db wants SNMP_SOURCE
705 ## snmp_core wants ACLStringData
706 ## SwapDir wants ConfigOption
707 ## tools.cc wants ip/libip.la
708 ## client_side.cc wants ip/libip.la
709 ## mem.cc wants ClientInfo.h
710 ## libbase.la wants cbdata.*
711 ## libbase.la wants MemBuf.*
731 StoreMetaUnpacker.cc \
740 HelperChildConfig.h \
741 tests/stub_HelperChildConfig.cc \
742 HttpRequestMethod.cc \
769 ufsdump_DEPENDENCIES = \
787 nodist_ufsdump_SOURCES = \
792 squid.conf.documented \
817 include $(srcdir)/tests/Stub.list
826 mk-string-arrays.pl \
827 mk-string-arrays.awk \
834 $(AIO_WIN32_SOURCES) \
835 DiskIO/AIO/async_io.h \
836 DiskIO/AIO/AIODiskFile.cc \
837 DiskIO/AIO/AIODiskFile.h \
838 DiskIO/AIO/AIODiskIOStrategy.cc \
839 DiskIO/AIO/AIODiskIOStrategy.h \
840 DiskIO/AIO/AIODiskIOModule.cc \
841 DiskIO/AIO/AIODiskIOModule.h
843 libBlocking_a_SOURCES = \
844 DiskIO/Blocking/BlockingFile.cc \
845 DiskIO/Blocking/BlockingFile.h \
846 DiskIO/Blocking/BlockingIOStrategy.cc \
847 DiskIO/Blocking/BlockingIOStrategy.h \
848 DiskIO/Blocking/BlockingDiskIOModule.cc \
849 DiskIO/Blocking/BlockingDiskIOModule.h
851 libMmapped_a_SOURCES = \
852 DiskIO/Mmapped/MmappedFile.cc \
853 DiskIO/Mmapped/MmappedFile.h \
854 DiskIO/Mmapped/MmappedIOStrategy.cc \
855 DiskIO/Mmapped/MmappedIOStrategy.h \
856 DiskIO/Mmapped/MmappedDiskIOModule.cc \
857 DiskIO/Mmapped/MmappedDiskIOModule.h
859 libIpcIo_a_SOURCES = \
860 DiskIO/IpcIo/IpcIoFile.cc \
861 DiskIO/IpcIo/IpcIoFile.h \
862 DiskIO/IpcIo/IpcIoIOStrategy.cc \
863 DiskIO/IpcIo/IpcIoIOStrategy.h \
864 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
865 DiskIO/IpcIo/IpcIoDiskIOModule.h
867 libDiskDaemon_a_SOURCES = \
868 DiskIO/DiskDaemon/DiskdFile.cc \
869 DiskIO/DiskDaemon/DiskdFile.h \
870 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
871 DiskIO/DiskDaemon/DiskdIOStrategy.h \
872 DiskIO/DiskDaemon/diomsg.h \
873 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
874 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
875 DiskIO/DiskDaemon/DiskdAction.cc \
876 DiskIO/DiskDaemon/DiskdAction.h
878 libDiskThreads_a_SOURCES = \
880 DiskIO/DiskThreads/async_io.cc \
881 DiskIO/DiskThreads/DiskThreads.h \
882 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
883 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
884 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
885 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
886 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
887 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
889 EXTRA_libDiskThreads_a_SOURCES = \
890 DiskIO/DiskThreads/aiops.cc \
891 DiskIO/DiskThreads/aiops_win32.cc \
892 DiskIO/DiskThreads/CommIO.cc \
893 DiskIO/DiskThreads/CommIO.h
895 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
896 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
897 DiskIO_DiskDaemon_diskd_LDADD = \
898 $(top_builddir)/lib/libmisccontainers.la \
899 $(top_builddir)/lib/libmiscencoding.la \
900 $(top_builddir)/lib/libmiscutil.la \
905 DEFAULT_HTTP_PORT = 3128
906 DEFAULT_ICP_PORT = 3130
907 DEFAULT_PREFIX = $(prefix)
908 DEFAULT_CONFIG_DIR = $(sysconfdir)
909 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
910 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
911 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
912 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
913 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
914 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
915 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
916 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
917 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
918 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
921 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
922 DEFAULT_ICON_DIR = $(datadir)/icons
923 DEFAULT_ERROR_DIR = $(datadir)/errors
925 # Make location configure settings available to the code
926 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
928 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
930 globals.cc: globals.h mk-globals-c.awk
931 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
933 ## Generate files containing string arrays for various enums....
934 hier_code.cc: hier_code.h mk-string-arrays.awk
935 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
937 err_type.cc: err_type.h mk-string-arrays.awk
938 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
940 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
941 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
943 LogTags.cc: LogTags.h mk-string-arrays.awk
944 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
946 lookup_t.cc: lookup_t.h mk-string-arrays.awk
947 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
949 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
950 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
952 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
953 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
956 ## other generated files...
958 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
959 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
961 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
962 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
964 ## If autodependency works well this is not needed anymore
965 cache_cf.o: cf_parser.cci
967 # cf_gen builds the configuration files.
968 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
969 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
971 # squid.conf.default is built by cf_gen when making cf_parser.cci
972 squid.conf.default squid.conf.documented: cf_parser.cci
975 cf_parser.cci: cf.data cf_gen$(EXEEXT)
976 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
978 # The cf_gen_defines.cci is auto-generated and does not exist when the
979 # dependencies computed. We need to add its include files (autoconf.h) here
980 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
981 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
984 ## FIXME: generate a sed command file from configure. Then this doesn't
985 ## depend on the Makefile.
986 cf.data: cf.data.pre Makefile
988 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
989 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
990 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
991 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
992 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
993 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
994 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
995 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
996 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
997 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
998 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
999 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1000 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1001 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1002 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1003 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1004 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1005 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1006 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1007 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1008 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1009 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1010 < $(srcdir)/cf.data.pre >$@
1012 repl_modules.cc: repl_modules.sh Makefile
1013 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1015 include $(top_srcdir)/doc/manuals/Substitute.am
1017 squid.8: $(srcdir)/squid.8.in Makefile
1018 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1021 EXTRA_DIST += squid.8.in
1022 CLEANFILES += squid.8
1024 install-data-local: install-sysconfDATA install-dataDATA
1025 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1026 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1028 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1029 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1031 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1032 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1034 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1035 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1037 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1038 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1039 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1040 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1041 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1042 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1043 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1045 uninstall-local: squid.conf.default
1046 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1047 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1049 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1050 DiskIO/DiskIOModules_gen.cc \
1053 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1054 cp $(top_srcdir)/test-suite/test_tools.cc .
1056 # stock tools for unit tests - library independent versions of dlink_list
1058 # globals.cc is needed by test_tools.cc.
1059 # Neither of these should be disted from here.
1066 tests/testBoilerplate \
1067 tests/testCacheManager \
1070 tests/testEventLoop \
1071 tests/test_http_range \
1072 tests/testHttpParser \
1073 tests/testHttpReply \
1074 tests/testHttpRequest \
1079 tests/testConfigParser \
1080 tests/testStatHist \
1084 check_PROGRAMS += tests/testRock
1087 check_PROGRAMS += tests/testUfs
1090 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1091 TESTS += $(check_PROGRAMS)
1093 ### Template for new Unit Test Program
1094 ## - add tests/testX to check_PROGRAMS above.
1095 ## - copy template below and substitue X for class name
1096 ## - add other component .(h|cc) files needed to link and run tests
1098 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1100 #tests_testX_SOURCES=\
1103 # tests/testMain.cc \
1106 #nodist_tests_testX_SOURCES=\
1108 #tests_testX_LDFLAGS = $(LIBADD_DL)
1109 #tests_testX_LDADD=\
1110 # $(SQUID_CPPUNIT_LIBS) \
1111 # $(SQUID_CPPUNIT_LA) \
1113 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1116 # - add other component .(h|cc) files needed to link and run tests
1117 tests_testHttpReply_SOURCES=\
1123 tests/stub_fatal.cc \
1126 HttpHeaderFieldStat.h \
1130 HttpHdrContRange.cc \
1131 HttpHdrContRange.h \
1135 HttpHdrScTarget.cc \
1140 HttpHeaderFieldInfo.h \
1142 HttpHeaderTools.cc \
1164 tests/stub_access_log.cc \
1167 tests/stub_cache_cf.cc \
1168 tests/stub_cache_manager.cc \
1169 tests/stub_debug.cc \
1170 tests/stub_errorpage.cc \
1171 tests/stub_HelperChildConfig.cc \
1172 tests/stub_libformat.cc \
1176 tests/stub_StatHist.cc \
1178 tests/stub_store.cc \
1179 tests/stub_store_stats.cc \
1181 tests/stub_tools.cc \
1182 tests/stub_HttpRequest.cc \
1183 tests/testHttpReply.cc \
1184 tests/testHttpReply.h \
1191 nodist_tests_testHttpReply_SOURCES=\
1193 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1194 tests_testHttpReply_LDADD=\
1195 http/libsquid-http.la \
1204 $(top_builddir)/lib/libmisccontainers.la \
1205 $(top_builddir)/lib/libmiscencoding.la \
1206 $(top_builddir)/lib/libmiscutil.la \
1207 $(SQUID_CPPUNIT_LIBS) \
1208 $(SQUID_CPPUNIT_LA) \
1212 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1214 tests_testACLMaxUserIP_SOURCES= \
1219 DiskIO/ReadRequest.cc \
1220 DiskIO/WriteRequest.cc \
1224 tests/stub_fatal.cc \
1227 HelperChildConfig.h \
1228 HelperChildConfig.cc \
1232 HttpHeaderFieldInfo.h \
1234 HttpHeaderTools.cc \
1235 HttpHdrContRange.cc \
1237 HttpHeaderFieldStat.h \
1242 HttpHdrScTarget.cc \
1244 HttpRequestMethod.cc \
1262 tests/stub_StatHist.cc \
1270 StoreMetaSTDLFS.cc \
1271 StoreMetaUnpacker.cc \
1274 StoreSwapLogData.cc \
1282 tests/stub_access_log.cc \
1285 tests/stub_cache_cf.cc \
1286 tests/stub_client_side.cc \
1287 tests/stub_debug.cc \
1288 tests/stub_DelayId.cc \
1289 tests/stub_DiskIOModule.cc \
1290 tests/stub_errorpage.cc \
1293 tests/stub_HttpRequest.cc \
1294 tests/stub_HttpReply.cc \
1295 tests/stub_ipc_TypedMsgHdr.cc \
1296 tests/stub_libcomm.cc \
1297 tests/stub_libformat.cc \
1298 tests/stub_libsslsquid.cc \
1299 tests/stub_MemObject.cc \
1300 tests/stub_MemStore.cc \
1302 tests/stub_mime.cc \
1303 tests/stub_pconn.cc \
1304 tests/stub_Port.cc \
1306 tests/stub_store.cc \
1308 tests/stub_store_rebuild.cc \
1309 tests/stub_store_stats.cc \
1310 tests/stub_store_swapout.cc \
1312 tests/stub_tools.cc \
1313 tests/stub_cache_manager.cc \
1314 tests/stub_UdsOp.cc \
1315 tests/testACLMaxUserIP.cc \
1316 tests/testACLMaxUserIP.h \
1328 nodist_tests_testACLMaxUserIP_SOURCES= \
1330 tests_testACLMaxUserIP_LDADD= \
1331 http/libsquid-http.la \
1345 $(top_builddir)/lib/libmisccontainers.la \
1346 $(top_builddir)/lib/libmiscencoding.la \
1347 $(top_builddir)/lib/libmiscutil.la \
1350 $(SQUID_CPPUNIT_LIBS) \
1354 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1355 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1356 ## $(SQUID_CPPUNIT_LA)
1358 ## a demonstration test that does nothing but shows the salient points
1359 ## involved in writing tests.
1360 tests_testBoilerplate_SOURCES = \
1361 tests/testBoilerplate.cc \
1363 tests/testBoilerplate.h \
1365 nodist_tests_testBoilerplate_SOURCES = \
1367 tests_testBoilerplate_LDADD= \
1368 $(SQUID_CPPUNIT_LIBS) \
1372 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1373 tests_testBoilerplate_DEPENDENCIES = \
1376 ## Tests of the CacheManager module.
1377 tests_testCacheManager_SOURCES = \
1379 $(ACL_REGISTRATION_SOURCES) \
1386 HttpRequestMethod.cc \
1390 tests/testCacheManager.cc \
1391 tests/testCacheManager.h \
1393 tests/stub_main_cc.cc \
1394 tests/stub_ipc_Forwarder.cc \
1395 tests/stub_store_stats.cc \
1410 ChunkedCodingParser.cc \
1415 client_side_reply.cc \
1416 client_side_request.cc \
1425 $(DELAY_POOL_SOURCE) \
1436 ExternalACLEntry.cc \
1438 tests/stub_fatal.cc \
1454 HelperChildConfig.h \
1455 HelperChildConfig.cc \
1465 HttpHeaderFieldInfo.h \
1467 HttpHeaderTools.cc \
1468 HttpHeaderFieldStat.h \
1472 HttpHdrContRange.cc \
1475 HttpHdrScTarget.cc \
1508 peer_proxy_negotiate_auth.h \
1509 peer_proxy_negotiate_auth.cc \
1512 peer_sourcehash.cc \
1516 tests/stub_redirect.cc \
1532 tests/stub_StatHist.cc \
1551 StoreFileSystem.cc \
1556 StoreMetaSTDLFS.cc \
1557 StoreMetaUnpacker.cc \
1560 StoreSwapLogData.cc \
1579 nodist_tests_testCacheManager_SOURCES = \
1581 $(DISKIO_GEN_SOURCE)
1582 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1583 tests_testCacheManager_LDADD = \
1584 http/libsquid-http.la \
1597 icmp/libicmp.la icmp/libicmp-core.la \
1599 format/libformat.la \
1603 $(ADAPTATION_LIBS) \
1610 $(top_builddir)/lib/libmisccontainers.la \
1611 $(top_builddir)/lib/libmiscencoding.la \
1612 $(top_builddir)/lib/libmiscutil.la \
1614 $(SQUID_CPPUNIT_LIBS) \
1615 $(SQUID_CPPUNIT_LA) \
1620 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1621 tests_testCacheManager_DEPENDENCIES = \
1625 tests_testDiskIO_SOURCES = \
1633 $(DELAY_POOL_SOURCE) \
1641 tests/stub_fatal.cc \
1650 HttpHeaderFieldStat.h \
1654 HttpHdrContRange.cc \
1656 HttpHdrScTarget.cc \
1658 HttpHeaderFieldInfo.h \
1660 HttpHeaderTools.cc \
1665 HttpRequestMethod.cc \
1687 tests/stub_StatHist.cc \
1689 StoreFileSystem.cc \
1694 StoreMetaSTDLFS.cc \
1695 StoreMetaUnpacker.cc \
1698 StoreSwapLogData.cc \
1712 tests/stub_access_log.cc \
1716 tests/stub_cache_cf.cc \
1717 tests/stub_cache_manager.cc \
1718 tests/stub_client_db.cc \
1719 client_side_request.h \
1720 tests/stub_client_side_request.cc \
1721 tests/stub_debug.cc \
1722 tests/stub_errorpage.cc \
1723 tests/stub_helper.cc \
1724 tests/stub_HelperChildConfig.cc \
1725 tests/stub_HttpRequest.cc \
1726 tests/stub_http.cc \
1729 tests/stub_internal.cc \
1731 tests/stub_ipcache.cc \
1732 tests/stub_libeui.cc \
1733 tests/stub_libformat.cc \
1734 tests/stub_libicmp.cc \
1735 tests/stub_MemStore.cc \
1737 tests/stub_mime.cc \
1738 tests/stub_pconn.cc \
1739 tests/stub_Port.cc \
1740 tests/stub_store_client.cc \
1741 tests/stub_store_stats.cc \
1743 tests/stub_store_rebuild.cc \
1744 tests/stub_UdsOp.cc \
1745 tests/testDiskIO.cc \
1746 tests/testDiskIO.h \
1748 tests/testStoreSupport.cc \
1749 tests/testStoreSupport.h \
1759 nodist_tests_testDiskIO_SOURCES= \
1761 $(DISKIO_GEN_SOURCE) \
1765 tests_testDiskIO_LDADD = \
1766 http/libsquid-http.la \
1769 DnsLookupDetails.o \
1789 $(top_builddir)/lib/libmisccontainers.la \
1790 $(top_builddir)/lib/libmiscencoding.la \
1791 $(top_builddir)/lib/libmiscutil.la \
1793 $(SQUID_CPPUNIT_LIBS) \
1798 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1799 tests_testDiskIO_DEPENDENCIES = \
1804 ## Tests of the Even module.
1805 tests_testEvent_SOURCES = \
1807 $(ACL_REGISTRATION_SOURCES) \
1821 ChunkedCodingParser.cc \
1826 client_side_reply.cc \
1827 client_side_request.cc \
1837 $(DELAY_POOL_SOURCE) \
1850 ExternalACLEntry.cc \
1853 tests/stub_fatal.cc \
1868 HelperChildConfig.h \
1869 HelperChildConfig.cc \
1879 HttpHeaderFieldInfo.h \
1881 HttpHeaderTools.cc \
1882 HttpHeaderFieldStat.h \
1886 HttpHdrContRange.cc \
1889 HttpHdrScTarget.cc \
1897 HttpRequestMethod.cc \
1930 peer_proxy_negotiate_auth.h \
1931 peer_proxy_negotiate_auth.cc \
1934 peer_sourcehash.cc \
1938 tests/stub_redirect.cc \
1973 StoreFileSystem.cc \
1978 StoreMetaSTDLFS.cc \
1979 StoreMetaUnpacker.cc \
1982 StoreSwapLogData.cc \
1985 tests/CapturingStoreEntry.h \
1986 tests/testEvent.cc \
1989 tests/stub_main_cc.cc \
1990 tests/stub_ipc_Forwarder.cc \
1991 tests/stub_libeui.cc \
1992 tests/stub_store_stats.cc \
2010 nodist_tests_testEvent_SOURCES = \
2012 $(DISKIO_GEN_SOURCE)
2013 tests_testEvent_LDADD = \
2014 http/libsquid-http.la \
2026 icmp/libicmp.la icmp/libicmp-core.la \
2029 format/libformat.la \
2031 $(ADAPTATION_LIBS) \
2034 $(top_builddir)/lib/libmisccontainers.la \
2035 $(top_builddir)/lib/libmiscencoding.la \
2036 $(top_builddir)/lib/libmiscutil.la \
2043 $(SQUID_CPPUNIT_LIBS) \
2044 $(SQUID_CPPUNIT_LA) \
2049 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2050 tests_testEvent_DEPENDENCIES = \
2054 ## Tests of the EventLoop module.
2055 tests_testEventLoop_SOURCES = \
2057 $(ACL_REGISTRATION_SOURCES) \
2071 ChunkedCodingParser.cc \
2076 client_side_reply.cc \
2077 client_side_request.cc \
2087 $(DELAY_POOL_SOURCE) \
2100 ExternalACLEntry.cc \
2103 tests/stub_fatal.cc \
2118 HelperChildConfig.h \
2119 HelperChildConfig.cc \
2129 HttpHeaderFieldInfo.h \
2131 HttpHeaderTools.cc \
2132 HttpHeaderFieldStat.h \
2136 HttpHdrContRange.cc \
2139 HttpHdrScTarget.cc \
2147 HttpRequestMethod.cc \
2180 peer_proxy_negotiate_auth.h \
2181 peer_proxy_negotiate_auth.cc \
2184 peer_sourcehash.cc \
2189 tests/stub_redirect.cc \
2222 StoreFileSystem.cc \
2227 StoreMetaSTDLFS.cc \
2228 StoreMetaUnpacker.cc \
2231 StoreSwapLogData.cc \
2236 tests/testEventLoop.cc \
2237 tests/testEventLoop.h \
2239 tests/stub_main_cc.cc \
2240 tests/stub_ipc_Forwarder.cc \
2241 tests/stub_libeui.cc \
2242 tests/stub_store_stats.cc \
2260 nodist_tests_testEventLoop_SOURCES = \
2262 $(DISKIO_GEN_SOURCE)
2263 tests_testEventLoop_LDADD = \
2264 http/libsquid-http.la \
2276 icmp/libicmp.la icmp/libicmp-core.la \
2279 format/libformat.la \
2281 $(ADAPTATION_LIBS) \
2284 $(top_builddir)/lib/libmisccontainers.la \
2285 $(top_builddir)/lib/libmiscencoding.la \
2286 $(top_builddir)/lib/libmiscutil.la \
2293 $(SQUID_CPPUNIT_LIBS) \
2294 $(SQUID_CPPUNIT_LA) \
2299 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2300 tests_testEventLoop_DEPENDENCIES = \
2304 tests_test_http_range_SOURCES = \
2306 $(ACL_REGISTRATION_SOURCES) \
2320 ChunkedCodingParser.cc \
2325 client_side_reply.cc \
2326 client_side_request.cc \
2336 $(DELAY_POOL_SOURCE) \
2347 ExternalACLEntry.cc \
2350 tests/stub_fatal.cc \
2365 HelperChildConfig.h \
2366 HelperChildConfig.cc \
2374 HttpHeaderFieldStat.h \
2378 HttpHdrContRange.cc \
2381 HttpHdrScTarget.cc \
2384 HttpHeaderFieldInfo.h \
2386 HttpHeaderTools.cc \
2394 HttpRequestMethod.cc \
2426 peer_proxy_negotiate_auth.h \
2427 peer_proxy_negotiate_auth.cc \
2430 peer_sourcehash.cc \
2435 tests/stub_redirect.cc \
2468 StoreFileSystem.cc \
2473 StoreMetaSTDLFS.cc \
2474 StoreMetaUnpacker.cc \
2477 StoreSwapLogData.cc \
2482 tests/test_http_range.cc \
2483 tests/stub_ipc_Forwarder.cc \
2484 tests/stub_libeui.cc \
2485 tests/stub_main_cc.cc \
2486 tests/stub_MemStore.cc \
2487 tests/stub_store_stats.cc \
2504 nodist_tests_test_http_range_SOURCES = \
2506 $(DISKIO_GEN_SOURCE)
2507 tests_test_http_range_LDADD = \
2508 http/libsquid-http.la \
2519 icmp/libicmp.la icmp/libicmp-core.la \
2522 format/libformat.la \
2526 $(ADAPTATION_LIBS) \
2533 $(top_builddir)/lib/libmisccontainers.la \
2534 $(top_builddir)/lib/libmiscencoding.la \
2535 $(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_testHttpParser_SOURCES = \
2558 tests/stub_cache_cf.cc \
2559 tests/stub_cache_manager.cc \
2560 tests/stub_debug.cc \
2561 tests/stub_event.cc \
2562 tests/stub_HelperChildConfig.cc \
2564 tests/stub_tools.cc \
2565 tests/testHttpParser.cc \
2566 tests/testHttpParser.h \
2571 nodist_tests_testHttpParser_SOURCES = \
2573 tests_testHttpParser_LDADD= \
2574 http/libsquid-http.la \
2578 $(top_builddir)/lib/libmiscutil.la \
2579 $(SQUID_CPPUNIT_LIBS) \
2582 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2583 tests_testHttpParser_DEPENDENCIES = \
2586 ## Tests of the HttpRequest module.
2587 tests_testHttpRequest_SOURCES = \
2589 $(ACL_REGISTRATION_SOURCES) \
2595 HttpRequestMethod.cc \
2599 tests/testHttpRequest.h \
2600 tests/testHttpRequest.cc \
2601 tests/testHttpRequestMethod.h \
2602 tests/testHttpRequestMethod.cc \
2604 tests/stub_DiskIOModule.cc \
2605 tests/stub_main_cc.cc \
2606 tests/stub_ipc_Forwarder.cc \
2607 tests/stub_libeui.cc \
2608 tests/stub_store_stats.cc \
2624 ChunkedCodingParser.cc \
2629 client_side_reply.cc \
2630 client_side_request.cc \
2639 $(DELAY_POOL_SOURCE) \
2648 ExternalACLEntry.cc \
2650 tests/stub_fatal.cc \
2663 HelperChildConfig.h \
2664 HelperChildConfig.cc \
2674 HttpHeaderFieldInfo.h \
2676 HttpHeaderTools.cc \
2677 HttpHeaderFieldStat.h \
2681 HttpHdrContRange.cc \
2684 HttpHdrScTarget.cc \
2717 peer_proxy_negotiate_auth.h \
2718 peer_proxy_negotiate_auth.cc \
2721 peer_sourcehash.cc \
2725 tests/stub_redirect.cc \
2758 StoreFileSystem.cc \
2763 StoreMetaSTDLFS.cc \
2764 StoreMetaUnpacker.cc \
2767 StoreSwapLogData.cc \
2788 nodist_tests_testHttpRequest_SOURCES = \
2790 tests_testHttpRequest_LDADD = \
2805 icmp/libicmp.la icmp/libicmp-core.la \
2808 format/libformat.la \
2809 http/libsquid-http.la \
2811 $(ADAPTATION_LIBS) \
2814 $(top_builddir)/lib/libmisccontainers.la \
2815 $(top_builddir)/lib/libmiscencoding.la \
2816 $(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= \
2839 $(DELAY_POOL_SOURCE) \
2842 DiskIO/ReadRequest.cc \
2843 DiskIO/WriteRequest.cc \
2848 tests/stub_fatal.cc \
2851 HttpHeaderFieldStat.h \
2855 HttpHdrContRange.cc \
2858 HttpHdrScTarget.cc \
2859 HttpHeaderFieldInfo.h \
2861 HttpHeaderTools.cc \
2865 HttpRequestMethod.cc \
2898 StoreMetaSTDLFS.cc \
2899 StoreMetaUnpacker.cc \
2902 StoreSwapLogData.cc \
2909 tests/CapturingStoreEntry.h \
2911 tests/stub_access_log.cc \
2915 tests/stub_cache_cf.cc \
2916 tests/stub_cache_manager.cc \
2917 tests/stub_client_side_request.cc \
2918 tests/stub_comm.cc \
2919 tests/stub_debug.cc \
2920 tests/stub_DiskIOModule.cc \
2921 tests/stub_errorpage.cc \
2925 tests/stub_helper.cc \
2926 tests/stub_HelperChildConfig.cc \
2927 tests/stub_http.cc \
2928 tests/stub_libeui.cc \
2929 tests/stub_libformat.cc \
2932 tests/stub_HttpReply.cc \
2933 tests/stub_HttpRequest.cc \
2934 tests/stub_libcomm.cc \
2935 tests/stub_MemStore.cc \
2937 tests/stub_mime.cc \
2938 tests/stub_Port.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 \
2945 tests/stub_tools.cc \
2946 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 \
2966 nodist_tests_testStore_SOURCES= \
2972 tests_testStore_LDADD= \
2973 http/libsquid-http.la \
2988 $(top_builddir)/lib/libmisccontainers.la \
2989 $(top_builddir)/lib/libmiscencoding.la \
2990 $(top_builddir)/lib/libmiscutil.la \
2992 $(SQUID_CPPUNIT_LIBS) \
2995 DnsLookupDetails.o \
2998 tests_testStore_LDFLAGS = $(LIBADD_DL)
2999 tests_testStore_DEPENDENCIES = \
3002 ## string needs mem.cc.
3003 ## mem.cc needs ClientInfo.h
3004 ## libsquid pulls in SquidConfig and children. stub them.
3005 tests_testString_SOURCES = \
3012 tests/testString.cc \
3013 tests/testString.h \
3016 tests/stub_cache_cf.cc \
3017 tests/stub_cache_manager.cc \
3018 tests/stub_debug.cc \
3019 tests/stub_HelperChildConfig.cc \
3021 tests/stub_tools.cc \
3025 nodist_tests_testString_SOURCES = \
3027 tests_testString_LDADD = \
3031 $(top_builddir)/lib/libmiscutil.la \
3033 $(SQUID_CPPUNIT_LIBS) \
3037 tests_testString_LDFLAGS = $(LIBADD_DL)
3038 tests_testString_DEPENDENCIES = \
3059 tests_testUfs_SOURCES = \
3063 tests/stub_cache_manager.cc \
3064 tests/stub_client_db.cc \
3065 tests/stub_HelperChildConfig.cc \
3068 tests/stub_libeui.cc \
3069 tests/stub_MemStore.cc \
3070 tests/stub_pconn.cc \
3071 tests/stub_Port.cc \
3072 tests/stub_UdsOp.cc \
3074 tests/stub_internal.cc \
3075 tests/stub_libformat.cc \
3077 tests/stub_store_rebuild.cc \
3078 tests/stub_store_stats.cc \
3080 tests/stub_fatal.cc \
3102 StoreSwapLogData.cc \
3107 StoreMetaSTDLFS.cc \
3108 StoreMetaUnpacker.cc \
3111 StoreFileSystem.cc \
3118 $(DELAY_POOL_SOURCE) \
3128 HttpRequestMethod.cc \
3137 tests/stub_cache_cf.cc \
3138 tests/stub_helper.cc \
3141 tests/stub_debug.cc \
3142 tests/stub_client_side_request.cc \
3143 tests/stub_http.cc \
3147 tests/stub_mime.cc \
3148 HttpHeaderFieldInfo.h \
3150 HttpHeaderTools.cc \
3157 HttpHdrContRange.cc \
3159 HttpHeaderFieldStat.h \
3164 HttpHdrScTarget.cc \
3174 tests/stub_errorpage.cc \
3175 tests/stub_HttpRequest.cc \
3177 tests/stub_access_log.cc \
3180 tests/stub_store_client.cc \
3182 tests/stub_tools.cc \
3183 tests/testStoreSupport.cc \
3184 tests/testStoreSupport.h \
3191 nodist_tests_testUfs_SOURCES = \
3193 $(DISKIO_GEN_SOURCE) \
3197 tests_testUfs_LDADD = \
3198 http/libsquid-http.la \
3200 DnsLookupDetails.o \
3222 $(top_builddir)/lib/libmisccontainers.la \
3223 $(top_builddir)/lib/libmiscencoding.la \
3224 $(top_builddir)/lib/libmiscutil.la \
3226 $(SQUID_CPPUNIT_LIBS) \
3230 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3231 tests_testUfs_DEPENDENCIES = \
3234 check_PROGRAMS += testRefCount
3235 testRefCount_SOURCES= \
3238 tests/stub_cbdata.cc \
3239 tests/stub_debug.cc \
3240 tests/stub_MemBuf.cc \
3241 tests/testRefCount.cc
3242 testRefCount_LDADD = \
3244 $(top_builddir)/lib/libmiscutil.la \
3248 tests_testRock_SOURCES = \
3260 tests/stub_fatal.cc \
3267 HttpHeaderFieldStat.h \
3271 HttpHdrContRange.cc \
3274 HttpHdrScTarget.cc \
3277 HttpHeaderFieldInfo.h \
3279 HttpHeaderTools.cc \
3282 HttpRequestMethod.cc \
3302 tests/stub_StatHist.cc \
3306 StoreFileSystem.cc \
3311 StoreMetaSTDLFS.cc \
3313 StoreMetaUnpacker.cc \
3315 StoreSwapLogData.cc \
3329 tests/testStoreSupport.cc \
3330 tests/testStoreSupport.h \
3332 tests/stub_access_log.cc \
3335 tests/stub_cache_cf.cc \
3337 tests/stub_cache_manager.cc \
3338 tests/stub_client_db.cc \
3339 tests/stub_client_side_request.cc \
3340 tests/stub_debug.cc \
3341 tests/stub_errorpage.cc \
3342 tests/stub_HelperChildConfig.cc \
3343 tests/stub_http.cc \
3344 tests/stub_HttpRequest.cc \
3347 tests/stub_ipcache.cc \
3348 tests/stub_libeui.cc \
3349 tests/stub_libformat.cc \
3350 tests/stub_libicmp.cc \
3351 tests/stub_libmgr.cc \
3352 tests/stub_MemStore.cc \
3354 tests/stub_mime.cc \
3355 tests/stub_Port.cc \
3356 tests/stub_pconn.cc \
3357 tests/stub_store_client.cc \
3359 tests/stub_store_rebuild.cc \
3360 tests/stub_store_stats.cc \
3362 tests/stub_tools.cc \
3368 $(DELAY_POOL_SOURCE) \
3371 nodist_tests_testRock_SOURCES = \
3372 $(DISKIO_GEN_SOURCE) \
3377 tests_testRock_LDADD = \
3378 http/libsquid-http.la \
3395 $(top_builddir)/lib/libmisccontainers.la \
3396 $(top_builddir)/lib/libmiscencoding.la \
3397 $(top_builddir)/lib/libmiscutil.la \
3399 $(SQUID_CPPUNIT_LIBS) \
3403 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3404 tests_testRock_DEPENDENCIES = \
3407 ## Tests of the URL module.
3408 ## TODO: Trim this down once the insanity is over.
3409 tests_testURL_SOURCES = \
3411 $(ACL_REGISTRATION_SOURCES) \
3425 ChunkedCodingParser.cc \
3430 client_side_reply.cc \
3431 client_side_request.cc \
3440 $(DELAY_POOL_SOURCE) \
3443 DiskIO/ReadRequest.cc \
3444 DiskIO/WriteRequest.cc \
3452 ExternalACLEntry.cc \
3454 tests/stub_fatal.cc \
3469 HelperChildConfig.h \
3470 HelperChildConfig.cc \
3478 HttpHeaderFieldStat.h \
3482 HttpHdrContRange.cc \
3485 HttpHdrScTarget.cc \
3488 HttpHeaderFieldInfo.h \
3490 HttpHeaderTools.cc \
3498 HttpRequestMethod.cc \
3531 peer_proxy_negotiate_auth.h \
3532 peer_proxy_negotiate_auth.cc \
3535 peer_sourcehash.cc \
3539 tests/stub_redirect.cc \
3553 tests/stub_StatHist.cc \
3572 StoreFileSystem.cc \
3577 StoreMetaSTDLFS.cc \
3578 StoreMetaUnpacker.cc \
3581 StoreSwapLogData.cc \
3587 tests/stub_debug.cc \
3588 tests/stub_DiskIOModule.cc \
3589 tests/stub_main_cc.cc \
3590 tests/stub_ipc_Forwarder.cc \
3591 tests/stub_store_stats.cc \
3594 tests/testURLScheme.cc \
3595 tests/testURLScheme.h \
3613 nodist_tests_testURL_SOURCES = \
3615 tests_testURL_LDADD = \
3616 http/libsquid-http.la \
3632 icmp/libicmp.la icmp/libicmp-core.la \
3636 format/libformat.la \
3639 $(ADAPTATION_LIBS) \
3642 $(top_builddir)/lib/libmisccontainers.la \
3643 $(top_builddir)/lib/libmiscencoding.la \
3644 $(top_builddir)/lib/libmiscutil.la \
3646 $(SQUID_CPPUNIT_LIBS) \
3647 $(SQUID_CPPUNIT_LA) \
3652 tests_testURL_LDFLAGS = $(LIBADD_DL)
3653 tests_testURL_DEPENDENCIES = \
3657 tests_testSBuf_SOURCES= \
3661 tests/SBufFindTest.h \
3662 tests/SBufFindTest.cc \
3667 tests/stub_debug.cc \
3668 tests/stub_fatal.cc \
3669 tests/stub_HelperChildConfig.cc \
3670 tests/stub_cache_cf.cc \
3671 tests/stub_cache_manager.cc \
3672 tests/stub_store.cc \
3673 tests/stub_store_stats.cc \
3674 tests/stub_tools.cc \
3679 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3680 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3681 tests_testSBuf_LDADD=\
3682 $(SQUID_CPPUNIT_LIBS) \
3683 $(SQUID_CPPUNIT_LA) \
3689 $(top_builddir)/lib/libmiscutil.la \
3691 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3693 tests_testConfigParser_SOURCES = \
3701 tests/stub_fatal.cc \
3703 tests/testConfigParser.cc \
3704 tests/testConfigParser.h \
3707 tests/stub_cache_cf.cc \
3708 tests/stub_cache_manager.cc \
3709 tests/stub_debug.cc \
3710 tests/stub_HelperChildConfig.cc \
3712 tests/stub_tools.cc \
3716 nodist_tests_testConfigParser_SOURCES = \
3718 tests_testConfigParser_LDADD = \
3722 $(top_builddir)/lib/libmiscutil.la \
3724 $(SQUID_CPPUNIT_LIBS) \
3728 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3729 tests_testConfigParser_DEPENDENCIES = \
3732 tests_testStatHist_SOURCES = \
3735 tests/stub_fatal.cc \
3740 tests/stub_cache_manager.cc \
3741 tests/stub_comm.cc \
3742 tests/stub_debug.cc \
3743 tests/stub_DelayId.cc \
3744 tests/stub_HelperChildConfig.cc \
3747 tests/stub_MemObject.cc \
3749 tests/stub_mime.cc \
3750 tests/stub_pconn.cc \
3751 tests/stub_stmem.cc \
3753 tests/stub_store.cc \
3754 tests/stub_store_stats.cc \
3756 tests/stub_tools.cc \
3758 tests/testStatHist.cc \
3759 tests/testStatHist.h \
3761 nodist_tests_testStatHist_SOURCES = \
3763 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3764 tests_testStatHist_LDADD = \
3766 $(top_builddir)/lib/libmiscutil.la \
3767 $(top_builddir)/lib/libmisccontainers.la \
3768 $(SQUID_CPPUNIT_LIBS) \
3769 $(SQUID_CPPUNIT_LA) \
3771 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3773 tests_testVector_SOURCES = \
3774 tests/testVector.cc \
3776 tests/testVector.h \
3778 nodist_tests_testVector_SOURCES = \
3780 tests_testVector_LDADD= \
3781 $(SQUID_CPPUNIT_LIBS) \
3784 tests_testVector_LDFLAGS = $(LIBADD_DL)
3785 tests_testVector_DEPENDENCIES = \
3789 TESTS += testHeaders
3791 ## Special Universal .h dependency test script
3792 ## aborts if error encountered
3793 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3794 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3795 ## src/repl/ has no .h files and its own makefile.
3797 CLEANFILES += testHeaders