1 ## Copyright (C) 1996-2016 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
18 OutOfBoundsException.h \
39 LOADABLE_MODULES_SOURCES = \
45 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl store DiskIO
46 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl store DiskIO
50 AUTH_LIBS= auth/libauth.la
51 AUTH_ACL_LIBS= auth/libacls.la
52 check_PROGRAMS+= tests/testACLMaxUserIP
56 SUBDIRS += http ip icmp ident log ipc mgr
57 DIST_SUBDIRS += http ip icmp ident log ipc mgr
66 DIST_SUBDIRS += ssl security
76 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
78 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
87 DIST_SUBDIRS += adaptation
93 $(top_builddir)/lib/libTrie/libTrie.a \
101 DELAY_POOL_ALL_SOURCE = \
103 CompositePoolNode.h \
125 ClientDelayConfig.cc \
128 if ENABLE_DELAY_POOLS
129 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
134 if ENABLE_XPROF_STATS
135 XPROF_STATS_SOURCE = ProfStats.cc
141 HTCPSOURCE = htcp.cc htcp.h
145 LEAKFINDERSOURCE = LeakFinder.cc
151 UNLINKDSOURCE = unlinkd.h unlinkd.cc
154 UNLINKDSOURCE = unlinkd.h
163 if ENABLE_WIN32SPECIFIC
164 WIN32_SOURCE = win32.cc
165 WINSVC_SOURCE = WinSvc.cc
172 IPC_SOURCE = SquidIpc.h ipc_win32.cc
174 IPC_SOURCE = SquidIpc.h ipc.cc
177 noinst_LTLIBRARIES = libsquid.la
186 ## cfgen is used when building squid
187 ## ufsdump is a debug utility, it is possibly useful for end users with cache
188 ## corruption, but at this point we do not install it.
201 cf_gen_SOURCES = cf_gen.cc
202 nodist_cf_gen_HEADER = cf_gen_defines.cci
203 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
205 cf_gen.$(OBJEXT): cf_gen_defines.cci
207 ## cf_gen.cc needs src/cf_gen_defines.cci
208 AM_CPPFLAGS += -I$(top_builddir)/src
211 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
213 # common library for all the binaries and tests. This is kindof a catch all
214 # and smaller libraries split from this are encouraged. Using lt convenience
215 # libraries, dependencies should not be a problem either.
216 libsquid_la_SOURCES = \
227 $(ACL_REGISTRATION_SOURCES) \
239 NeighborTypeDomainList.h \
252 client_side_reply.cc \
253 client_side_reply.h \
254 client_side_request.cc \
255 client_side_request.h \
260 ClientRequestContext.h \
263 clientStreamForward.h \
264 CollapsedForwarding.cc \
265 CollapsedForwarding.h \
266 CompletionDispatcher.cc \
267 CompletionDispatcher.h \
281 $(DELAY_POOL_SOURCE) \
300 ExternalACLEntry.cc \
323 HierarchyLogEntry.h \
328 HttpHeaderFieldStat.h \
337 HttpHdrContRange.cc \
344 HttpHeaderFieldInfo.h \
370 $(LEAKFINDERSOURCE) \
397 $(XPROF_STATS_SOURCE) \
402 peer_proxy_negotiate_auth.h \
403 peer_proxy_negotiate_auth.cc \
427 SBufDetailedStats.h \
428 SBufDetailedStats.cc \
470 StoreMetaUnpacker.cc \
471 StoreMetaUnpacker.h \
472 $(STOREMETA_SOURCE) \
476 StoreSwapLogData.cc \
505 EXTRA_squid_SOURCES = \
508 $(DELAY_POOL_ALL_SOURCE) \
518 $(WIN32_ALL_SOURCE) \
519 $(LOADABLE_MODULES_SOURCES)
522 client_side_request.cci \
540 CLEANFILES += $(BUILT_SOURCES)
542 nodist_squid_SOURCES = \
552 clients/libclients.la \
553 servers/libservers.la \
555 helper/libhelper.la \
557 parser/libparser.la \
563 DiskIO/libdiskio.la \
569 security/libsecurity.la \
573 format/libformat.la \
584 $(top_builddir)/lib/libmisccontainers.la \
585 $(top_builddir)/lib/libmiscencoding.la \
586 $(top_builddir)/lib/libmiscutil.la \
595 if ENABLE_LOADABLE_MODULES
596 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
597 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
598 squid_LDFLAGS = -export-dynamic -dlopen force
599 ## when static module linking is supported and enabled:
600 ## squid_LDFLAGS = -all-static -dlopen self
602 ## LTDL headers require their local include path...
603 AM_CPPFLAGS += $(INCLTDL)
606 ## Kerberos libraries require their include path...
607 AM_CPPFLAGS += $(KRB5INCS)
610 unlinkd_SOURCES = unlinkd_daemon.cc
615 recv_announce_SOURCES = recv-announce.cc
617 ## What requires what..
618 ## many things want ACLChecklist.cc
619 ## ACLChecklist.cc wants AuthUserRequest.cc
620 ## ACLChecklist.cc wants AuthScheme.cc
621 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
622 ## ACLProxyAuth.cc wants ACLUserData
623 ## ACLProxyAuth.cc wants ACLRegexData
624 ## cache_cf.cc wants $(AUTH_LIBS)
625 ## cache_cf.cc wants store/libstore.la
626 ## cache_cf.cc wants AnyP::PortCfg
627 ## client_side wants client_db
628 ## client_db wants SNMP_SOURCE
629 ## snmp_core wants ACLStringData
630 ## tools.cc wants ip/libip.la
631 ## client_side.cc wants ip/libip.la
632 ## libbase.la wants cbdata.*
633 ## libbase.la wants MemBuf.*
647 tests/stub_StoreMeta.cc \
648 StoreMetaUnpacker.cc \
655 helper/ChildConfig.h \
656 tests/stub_HelperChildConfig.cc \
683 ufsdump_DEPENDENCIES = \
695 DiskIO/libdiskio.la \
698 nodist_ufsdump_SOURCES = \
703 squid.conf.documented \
728 include $(srcdir)/tests/Stub.list
736 mk-string-arrays.awk \
742 DEFAULT_HTTP_PORT = 3128
743 DEFAULT_ICP_PORT = 3130
744 DEFAULT_PREFIX = $(prefix)
745 DEFAULT_CONFIG_DIR = $(sysconfdir)
746 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
747 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
748 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
749 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
750 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
751 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
752 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
753 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
754 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
755 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
756 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
757 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
758 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
759 DEFAULT_ICON_DIR = $(datadir)/icons
760 DEFAULT_ERROR_DIR = $(datadir)/errors
762 # Make location configure settings available to the code
763 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
765 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
767 globals.cc: globals.h mk-globals-c.awk
768 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
770 ## Generate files containing string arrays for various enums....
771 hier_code.cc: hier_code.h mk-string-arrays.awk
772 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
774 err_type.cc: err_type.h mk-string-arrays.awk
775 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
777 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
778 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
780 lookup_t.cc: lookup_t.h mk-string-arrays.awk
781 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
783 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
784 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
786 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
787 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
790 ## other generated files...
792 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
793 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
795 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
796 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
798 ## If autodependency works well this is not needed anymore
799 cache_cf.o: cf_parser.cci
801 # cf_gen builds the configuration files.
802 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
803 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
805 # squid.conf.default is built by cf_gen when making cf_parser.cci
806 squid.conf.default squid.conf.documented: cf_parser.cci
809 cf_parser.cci: cf.data cf_gen$(EXEEXT)
810 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
812 # The cf_gen_defines.cci is auto-generated and does not exist when the
813 # dependencies computed. We need to add its include files (autoconf.h) here
814 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
815 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
818 ## FIXME: generate a sed command file from configure. Then this doesn't
819 ## depend on the Makefile.
820 cf.data: cf.data.pre Makefile
822 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
823 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
824 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
825 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
826 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
827 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
828 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
829 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
830 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
831 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
832 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
833 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
834 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
835 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
836 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
837 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
838 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
839 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
840 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
841 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
842 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
843 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
844 -f $(srcdir)/cf.data.sed \
845 < $(srcdir)/cf.data.pre >$@
847 repl_modules.cc: repl_modules.sh Makefile
848 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
850 include $(top_srcdir)/doc/manuals/Substitute.am
852 squid.8: $(srcdir)/squid.8.in Makefile
853 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
856 EXTRA_DIST += squid.8.in
857 CLEANFILES += squid.8
859 install-data-local: install-sysconfDATA install-dataDATA
860 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
861 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
863 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
864 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
866 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
867 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
869 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
870 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
872 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
873 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
874 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
875 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
876 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
877 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
878 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
880 uninstall-local: squid.conf.default
881 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
882 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
884 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
887 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
888 cp $(top_srcdir)/test-suite/test_tools.cc .
890 # stock tools for unit tests - library independent versions of dlink_list
892 # globals.cc is needed by test_tools.cc.
893 # Neither of these should be disted from here.
900 tests/testBoilerplate \
901 tests/testCacheManager \
902 tests/testCharacterSet \
905 tests/testEnumIterator \
907 tests/testEventLoop \
908 tests/test_http_range \
909 tests/testTokenizer \
910 tests/testHttp1Parser \
911 tests/testHttpReply \
912 tests/testHttpRequest \
914 tests/testIpAddress \
920 tests/testConfigParser \
922 tests/testLookupTable \
926 check_PROGRAMS += tests/testRock
929 check_PROGRAMS += tests/testUfs
932 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
933 TESTS += $(check_PROGRAMS)
935 ### Template for new Unit Test Program
936 ## - add tests/testX to check_PROGRAMS above.
937 ## - copy template below and substitue X for class name
938 ## - add other component .(h|cc) files needed to link and run tests
940 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
942 #tests_testX_SOURCES=\
947 #nodist_tests_testX_SOURCES=\
948 # tests/stubs_as_needed.cc\
950 #tests_testX_LDFLAGS = $(LIBADD_DL)
952 # $(SQUID_CPPUNIT_LIBS) \
953 # $(SQUID_CPPUNIT_LA) \
955 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
958 # - add other component .(h|cc) files needed to link and run tests
959 tests_testHttpReply_SOURCES=\
965 tests/stub_fatal.cc \
968 HttpHeaderFieldStat.h \
972 HttpHdrContRange.cc \
982 HttpHeaderFieldInfo.h \
1004 SBufDetailedStats.h \
1005 tests/stub_SBufDetailedStats.cc \
1010 tests/stub_access_log.cc \
1012 tests/stub_cache_cf.cc \
1013 tests/stub_cache_manager.cc \
1014 tests/stub_comm.cc \
1015 tests/stub_debug.cc \
1016 tests/stub_errorpage.cc \
1017 tests/stub_event.cc \
1019 tests/stub_HelperChildConfig.cc \
1020 tests/stub_libformat.cc \
1021 tests/stub_libauth.cc \
1022 tests/stub_libcomm.cc \
1023 tests/stub_libmgr.cc \
1024 tests/stub_libsecurity.cc \
1025 tests/stub_libsslsquid.cc \
1029 tests/stub_StatHist.cc \
1031 tests/stub_store.cc \
1032 tests/stub_store_stats.cc \
1034 tests/stub_tools.cc \
1035 tests/stub_HttpRequest.cc \
1036 tests/testHttpReply.cc \
1037 tests/testHttpReply.h \
1038 tests/stub_time.cc \
1042 nodist_tests_testHttpReply_SOURCES=\
1044 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1045 tests_testHttpReply_LDADD=\
1048 parser/libparser.la \
1057 $(top_builddir)/lib/libmisccontainers.la \
1058 $(top_builddir)/lib/libmiscencoding.la \
1059 $(top_builddir)/lib/libmiscutil.la \
1060 $(SQUID_CPPUNIT_LIBS) \
1061 $(SQUID_CPPUNIT_LA) \
1066 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1068 tests_testACLMaxUserIP_SOURCES= \
1071 tests/stub_CollapsedForwarding.cc \
1074 tests/stub_ETag.cc \
1077 tests/stub_fatal.cc \
1083 HttpHeaderFieldInfo.h \
1085 HttpHeaderTools.cc \
1086 HttpHdrContRange.cc \
1088 HttpHeaderFieldStat.h \
1093 HttpHdrScTarget.cc \
1105 tests/stub_libsecurity.cc \
1112 tests/stub_StatHist.cc \
1117 SBufDetailedStats.h \
1118 tests/stub_SBufDetailedStats.cc \
1121 tests/stub_StoreMeta.cc \
1122 StoreMetaUnpacker.cc \
1123 StoreSwapLogData.cc \
1128 tests/stub_SwapDir.cc \
1131 tests/stub_access_log.cc \
1133 tests/stub_cache_cf.cc \
1134 tests/stub_client_side.cc \
1135 tests/stub_debug.cc \
1136 tests/stub_DelayId.cc \
1137 tests/stub_errorpage.cc \
1140 tests/stub_HttpRequest.cc \
1141 tests/stub_HttpReply.cc \
1142 tests/stub_ipc_TypedMsgHdr.cc \
1143 tests/stub_libauth.cc \
1144 tests/stub_libcomm.cc \
1145 tests/stub_libdiskio.cc \
1146 tests/stub_libformat.cc \
1147 tests/stub_libmem.cc \
1148 tests/stub_libsslsquid.cc \
1149 tests/stub_MemObject.cc \
1150 tests/stub_MemStore.cc \
1152 tests/stub_mime.cc \
1153 tests/stub_pconn.cc \
1154 tests/stub_Port.cc \
1156 tests/stub_store.cc \
1157 tests/stub_store_client.cc \
1159 tests/stub_store_rebuild.cc \
1160 tests/stub_store_stats.cc \
1161 tests/stub_store_swapout.cc \
1163 tests/stub_tools.cc \
1164 tests/stub_cache_manager.cc \
1165 tests/stub_UdsOp.cc \
1166 tests/testACLMaxUserIP.cc \
1167 tests/testACLMaxUserIP.h \
1168 tests/stub_time.cc \
1174 nodist_tests_testACLMaxUserIP_SOURCES= \
1176 tests_testACLMaxUserIP_LDADD= \
1178 helper/libhelper.la \
1180 parser/libparser.la \
1192 $(top_builddir)/lib/libmisccontainers.la \
1193 $(top_builddir)/lib/libmiscencoding.la \
1194 $(top_builddir)/lib/libmiscutil.la \
1197 $(SQUID_CPPUNIT_LIBS) \
1201 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1202 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1203 ## $(SQUID_CPPUNIT_LA)
1205 ## a demonstration test that does nothing but shows the salient points
1206 ## involved in writing tests.
1207 tests_testBoilerplate_SOURCES = \
1208 tests/testBoilerplate.cc \
1209 tests/testBoilerplate.h \
1210 tests/stub_debug.cc \
1211 tests/stub_libmem.cc \
1213 nodist_tests_testBoilerplate_SOURCES = \
1214 tests/stub_cbdata.cc \
1215 tests/stub_MemBuf.cc \
1217 tests_testBoilerplate_LDADD= \
1218 $(SQUID_CPPUNIT_LIBS) \
1223 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1224 tests_testBoilerplate_DEPENDENCIES = \
1227 ## Tests of base/libbase.la objects
1228 tests_testCharacterSet_SOURCES = \
1229 tests/testCharacterSet.cc \
1230 tests/testCharacterSet.h
1231 nodist_tests_testCharacterSet_SOURCES = \
1232 base/CharacterSet.h \
1234 tests/stub_cbdata.cc \
1235 tests/stub_debug.cc \
1236 tests/stub_libmem.cc \
1237 tests/stub_MemBuf.cc
1238 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1239 tests_testCharacterSet_LDADD= \
1242 $(SQUID_CPPUNIT_LA) \
1243 $(SQUID_CPPUNIT_LIBS) \
1246 ## Tests of the CacheManager module.
1247 tests_testCacheManager_SOURCES = \
1254 tests/testCacheManager.cc \
1255 tests/testCacheManager.h \
1256 tests/stub_main_cc.cc \
1257 tests/stub_HttpControlMsg.cc \
1258 tests/stub_ipc_Forwarder.cc \
1259 tests/stub_store_stats.cc \
1260 tests/stub_EventLoop.cc \
1271 tests/stub_CacheDigest.cc \
1273 tests/stub_carp.cc \
1279 client_side_reply.cc \
1280 client_side_request.cc \
1283 tests/stub_CollapsedForwarding.cc \
1290 $(DELAY_POOL_SOURCE) \
1297 tests/stub_ETag.cc \
1300 ExternalACLEntry.cc \
1302 tests/stub_fatal.cc \
1323 HttpHeaderFieldInfo.h \
1325 HttpHeaderTools.cc \
1326 HttpHeaderFieldStat.h \
1330 HttpHdrContRange.cc \
1333 HttpHdrScTarget.cc \
1345 tests/stub_libsecurity.cc \
1366 peer_proxy_negotiate_auth.h \
1367 peer_proxy_negotiate_auth.cc \
1370 peer_sourcehash.cc \
1378 tests/stub_redirect.cc \
1385 SBufDetailedStats.h \
1386 tests/stub_SBufDetailedStats.cc \
1398 tests/stub_libauth_acls.cc \
1399 tests/stub_libauth.cc \
1400 tests/stub_libdiskio.cc \
1401 tests/stub_StatHist.cc \
1407 tests/stub_store_digest.cc \
1419 StoreFileSystem.cc \
1421 tests/stub_StoreMeta.cc \
1422 StoreMetaUnpacker.cc \
1423 StoreSwapLogData.cc \
1427 tests/stub_tunnel.cc \
1428 tests/stub_SwapDir.cc \
1435 tests/stub_wccp2.cc \
1437 tests/stub_whois.cc \
1442 nodist_tests_testCacheManager_SOURCES = \
1444 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1445 tests_testCacheManager_LDADD = \
1447 clients/libclients.la \
1448 servers/libservers.la \
1450 helper/libhelper.la \
1452 parser/libparser.la \
1465 format/libformat.la \
1467 $(ADAPTATION_LIBS) \
1476 $(top_builddir)/lib/libmisccontainers.la \
1477 $(top_builddir)/lib/libmiscencoding.la \
1478 $(top_builddir)/lib/libmiscutil.la \
1481 $(SQUID_CPPUNIT_LIBS) \
1482 $(SQUID_CPPUNIT_LA) \
1487 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1488 tests_testCacheManager_DEPENDENCIES = \
1492 tests_testDiskIO_SOURCES = \
1494 tests/stub_CacheDigest.cc \
1498 tests/stub_CollapsedForwarding.cc \
1501 $(DELAY_POOL_SOURCE) \
1504 tests/stub_ETag.cc \
1508 tests/stub_fatal.cc \
1517 HttpHeaderFieldStat.h \
1521 HttpHdrContRange.cc \
1523 HttpHdrScTarget.cc \
1525 HttpHeaderFieldInfo.h \
1527 HttpHeaderTools.cc \
1549 tests/stub_libsecurity.cc \
1553 tests/stub_StatHist.cc \
1558 SBufDetailedStats.h \
1559 tests/stub_SBufDetailedStats.cc \
1560 StoreFileSystem.cc \
1562 tests/stub_StoreMeta.cc \
1563 StoreMetaUnpacker.cc \
1564 StoreSwapLogData.cc \
1575 tests/stub_SwapDir.cc \
1578 tests/stub_access_log.cc \
1581 tests/stub_cache_cf.cc \
1582 tests/stub_cache_manager.cc \
1583 tests/stub_client_db.cc \
1584 client_side_request.h \
1585 tests/stub_client_side_request.cc \
1586 tests/stub_debug.cc \
1587 tests/stub_errorpage.cc \
1588 tests/stub_helper.cc \
1589 tests/stub_HelperChildConfig.cc \
1590 tests/stub_HttpRequest.cc \
1591 tests/stub_http.cc \
1594 tests/stub_internal.cc \
1596 tests/stub_ipcache.cc \
1597 tests/stub_libauth_acls.cc \
1598 tests/stub_libauth.cc \
1599 tests/stub_libeui.cc \
1600 tests/stub_libformat.cc \
1601 tests/stub_libicmp.cc \
1602 tests/stub_MemStore.cc \
1604 tests/stub_mime.cc \
1605 tests/stub_neighbors.cc \
1606 tests/stub_pconn.cc \
1607 tests/stub_Port.cc \
1608 tests/stub_stat.cc \
1609 tests/stub_store_client.cc \
1610 tests/stub_store_stats.cc \
1612 tests/stub_store_rebuild.cc \
1613 tests/stub_UdsOp.cc \
1614 tests/testDiskIO.cc \
1615 tests/testDiskIO.h \
1616 tests/testStoreSupport.cc \
1617 tests/testStoreSupport.h \
1618 tests/stub_time.cc \
1626 nodist_tests_testDiskIO_SOURCES= \
1631 tests_testDiskIO_LDADD = \
1634 parser/libparser.la \
1645 DiskIO/libdiskio.la \
1655 $(top_builddir)/lib/libmisccontainers.la \
1656 $(top_builddir)/lib/libmiscencoding.la \
1657 $(top_builddir)/lib/libmiscutil.la \
1660 $(SQUID_CPPUNIT_LIBS) \
1665 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1666 tests_testDiskIO_DEPENDENCIES = \
1667 DiskIO/libdiskio.la \
1671 tests_testDns_SOURCES= \
1672 tests/testRFC1035.cc \
1674 nodist_tests_testDns_SOURCES= \
1675 tests/stub_debug.cc \
1676 tests/stub_libmem.cc \
1677 tests/stub_SBuf.cc \
1679 tests_testDns_LDADD= \
1682 $(top_builddir)/lib/libmiscutil.la \
1685 $(SQUID_CPPUNIT_LA) \
1686 $(SQUID_CPPUNIT_LIBS)
1687 tests_testDns_LDFLAGS= $(LIBADD_DL)
1689 tests_testEvent_SOURCES = \
1693 tests/stub_CacheDigest.cc \
1702 tests/stub_carp.cc \
1708 client_side_reply.cc \
1709 client_side_request.cc \
1712 tests/stub_CollapsedForwarding.cc \
1720 $(DELAY_POOL_SOURCE) \
1727 tests/stub_ETag.cc \
1732 ExternalACLEntry.cc \
1735 tests/stub_fatal.cc \
1753 tests/stub_HttpControlMsg.cc \
1756 HttpHeaderFieldInfo.h \
1758 HttpHeaderTools.cc \
1759 HttpHeaderFieldStat.h \
1763 HttpHdrContRange.cc \
1766 HttpHdrScTarget.cc \
1783 tests/stub_libsecurity.cc \
1788 tests/stub_libmem.cc \
1805 peer_proxy_negotiate_auth.h \
1806 peer_proxy_negotiate_auth.cc \
1809 peer_sourcehash.cc \
1815 tests/stub_redirect.cc \
1824 SBufDetailedStats.h \
1825 tests/stub_SBufDetailedStats.cc \
1841 tests/stub_store_digest.cc \
1853 StoreFileSystem.cc \
1855 tests/stub_StoreMeta.cc \
1856 StoreMetaUnpacker.cc \
1857 StoreSwapLogData.cc \
1859 tests/stub_SwapDir.cc \
1860 tests/CapturingStoreEntry.h \
1861 tests/testEvent.cc \
1863 tests/stub_main_cc.cc \
1864 tests/stub_ipc_Forwarder.cc \
1865 tests/stub_libauth_acls.cc \
1866 tests/stub_libauth.cc \
1867 tests/stub_libdiskio.cc \
1868 tests/stub_libeui.cc \
1869 tests/stub_store_stats.cc \
1874 tests/stub_tunnel.cc \
1881 tests/stub_wccp2.cc \
1883 tests/stub_whois.cc \
1887 nodist_tests_testEvent_SOURCES = \
1889 tests_testEvent_LDADD = \
1891 clients/libclients.la \
1892 servers/libservers.la \
1894 helper/libhelper.la \
1896 parser/libparser.la \
1909 format/libformat.la \
1911 $(ADAPTATION_LIBS) \
1914 $(top_builddir)/lib/libmisccontainers.la \
1915 $(top_builddir)/lib/libmiscencoding.la \
1916 $(top_builddir)/lib/libmiscutil.la \
1923 $(SQUID_CPPUNIT_LIBS) \
1924 $(SQUID_CPPUNIT_LA) \
1929 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1930 tests_testEvent_DEPENDENCIES = \
1934 ## Tests of the EventLoop module.
1935 tests_testEventLoop_SOURCES = \
1939 tests/stub_CacheDigest.cc \
1948 tests/stub_carp.cc \
1954 client_side_reply.cc \
1955 client_side_request.cc \
1958 tests/stub_CollapsedForwarding.cc \
1966 $(DELAY_POOL_SOURCE) \
1973 tests/stub_ETag.cc \
1978 ExternalACLEntry.cc \
1981 tests/stub_fatal.cc \
1999 tests/stub_HttpControlMsg.cc \
2002 HttpHeaderFieldInfo.h \
2004 HttpHeaderTools.cc \
2005 HttpHeaderFieldStat.h \
2009 HttpHdrContRange.cc \
2012 HttpHdrScTarget.cc \
2035 tests/stub_libmem.cc \
2050 peer_proxy_negotiate_auth.h \
2051 peer_proxy_negotiate_auth.cc \
2054 peer_sourcehash.cc \
2061 tests/stub_redirect.cc \
2067 SBufDetailedStats.h \
2068 tests/stub_SBufDetailedStats.cc \
2084 tests/stub_store_digest.cc \
2096 StoreFileSystem.cc \
2098 tests/stub_StoreMeta.cc \
2099 StoreMetaUnpacker.cc \
2100 StoreSwapLogData.cc \
2104 tests/stub_SwapDir.cc \
2105 tests/testEventLoop.cc \
2106 tests/testEventLoop.h \
2107 tests/stub_main_cc.cc \
2108 tests/stub_ipc_Forwarder.cc \
2109 tests/stub_libauth_acls.cc \
2110 tests/stub_libauth.cc \
2111 tests/stub_libdiskio.cc \
2112 tests/stub_libeui.cc \
2113 tests/stub_libsecurity.cc \
2114 tests/stub_store_stats.cc \
2119 tests/stub_tunnel.cc \
2126 tests/stub_wccp2.cc \
2128 tests/stub_whois.cc \
2132 nodist_tests_testEventLoop_SOURCES = \
2134 tests_testEventLoop_LDADD = \
2136 clients/libclients.la \
2137 servers/libservers.la \
2139 helper/libhelper.la \
2141 parser/libparser.la \
2154 format/libformat.la \
2156 $(ADAPTATION_LIBS) \
2159 $(top_builddir)/lib/libmisccontainers.la \
2160 $(top_builddir)/lib/libmiscencoding.la \
2161 $(top_builddir)/lib/libmiscutil.la \
2168 $(SQUID_CPPUNIT_LIBS) \
2169 $(SQUID_CPPUNIT_LA) \
2174 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2175 tests_testEventLoop_DEPENDENCIES = \
2179 tests_test_http_range_SOURCES = \
2190 tests/stub_CacheDigest.cc \
2192 tests/stub_carp.cc \
2198 client_side_reply.cc \
2199 client_side_request.cc \
2202 tests/stub_CollapsedForwarding.cc \
2210 $(DELAY_POOL_SOURCE) \
2217 tests/stub_ETag.cc \
2221 tests/stub_libauth.cc \
2222 tests/stub_fatal.cc \
2240 tests/stub_HttpControlMsg.cc \
2241 HttpHeaderFieldStat.h \
2245 HttpHdrContRange.cc \
2248 HttpHdrScTarget.cc \
2251 HttpHeaderFieldInfo.h \
2253 HttpHeaderTools.cc \
2276 tests/stub_libmem.cc \
2290 peer_proxy_negotiate_auth.h \
2291 peer_proxy_negotiate_auth.cc \
2294 peer_sourcehash.cc \
2301 tests/stub_redirect.cc \
2308 SBufDetailedStats.h \
2309 tests/stub_SBufDetailedStats.cc \
2325 tests/stub_store_digest.cc \
2337 StoreFileSystem.cc \
2339 tests/stub_StoreMeta.cc \
2340 StoreMetaUnpacker.cc \
2341 StoreSwapLogData.cc \
2345 tests/stub_SwapDir.cc \
2347 tests/test_http_range.cc \
2348 tests/stub_external_acl.cc \
2349 tests/stub_ipc_Forwarder.cc \
2350 tests/stub_libdiskio.cc \
2351 tests/stub_libeui.cc \
2352 tests/stub_libsecurity.cc \
2353 tests/stub_main_cc.cc \
2354 tests/stub_MemStore.cc \
2355 tests/stub_store_stats.cc \
2356 tests/stub_EventLoop.cc \
2360 tests/stub_tunnel.cc \
2366 tests/stub_wccp2.cc \
2368 tests/stub_whois.cc \
2372 nodist_tests_test_http_range_SOURCES = \
2374 tests_test_http_range_LDADD = \
2376 clients/libclients.la \
2377 servers/libservers.la \
2379 helper/libhelper.la \
2381 parser/libparser.la \
2386 parser/libparser.la \
2393 format/libformat.la \
2395 $(ADAPTATION_LIBS) \
2404 $(top_builddir)/lib/libmisccontainers.la \
2405 $(top_builddir)/lib/libmiscencoding.la \
2406 $(top_builddir)/lib/libmiscutil.la \
2409 $(SQUID_CPPUNIT_LIBS) \
2410 $(SQUID_CPPUNIT_LA) \
2415 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2416 tests_test_http_range_DEPENDENCIES = \
2419 ## Tests of parser/* objects
2420 tests_testTokenizer_SOURCES = \
2421 tests/testTokenizer.h \
2422 tests/testTokenizer.cc
2423 nodist_tests_testTokenizer_SOURCES = \
2424 parser/Tokenizer.h \
2429 tests/stub_debug.cc \
2430 tests/stub_libmem.cc \
2431 tests/stub_time.cc \
2432 tests/stub_SBufDetailedStats.cc
2433 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2434 tests_testTokenizer_LDADD = \
2435 parser/libparser.la \
2437 $(top_builddir)/lib/libmiscutil.la \
2439 $(SQUID_CPPUNIT_LA) \
2440 $(SQUID_CPPUNIT_LIBS) \
2443 tests_testHttp1Parser_SOURCES = \
2447 tests/stub_MemObject.cc \
2455 tests/stub_SBufDetailedStats.cc \
2456 tests/stub_cache_cf.cc \
2457 tests/stub_cache_manager.cc \
2458 tests/stub_comm.cc \
2459 tests/stub_cbdata.cc \
2460 tests/stub_debug.cc \
2461 tests/stub_event.cc \
2462 tests/stub_HelperChildConfig.cc \
2463 tests/stub_libmem.cc \
2464 tests/stub_libsecurity.cc \
2465 tests/stub_stmem.cc \
2466 tests/stub_store.cc \
2467 tests/stub_store_stats.cc \
2469 tests/stub_tools.cc \
2470 tests/testHttp1Parser.cc \
2471 tests/testHttp1Parser.h \
2472 tests/stub_time.cc \
2475 nodist_tests_testHttp1Parser_SOURCES = \
2477 tests_testHttp1Parser_LDADD= \
2479 parser/libparser.la \
2484 $(top_builddir)/lib/libmiscutil.la \
2485 $(SQUID_CPPUNIT_LIBS) \
2489 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2490 tests_testHttp1Parser_DEPENDENCIES = \
2493 ## Tests of the HttpRequest module.
2494 tests_testHttpRequest_SOURCES = \
2499 tests/stub_libmem.cc \
2501 tests/testHttpRequest.h \
2502 tests/testHttpRequest.cc \
2503 tests/testHttpRequestMethod.h \
2504 tests/testHttpRequestMethod.cc \
2505 tests/stub_libauth.cc \
2506 tests/stub_main_cc.cc \
2507 tests/stub_ipc_Forwarder.cc \
2508 tests/stub_libdiskio.cc \
2509 tests/stub_libeui.cc \
2510 tests/stub_store_stats.cc \
2511 tests/stub_EventLoop.cc \
2521 tests/stub_CacheDigest.cc \
2525 tests/stub_carp.cc \
2531 client_side_reply.cc \
2532 client_side_request.cc \
2535 tests/stub_CollapsedForwarding.cc \
2542 $(DELAY_POOL_SOURCE) \
2549 tests/stub_ETag.cc \
2551 ExternalACLEntry.cc \
2553 tests/stub_fatal.cc \
2569 tests/stub_HttpControlMsg.cc \
2572 HttpHeaderFieldInfo.h \
2574 HttpHeaderTools.cc \
2575 HttpHeaderFieldStat.h \
2579 HttpHdrContRange.cc \
2582 HttpHdrScTarget.cc \
2594 tests/stub_libsecurity.cc \
2615 peer_proxy_negotiate_auth.h \
2616 peer_proxy_negotiate_auth.cc \
2619 peer_sourcehash.cc \
2627 tests/stub_libauth_acls.cc \
2628 tests/stub_redirect.cc \
2635 SBufDetailedStats.h \
2636 tests/stub_SBufDetailedStats.cc \
2652 tests/stub_store_digest.cc \
2664 StoreFileSystem.cc \
2666 tests/stub_StoreMeta.cc \
2667 StoreMetaUnpacker.cc \
2668 StoreSwapLogData.cc \
2675 tests/stub_tunnel.cc \
2676 tests/stub_SwapDir.cc \
2682 tests/stub_wccp2.cc \
2684 tests/stub_whois.cc \
2689 nodist_tests_testHttpRequest_SOURCES = \
2691 tests_testHttpRequest_LDADD = \
2693 clients/libclients.la \
2694 servers/libservers.la \
2695 helper/libhelper.la \
2702 parser/libparser.la \
2707 parser/libparser.la \
2716 format/libformat.la \
2719 $(ADAPTATION_LIBS) \
2721 $(top_builddir)/lib/libmisccontainers.la \
2722 $(top_builddir)/lib/libmiscencoding.la \
2723 $(top_builddir)/lib/libmiscutil.la \
2726 $(SQUID_CPPUNIT_LIBS) \
2727 $(SQUID_CPPUNIT_LA) \
2732 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2733 tests_testHttpRequest_DEPENDENCIES = \
2737 ## Tests for icmp/* objects
2738 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2739 tests_testIcmp_SOURCES = \
2742 nodist_tests_testIcmp_SOURCES = \
2745 tests/stub_debug.cc \
2746 tests/stub_libmem.cc \
2749 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2750 tests_testIcmp_LDADD=\
2751 icmp/libicmpcore.la \
2755 $(SQUID_CPPUNIT_LA) \
2756 $(SQUID_CPPUNIT_LIBS) \
2759 ## Tests for ip/* objects
2760 tests_testIpAddress_SOURCES= \
2761 tests/testAddress.cc \
2763 nodist_tests_testIpAddress_SOURCES= \
2765 tests/stub_debug.cc \
2766 tests/stub_libmem.cc \
2768 tests_testIpAddress_LDADD= \
2772 $(SQUID_CPPUNIT_LA) \
2773 $(SQUID_CPPUNIT_LIBS) \
2775 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2777 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2778 ## first line - what we are testing.
2779 tests_testStore_SOURCES= \
2781 tests/stub_CacheDigest.cc \
2784 tests/stub_CollapsedForwarding.cc \
2787 $(DELAY_POOL_SOURCE) \
2794 tests/stub_fatal.cc \
2797 HttpHeaderFieldStat.h \
2801 HttpHdrContRange.cc \
2804 HttpHdrScTarget.cc \
2805 HttpHeaderFieldInfo.h \
2807 HttpHeaderTools.cc \
2838 tests/stub_StoreMeta.cc \
2839 StoreMetaUnpacker.cc \
2840 StoreSwapLogData.cc \
2846 SBufDetailedStats.h \
2847 tests/stub_SBufDetailedStats.cc \
2851 tests/CapturingStoreEntry.h \
2853 tests/stub_access_log.cc \
2856 tests/stub_cache_cf.cc \
2857 tests/stub_cache_manager.cc \
2858 tests/stub_client_side_request.cc \
2859 tests/stub_comm.cc \
2860 tests/stub_debug.cc \
2861 tests/stub_errorpage.cc \
2865 tests/stub_helper.cc \
2866 tests/stub_HelperChildConfig.cc \
2867 tests/stub_http.cc \
2868 tests/stub_libauth.cc \
2869 tests/stub_libeui.cc \
2870 tests/stub_libdiskio.cc \
2871 tests/stub_libformat.cc \
2872 tests/stub_libsecurity.cc \
2873 tests/stub_libsslsquid.cc \
2876 tests/stub_HttpReply.cc \
2877 tests/stub_HttpRequest.cc \
2878 tests/stub_libcomm.cc \
2879 tests/stub_MemStore.cc \
2881 tests/stub_mime.cc \
2882 tests/stub_Port.cc \
2883 tests/stub_stat.cc \
2884 tests/stub_store_client.cc \
2885 tests/stub_store_stats.cc \
2887 tests/stub_store_rebuild.cc \
2888 tests/stub_store_swapout.cc \
2891 tests/stub_tools.cc \
2892 tests/stub_UdsOp.cc \
2893 tests/testPackableStream.cc \
2894 tests/testPackableStream.h \
2895 tests/testStore.cc \
2897 tests/testStoreController.cc \
2898 tests/testStoreController.h \
2899 tests/testStoreHashIndex.cc \
2900 tests/testStoreHashIndex.h \
2901 tests/testStoreSupport.cc \
2902 tests/testStoreSupport.h \
2903 tests/TestSwapDir.cc \
2904 tests/TestSwapDir.h \
2905 tests/stub_time.cc \
2910 nodist_tests_testStore_SOURCES= \
2916 tests_testStore_LDADD= \
2919 parser/libparser.la \
2933 DiskIO/libdiskio.la \
2934 $(top_builddir)/lib/libmisccontainers.la \
2935 $(top_builddir)/lib/libmiscencoding.la \
2936 $(top_builddir)/lib/libmiscutil.la \
2939 $(SQUID_CPPUNIT_LIBS) \
2944 tests_testStore_LDFLAGS = $(LIBADD_DL)
2945 tests_testStore_DEPENDENCIES = \
2948 ## string needs mem.cc.
2949 ## mem.cc needs ClientInfo.h
2950 ## libsquid pulls in SquidConfig and children. stub them.
2951 tests_testString_SOURCES = \
2956 SBufDetailedStats.h \
2957 tests/stub_SBufDetailedStats.cc \
2958 tests/testString.cc \
2959 tests/testString.h \
2961 tests/stub_cache_cf.cc \
2962 tests/stub_cache_manager.cc \
2963 tests/stub_cbdata.cc \
2964 tests/stub_debug.cc \
2965 tests/stub_HelperChildConfig.cc \
2966 tests/stub_libmem.cc \
2968 tests/stub_tools.cc \
2969 tests/stub_time.cc \
2972 nodist_tests_testString_SOURCES = \
2974 tests_testString_LDADD = \
2978 $(top_builddir)/lib/libmiscutil.la \
2980 $(SQUID_CPPUNIT_LIBS) \
2984 tests_testString_LDFLAGS = $(LIBADD_DL)
2985 tests_testString_DEPENDENCIES = \
2998 DiskIO/libdiskio.la \
3004 tests_testUfs_SOURCES = \
3007 tests/stub_cache_manager.cc \
3008 tests/stub_client_db.cc \
3009 tests/stub_CollapsedForwarding.cc \
3010 tests/stub_HelperChildConfig.cc \
3013 tests/stub_ipcache.cc \
3014 tests/stub_libeui.cc \
3015 tests/stub_libicmp.cc \
3016 tests/stub_MemStore.cc \
3017 tests/stub_neighbors.cc \
3018 tests/stub_pconn.cc \
3019 tests/stub_Port.cc \
3020 tests/stub_UdsOp.cc \
3022 tests/stub_internal.cc \
3023 tests/stub_libformat.cc \
3024 tests/stub_libsecurity.cc \
3025 tests/stub_stat.cc \
3027 tests/stub_store_rebuild.cc \
3028 tests/stub_store_stats.cc \
3030 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 \
3081 tests/stub_cache_cf.cc \
3082 tests/stub_helper.cc \
3087 SBufDetailedStats.h \
3088 tests/stub_SBufDetailedStats.cc \
3090 tests/stub_debug.cc \
3091 tests/stub_client_side_request.cc \
3092 tests/stub_http.cc \
3093 tests/stub_libauth.cc \
3097 tests/stub_mime.cc \
3098 HttpHeaderFieldInfo.h \
3100 HttpHeaderTools.cc \
3105 HttpHdrContRange.cc \
3106 HttpHeaderFieldStat.h \
3111 HttpHdrScTarget.cc \
3121 tests/stub_errorpage.cc \
3122 tests/stub_HttpRequest.cc \
3124 tests/stub_access_log.cc \
3127 tests/stub_store_client.cc \
3129 tests/stub_tools.cc \
3130 tests/testStoreSupport.cc \
3131 tests/testStoreSupport.h \
3136 nodist_tests_testUfs_SOURCES = \
3141 tests_testUfs_LDADD = \
3143 parser/libparser.la \
3155 DiskIO/libdiskio.la \
3166 $(top_builddir)/lib/libmisccontainers.la \
3167 $(top_builddir)/lib/libmiscencoding.la \
3168 $(top_builddir)/lib/libmiscutil.la \
3171 $(SQUID_CPPUNIT_LIBS) \
3175 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3176 tests_testUfs_DEPENDENCIES = \
3179 check_PROGRAMS += testRefCount
3180 testRefCount_SOURCES= \
3183 tests/stub_cbdata.cc \
3184 tests/stub_debug.cc \
3185 tests/stub_libmem.cc \
3186 tests/stub_MemBuf.cc \
3187 tests/testRefCount.cc
3188 testRefCount_LDADD = \
3190 $(top_builddir)/lib/libmiscutil.la \
3194 tests_testRock_SOURCES = \
3197 CollapsedForwarding.h \
3198 CollapsedForwarding.cc \
3199 tests/stub_CacheDigest.cc \
3215 HttpHeaderFieldStat.h \
3219 HttpHdrContRange.cc \
3222 HttpHdrScTarget.cc \
3225 HttpHeaderFieldInfo.h \
3227 HttpHeaderTools.cc \
3248 tests/stub_StatHist.cc \
3251 tests/stub_stat.cc \
3253 StoreFileSystem.cc \
3255 StoreMetaUnpacker.cc \
3256 $(STOREMETA_SOURCE) \
3257 StoreSwapLogData.cc \
3266 SBufDetailedStats.h \
3267 tests/stub_SBufDetailedStats.cc \
3275 tests/testStoreSupport.cc \
3276 tests/testStoreSupport.h \
3278 tests/stub_access_log.cc \
3280 tests/stub_cache_cf.cc \
3282 tests/stub_cache_manager.cc \
3283 tests/stub_client_db.cc \
3284 tests/stub_client_side_request.cc \
3285 tests/stub_debug.cc \
3286 tests/stub_errorpage.cc \
3287 tests/stub_HelperChildConfig.cc \
3288 tests/stub_http.cc \
3289 tests/stub_HttpRequest.cc \
3290 tests/stub_libauth.cc \
3293 tests/stub_ipcache.cc \
3294 tests/stub_libeui.cc \
3295 tests/stub_libformat.cc \
3296 tests/stub_libicmp.cc \
3297 tests/stub_libmgr.cc \
3298 tests/stub_libsecurity.cc \
3299 tests/stub_MemStore.cc \
3301 tests/stub_mime.cc \
3302 tests/stub_neighbors.cc \
3303 tests/stub_Port.cc \
3304 tests/stub_pconn.cc \
3305 tests/stub_store_client.cc \
3307 tests/stub_store_rebuild.cc \
3308 tests/stub_store_stats.cc \
3310 tests/stub_tools.cc \
3315 $(DELAY_POOL_SOURCE) \
3317 nodist_tests_testRock_SOURCES = \
3322 tests_testRock_LDADD = \
3324 parser/libparser.la \
3331 DiskIO/libdiskio.la \
3342 $(top_builddir)/lib/libmisccontainers.la \
3343 $(top_builddir)/lib/libmiscencoding.la \
3344 $(top_builddir)/lib/libmiscutil.la \
3347 $(SQUID_CPPUNIT_LIBS) \
3351 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3352 tests_testRock_DEPENDENCIES = \
3355 ## Tests of the URL module.
3356 ## TODO: Trim this down once the insanity is over.
3357 tests_testURL_SOURCES = \
3364 tests/stub_cache_manager.cc \
3366 tests/stub_CacheDigest.cc \
3370 tests/stub_carp.cc \
3376 client_side_reply.cc \
3377 client_side_request.cc \
3380 tests/stub_CollapsedForwarding.cc \
3387 $(DELAY_POOL_SOURCE) \
3397 ExternalACLEntry.cc \
3399 tests/stub_fatal.cc \
3417 tests/stub_HttpControlMsg.cc \
3418 HttpHeaderFieldStat.h \
3422 HttpHdrContRange.cc \
3425 HttpHdrScTarget.cc \
3428 HttpHeaderFieldInfo.h \
3430 HttpHeaderTools.cc \
3446 tests/stub_libeui.cc \
3468 peer_proxy_negotiate_auth.h \
3469 peer_proxy_negotiate_auth.cc \
3472 peer_sourcehash.cc \
3478 tests/stub_redirect.cc \
3485 SBufDetailedStats.h \
3486 tests/stub_SBufDetailedStats.cc \
3496 tests/stub_StatHist.cc \
3502 tests/stub_store_digest.cc \
3514 StoreFileSystem.cc \
3516 tests/stub_StoreMeta.cc \
3517 StoreMetaUnpacker.cc \
3518 StoreSwapLogData.cc \
3523 tests/stub_SwapDir.cc \
3525 tests/stub_debug.cc \
3526 tests/stub_libauth_acls.cc \
3527 tests/stub_libauth.cc \
3528 tests/stub_libdiskio.cc \
3529 tests/stub_libmem.cc \
3530 tests/stub_libsecurity.cc \
3531 tests/stub_main_cc.cc \
3532 tests/stub_ipc_Forwarder.cc \
3533 tests/stub_store_stats.cc \
3536 tests/testUriScheme.cc \
3537 tests/testUriScheme.h \
3538 tests/stub_time.cc \
3539 tests/stub_EventLoop.cc \
3542 tests/stub_tunnel.cc \
3547 tests/stub_wccp2.cc \
3549 tests/stub_whois.cc \
3554 nodist_tests_testURL_SOURCES = \
3556 tests_testURL_LDADD = \
3558 clients/libclients.la \
3559 servers/libservers.la \
3560 helper/libhelper.la \
3563 parser/libparser.la \
3581 format/libformat.la \
3585 $(ADAPTATION_LIBS) \
3587 $(top_builddir)/lib/libmisccontainers.la \
3588 $(top_builddir)/lib/libmiscencoding.la \
3589 $(top_builddir)/lib/libmiscutil.la \
3592 $(SQUID_CPPUNIT_LIBS) \
3593 $(SQUID_CPPUNIT_LA) \
3598 tests_testURL_LDFLAGS = $(LIBADD_DL)
3599 tests_testURL_DEPENDENCIES = \
3603 tests_testSBuf_SOURCES= \
3606 tests/SBufFindTest.h \
3607 tests/SBufFindTest.cc \
3609 SBufDetailedStats.h \
3610 tests/stub_SBufDetailedStats.cc \
3614 tests/stub_time.cc \
3615 tests/stub_debug.cc \
3616 tests/stub_fatal.cc \
3617 tests/stub_HelperChildConfig.cc \
3618 tests/stub_libmem.cc \
3619 tests/stub_cache_cf.cc \
3620 tests/stub_cache_manager.cc \
3621 tests/stub_cbdata.cc \
3622 tests/stub_store.cc \
3623 tests/stub_store_stats.cc \
3624 tests/stub_tools.cc \
3627 tests/stub_wordlist.cc \
3628 tests/stub_MemBuf.cc
3629 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3630 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3631 tests_testSBuf_LDADD=\
3636 $(top_builddir)/lib/libmiscutil.la \
3638 $(SQUID_CPPUNIT_LIBS) \
3641 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3643 tests_testSBufList_SOURCES= \
3644 tests/testSBufList.h \
3645 tests/testSBufList.cc \
3651 SBufDetailedStats.h \
3652 tests/stub_SBufDetailedStats.cc \
3654 tests/stub_time.cc \
3655 tests/stub_MemObject.cc \
3656 tests/stub_cbdata.cc \
3657 tests/stub_comm.cc \
3658 tests/stub_debug.cc \
3659 tests/stub_event.cc \
3660 tests/stub_fatal.cc \
3662 tests/stub_HelperChildConfig.cc \
3663 tests/stub_libmem.cc \
3664 tests/stub_cache_cf.cc \
3665 tests/stub_cache_manager.cc \
3666 tests/stub_store.cc \
3667 tests/stub_stmem.cc \
3668 tests/stub_store_stats.cc \
3669 tests/stub_tools.cc \
3673 tests/stub_wordlist.cc \
3674 tests/stub_MemBuf.cc
3675 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3676 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3677 tests_testSBufList_LDADD=\
3682 $(top_builddir)/lib/libmiscutil.la \
3683 $(SQUID_CPPUNIT_LIBS) \
3686 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3688 tests_testConfigParser_SOURCES = \
3690 tests/stub_MemBuf.cc \
3691 tests/stub_time.cc \
3693 SBufDetailedStats.h \
3694 tests/stub_SBufDetailedStats.cc \
3698 tests/stub_fatal.cc \
3699 tests/testConfigParser.cc \
3700 tests/testConfigParser.h \
3702 tests/stub_cache_cf.cc \
3703 tests/stub_cache_manager.cc \
3704 tests/stub_cbdata.cc \
3705 tests/stub_debug.cc \
3706 tests/stub_libmem.cc \
3707 tests/stub_HelperChildConfig.cc \
3709 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 = \
3729 tests/stub_cbdata.cc \
3731 tests/stub_fatal.cc \
3732 tests/stub_MemBuf.cc \
3734 SBufDetailedStats.h \
3735 tests/stub_SBufDetailedStats.cc \
3739 tests/stub_cache_manager.cc \
3740 tests/stub_comm.cc \
3741 tests/stub_debug.cc \
3742 tests/stub_DelayId.cc \
3743 tests/stub_HelperChildConfig.cc \
3744 tests/stub_libmem.cc \
3745 tests/stub_MemObject.cc \
3747 tests/stub_mime.cc \
3748 tests/stub_pconn.cc \
3749 tests/stub_stmem.cc \
3751 tests/stub_store.cc \
3752 tests/stub_store_stats.cc \
3755 tests/stub_tools.cc \
3756 tests/testStatHist.cc \
3757 tests/testStatHist.h
3758 nodist_tests_testStatHist_SOURCES = \
3760 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3761 tests_testStatHist_LDADD = \
3763 $(top_builddir)/lib/libmiscutil.la \
3764 $(top_builddir)/lib/libmisccontainers.la \
3765 $(SQUID_CPPUNIT_LIBS) \
3766 $(SQUID_CPPUNIT_LA) \
3768 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3770 tests_testLookupTable_SOURCES = \
3771 tests/testLookupTable.h \
3772 tests/testLookupTable.cc \
3773 tests/stub_debug.cc \
3774 tests/stub_libmem.cc \
3775 tests/stub_SBufDetailedStats.cc \
3776 base/LookupTable.h \
3781 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3782 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3783 tests_testLookupTable_LDADD = \
3785 $(SQUID_CPPUNIT_LIBS) \
3788 tests_testLookupTable_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3790 tests_testEnumIterator_SOURCES = \
3791 base/EnumIterator.h \
3792 tests/stub_debug.cc \
3793 tests/stub_libmem.cc \
3794 tests/testEnumIterator.h \
3795 tests/testEnumIterator.cc
3796 nodist_tests_testEnumIterator_SOURCES = \
3798 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3799 tests_testEnumIterator_LDADD = \
3801 $(SQUID_CPPUNIT_LIBS) \
3803 $(SQUID_CPPUNIT_LA) \
3805 tests_testEnumIterator_DEPENDENCIES =
3807 tests_testYesNoNone_SOURCES = \
3808 tests/testYesNoNone.cc \
3809 tests/testYesNoNone.h
3810 nodist_tests_testYesNoNone_SOURCES = \
3812 tests/stub_debug.cc \
3813 tests/stub_libmem.cc \
3815 tests_testYesNoNone_LDADD= \
3817 $(SQUID_CPPUNIT_LIBS) \
3820 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3822 TESTS += testHeaders
3824 ## Special Universal .h dependency test script
3825 ## aborts if error encountered
3826 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3827 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3828 ## src/repl/ has no .h files and its own makefile.
3830 CLEANFILES += testHeaders