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) \
444 $(XPROF_STATS_SOURCE) \
449 peer_proxy_negotiate_auth.h \
450 peer_proxy_negotiate_auth.cc \
520 StoreMetaUnpacker.cc \
521 StoreMetaUnpacker.h \
529 StoreSwapLogData.cc \
562 EXTRA_squid_SOURCES = \
563 $(AIO_WIN32_ALL_SOURCES) \
566 $(DELAY_POOL_ALL_SOURCE) \
576 $(WIN32_ALL_SOURCE) \
577 $(LOADABLE_MODULES_SOURCES)
580 client_side_request.cci \
602 CLEANFILES += $(BUILT_SOURCES)
604 nodist_squid_SOURCES = \
605 $(DISKIO_GEN_SOURCE) \
625 http/libsquid-http.la \
626 icmp/libicmp.la icmp/libicmp-core.la \
628 format/libformat.la \
639 $(top_builddir)/lib/libmisccontainers.la \
640 $(top_builddir)/lib/libmiscencoding.la \
641 $(top_builddir)/lib/libmiscutil.la \
648 squid_DEPENDENCIES = \
666 format/libformat.la \
670 if USE_LOADABLE_MODULES
671 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
672 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
673 squid_LDFLAGS = -export-dynamic -dlopen force
674 ## when static module linking is supported and enabled:
675 ## squid_LDFLAGS = -all-static -dlopen self
677 ## LTDL headers require their local include path...
678 INCLUDES += $(INCLTDL)
681 ## Kerberos libraries require their include path...
682 INCLUDES += $(KRB5INCS)
685 unlinkd_SOURCES = unlinkd_daemon.cc
690 recv_announce_SOURCES = recv-announce.cc
692 ## What requires what..
693 ## many things want ACLChecklist.cc
694 ## ACLChecklist.cc wants AuthUserRequest.cc
695 ## ACLChecklist.cc wants AuthScheme.cc
696 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
697 ## ACLProxyAuth.cc wants ACLUserData
698 ## ACLProxyAuth.cc wants ACLRegexData
699 ## cache_cf.cc wants $(AUTH_LIBS)
700 ## cache_cf.cc wants Swapdir
701 ## cache_cf.cc wants AnyP::PortCfg
702 ## client_side wants client_db
703 ## client_db wants SNMP_SOURCE
704 ## snmp_core wants ACLStringData
705 ## SwapDir wants ConfigOption
706 ## tools.cc wants ip/libip.la
707 ## client_side.cc wants ip/libip.la
708 ## mem.cc wants ClientInfo.h
709 ## libbase.la wants cbdata.*
710 ## libbase.la wants MemBuf.*
730 StoreMetaUnpacker.cc \
739 HelperChildConfig.h \
740 tests/stub_HelperChildConfig.cc \
741 HttpRequestMethod.cc \
768 ufsdump_DEPENDENCIES = \
785 nodist_ufsdump_SOURCES = \
790 squid.conf.documented \
815 include $(srcdir)/tests/Stub.list
824 mk-string-arrays.pl \
825 mk-string-arrays.awk \
832 $(AIO_WIN32_SOURCES) \
833 DiskIO/AIO/async_io.h \
834 DiskIO/AIO/AIODiskFile.cc \
835 DiskIO/AIO/AIODiskFile.h \
836 DiskIO/AIO/AIODiskIOStrategy.cc \
837 DiskIO/AIO/AIODiskIOStrategy.h \
838 DiskIO/AIO/AIODiskIOModule.cc \
839 DiskIO/AIO/AIODiskIOModule.h
841 libBlocking_a_SOURCES = \
842 DiskIO/Blocking/BlockingFile.cc \
843 DiskIO/Blocking/BlockingFile.h \
844 DiskIO/Blocking/BlockingIOStrategy.cc \
845 DiskIO/Blocking/BlockingIOStrategy.h \
846 DiskIO/Blocking/BlockingDiskIOModule.cc \
847 DiskIO/Blocking/BlockingDiskIOModule.h
849 libMmapped_a_SOURCES = \
850 DiskIO/Mmapped/MmappedFile.cc \
851 DiskIO/Mmapped/MmappedFile.h \
852 DiskIO/Mmapped/MmappedIOStrategy.cc \
853 DiskIO/Mmapped/MmappedIOStrategy.h \
854 DiskIO/Mmapped/MmappedDiskIOModule.cc \
855 DiskIO/Mmapped/MmappedDiskIOModule.h
857 libIpcIo_a_SOURCES = \
858 DiskIO/IpcIo/IpcIoFile.cc \
859 DiskIO/IpcIo/IpcIoFile.h \
860 DiskIO/IpcIo/IpcIoIOStrategy.cc \
861 DiskIO/IpcIo/IpcIoIOStrategy.h \
862 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
863 DiskIO/IpcIo/IpcIoDiskIOModule.h
865 libDiskDaemon_a_SOURCES = \
866 DiskIO/DiskDaemon/DiskdFile.cc \
867 DiskIO/DiskDaemon/DiskdFile.h \
868 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
869 DiskIO/DiskDaemon/DiskdIOStrategy.h \
870 DiskIO/DiskDaemon/diomsg.h \
871 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
872 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
873 DiskIO/DiskDaemon/DiskdAction.cc \
874 DiskIO/DiskDaemon/DiskdAction.h
876 libDiskThreads_a_SOURCES = \
878 DiskIO/DiskThreads/async_io.cc \
879 DiskIO/DiskThreads/DiskThreads.h \
880 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
881 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
882 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
883 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
884 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
885 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
887 EXTRA_libDiskThreads_a_SOURCES = \
888 DiskIO/DiskThreads/aiops.cc \
889 DiskIO/DiskThreads/aiops_win32.cc \
890 DiskIO/DiskThreads/CommIO.cc \
891 DiskIO/DiskThreads/CommIO.h
893 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
894 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
895 DiskIO_DiskDaemon_diskd_LDADD = \
896 $(top_builddir)/lib/libmisccontainers.la \
897 $(top_builddir)/lib/libmiscencoding.la \
898 $(top_builddir)/lib/libmiscutil.la \
903 DEFAULT_HTTP_PORT = 3128
904 DEFAULT_ICP_PORT = 3130
905 DEFAULT_PREFIX = $(prefix)
906 DEFAULT_CONFIG_DIR = $(sysconfdir)
907 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
908 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
909 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
910 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
911 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
912 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
913 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
914 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
915 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
916 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_ICON_DIR = $(datadir)/icons
921 DEFAULT_ERROR_DIR = $(datadir)/errors
923 # Make location configure settings available to the code
924 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
926 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
928 globals.cc: globals.h mk-globals-c.awk
929 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
931 ## Generate files containing string arrays for various enums....
932 hier_code.cc: hier_code.h mk-string-arrays.awk
933 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
935 err_type.cc: err_type.h mk-string-arrays.awk
936 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
938 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
939 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
941 LogTags.cc: LogTags.h mk-string-arrays.awk
942 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
944 lookup_t.cc: lookup_t.h mk-string-arrays.awk
945 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
947 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
948 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
950 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
951 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
954 ## other generated files...
956 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
957 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
959 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
960 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
962 ## If autodependency works well this is not needed anymore
963 cache_cf.o: cf_parser.cci
965 # cf_gen builds the configuration files.
966 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
967 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
969 # squid.conf.default is built by cf_gen when making cf_parser.cci
970 squid.conf.default squid.conf.documented: cf_parser.cci
973 cf_parser.cci: cf.data cf_gen$(EXEEXT)
974 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
976 # The cf_gen_defines.cci is auto-generated and does not exist when the
977 # dependencies computed. We need to add its include files (autoconf.h) here
978 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
979 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
982 ## FIXME: generate a sed command file from configure. Then this doesn't
983 ## depend on the Makefile.
984 cf.data: cf.data.pre Makefile
986 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
987 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
988 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
989 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
990 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
991 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
992 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
993 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
994 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
995 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
996 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
997 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
998 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
999 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1000 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1001 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1002 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1003 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1004 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1005 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1006 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1007 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1008 < $(srcdir)/cf.data.pre >$@
1010 repl_modules.cc: repl_modules.sh Makefile
1011 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1013 include $(top_srcdir)/doc/manuals/Substitute.am
1015 squid.8: $(srcdir)/squid.8.in Makefile
1016 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1019 EXTRA_DIST += squid.8.in
1020 CLEANFILES += squid.8
1022 install-data-local: install-sysconfDATA install-dataDATA
1023 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1024 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1026 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1027 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1029 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1030 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1032 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1033 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1035 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1036 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1037 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1038 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1039 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1040 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1041 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1043 uninstall-local: squid.conf.default
1044 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1045 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1047 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1048 DiskIO/DiskIOModules_gen.cc \
1051 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1052 cp $(top_srcdir)/test-suite/test_tools.cc .
1054 # stock tools for unit tests - library independent versions of dlink_list
1056 # globals.cc is needed by test_tools.cc.
1057 # Neither of these should be disted from here.
1064 tests/testBoilerplate \
1065 tests/testCacheManager \
1068 tests/testEventLoop \
1069 tests/test_http_range \
1070 tests/testHttpParser \
1071 tests/testHttpReply \
1072 tests/testHttpRequest \
1077 tests/testConfigParser \
1078 tests/testStatHist \
1082 check_PROGRAMS += tests/testRock
1085 check_PROGRAMS += tests/testUfs
1088 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1089 TESTS += $(check_PROGRAMS)
1091 ### Template for new Unit Test Program
1092 ## - add tests/testX to check_PROGRAMS above.
1093 ## - copy template below and substitue X for class name
1094 ## - add other component .(h|cc) files needed to link and run tests
1096 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1098 #tests_testX_SOURCES=\
1101 # tests/testMain.cc \
1104 #nodist_tests_testX_SOURCES=\
1106 #tests_testX_LDFLAGS = $(LIBADD_DL)
1107 #tests_testX_LDADD=\
1108 # $(SQUID_CPPUNIT_LIBS) \
1109 # $(SQUID_CPPUNIT_LA) \
1111 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1114 # - add other component .(h|cc) files needed to link and run tests
1115 tests_testHttpReply_SOURCES=\
1121 tests/stub_fatal.cc \
1124 HttpHeaderFieldStat.h \
1128 HttpHdrContRange.cc \
1129 HttpHdrContRange.h \
1133 HttpHdrScTarget.cc \
1138 HttpHeaderFieldInfo.h \
1140 HttpHeaderTools.cc \
1162 tests/stub_access_log.cc \
1165 tests/stub_cache_cf.cc \
1166 tests/stub_cache_manager.cc \
1167 tests/stub_debug.cc \
1168 tests/stub_errorpage.cc \
1169 tests/stub_HelperChildConfig.cc \
1170 tests/stub_libformat.cc \
1171 tests/stub_libauth.cc \
1175 tests/stub_StatHist.cc \
1177 tests/stub_store.cc \
1178 tests/stub_store_stats.cc \
1180 tests/stub_tools.cc \
1181 tests/stub_HttpRequest.cc \
1182 tests/testHttpReply.cc \
1183 tests/testHttpReply.h \
1190 nodist_tests_testHttpReply_SOURCES=\
1192 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1193 tests_testHttpReply_LDADD=\
1194 http/libsquid-http.la \
1202 $(top_builddir)/lib/libmisccontainers.la \
1203 $(top_builddir)/lib/libmiscencoding.la \
1204 $(top_builddir)/lib/libmiscutil.la \
1205 $(SQUID_CPPUNIT_LIBS) \
1206 $(SQUID_CPPUNIT_LA) \
1210 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1212 tests_testACLMaxUserIP_SOURCES= \
1217 DiskIO/ReadRequest.cc \
1218 DiskIO/WriteRequest.cc \
1222 tests/stub_fatal.cc \
1225 HelperChildConfig.h \
1226 HelperChildConfig.cc \
1230 HttpHeaderFieldInfo.h \
1232 HttpHeaderTools.cc \
1233 HttpHdrContRange.cc \
1235 HttpHeaderFieldStat.h \
1240 HttpHdrScTarget.cc \
1242 HttpRequestMethod.cc \
1258 tests/stub_StatHist.cc \
1266 StoreMetaSTDLFS.cc \
1267 StoreMetaUnpacker.cc \
1270 StoreSwapLogData.cc \
1278 tests/stub_access_log.cc \
1281 tests/stub_cache_cf.cc \
1282 tests/stub_client_side.cc \
1283 tests/stub_debug.cc \
1284 tests/stub_DelayId.cc \
1285 tests/stub_DiskIOModule.cc \
1286 tests/stub_errorpage.cc \
1289 tests/stub_HttpRequest.cc \
1290 tests/stub_HttpReply.cc \
1291 tests/stub_ipc_TypedMsgHdr.cc \
1292 tests/stub_libauth.cc \
1293 tests/stub_libcomm.cc \
1294 tests/stub_libformat.cc \
1295 tests/stub_libsslsquid.cc \
1296 tests/stub_MemObject.cc \
1297 tests/stub_MemStore.cc \
1299 tests/stub_mime.cc \
1300 tests/stub_pconn.cc \
1301 tests/stub_Port.cc \
1303 tests/stub_store.cc \
1305 tests/stub_store_rebuild.cc \
1306 tests/stub_store_stats.cc \
1307 tests/stub_store_swapout.cc \
1309 tests/stub_tools.cc \
1310 tests/stub_cache_manager.cc \
1311 tests/stub_UdsOp.cc \
1312 tests/testACLMaxUserIP.cc \
1313 tests/testACLMaxUserIP.h \
1325 nodist_tests_testACLMaxUserIP_SOURCES= \
1327 tests_testACLMaxUserIP_LDADD= \
1328 http/libsquid-http.la \
1341 $(top_builddir)/lib/libmisccontainers.la \
1342 $(top_builddir)/lib/libmiscencoding.la \
1343 $(top_builddir)/lib/libmiscutil.la \
1346 $(SQUID_CPPUNIT_LIBS) \
1350 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1351 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1352 ## $(SQUID_CPPUNIT_LA)
1354 ## a demonstration test that does nothing but shows the salient points
1355 ## involved in writing tests.
1356 tests_testBoilerplate_SOURCES = \
1357 tests/testBoilerplate.cc \
1359 tests/testBoilerplate.h \
1361 nodist_tests_testBoilerplate_SOURCES = \
1363 tests_testBoilerplate_LDADD= \
1364 $(SQUID_CPPUNIT_LIBS) \
1368 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1369 tests_testBoilerplate_DEPENDENCIES = \
1372 ## Tests of the CacheManager module.
1373 tests_testCacheManager_SOURCES = \
1375 $(ACL_REGISTRATION_SOURCES) \
1382 HttpRequestMethod.cc \
1386 tests/testCacheManager.cc \
1387 tests/testCacheManager.h \
1389 tests/stub_main_cc.cc \
1390 tests/stub_ipc_Forwarder.cc \
1391 tests/stub_store_stats.cc \
1406 ChunkedCodingParser.cc \
1411 client_side_reply.cc \
1412 client_side_request.cc \
1421 $(DELAY_POOL_SOURCE) \
1432 ExternalACLEntry.cc \
1434 tests/stub_fatal.cc \
1450 HelperChildConfig.h \
1451 HelperChildConfig.cc \
1461 HttpHeaderFieldInfo.h \
1463 HttpHeaderTools.cc \
1464 HttpHeaderFieldStat.h \
1468 HttpHdrContRange.cc \
1471 HttpHdrScTarget.cc \
1504 peer_proxy_negotiate_auth.h \
1505 peer_proxy_negotiate_auth.cc \
1508 peer_sourcehash.cc \
1528 tests/stub_libauth.cc \
1529 tests/stub_StatHist.cc \
1548 StoreFileSystem.cc \
1553 StoreMetaSTDLFS.cc \
1554 StoreMetaUnpacker.cc \
1557 StoreSwapLogData.cc \
1576 nodist_tests_testCacheManager_SOURCES = \
1578 $(DISKIO_GEN_SOURCE)
1579 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1580 tests_testCacheManager_LDADD = \
1581 http/libsquid-http.la \
1593 icmp/libicmp.la icmp/libicmp-core.la \
1595 format/libformat.la \
1599 $(ADAPTATION_LIBS) \
1606 $(top_builddir)/lib/libmisccontainers.la \
1607 $(top_builddir)/lib/libmiscencoding.la \
1608 $(top_builddir)/lib/libmiscutil.la \
1610 $(SQUID_CPPUNIT_LIBS) \
1611 $(SQUID_CPPUNIT_LA) \
1616 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1617 tests_testCacheManager_DEPENDENCIES = \
1621 tests_testDiskIO_SOURCES = \
1629 $(DELAY_POOL_SOURCE) \
1637 tests/stub_fatal.cc \
1646 HttpHeaderFieldStat.h \
1650 HttpHdrContRange.cc \
1652 HttpHdrScTarget.cc \
1654 HttpHeaderFieldInfo.h \
1656 HttpHeaderTools.cc \
1661 HttpRequestMethod.cc \
1683 tests/stub_StatHist.cc \
1685 StoreFileSystem.cc \
1690 StoreMetaSTDLFS.cc \
1691 StoreMetaUnpacker.cc \
1694 StoreSwapLogData.cc \
1708 tests/stub_access_log.cc \
1712 tests/stub_cache_cf.cc \
1713 tests/stub_cache_manager.cc \
1714 tests/stub_client_db.cc \
1715 client_side_request.h \
1716 tests/stub_client_side_request.cc \
1717 tests/stub_debug.cc \
1718 tests/stub_errorpage.cc \
1719 tests/stub_helper.cc \
1720 tests/stub_HelperChildConfig.cc \
1721 tests/stub_HttpRequest.cc \
1722 tests/stub_http.cc \
1725 tests/stub_internal.cc \
1727 tests/stub_ipcache.cc \
1728 tests/stub_libauth.cc \
1729 tests/stub_libeui.cc \
1730 tests/stub_libformat.cc \
1731 tests/stub_libicmp.cc \
1732 tests/stub_MemStore.cc \
1734 tests/stub_mime.cc \
1735 tests/stub_pconn.cc \
1736 tests/stub_Port.cc \
1737 tests/stub_store_client.cc \
1738 tests/stub_store_stats.cc \
1740 tests/stub_store_rebuild.cc \
1741 tests/stub_UdsOp.cc \
1742 tests/testDiskIO.cc \
1743 tests/testDiskIO.h \
1745 tests/testStoreSupport.cc \
1746 tests/testStoreSupport.h \
1756 nodist_tests_testDiskIO_SOURCES= \
1758 $(DISKIO_GEN_SOURCE) \
1762 tests_testDiskIO_LDADD = \
1763 http/libsquid-http.la \
1766 DnsLookupDetails.o \
1785 $(top_builddir)/lib/libmisccontainers.la \
1786 $(top_builddir)/lib/libmiscencoding.la \
1787 $(top_builddir)/lib/libmiscutil.la \
1789 $(SQUID_CPPUNIT_LIBS) \
1794 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1795 tests_testDiskIO_DEPENDENCIES = \
1800 ## Tests of the Even module.
1801 tests_testEvent_SOURCES = \
1803 $(ACL_REGISTRATION_SOURCES) \
1817 ChunkedCodingParser.cc \
1822 client_side_reply.cc \
1823 client_side_request.cc \
1833 $(DELAY_POOL_SOURCE) \
1846 ExternalACLEntry.cc \
1849 tests/stub_fatal.cc \
1864 HelperChildConfig.h \
1865 HelperChildConfig.cc \
1875 HttpHeaderFieldInfo.h \
1877 HttpHeaderTools.cc \
1878 HttpHeaderFieldStat.h \
1882 HttpHdrContRange.cc \
1885 HttpHdrScTarget.cc \
1893 HttpRequestMethod.cc \
1926 peer_proxy_negotiate_auth.h \
1927 peer_proxy_negotiate_auth.cc \
1930 peer_sourcehash.cc \
1969 StoreFileSystem.cc \
1974 StoreMetaSTDLFS.cc \
1975 StoreMetaUnpacker.cc \
1978 StoreSwapLogData.cc \
1981 tests/CapturingStoreEntry.h \
1982 tests/testEvent.cc \
1985 tests/stub_main_cc.cc \
1986 tests/stub_ipc_Forwarder.cc \
1987 tests/stub_libauth.cc \
1988 tests/stub_libeui.cc \
1989 tests/stub_store_stats.cc \
2007 nodist_tests_testEvent_SOURCES = \
2009 $(DISKIO_GEN_SOURCE)
2010 tests_testEvent_LDADD = \
2011 http/libsquid-http.la \
2022 icmp/libicmp.la icmp/libicmp-core.la \
2025 format/libformat.la \
2027 $(ADAPTATION_LIBS) \
2030 $(top_builddir)/lib/libmisccontainers.la \
2031 $(top_builddir)/lib/libmiscencoding.la \
2032 $(top_builddir)/lib/libmiscutil.la \
2039 $(SQUID_CPPUNIT_LIBS) \
2040 $(SQUID_CPPUNIT_LA) \
2045 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2046 tests_testEvent_DEPENDENCIES = \
2050 ## Tests of the EventLoop module.
2051 tests_testEventLoop_SOURCES = \
2053 $(ACL_REGISTRATION_SOURCES) \
2067 ChunkedCodingParser.cc \
2072 client_side_reply.cc \
2073 client_side_request.cc \
2083 $(DELAY_POOL_SOURCE) \
2096 ExternalACLEntry.cc \
2099 tests/stub_fatal.cc \
2114 HelperChildConfig.h \
2115 HelperChildConfig.cc \
2125 HttpHeaderFieldInfo.h \
2127 HttpHeaderTools.cc \
2128 HttpHeaderFieldStat.h \
2132 HttpHdrContRange.cc \
2135 HttpHdrScTarget.cc \
2143 HttpRequestMethod.cc \
2176 peer_proxy_negotiate_auth.h \
2177 peer_proxy_negotiate_auth.cc \
2180 peer_sourcehash.cc \
2218 StoreFileSystem.cc \
2223 StoreMetaSTDLFS.cc \
2224 StoreMetaUnpacker.cc \
2227 StoreSwapLogData.cc \
2232 tests/testEventLoop.cc \
2233 tests/testEventLoop.h \
2235 tests/stub_main_cc.cc \
2236 tests/stub_ipc_Forwarder.cc \
2237 tests/stub_libeui.cc \
2238 tests/stub_store_stats.cc \
2256 nodist_tests_testEventLoop_SOURCES = \
2258 $(DISKIO_GEN_SOURCE)
2259 tests_testEventLoop_LDADD = \
2260 http/libsquid-http.la \
2272 icmp/libicmp.la icmp/libicmp-core.la \
2275 format/libformat.la \
2277 $(ADAPTATION_LIBS) \
2280 $(top_builddir)/lib/libmisccontainers.la \
2281 $(top_builddir)/lib/libmiscencoding.la \
2282 $(top_builddir)/lib/libmiscutil.la \
2289 $(SQUID_CPPUNIT_LIBS) \
2290 $(SQUID_CPPUNIT_LA) \
2295 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2296 tests_testEventLoop_DEPENDENCIES = \
2300 tests_test_http_range_SOURCES = \
2302 $(ACL_REGISTRATION_SOURCES) \
2316 ChunkedCodingParser.cc \
2321 client_side_reply.cc \
2322 client_side_request.cc \
2332 $(DELAY_POOL_SOURCE) \
2343 ExternalACLEntry.cc \
2346 tests/stub_fatal.cc \
2361 HelperChildConfig.h \
2362 HelperChildConfig.cc \
2370 HttpHeaderFieldStat.h \
2374 HttpHdrContRange.cc \
2377 HttpHdrScTarget.cc \
2380 HttpHeaderFieldInfo.h \
2382 HttpHeaderTools.cc \
2390 HttpRequestMethod.cc \
2422 peer_proxy_negotiate_auth.h \
2423 peer_proxy_negotiate_auth.cc \
2426 peer_sourcehash.cc \
2464 StoreFileSystem.cc \
2469 StoreMetaSTDLFS.cc \
2470 StoreMetaUnpacker.cc \
2473 StoreSwapLogData.cc \
2478 tests/test_http_range.cc \
2479 tests/stub_ipc_Forwarder.cc \
2480 tests/stub_libeui.cc \
2481 tests/stub_main_cc.cc \
2482 tests/stub_MemStore.cc \
2483 tests/stub_store_stats.cc \
2500 nodist_tests_test_http_range_SOURCES = \
2502 $(DISKIO_GEN_SOURCE)
2503 tests_test_http_range_LDADD = \
2504 http/libsquid-http.la \
2515 icmp/libicmp.la icmp/libicmp-core.la \
2518 format/libformat.la \
2522 $(ADAPTATION_LIBS) \
2529 $(top_builddir)/lib/libmisccontainers.la \
2530 $(top_builddir)/lib/libmiscencoding.la \
2531 $(top_builddir)/lib/libmiscutil.la \
2533 $(SQUID_CPPUNIT_LIBS) \
2534 $(SQUID_CPPUNIT_LA) \
2539 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2540 tests_test_http_range_DEPENDENCIES = \
2543 tests_testHttpParser_SOURCES = \
2554 tests/stub_cache_cf.cc \
2555 tests/stub_cache_manager.cc \
2556 tests/stub_debug.cc \
2557 tests/stub_event.cc \
2558 tests/stub_HelperChildConfig.cc \
2560 tests/stub_tools.cc \
2561 tests/testHttpParser.cc \
2562 tests/testHttpParser.h \
2567 nodist_tests_testHttpParser_SOURCES = \
2569 tests_testHttpParser_LDADD= \
2570 http/libsquid-http.la \
2574 $(top_builddir)/lib/libmiscutil.la \
2575 $(SQUID_CPPUNIT_LIBS) \
2578 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2579 tests_testHttpParser_DEPENDENCIES = \
2582 ## Tests of the HttpRequest module.
2583 tests_testHttpRequest_SOURCES = \
2585 $(ACL_REGISTRATION_SOURCES) \
2591 HttpRequestMethod.cc \
2595 tests/testHttpRequest.h \
2596 tests/testHttpRequest.cc \
2597 tests/testHttpRequestMethod.h \
2598 tests/testHttpRequestMethod.cc \
2600 tests/stub_DiskIOModule.cc \
2601 tests/stub_main_cc.cc \
2602 tests/stub_ipc_Forwarder.cc \
2603 tests/stub_libeui.cc \
2604 tests/stub_store_stats.cc \
2620 ChunkedCodingParser.cc \
2625 client_side_reply.cc \
2626 client_side_request.cc \
2635 $(DELAY_POOL_SOURCE) \
2644 ExternalACLEntry.cc \
2646 tests/stub_fatal.cc \
2659 HelperChildConfig.h \
2660 HelperChildConfig.cc \
2670 HttpHeaderFieldInfo.h \
2672 HttpHeaderTools.cc \
2673 HttpHeaderFieldStat.h \
2677 HttpHdrContRange.cc \
2680 HttpHdrScTarget.cc \
2713 peer_proxy_negotiate_auth.h \
2714 peer_proxy_negotiate_auth.cc \
2717 peer_sourcehash.cc \
2754 StoreFileSystem.cc \
2759 StoreMetaSTDLFS.cc \
2760 StoreMetaUnpacker.cc \
2763 StoreSwapLogData.cc \
2784 nodist_tests_testHttpRequest_SOURCES = \
2786 tests_testHttpRequest_LDADD = \
2801 icmp/libicmp.la icmp/libicmp-core.la \
2804 format/libformat.la \
2805 http/libsquid-http.la \
2807 $(ADAPTATION_LIBS) \
2810 $(top_builddir)/lib/libmisccontainers.la \
2811 $(top_builddir)/lib/libmiscencoding.la \
2812 $(top_builddir)/lib/libmiscutil.la \
2815 $(SQUID_CPPUNIT_LIBS) \
2816 $(SQUID_CPPUNIT_LA) \
2821 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2822 tests_testHttpRequest_DEPENDENCIES = \
2826 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2827 ## first line - what we are testing.
2828 tests_testStore_SOURCES= \
2835 $(DELAY_POOL_SOURCE) \
2838 DiskIO/ReadRequest.cc \
2839 DiskIO/WriteRequest.cc \
2844 tests/stub_fatal.cc \
2847 HttpHeaderFieldStat.h \
2851 HttpHdrContRange.cc \
2854 HttpHdrScTarget.cc \
2855 HttpHeaderFieldInfo.h \
2857 HttpHeaderTools.cc \
2861 HttpRequestMethod.cc \
2894 StoreMetaSTDLFS.cc \
2895 StoreMetaUnpacker.cc \
2898 StoreSwapLogData.cc \
2905 tests/CapturingStoreEntry.h \
2907 tests/stub_access_log.cc \
2911 tests/stub_cache_cf.cc \
2912 tests/stub_cache_manager.cc \
2913 tests/stub_client_side_request.cc \
2914 tests/stub_comm.cc \
2915 tests/stub_debug.cc \
2916 tests/stub_DiskIOModule.cc \
2917 tests/stub_errorpage.cc \
2921 tests/stub_helper.cc \
2922 tests/stub_HelperChildConfig.cc \
2923 tests/stub_http.cc \
2924 tests/stub_libeui.cc \
2925 tests/stub_libformat.cc \
2928 tests/stub_HttpReply.cc \
2929 tests/stub_HttpRequest.cc \
2930 tests/stub_libcomm.cc \
2931 tests/stub_MemStore.cc \
2933 tests/stub_mime.cc \
2934 tests/stub_Port.cc \
2935 tests/stub_store_client.cc \
2936 tests/stub_store_stats.cc \
2938 tests/stub_store_rebuild.cc \
2939 tests/stub_store_swapout.cc \
2941 tests/stub_tools.cc \
2942 tests/stub_UdsOp.cc \
2944 tests/testStore.cc \
2946 tests/testStoreEntryStream.cc \
2947 tests/testStoreEntryStream.h \
2948 tests/testStoreController.cc \
2949 tests/testStoreController.h \
2950 tests/testStoreHashIndex.cc \
2951 tests/testStoreHashIndex.h \
2952 tests/testStoreSupport.cc \
2953 tests/testStoreSupport.h \
2954 tests/TestSwapDir.cc \
2955 tests/TestSwapDir.h \
2962 nodist_tests_testStore_SOURCES= \
2968 tests_testStore_LDADD= \
2969 http/libsquid-http.la \
2984 $(top_builddir)/lib/libmisccontainers.la \
2985 $(top_builddir)/lib/libmiscencoding.la \
2986 $(top_builddir)/lib/libmiscutil.la \
2988 $(SQUID_CPPUNIT_LIBS) \
2991 DnsLookupDetails.o \
2994 tests_testStore_LDFLAGS = $(LIBADD_DL)
2995 tests_testStore_DEPENDENCIES = \
2998 ## string needs mem.cc.
2999 ## mem.cc needs ClientInfo.h
3000 ## libsquid pulls in SquidConfig and children. stub them.
3001 tests_testString_SOURCES = \
3008 tests/testString.cc \
3009 tests/testString.h \
3012 tests/stub_cache_cf.cc \
3013 tests/stub_cache_manager.cc \
3014 tests/stub_debug.cc \
3015 tests/stub_HelperChildConfig.cc \
3017 tests/stub_tools.cc \
3021 nodist_tests_testString_SOURCES = \
3023 tests_testString_LDADD = \
3027 $(top_builddir)/lib/libmiscutil.la \
3029 $(SQUID_CPPUNIT_LIBS) \
3033 tests_testString_LDFLAGS = $(LIBADD_DL)
3034 tests_testString_DEPENDENCIES = \
3055 tests_testUfs_SOURCES = \
3059 tests/stub_cache_manager.cc \
3060 tests/stub_client_db.cc \
3061 tests/stub_HelperChildConfig.cc \
3064 tests/stub_libeui.cc \
3065 tests/stub_MemStore.cc \
3066 tests/stub_pconn.cc \
3067 tests/stub_Port.cc \
3068 tests/stub_UdsOp.cc \
3070 tests/stub_internal.cc \
3071 tests/stub_libformat.cc \
3073 tests/stub_store_rebuild.cc \
3074 tests/stub_store_stats.cc \
3076 tests/stub_fatal.cc \
3098 StoreSwapLogData.cc \
3103 StoreMetaSTDLFS.cc \
3104 StoreMetaUnpacker.cc \
3107 StoreFileSystem.cc \
3114 $(DELAY_POOL_SOURCE) \
3124 HttpRequestMethod.cc \
3133 tests/stub_cache_cf.cc \
3134 tests/stub_helper.cc \
3137 tests/stub_debug.cc \
3138 tests/stub_client_side_request.cc \
3139 tests/stub_http.cc \
3143 tests/stub_mime.cc \
3144 HttpHeaderFieldInfo.h \
3146 HttpHeaderTools.cc \
3153 HttpHdrContRange.cc \
3155 HttpHeaderFieldStat.h \
3160 HttpHdrScTarget.cc \
3170 tests/stub_errorpage.cc \
3171 tests/stub_HttpRequest.cc \
3173 tests/stub_access_log.cc \
3176 tests/stub_store_client.cc \
3178 tests/stub_tools.cc \
3179 tests/testStoreSupport.cc \
3180 tests/testStoreSupport.h \
3187 nodist_tests_testUfs_SOURCES = \
3189 $(DISKIO_GEN_SOURCE) \
3193 tests_testUfs_LDADD = \
3194 http/libsquid-http.la \
3196 DnsLookupDetails.o \
3218 $(top_builddir)/lib/libmisccontainers.la \
3219 $(top_builddir)/lib/libmiscencoding.la \
3220 $(top_builddir)/lib/libmiscutil.la \
3222 $(SQUID_CPPUNIT_LIBS) \
3226 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3227 tests_testUfs_DEPENDENCIES = \
3230 check_PROGRAMS += testRefCount
3231 testRefCount_SOURCES= \
3234 tests/stub_cbdata.cc \
3235 tests/stub_debug.cc \
3236 tests/stub_MemBuf.cc \
3237 tests/testRefCount.cc
3238 testRefCount_LDADD = \
3240 $(top_builddir)/lib/libmiscutil.la \
3244 tests_testRock_SOURCES = \
3256 tests/stub_fatal.cc \
3263 HttpHeaderFieldStat.h \
3267 HttpHdrContRange.cc \
3270 HttpHdrScTarget.cc \
3273 HttpHeaderFieldInfo.h \
3275 HttpHeaderTools.cc \
3278 HttpRequestMethod.cc \
3298 tests/stub_StatHist.cc \
3302 StoreFileSystem.cc \
3307 StoreMetaSTDLFS.cc \
3309 StoreMetaUnpacker.cc \
3311 StoreSwapLogData.cc \
3325 tests/testStoreSupport.cc \
3326 tests/testStoreSupport.h \
3328 tests/stub_access_log.cc \
3331 tests/stub_cache_cf.cc \
3333 tests/stub_cache_manager.cc \
3334 tests/stub_client_db.cc \
3335 tests/stub_client_side_request.cc \
3336 tests/stub_debug.cc \
3337 tests/stub_errorpage.cc \
3338 tests/stub_HelperChildConfig.cc \
3339 tests/stub_http.cc \
3340 tests/stub_HttpRequest.cc \
3343 tests/stub_ipcache.cc \
3344 tests/stub_libeui.cc \
3345 tests/stub_libformat.cc \
3346 tests/stub_libicmp.cc \
3347 tests/stub_libmgr.cc \
3348 tests/stub_MemStore.cc \
3350 tests/stub_mime.cc \
3351 tests/stub_Port.cc \
3352 tests/stub_pconn.cc \
3353 tests/stub_store_client.cc \
3355 tests/stub_store_rebuild.cc \
3356 tests/stub_store_stats.cc \
3358 tests/stub_tools.cc \
3364 $(DELAY_POOL_SOURCE) \
3367 nodist_tests_testRock_SOURCES = \
3368 $(DISKIO_GEN_SOURCE) \
3373 tests_testRock_LDADD = \
3374 http/libsquid-http.la \
3391 $(top_builddir)/lib/libmisccontainers.la \
3392 $(top_builddir)/lib/libmiscencoding.la \
3393 $(top_builddir)/lib/libmiscutil.la \
3395 $(SQUID_CPPUNIT_LIBS) \
3399 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3400 tests_testRock_DEPENDENCIES = \
3403 ## Tests of the URL module.
3404 ## TODO: Trim this down once the insanity is over.
3405 tests_testURL_SOURCES = \
3407 $(ACL_REGISTRATION_SOURCES) \
3421 ChunkedCodingParser.cc \
3426 client_side_reply.cc \
3427 client_side_request.cc \
3436 $(DELAY_POOL_SOURCE) \
3439 DiskIO/ReadRequest.cc \
3440 DiskIO/WriteRequest.cc \
3448 ExternalACLEntry.cc \
3450 tests/stub_fatal.cc \
3465 HelperChildConfig.h \
3466 HelperChildConfig.cc \
3474 HttpHeaderFieldStat.h \
3478 HttpHdrContRange.cc \
3481 HttpHdrScTarget.cc \
3484 HttpHeaderFieldInfo.h \
3486 HttpHeaderTools.cc \
3494 HttpRequestMethod.cc \
3527 peer_proxy_negotiate_auth.h \
3528 peer_proxy_negotiate_auth.cc \
3531 peer_sourcehash.cc \
3549 tests/stub_StatHist.cc \
3568 StoreFileSystem.cc \
3573 StoreMetaSTDLFS.cc \
3574 StoreMetaUnpacker.cc \
3577 StoreSwapLogData.cc \
3583 tests/stub_debug.cc \
3584 tests/stub_DiskIOModule.cc \
3585 tests/stub_main_cc.cc \
3586 tests/stub_ipc_Forwarder.cc \
3587 tests/stub_store_stats.cc \
3590 tests/testURLScheme.cc \
3591 tests/testURLScheme.h \
3609 nodist_tests_testURL_SOURCES = \
3611 tests_testURL_LDADD = \
3612 http/libsquid-http.la \
3628 icmp/libicmp.la icmp/libicmp-core.la \
3632 format/libformat.la \
3635 $(ADAPTATION_LIBS) \
3638 $(top_builddir)/lib/libmisccontainers.la \
3639 $(top_builddir)/lib/libmiscencoding.la \
3640 $(top_builddir)/lib/libmiscutil.la \
3642 $(SQUID_CPPUNIT_LIBS) \
3643 $(SQUID_CPPUNIT_LA) \
3648 tests_testURL_LDFLAGS = $(LIBADD_DL)
3649 tests_testURL_DEPENDENCIES = \
3653 tests_testSBuf_SOURCES= \
3657 tests/SBufFindTest.h \
3658 tests/SBufFindTest.cc \
3663 tests/stub_debug.cc \
3664 tests/stub_fatal.cc \
3665 tests/stub_HelperChildConfig.cc \
3666 tests/stub_cache_cf.cc \
3667 tests/stub_cache_manager.cc \
3668 tests/stub_store.cc \
3669 tests/stub_store_stats.cc \
3670 tests/stub_tools.cc \
3675 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3676 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3677 tests_testSBuf_LDADD=\
3678 $(SQUID_CPPUNIT_LIBS) \
3679 $(SQUID_CPPUNIT_LA) \
3685 $(top_builddir)/lib/libmiscutil.la \
3687 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3689 tests_testConfigParser_SOURCES = \
3697 tests/stub_fatal.cc \
3699 tests/testConfigParser.cc \
3700 tests/testConfigParser.h \
3703 tests/stub_cache_cf.cc \
3704 tests/stub_cache_manager.cc \
3705 tests/stub_debug.cc \
3706 tests/stub_HelperChildConfig.cc \
3708 tests/stub_tools.cc \
3712 nodist_tests_testConfigParser_SOURCES = \
3714 tests_testConfigParser_LDADD = \
3718 $(top_builddir)/lib/libmiscutil.la \
3720 $(SQUID_CPPUNIT_LIBS) \
3724 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3725 tests_testConfigParser_DEPENDENCIES = \
3728 tests_testStatHist_SOURCES = \
3731 tests/stub_fatal.cc \
3736 tests/stub_cache_manager.cc \
3737 tests/stub_comm.cc \
3738 tests/stub_debug.cc \
3739 tests/stub_DelayId.cc \
3740 tests/stub_HelperChildConfig.cc \
3743 tests/stub_MemObject.cc \
3745 tests/stub_mime.cc \
3746 tests/stub_pconn.cc \
3747 tests/stub_stmem.cc \
3749 tests/stub_store.cc \
3750 tests/stub_store_stats.cc \
3752 tests/stub_tools.cc \
3754 tests/testStatHist.cc \
3755 tests/testStatHist.h \
3757 nodist_tests_testStatHist_SOURCES = \
3759 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3760 tests_testStatHist_LDADD = \
3762 $(top_builddir)/lib/libmiscutil.la \
3763 $(top_builddir)/lib/libmisccontainers.la \
3764 $(SQUID_CPPUNIT_LIBS) \
3765 $(SQUID_CPPUNIT_LA) \
3767 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3769 tests_testVector_SOURCES = \
3770 tests/testVector.cc \
3772 tests/testVector.h \
3774 nodist_tests_testVector_SOURCES = \
3776 tests_testVector_LDADD= \
3777 $(SQUID_CPPUNIT_LIBS) \
3780 tests_testVector_LDFLAGS = $(LIBADD_DL)
3781 tests_testVector_DEPENDENCIES = \
3785 TESTS += testHeaders
3787 ## Special Universal .h dependency test script
3788 ## aborts if error encountered
3789 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3790 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3791 ## src/repl/ has no .h files and its own makefile.
3793 CLEANFILES += testHeaders