1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
10 AUTOMAKE_OPTIONS = subdir-objects
20 OutOfBoundsException.h \
41 LOADABLE_MODULES_SOURCES = \
47 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl DiskIO
48 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl DiskIO
52 AUTH_LIBS= auth/libauth.la
53 AUTH_ACL_LIBS= auth/libacls.la
54 check_PROGRAMS+= tests/testACLMaxUserIP
58 SUBDIRS += http ip icmp ident log ipc mgr security
59 DIST_SUBDIRS += http ip icmp ident log ipc mgr security
77 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
79 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
88 DIST_SUBDIRS += adaptation
94 $(top_builddir)/lib/libTrie/libTrie.a \
102 DELAY_POOL_ALL_SOURCE = \
104 CompositePoolNode.h \
126 ClientDelayConfig.cc \
129 if ENABLE_DELAY_POOLS
130 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
135 if ENABLE_XPROF_STATS
136 XPROF_STATS_SOURCE = ProfStats.cc
142 HTCPSOURCE = htcp.cc htcp.h
146 LEAKFINDERSOURCE = LeakFinder.cc
152 UNLINKDSOURCE = unlinkd.h unlinkd.cc
155 UNLINKDSOURCE = unlinkd.h
164 if ENABLE_WIN32SPECIFIC
165 WIN32_SOURCE = win32.cc
166 WINSVC_SOURCE = WinSvc.cc
173 IPC_SOURCE = SquidIpc.h ipc_win32.cc
175 IPC_SOURCE = SquidIpc.h ipc.cc
178 noinst_LTLIBRARIES = libsquid.la
187 ## cfgen is used when building squid
188 ## ufsdump is a debug utility, it is possibly useful for end users with cache
189 ## corruption, but at this point we do not install it.
202 cf_gen_SOURCES = cf_gen.cc
203 nodist_cf_gen_HEADER = cf_gen_defines.cci
204 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
206 cf_gen.$(OBJEXT): cf_gen_defines.cci
208 ## cf_gen.cc needs src/cf_gen_defines.cci
209 AM_CPPFLAGS += -I$(top_builddir)/src
212 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
214 # common library for all the binaries and tests. This is kindof a catch all
215 # and smaller libraries split from this are encouraged. Using lt convenience
216 # libraries, dependencies should not be a problem either.
217 libsquid_la_SOURCES = \
228 $(ACL_REGISTRATION_SOURCES) \
242 NeighborTypeDomainList.h \
255 client_side_reply.cc \
256 client_side_reply.h \
257 client_side_request.cc \
258 client_side_request.h \
263 ClientRequestContext.h \
266 clientStreamForward.h \
267 CollapsedForwarding.cc \
268 CollapsedForwarding.h \
269 CompletionDispatcher.cc \
270 CompletionDispatcher.h \
284 $(DELAY_POOL_SOURCE) \
303 ExternalACLEntry.cc \
326 HierarchyLogEntry.h \
331 HttpHeaderFieldStat.h \
340 HttpHdrContRange.cc \
347 HttpHeaderFieldInfo.h \
372 $(LEAKFINDERSOURCE) \
399 $(XPROF_STATS_SOURCE) \
404 peer_proxy_negotiate_auth.h \
405 peer_proxy_negotiate_auth.cc \
425 SBufDetailedStats.h \
426 SBufDetailedStats.cc \
470 StoreMetaUnpacker.cc \
471 StoreMetaUnpacker.h \
472 $(STOREMETA_SOURCE) \
476 StoreSwapLogData.cc \
507 EXTRA_squid_SOURCES = \
510 $(DELAY_POOL_ALL_SOURCE) \
520 $(WIN32_ALL_SOURCE) \
521 $(LOADABLE_MODULES_SOURCES)
524 client_side_request.cci \
543 CLEANFILES += $(BUILT_SOURCES)
545 nodist_squid_SOURCES = \
555 clients/libclients.la \
556 servers/libservers.la \
558 helper/libhelper.la \
559 http/libsquid-http.la \
560 parser/libsquid-parser.la \
566 DiskIO/libdiskio.la \
571 security/libsecurity.la \
574 icmp/libicmp.la icmp/libicmp-core.la \
576 format/libformat.la \
587 $(top_builddir)/lib/libmisccontainers.la \
588 $(top_builddir)/lib/libmiscencoding.la \
589 $(top_builddir)/lib/libmiscutil.la \
597 if ENABLE_LOADABLE_MODULES
598 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
599 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
600 squid_LDFLAGS = -export-dynamic -dlopen force
601 ## when static module linking is supported and enabled:
602 ## squid_LDFLAGS = -all-static -dlopen self
604 ## LTDL headers require their local include path...
605 AM_CPPFLAGS += $(INCLTDL)
608 ## Kerberos libraries require their include path...
609 AM_CPPFLAGS += $(KRB5INCS)
612 unlinkd_SOURCES = unlinkd_daemon.cc
617 recv_announce_SOURCES = recv-announce.cc
619 ## What requires what..
620 ## many things want ACLChecklist.cc
621 ## ACLChecklist.cc wants AuthUserRequest.cc
622 ## ACLChecklist.cc wants AuthScheme.cc
623 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
624 ## ACLProxyAuth.cc wants ACLUserData
625 ## ACLProxyAuth.cc wants ACLRegexData
626 ## cache_cf.cc wants $(AUTH_LIBS)
627 ## cache_cf.cc wants Swapdir
628 ## cache_cf.cc wants AnyP::PortCfg
629 ## client_side wants client_db
630 ## client_db wants SNMP_SOURCE
631 ## snmp_core wants ACLStringData
632 ## SwapDir wants ConfigOption
633 ## tools.cc wants ip/libip.la
634 ## client_side.cc wants ip/libip.la
635 ## libbase.la wants cbdata.*
636 ## libbase.la wants MemBuf.*
650 tests/stub_StoreMeta.cc \
651 StoreMetaUnpacker.cc \
658 helper/ChildConfig.h \
659 tests/stub_HelperChildConfig.cc \
686 ufsdump_DEPENDENCIES = \
698 DiskIO/libdiskio.la \
702 nodist_ufsdump_SOURCES = \
707 squid.conf.documented \
732 include $(srcdir)/tests/Stub.list
740 mk-string-arrays.pl \
741 mk-string-arrays.awk \
747 DEFAULT_HTTP_PORT = 3128
748 DEFAULT_ICP_PORT = 3130
749 DEFAULT_PREFIX = $(prefix)
750 DEFAULT_CONFIG_DIR = $(sysconfdir)
751 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
752 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
753 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
754 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
755 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
756 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
757 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
758 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
759 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
760 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
761 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
762 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
763 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
764 DEFAULT_ICON_DIR = $(datadir)/icons
765 DEFAULT_ERROR_DIR = $(datadir)/errors
767 # Make location configure settings available to the code
768 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
770 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
772 globals.cc: globals.h mk-globals-c.awk
773 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
775 ## Generate files containing string arrays for various enums....
776 hier_code.cc: hier_code.h mk-string-arrays.awk
777 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
779 err_type.cc: err_type.h mk-string-arrays.awk
780 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
782 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
783 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
785 lookup_t.cc: lookup_t.h mk-string-arrays.awk
786 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
788 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
789 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
791 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
792 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
795 ## other generated files...
797 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
798 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
800 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
801 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
803 ## If autodependency works well this is not needed anymore
804 cache_cf.o: cf_parser.cci
806 # cf_gen builds the configuration files.
807 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
808 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
810 # squid.conf.default is built by cf_gen when making cf_parser.cci
811 squid.conf.default squid.conf.documented: cf_parser.cci
814 cf_parser.cci: cf.data cf_gen$(EXEEXT)
815 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
817 # The cf_gen_defines.cci is auto-generated and does not exist when the
818 # dependencies computed. We need to add its include files (autoconf.h) here
819 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
820 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
823 ## FIXME: generate a sed command file from configure. Then this doesn't
824 ## depend on the Makefile.
825 cf.data: cf.data.pre Makefile
827 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
828 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
829 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
830 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
831 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
832 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
833 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
834 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
835 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
836 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
837 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
838 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
839 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
840 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
841 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
842 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
843 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
844 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
845 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
846 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
847 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
848 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
849 < $(srcdir)/cf.data.pre >$@
851 repl_modules.cc: repl_modules.sh Makefile
852 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
854 include $(top_srcdir)/doc/manuals/Substitute.am
856 squid.8: $(srcdir)/squid.8.in Makefile
857 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
860 EXTRA_DIST += squid.8.in
861 CLEANFILES += squid.8
863 install-data-local: install-sysconfDATA install-dataDATA
864 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
865 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
867 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
868 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
870 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
871 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
873 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
874 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
876 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
877 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
878 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
879 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
880 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
881 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
882 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
884 uninstall-local: squid.conf.default
885 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
886 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
888 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
891 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
892 cp $(top_srcdir)/test-suite/test_tools.cc .
894 # stock tools for unit tests - library independent versions of dlink_list
896 # globals.cc is needed by test_tools.cc.
897 # Neither of these should be disted from here.
904 tests/testBoilerplate \
905 tests/testCacheManager \
909 tests/testEventLoop \
910 tests/test_http_range \
911 tests/testHttp1Parser \
912 tests/testHttpReply \
913 tests/testHttpRequest \
919 tests/testConfigParser \
923 check_PROGRAMS += tests/testRock
926 check_PROGRAMS += tests/testUfs
929 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
930 TESTS += $(check_PROGRAMS)
932 ### Template for new Unit Test Program
933 ## - add tests/testX to check_PROGRAMS above.
934 ## - copy template below and substitue X for class name
935 ## - add other component .(h|cc) files needed to link and run tests
937 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
939 #tests_testX_SOURCES=\
944 #nodist_tests_testX_SOURCES=\
946 #tests_testX_LDFLAGS = $(LIBADD_DL)
948 # $(SQUID_CPPUNIT_LIBS) \
949 # $(SQUID_CPPUNIT_LA) \
951 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
954 # - add other component .(h|cc) files needed to link and run tests
955 tests_testHttpReply_SOURCES=\
961 tests/stub_fatal.cc \
964 HttpHeaderFieldStat.h \
968 HttpHdrContRange.cc \
978 HttpHeaderFieldInfo.h \
999 SBufDetailedStats.h \
1000 tests/stub_SBufDetailedStats.cc \
1005 tests/stub_access_log.cc \
1008 tests/stub_cache_cf.cc \
1009 tests/stub_cache_manager.cc \
1010 tests/stub_comm.cc \
1011 tests/stub_debug.cc \
1012 tests/stub_errorpage.cc \
1013 tests/stub_event.cc \
1015 tests/stub_HelperChildConfig.cc \
1016 tests/stub_libformat.cc \
1017 tests/stub_libauth.cc \
1018 tests/stub_libcomm.cc \
1019 tests/stub_libmgr.cc \
1020 tests/stub_libsecurity.cc \
1021 tests/stub_libsslsquid.cc \
1025 tests/stub_StatHist.cc \
1027 tests/stub_store.cc \
1028 tests/stub_store_stats.cc \
1030 tests/stub_tools.cc \
1031 tests/stub_HttpRequest.cc \
1032 tests/testHttpReply.cc \
1033 tests/testHttpReply.h \
1034 tests/stub_time.cc \
1038 nodist_tests_testHttpReply_SOURCES=\
1040 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1041 tests_testHttpReply_LDADD=\
1043 http/libsquid-http.la \
1044 parser/libsquid-parser.la \
1053 $(top_builddir)/lib/libmisccontainers.la \
1054 $(top_builddir)/lib/libmiscencoding.la \
1055 $(top_builddir)/lib/libmiscutil.la \
1056 $(SQUID_CPPUNIT_LIBS) \
1057 $(SQUID_CPPUNIT_LA) \
1062 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1064 tests_testACLMaxUserIP_SOURCES= \
1067 tests/stub_CollapsedForwarding.cc \
1070 tests/stub_ETag.cc \
1073 tests/stub_fatal.cc \
1079 HttpHeaderFieldInfo.h \
1081 HttpHeaderTools.cc \
1082 HttpHdrContRange.cc \
1084 HttpHeaderFieldStat.h \
1089 HttpHdrScTarget.cc \
1101 tests/stub_libsecurity.cc \
1108 tests/stub_StatHist.cc \
1111 SBufDetailedStats.h \
1112 tests/stub_SBufDetailedStats.cc \
1116 tests/stub_StoreMeta.cc \
1117 StoreMetaUnpacker.cc \
1118 StoreSwapLogData.cc \
1123 tests/stub_SwapDir.cc \
1127 tests/stub_access_log.cc \
1130 tests/stub_cache_cf.cc \
1131 tests/stub_client_side.cc \
1132 tests/stub_debug.cc \
1133 tests/stub_DelayId.cc \
1134 tests/stub_errorpage.cc \
1137 tests/stub_HttpRequest.cc \
1138 tests/stub_HttpReply.cc \
1139 tests/stub_ipc_TypedMsgHdr.cc \
1140 tests/stub_libauth.cc \
1141 tests/stub_libcomm.cc \
1142 tests/stub_libdiskio.cc \
1143 tests/stub_libformat.cc \
1144 tests/stub_libsslsquid.cc \
1145 tests/stub_MemObject.cc \
1146 tests/stub_MemStore.cc \
1148 tests/stub_mime.cc \
1149 tests/stub_pconn.cc \
1150 tests/stub_Port.cc \
1152 tests/stub_store.cc \
1153 tests/stub_store_client.cc \
1155 tests/stub_store_rebuild.cc \
1156 tests/stub_store_stats.cc \
1157 tests/stub_store_swapout.cc \
1159 tests/stub_tools.cc \
1160 tests/stub_cache_manager.cc \
1161 tests/stub_UdsOp.cc \
1162 tests/testACLMaxUserIP.cc \
1163 tests/testACLMaxUserIP.h \
1164 tests/stub_time.cc \
1167 tests/stub_libmem.cc \
1171 nodist_tests_testACLMaxUserIP_SOURCES= \
1173 tests_testACLMaxUserIP_LDADD= \
1175 helper/libhelper.la \
1176 http/libsquid-http.la \
1177 parser/libsquid-parser.la \
1189 $(top_builddir)/lib/libmisccontainers.la \
1190 $(top_builddir)/lib/libmiscencoding.la \
1191 $(top_builddir)/lib/libmiscutil.la \
1194 $(SQUID_CPPUNIT_LIBS) \
1198 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1199 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1200 ## $(SQUID_CPPUNIT_LA)
1202 ## a demonstration test that does nothing but shows the salient points
1203 ## involved in writing tests.
1204 tests_testBoilerplate_SOURCES = \
1205 tests/testBoilerplate.cc \
1206 tests/testBoilerplate.h \
1207 tests/stub_debug.cc \
1209 nodist_tests_testBoilerplate_SOURCES = \
1210 tests/stub_cbdata.cc \
1211 tests/stub_MemBuf.cc \
1213 tests_testBoilerplate_LDADD= \
1214 $(SQUID_CPPUNIT_LIBS) \
1219 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1220 tests_testBoilerplate_DEPENDENCIES = \
1223 ## Tests of the CacheManager module.
1224 tests_testCacheManager_SOURCES = \
1231 tests/testCacheManager.cc \
1232 tests/testCacheManager.h \
1233 tests/stub_main_cc.cc \
1234 tests/stub_ipc_Forwarder.cc \
1235 tests/stub_store_stats.cc \
1236 tests/stub_EventLoop.cc \
1249 tests/stub_CacheDigest.cc \
1251 tests/stub_carp.cc \
1257 client_side_reply.cc \
1258 client_side_request.cc \
1261 tests/stub_CollapsedForwarding.cc \
1268 $(DELAY_POOL_SOURCE) \
1275 tests/stub_ETag.cc \
1278 ExternalACLEntry.cc \
1280 tests/stub_fatal.cc \
1301 HttpHeaderFieldInfo.h \
1303 HttpHeaderTools.cc \
1304 HttpHeaderFieldStat.h \
1308 HttpHdrContRange.cc \
1311 HttpHdrScTarget.cc \
1323 tests/stub_libsecurity.cc \
1344 peer_proxy_negotiate_auth.h \
1345 peer_proxy_negotiate_auth.cc \
1348 peer_sourcehash.cc \
1354 tests/stub_redirect.cc \
1359 SBufDetailedStats.h \
1360 tests/stub_SBufDetailedStats.cc \
1372 tests/stub_libauth_acls.cc \
1373 tests/stub_libauth.cc \
1374 tests/stub_libdiskio.cc \
1375 tests/stub_StatHist.cc \
1381 tests/stub_store_digest.cc \
1394 StoreFileSystem.cc \
1396 tests/stub_StoreMeta.cc \
1397 StoreMetaUnpacker.cc \
1398 StoreSwapLogData.cc \
1402 tests/stub_tunnel.cc \
1403 tests/stub_SwapDir.cc \
1410 tests/stub_wccp2.cc \
1412 tests/stub_whois.cc \
1417 nodist_tests_testCacheManager_SOURCES = \
1419 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1420 tests_testCacheManager_LDADD = \
1422 clients/libclients.la \
1423 servers/libservers.la \
1425 helper/libhelper.la \
1426 http/libsquid-http.la \
1427 parser/libsquid-parser.la \
1438 icmp/libicmp.la icmp/libicmp-core.la \
1440 format/libformat.la \
1442 $(ADAPTATION_LIBS) \
1450 $(top_builddir)/lib/libmisccontainers.la \
1451 $(top_builddir)/lib/libmiscencoding.la \
1452 $(top_builddir)/lib/libmiscutil.la \
1455 $(SQUID_CPPUNIT_LIBS) \
1456 $(SQUID_CPPUNIT_LA) \
1461 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1462 tests_testCacheManager_DEPENDENCIES = \
1466 tests_testDiskIO_SOURCES = \
1468 tests/stub_CacheDigest.cc \
1472 tests/stub_CollapsedForwarding.cc \
1475 $(DELAY_POOL_SOURCE) \
1478 tests/stub_ETag.cc \
1482 tests/stub_fatal.cc \
1491 HttpHeaderFieldStat.h \
1495 HttpHdrContRange.cc \
1497 HttpHdrScTarget.cc \
1499 HttpHeaderFieldInfo.h \
1501 HttpHeaderTools.cc \
1523 tests/stub_libsecurity.cc \
1527 tests/stub_StatHist.cc \
1530 SBufDetailedStats.h \
1531 tests/stub_SBufDetailedStats.cc \
1532 StoreFileSystem.cc \
1534 tests/stub_StoreMeta.cc \
1535 StoreMetaUnpacker.cc \
1536 StoreSwapLogData.cc \
1548 tests/stub_SwapDir.cc \
1551 tests/stub_access_log.cc \
1555 tests/stub_cache_cf.cc \
1556 tests/stub_cache_manager.cc \
1557 tests/stub_client_db.cc \
1558 client_side_request.h \
1559 tests/stub_client_side_request.cc \
1560 tests/stub_debug.cc \
1561 tests/stub_errorpage.cc \
1562 tests/stub_helper.cc \
1563 tests/stub_HelperChildConfig.cc \
1564 tests/stub_HttpRequest.cc \
1565 tests/stub_http.cc \
1568 tests/stub_internal.cc \
1570 tests/stub_ipcache.cc \
1571 tests/stub_libauth_acls.cc \
1572 tests/stub_libauth.cc \
1573 tests/stub_libeui.cc \
1574 tests/stub_libformat.cc \
1575 tests/stub_libicmp.cc \
1576 tests/stub_MemStore.cc \
1578 tests/stub_mime.cc \
1579 tests/stub_neighbors.cc \
1580 tests/stub_pconn.cc \
1581 tests/stub_Port.cc \
1582 tests/stub_stat.cc \
1583 tests/stub_store_client.cc \
1584 tests/stub_store_stats.cc \
1586 tests/stub_store_rebuild.cc \
1587 tests/stub_UdsOp.cc \
1588 tests/testDiskIO.cc \
1589 tests/testDiskIO.h \
1590 tests/testStoreSupport.cc \
1591 tests/testStoreSupport.h \
1592 tests/stub_time.cc \
1600 nodist_tests_testDiskIO_SOURCES= \
1605 tests_testDiskIO_LDADD = \
1607 http/libsquid-http.la \
1608 parser/libsquid-parser.la \
1619 DiskIO/libdiskio.la \
1628 $(top_builddir)/lib/libmisccontainers.la \
1629 $(top_builddir)/lib/libmiscencoding.la \
1630 $(top_builddir)/lib/libmiscutil.la \
1633 $(SQUID_CPPUNIT_LIBS) \
1638 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1639 tests_testDiskIO_DEPENDENCIES = \
1640 DiskIO/libdiskio.la \
1644 tests_testDns_SOURCES= \
1645 tests/testRFC1035.cc \
1647 nodist_tests_testDns_SOURCES= \
1648 tests/stub_debug.cc \
1649 tests/stub_SBuf.cc \
1651 tests_testDns_LDADD= \
1654 $(top_builddir)/lib/libmiscutil.la \
1657 $(SQUID_CPPUNIT_LA) \
1658 $(SQUID_CPPUNIT_LIBS)
1659 tests_testDns_LDFLAGS= $(LIBADD_DL)
1661 tests_testEvent_SOURCES = \
1665 tests/stub_CacheDigest.cc \
1676 tests/stub_carp.cc \
1682 client_side_reply.cc \
1683 client_side_request.cc \
1686 tests/stub_CollapsedForwarding.cc \
1694 $(DELAY_POOL_SOURCE) \
1701 tests/stub_ETag.cc \
1706 ExternalACLEntry.cc \
1709 tests/stub_fatal.cc \
1729 HttpHeaderFieldInfo.h \
1731 HttpHeaderTools.cc \
1732 HttpHeaderFieldStat.h \
1736 HttpHdrContRange.cc \
1739 HttpHdrScTarget.cc \
1756 tests/stub_libsecurity.cc \
1761 tests/stub_libmem.cc \
1778 peer_proxy_negotiate_auth.h \
1779 peer_proxy_negotiate_auth.cc \
1782 peer_sourcehash.cc \
1786 tests/stub_redirect.cc \
1793 SBufDetailedStats.h \
1794 tests/stub_SBufDetailedStats.cc \
1810 tests/stub_store_digest.cc \
1823 StoreFileSystem.cc \
1825 tests/stub_StoreMeta.cc \
1826 StoreMetaUnpacker.cc \
1827 StoreSwapLogData.cc \
1829 tests/stub_SwapDir.cc \
1830 tests/CapturingStoreEntry.h \
1831 tests/testEvent.cc \
1833 tests/stub_main_cc.cc \
1834 tests/stub_ipc_Forwarder.cc \
1835 tests/stub_libauth_acls.cc \
1836 tests/stub_libauth.cc \
1837 tests/stub_libdiskio.cc \
1838 tests/stub_libeui.cc \
1839 tests/stub_store_stats.cc \
1844 tests/stub_tunnel.cc \
1851 tests/stub_wccp2.cc \
1853 tests/stub_whois.cc \
1857 nodist_tests_testEvent_SOURCES = \
1859 tests_testEvent_LDADD = \
1861 clients/libclients.la \
1862 servers/libservers.la \
1864 helper/libhelper.la \
1865 http/libsquid-http.la \
1866 parser/libsquid-parser.la \
1876 icmp/libicmp.la icmp/libicmp-core.la \
1879 format/libformat.la \
1881 $(ADAPTATION_LIBS) \
1884 $(top_builddir)/lib/libmisccontainers.la \
1885 $(top_builddir)/lib/libmiscencoding.la \
1886 $(top_builddir)/lib/libmiscutil.la \
1892 $(SQUID_CPPUNIT_LIBS) \
1893 $(SQUID_CPPUNIT_LA) \
1898 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1899 tests_testEvent_DEPENDENCIES = \
1903 ## Tests of the EventLoop module.
1904 tests_testEventLoop_SOURCES = \
1908 tests/stub_CacheDigest.cc \
1919 tests/stub_carp.cc \
1925 client_side_reply.cc \
1926 client_side_request.cc \
1929 tests/stub_CollapsedForwarding.cc \
1937 $(DELAY_POOL_SOURCE) \
1944 tests/stub_ETag.cc \
1949 ExternalACLEntry.cc \
1952 tests/stub_fatal.cc \
1972 HttpHeaderFieldInfo.h \
1974 HttpHeaderTools.cc \
1975 HttpHeaderFieldStat.h \
1979 HttpHdrContRange.cc \
1982 HttpHdrScTarget.cc \
2005 tests/stub_libmem.cc \
2020 peer_proxy_negotiate_auth.h \
2021 peer_proxy_negotiate_auth.cc \
2024 peer_sourcehash.cc \
2029 tests/stub_redirect.cc \
2033 SBufDetailedStats.h \
2034 tests/stub_SBufDetailedStats.cc \
2050 tests/stub_store_digest.cc \
2063 StoreFileSystem.cc \
2065 tests/stub_StoreMeta.cc \
2066 StoreMetaUnpacker.cc \
2067 StoreSwapLogData.cc \
2071 tests/stub_SwapDir.cc \
2072 tests/testEventLoop.cc \
2073 tests/testEventLoop.h \
2074 tests/stub_main_cc.cc \
2075 tests/stub_ipc_Forwarder.cc \
2076 tests/stub_libauth_acls.cc \
2077 tests/stub_libauth.cc \
2078 tests/stub_libdiskio.cc \
2079 tests/stub_libeui.cc \
2080 tests/stub_libsecurity.cc \
2081 tests/stub_store_stats.cc \
2086 tests/stub_tunnel.cc \
2093 tests/stub_wccp2.cc \
2095 tests/stub_whois.cc \
2099 nodist_tests_testEventLoop_SOURCES = \
2101 tests_testEventLoop_LDADD = \
2103 clients/libclients.la \
2104 servers/libservers.la \
2106 helper/libhelper.la \
2107 http/libsquid-http.la \
2108 parser/libsquid-parser.la \
2118 icmp/libicmp.la icmp/libicmp-core.la \
2121 format/libformat.la \
2123 $(ADAPTATION_LIBS) \
2126 $(top_builddir)/lib/libmisccontainers.la \
2127 $(top_builddir)/lib/libmiscencoding.la \
2128 $(top_builddir)/lib/libmiscutil.la \
2134 $(SQUID_CPPUNIT_LIBS) \
2135 $(SQUID_CPPUNIT_LA) \
2140 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2141 tests_testEventLoop_DEPENDENCIES = \
2145 tests_test_http_range_SOURCES = \
2158 tests/stub_CacheDigest.cc \
2160 tests/stub_carp.cc \
2166 client_side_reply.cc \
2167 client_side_request.cc \
2170 tests/stub_CollapsedForwarding.cc \
2178 $(DELAY_POOL_SOURCE) \
2185 tests/stub_ETag.cc \
2189 tests/stub_libauth.cc \
2190 tests/stub_fatal.cc \
2208 HttpHeaderFieldStat.h \
2212 HttpHdrContRange.cc \
2215 HttpHdrScTarget.cc \
2218 HttpHeaderFieldInfo.h \
2220 HttpHeaderTools.cc \
2243 tests/stub_libmem.cc \
2257 peer_proxy_negotiate_auth.h \
2258 peer_proxy_negotiate_auth.cc \
2261 peer_sourcehash.cc \
2266 tests/stub_redirect.cc \
2271 SBufDetailedStats.h \
2272 tests/stub_SBufDetailedStats.cc \
2288 tests/stub_store_digest.cc \
2301 StoreFileSystem.cc \
2303 tests/stub_StoreMeta.cc \
2304 StoreMetaUnpacker.cc \
2305 StoreSwapLogData.cc \
2309 tests/stub_SwapDir.cc \
2311 tests/test_http_range.cc \
2312 tests/stub_external_acl.cc \
2313 tests/stub_ipc_Forwarder.cc \
2314 tests/stub_libdiskio.cc \
2315 tests/stub_libeui.cc \
2316 tests/stub_libsecurity.cc \
2317 tests/stub_main_cc.cc \
2318 tests/stub_MemStore.cc \
2319 tests/stub_store_stats.cc \
2320 tests/stub_EventLoop.cc \
2324 tests/stub_tunnel.cc \
2330 tests/stub_wccp2.cc \
2332 tests/stub_whois.cc \
2336 nodist_tests_test_http_range_SOURCES = \
2338 tests_test_http_range_LDADD = \
2340 clients/libclients.la \
2341 servers/libservers.la \
2343 helper/libhelper.la \
2344 http/libsquid-http.la \
2345 parser/libsquid-parser.la \
2350 parser/libsquid-parser.la \
2354 icmp/libicmp.la icmp/libicmp-core.la \
2357 format/libformat.la \
2359 $(ADAPTATION_LIBS) \
2367 $(top_builddir)/lib/libmisccontainers.la \
2368 $(top_builddir)/lib/libmiscencoding.la \
2369 $(top_builddir)/lib/libmiscutil.la \
2372 $(SQUID_CPPUNIT_LIBS) \
2373 $(SQUID_CPPUNIT_LA) \
2378 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2379 tests_test_http_range_DEPENDENCIES = \
2382 tests_testHttp1Parser_SOURCES = \
2386 tests/stub_MemObject.cc \
2387 tests/stub_libmem.cc \
2394 tests/stub_SBufDetailedStats.cc \
2395 tests/stub_cache_cf.cc \
2396 tests/stub_cache_manager.cc \
2397 tests/stub_comm.cc \
2398 tests/stub_cbdata.cc \
2399 tests/stub_debug.cc \
2400 tests/stub_event.cc \
2401 tests/stub_HelperChildConfig.cc \
2402 tests/stub_libsecurity.cc \
2403 tests/stub_stmem.cc \
2404 tests/stub_store.cc \
2405 tests/stub_store_stats.cc \
2407 tests/stub_tools.cc \
2408 tests/testHttp1Parser.cc \
2409 tests/testHttp1Parser.h \
2410 tests/stub_time.cc \
2413 nodist_tests_testHttp1Parser_SOURCES = \
2415 tests_testHttp1Parser_LDADD= \
2416 http/libsquid-http.la \
2417 parser/libsquid-parser.la \
2422 $(top_builddir)/lib/libmiscutil.la \
2423 $(SQUID_CPPUNIT_LIBS) \
2426 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2427 tests_testHttp1Parser_DEPENDENCIES = \
2430 ## Tests of the HttpRequest module.
2431 tests_testHttpRequest_SOURCES = \
2436 tests/stub_libmem.cc \
2438 tests/testHttpRequest.h \
2439 tests/testHttpRequest.cc \
2440 tests/testHttpRequestMethod.h \
2441 tests/testHttpRequestMethod.cc \
2442 tests/stub_libauth.cc \
2443 tests/stub_main_cc.cc \
2444 tests/stub_ipc_Forwarder.cc \
2445 tests/stub_libdiskio.cc \
2446 tests/stub_libeui.cc \
2447 tests/stub_store_stats.cc \
2448 tests/stub_EventLoop.cc \
2460 tests/stub_CacheDigest.cc \
2464 tests/stub_carp.cc \
2470 client_side_reply.cc \
2471 client_side_request.cc \
2474 tests/stub_CollapsedForwarding.cc \
2481 $(DELAY_POOL_SOURCE) \
2488 tests/stub_ETag.cc \
2490 ExternalACLEntry.cc \
2492 tests/stub_fatal.cc \
2510 HttpHeaderFieldInfo.h \
2512 HttpHeaderTools.cc \
2513 HttpHeaderFieldStat.h \
2517 HttpHdrContRange.cc \
2520 HttpHdrScTarget.cc \
2532 tests/stub_libsecurity.cc \
2553 peer_proxy_negotiate_auth.h \
2554 peer_proxy_negotiate_auth.cc \
2557 peer_sourcehash.cc \
2563 tests/stub_libauth_acls.cc \
2564 tests/stub_redirect.cc \
2569 SBufDetailedStats.h \
2570 tests/stub_SBufDetailedStats.cc \
2586 tests/stub_store_digest.cc \
2599 StoreFileSystem.cc \
2601 tests/stub_StoreMeta.cc \
2602 StoreMetaUnpacker.cc \
2603 StoreSwapLogData.cc \
2610 tests/stub_tunnel.cc \
2611 tests/stub_SwapDir.cc \
2617 tests/stub_wccp2.cc \
2619 tests/stub_whois.cc \
2624 nodist_tests_testHttpRequest_SOURCES = \
2626 tests_testHttpRequest_LDADD = \
2628 clients/libclients.la \
2629 servers/libservers.la \
2630 helper/libhelper.la \
2632 http/libsquid-http.la \
2637 parser/libsquid-parser.la \
2642 parser/libsquid-parser.la \
2648 icmp/libicmp.la icmp/libicmp-core.la \
2651 format/libformat.la \
2653 $(ADAPTATION_LIBS) \
2655 $(top_builddir)/lib/libmisccontainers.la \
2656 $(top_builddir)/lib/libmiscencoding.la \
2657 $(top_builddir)/lib/libmiscutil.la \
2660 $(SQUID_CPPUNIT_LIBS) \
2661 $(SQUID_CPPUNIT_LA) \
2666 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2667 tests_testHttpRequest_DEPENDENCIES = \
2671 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2672 ## first line - what we are testing.
2673 tests_testStore_SOURCES= \
2675 tests/stub_CacheDigest.cc \
2678 tests/stub_CollapsedForwarding.cc \
2681 $(DELAY_POOL_SOURCE) \
2688 tests/stub_fatal.cc \
2691 HttpHeaderFieldStat.h \
2695 HttpHdrContRange.cc \
2698 HttpHdrScTarget.cc \
2699 HttpHeaderFieldInfo.h \
2701 HttpHeaderTools.cc \
2733 tests/stub_StoreMeta.cc \
2734 StoreMetaUnpacker.cc \
2735 StoreSwapLogData.cc \
2739 SBufDetailedStats.h \
2740 tests/stub_SBufDetailedStats.cc \
2745 tests/CapturingStoreEntry.h \
2747 tests/stub_access_log.cc \
2751 tests/stub_cache_cf.cc \
2752 tests/stub_cache_manager.cc \
2753 tests/stub_client_side_request.cc \
2754 tests/stub_comm.cc \
2755 tests/stub_debug.cc \
2756 tests/stub_errorpage.cc \
2760 tests/stub_helper.cc \
2761 tests/stub_HelperChildConfig.cc \
2762 tests/stub_http.cc \
2763 tests/stub_libauth.cc \
2764 tests/stub_libeui.cc \
2765 tests/stub_libdiskio.cc \
2766 tests/stub_libformat.cc \
2767 tests/stub_libsecurity.cc \
2768 tests/stub_libsslsquid.cc \
2771 tests/stub_HttpReply.cc \
2772 tests/stub_HttpRequest.cc \
2773 tests/stub_libcomm.cc \
2774 tests/stub_MemStore.cc \
2776 tests/stub_mime.cc \
2777 tests/stub_Port.cc \
2778 tests/stub_stat.cc \
2779 tests/stub_store_client.cc \
2780 tests/stub_store_stats.cc \
2782 tests/stub_store_rebuild.cc \
2783 tests/stub_store_swapout.cc \
2786 tests/stub_tools.cc \
2787 tests/stub_UdsOp.cc \
2788 tests/testStore.cc \
2790 tests/testStoreEntryStream.cc \
2791 tests/testStoreEntryStream.h \
2792 tests/testStoreController.cc \
2793 tests/testStoreController.h \
2794 tests/testStoreHashIndex.cc \
2795 tests/testStoreHashIndex.h \
2796 tests/testStoreSupport.cc \
2797 tests/testStoreSupport.h \
2798 tests/TestSwapDir.cc \
2799 tests/TestSwapDir.h \
2800 tests/stub_time.cc \
2805 nodist_tests_testStore_SOURCES= \
2811 tests_testStore_LDADD= \
2813 http/libsquid-http.la \
2814 parser/libsquid-parser.la \
2827 DiskIO/libdiskio.la \
2828 $(top_builddir)/lib/libmisccontainers.la \
2829 $(top_builddir)/lib/libmiscencoding.la \
2830 $(top_builddir)/lib/libmiscutil.la \
2833 $(SQUID_CPPUNIT_LIBS) \
2838 tests_testStore_LDFLAGS = $(LIBADD_DL)
2839 tests_testStore_DEPENDENCIES = \
2842 ## string needs mem.cc.
2843 ## mem.cc needs ClientInfo.h
2844 ## libsquid pulls in SquidConfig and children. stub them.
2845 tests_testString_SOURCES = \
2847 tests/stub_libmem.cc \
2851 SBufDetailedStats.h \
2852 tests/stub_SBufDetailedStats.cc \
2853 tests/testString.cc \
2854 tests/testString.h \
2857 tests/stub_cache_cf.cc \
2858 tests/stub_cache_manager.cc \
2859 tests/stub_cbdata.cc \
2860 tests/stub_debug.cc \
2861 tests/stub_HelperChildConfig.cc \
2863 tests/stub_tools.cc \
2864 tests/stub_time.cc \
2867 nodist_tests_testString_SOURCES = \
2869 tests_testString_LDADD = \
2873 $(top_builddir)/lib/libmiscutil.la \
2875 $(SQUID_CPPUNIT_LIBS) \
2879 tests_testString_LDFLAGS = $(LIBADD_DL)
2880 tests_testString_DEPENDENCIES = \
2893 DiskIO/libdiskio.la \
2899 tests_testUfs_SOURCES = \
2902 tests/stub_cache_manager.cc \
2903 tests/stub_client_db.cc \
2904 tests/stub_CollapsedForwarding.cc \
2905 tests/stub_HelperChildConfig.cc \
2908 tests/stub_ipcache.cc \
2909 tests/stub_libeui.cc \
2910 tests/stub_libicmp.cc \
2911 tests/stub_MemStore.cc \
2912 tests/stub_neighbors.cc \
2913 tests/stub_pconn.cc \
2914 tests/stub_Port.cc \
2915 tests/stub_UdsOp.cc \
2917 tests/stub_internal.cc \
2918 tests/stub_libformat.cc \
2919 tests/stub_libsecurity.cc \
2920 tests/stub_stat.cc \
2922 tests/stub_store_rebuild.cc \
2923 tests/stub_store_stats.cc \
2925 tests/stub_fatal.cc \
2950 StoreSwapLogData.cc \
2952 StoreMetaUnpacker.cc \
2953 $(STOREMETA_SOURCE) \
2954 StoreFileSystem.cc \
2961 $(DELAY_POOL_SOURCE) \
2963 tests/stub_CacheDigest.cc \
2979 tests/stub_cache_cf.cc \
2980 tests/stub_helper.cc \
2983 SBufDetailedStats.h \
2984 tests/stub_SBufDetailedStats.cc \
2986 tests/stub_debug.cc \
2987 tests/stub_client_side_request.cc \
2988 tests/stub_http.cc \
2989 tests/stub_libauth.cc \
2993 tests/stub_mime.cc \
2994 HttpHeaderFieldInfo.h \
2996 HttpHeaderTools.cc \
3001 HttpHdrContRange.cc \
3002 HttpHeaderFieldStat.h \
3007 HttpHdrScTarget.cc \
3017 tests/stub_errorpage.cc \
3018 tests/stub_HttpRequest.cc \
3020 tests/stub_access_log.cc \
3023 tests/stub_store_client.cc \
3025 tests/stub_tools.cc \
3026 tests/testStoreSupport.cc \
3027 tests/testStoreSupport.h \
3032 nodist_tests_testUfs_SOURCES = \
3037 tests_testUfs_LDADD = \
3038 http/libsquid-http.la \
3039 parser/libsquid-parser.la \
3051 DiskIO/libdiskio.la \
3061 $(top_builddir)/lib/libmisccontainers.la \
3062 $(top_builddir)/lib/libmiscencoding.la \
3063 $(top_builddir)/lib/libmiscutil.la \
3066 $(SQUID_CPPUNIT_LIBS) \
3070 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3071 tests_testUfs_DEPENDENCIES = \
3074 check_PROGRAMS += testRefCount
3075 testRefCount_SOURCES= \
3078 tests/stub_cbdata.cc \
3079 tests/stub_debug.cc \
3080 tests/stub_MemBuf.cc \
3081 tests/testRefCount.cc
3082 testRefCount_LDADD = \
3084 $(top_builddir)/lib/libmiscutil.la \
3088 tests_testRock_SOURCES = \
3091 CollapsedForwarding.h \
3092 CollapsedForwarding.cc \
3093 tests/stub_CacheDigest.cc \
3109 HttpHeaderFieldStat.h \
3113 HttpHdrContRange.cc \
3116 HttpHdrScTarget.cc \
3119 HttpHeaderFieldInfo.h \
3121 HttpHeaderTools.cc \
3142 tests/stub_StatHist.cc \
3145 tests/stub_stat.cc \
3147 StoreFileSystem.cc \
3149 StoreMetaUnpacker.cc \
3150 $(STOREMETA_SOURCE) \
3151 StoreSwapLogData.cc \
3159 SBufDetailedStats.h \
3160 tests/stub_SBufDetailedStats.cc \
3169 tests/testStoreSupport.cc \
3170 tests/testStoreSupport.h \
3172 tests/stub_access_log.cc \
3175 tests/stub_cache_cf.cc \
3177 tests/stub_cache_manager.cc \
3178 tests/stub_client_db.cc \
3179 tests/stub_client_side_request.cc \
3180 tests/stub_debug.cc \
3181 tests/stub_errorpage.cc \
3182 tests/stub_HelperChildConfig.cc \
3183 tests/stub_http.cc \
3184 tests/stub_HttpRequest.cc \
3185 tests/stub_libauth.cc \
3188 tests/stub_ipcache.cc \
3189 tests/stub_libeui.cc \
3190 tests/stub_libformat.cc \
3191 tests/stub_libicmp.cc \
3192 tests/stub_libmgr.cc \
3193 tests/stub_libsecurity.cc \
3194 tests/stub_MemStore.cc \
3196 tests/stub_mime.cc \
3197 tests/stub_neighbors.cc \
3198 tests/stub_Port.cc \
3199 tests/stub_pconn.cc \
3200 tests/stub_store_client.cc \
3202 tests/stub_store_rebuild.cc \
3203 tests/stub_store_stats.cc \
3205 tests/stub_tools.cc \
3210 $(DELAY_POOL_SOURCE) \
3212 nodist_tests_testRock_SOURCES = \
3217 tests_testRock_LDADD = \
3218 http/libsquid-http.la \
3219 parser/libsquid-parser.la \
3226 DiskIO/libdiskio.la \
3236 $(top_builddir)/lib/libmisccontainers.la \
3237 $(top_builddir)/lib/libmiscencoding.la \
3238 $(top_builddir)/lib/libmiscutil.la \
3241 $(SQUID_CPPUNIT_LIBS) \
3245 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3246 tests_testRock_DEPENDENCIES = \
3249 ## Tests of the URL module.
3250 ## TODO: Trim this down once the insanity is over.
3251 tests_testURL_SOURCES = \
3260 tests/stub_cache_manager.cc \
3262 tests/stub_CacheDigest.cc \
3266 tests/stub_carp.cc \
3272 client_side_reply.cc \
3273 client_side_request.cc \
3276 tests/stub_CollapsedForwarding.cc \
3283 $(DELAY_POOL_SOURCE) \
3293 ExternalACLEntry.cc \
3295 tests/stub_fatal.cc \
3313 HttpHeaderFieldStat.h \
3317 HttpHdrContRange.cc \
3320 HttpHdrScTarget.cc \
3323 HttpHeaderFieldInfo.h \
3325 HttpHeaderTools.cc \
3348 tests/stub_libmem.cc \
3363 peer_proxy_negotiate_auth.h \
3364 peer_proxy_negotiate_auth.cc \
3367 peer_sourcehash.cc \
3371 tests/stub_redirect.cc \
3376 SBufDetailedStats.h \
3377 tests/stub_SBufDetailedStats.cc \
3387 tests/stub_StatHist.cc \
3393 tests/stub_store_digest.cc \
3406 StoreFileSystem.cc \
3408 tests/stub_StoreMeta.cc \
3409 StoreMetaUnpacker.cc \
3410 StoreSwapLogData.cc \
3415 tests/stub_SwapDir.cc \
3417 tests/stub_debug.cc \
3418 tests/stub_libauth_acls.cc \
3419 tests/stub_libauth.cc \
3420 tests/stub_libdiskio.cc \
3421 tests/stub_libsecurity.cc \
3422 tests/stub_main_cc.cc \
3423 tests/stub_ipc_Forwarder.cc \
3424 tests/stub_store_stats.cc \
3427 tests/testUriScheme.cc \
3428 tests/testUriScheme.h \
3429 tests/stub_time.cc \
3430 tests/stub_EventLoop.cc \
3433 tests/stub_tunnel.cc \
3438 tests/stub_wccp2.cc \
3440 tests/stub_whois.cc \
3445 nodist_tests_testURL_SOURCES = \
3447 tests_testURL_LDADD = \
3449 clients/libclients.la \
3450 servers/libservers.la \
3451 helper/libhelper.la \
3452 http/libsquid-http.la \
3454 parser/libsquid-parser.la \
3469 icmp/libicmp.la icmp/libicmp-core.la \
3472 format/libformat.la \
3475 $(ADAPTATION_LIBS) \
3477 $(top_builddir)/lib/libmisccontainers.la \
3478 $(top_builddir)/lib/libmiscencoding.la \
3479 $(top_builddir)/lib/libmiscutil.la \
3482 $(SQUID_CPPUNIT_LIBS) \
3483 $(SQUID_CPPUNIT_LA) \
3488 tests_testURL_LDFLAGS = $(LIBADD_DL)
3489 tests_testURL_DEPENDENCIES = \
3493 tests_testSBuf_SOURCES= \
3496 tests/SBufFindTest.h \
3497 tests/SBufFindTest.cc \
3499 SBufDetailedStats.h \
3500 tests/stub_SBufDetailedStats.cc \
3502 tests/stub_time.cc \
3503 tests/stub_debug.cc \
3504 tests/stub_fatal.cc \
3505 tests/stub_HelperChildConfig.cc \
3506 tests/stub_libmem.cc \
3507 tests/stub_cache_cf.cc \
3508 tests/stub_cache_manager.cc \
3509 tests/stub_cbdata.cc \
3510 tests/stub_store.cc \
3511 tests/stub_store_stats.cc \
3512 tests/stub_tools.cc \
3515 tests/stub_wordlist.cc \
3516 tests/stub_MemBuf.cc
3517 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3518 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3519 tests_testSBuf_LDADD=\
3524 $(top_builddir)/lib/libmiscutil.la \
3526 $(SQUID_CPPUNIT_LIBS) \
3529 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3531 tests_testSBufList_SOURCES= \
3532 tests/testSBufList.h \
3533 tests/testSBufList.cc \
3538 SBufDetailedStats.h \
3539 tests/stub_SBufDetailedStats.cc \
3541 tests/stub_time.cc \
3542 tests/stub_MemObject.cc \
3543 tests/stub_cbdata.cc \
3544 tests/stub_comm.cc \
3545 tests/stub_debug.cc \
3546 tests/stub_event.cc \
3547 tests/stub_fatal.cc \
3549 tests/stub_HelperChildConfig.cc \
3550 tests/stub_libmem.cc \
3551 tests/stub_cache_cf.cc \
3552 tests/stub_cache_manager.cc \
3553 tests/stub_store.cc \
3554 tests/stub_stmem.cc \
3555 tests/stub_store_stats.cc \
3556 tests/stub_tools.cc \
3560 tests/stub_wordlist.cc \
3561 tests/stub_MemBuf.cc
3562 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3563 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3564 tests_testSBufList_LDADD=\
3569 $(top_builddir)/lib/libmiscutil.la \
3570 $(SQUID_CPPUNIT_LIBS) \
3573 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3575 tests_testConfigParser_SOURCES = \
3577 tests/stub_libmem.cc \
3578 tests/stub_MemBuf.cc \
3579 tests/stub_time.cc \
3581 SBufDetailedStats.h \
3582 tests/stub_SBufDetailedStats.cc \
3586 tests/stub_fatal.cc \
3587 tests/testConfigParser.cc \
3588 tests/testConfigParser.h \
3591 tests/stub_cache_cf.cc \
3592 tests/stub_cache_manager.cc \
3593 tests/stub_cbdata.cc \
3594 tests/stub_debug.cc \
3595 tests/stub_HelperChildConfig.cc \
3597 tests/stub_tools.cc \
3600 nodist_tests_testConfigParser_SOURCES = \
3602 tests_testConfigParser_LDADD = \
3606 $(top_builddir)/lib/libmiscutil.la \
3608 $(SQUID_CPPUNIT_LIBS) \
3612 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3613 tests_testConfigParser_DEPENDENCIES = \
3616 tests_testStatHist_SOURCES = \
3617 tests/stub_cbdata.cc \
3619 tests/stub_fatal.cc \
3620 tests/stub_MemBuf.cc \
3622 SBufDetailedStats.h \
3623 tests/stub_SBufDetailedStats.cc \
3627 tests/stub_cache_manager.cc \
3628 tests/stub_comm.cc \
3629 tests/stub_debug.cc \
3630 tests/stub_DelayId.cc \
3631 tests/stub_HelperChildConfig.cc \
3632 tests/stub_libmem.cc \
3633 tests/stub_MemObject.cc \
3635 tests/stub_mime.cc \
3636 tests/stub_pconn.cc \
3637 tests/stub_stmem.cc \
3639 tests/stub_store.cc \
3640 tests/stub_store_stats.cc \
3643 tests/stub_tools.cc \
3644 tests/testStatHist.cc \
3645 tests/testStatHist.h
3646 nodist_tests_testStatHist_SOURCES = \
3648 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3649 tests_testStatHist_LDADD = \
3651 $(top_builddir)/lib/libmiscutil.la \
3652 $(top_builddir)/lib/libmisccontainers.la \
3653 $(SQUID_CPPUNIT_LIBS) \
3654 $(SQUID_CPPUNIT_LA) \
3656 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3658 TESTS += testHeaders
3660 ## Special Universal .h dependency test script
3661 ## aborts if error encountered
3662 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3663 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3664 ## src/repl/ has no .h files and its own makefile.
3666 CLEANFILES += testHeaders