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 security
57 DIST_SUBDIRS += http ip icmp ident log ipc mgr security
75 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
77 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
86 DIST_SUBDIRS += adaptation
92 $(top_builddir)/lib/libTrie/libTrie.a \
100 DELAY_POOL_ALL_SOURCE = \
102 CompositePoolNode.h \
124 ClientDelayConfig.cc \
127 if ENABLE_DELAY_POOLS
128 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
133 if ENABLE_XPROF_STATS
134 XPROF_STATS_SOURCE = ProfStats.cc
140 HTCPSOURCE = htcp.cc htcp.h
144 LEAKFINDERSOURCE = LeakFinder.cc
150 UNLINKDSOURCE = unlinkd.h unlinkd.cc
153 UNLINKDSOURCE = unlinkd.h
162 if ENABLE_WIN32SPECIFIC
163 WIN32_SOURCE = win32.cc
164 WINSVC_SOURCE = WinSvc.cc
171 IPC_SOURCE = SquidIpc.h ipc_win32.cc
173 IPC_SOURCE = SquidIpc.h ipc.cc
176 noinst_LTLIBRARIES = libsquid.la
185 ## cfgen is used when building squid
186 ## ufsdump is a debug utility, it is possibly useful for end users with cache
187 ## corruption, but at this point we do not install it.
200 cf_gen_SOURCES = cf_gen.cc
201 nodist_cf_gen_HEADER = cf_gen_defines.cci
202 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
204 cf_gen.$(OBJEXT): cf_gen_defines.cci
206 ## cf_gen.cc needs src/cf_gen_defines.cci
207 AM_CPPFLAGS += -I$(top_builddir)/src
210 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
212 # common library for all the binaries and tests. This is kindof a catch all
213 # and smaller libraries split from this are encouraged. Using lt convenience
214 # libraries, dependencies should not be a problem either.
215 libsquid_la_SOURCES = \
226 $(ACL_REGISTRATION_SOURCES) \
238 NeighborTypeDomainList.h \
251 client_side_reply.cc \
252 client_side_reply.h \
253 client_side_request.cc \
254 client_side_request.h \
259 ClientRequestContext.h \
262 clientStreamForward.h \
263 CollapsedForwarding.cc \
264 CollapsedForwarding.h \
265 CompletionDispatcher.cc \
266 CompletionDispatcher.h \
280 $(DELAY_POOL_SOURCE) \
299 ExternalACLEntry.cc \
322 HierarchyLogEntry.h \
327 HttpHeaderFieldStat.h \
336 HttpHdrContRange.cc \
343 HttpHeaderFieldInfo.h \
369 $(LEAKFINDERSOURCE) \
396 $(XPROF_STATS_SOURCE) \
401 peer_proxy_negotiate_auth.h \
402 peer_proxy_negotiate_auth.cc \
426 SBufDetailedStats.h \
427 SBufDetailedStats.cc \
469 StoreMetaUnpacker.cc \
470 StoreMetaUnpacker.h \
471 $(STOREMETA_SOURCE) \
475 StoreSwapLogData.cc \
504 EXTRA_squid_SOURCES = \
507 $(DELAY_POOL_ALL_SOURCE) \
517 $(WIN32_ALL_SOURCE) \
518 $(LOADABLE_MODULES_SOURCES)
521 client_side_request.cci \
539 CLEANFILES += $(BUILT_SOURCES)
541 nodist_squid_SOURCES = \
551 clients/libclients.la \
552 servers/libservers.la \
554 helper/libhelper.la \
555 http/libsquid-http.la \
556 parser/libsquid-parser.la \
562 DiskIO/libdiskio.la \
568 security/libsecurity.la \
570 icmp/libicmp.la icmp/libicmp-core.la \
572 format/libformat.la \
583 $(top_builddir)/lib/libmisccontainers.la \
584 $(top_builddir)/lib/libmiscencoding.la \
585 $(top_builddir)/lib/libmiscutil.la \
594 if ENABLE_LOADABLE_MODULES
595 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
596 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
597 squid_LDFLAGS = -export-dynamic -dlopen force
598 ## when static module linking is supported and enabled:
599 ## squid_LDFLAGS = -all-static -dlopen self
601 ## LTDL headers require their local include path...
602 AM_CPPFLAGS += $(INCLTDL)
605 ## Kerberos libraries require their include path...
606 AM_CPPFLAGS += $(KRB5INCS)
609 unlinkd_SOURCES = unlinkd_daemon.cc
614 recv_announce_SOURCES = recv-announce.cc
616 ## What requires what..
617 ## many things want ACLChecklist.cc
618 ## ACLChecklist.cc wants AuthUserRequest.cc
619 ## ACLChecklist.cc wants AuthScheme.cc
620 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
621 ## ACLProxyAuth.cc wants ACLUserData
622 ## ACLProxyAuth.cc wants ACLRegexData
623 ## cache_cf.cc wants $(AUTH_LIBS)
624 ## cache_cf.cc wants store/libstore.la
625 ## cache_cf.cc wants AnyP::PortCfg
626 ## client_side wants client_db
627 ## client_db wants SNMP_SOURCE
628 ## snmp_core wants ACLStringData
629 ## tools.cc wants ip/libip.la
630 ## client_side.cc wants ip/libip.la
631 ## libbase.la wants cbdata.*
632 ## libbase.la wants MemBuf.*
646 tests/stub_StoreMeta.cc \
647 StoreMetaUnpacker.cc \
654 helper/ChildConfig.h \
655 tests/stub_HelperChildConfig.cc \
682 ufsdump_DEPENDENCIES = \
694 DiskIO/libdiskio.la \
697 nodist_ufsdump_SOURCES = \
702 squid.conf.documented \
727 include $(srcdir)/tests/Stub.list
735 mk-string-arrays.awk \
741 DEFAULT_HTTP_PORT = 3128
742 DEFAULT_ICP_PORT = 3130
743 DEFAULT_PREFIX = $(prefix)
744 DEFAULT_CONFIG_DIR = $(sysconfdir)
745 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
746 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
747 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
748 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
749 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
750 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
751 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
752 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
753 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
754 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
755 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
756 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
757 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
758 DEFAULT_ICON_DIR = $(datadir)/icons
759 DEFAULT_ERROR_DIR = $(datadir)/errors
761 # Make location configure settings available to the code
762 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
764 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
766 globals.cc: globals.h mk-globals-c.awk
767 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
769 ## Generate files containing string arrays for various enums....
770 hier_code.cc: hier_code.h mk-string-arrays.awk
771 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
773 err_type.cc: err_type.h mk-string-arrays.awk
774 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
776 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
777 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
779 lookup_t.cc: lookup_t.h mk-string-arrays.awk
780 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
782 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
783 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
785 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
786 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
789 ## other generated files...
791 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
792 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
794 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
795 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
797 ## If autodependency works well this is not needed anymore
798 cache_cf.o: cf_parser.cci
800 # cf_gen builds the configuration files.
801 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
802 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
804 # squid.conf.default is built by cf_gen when making cf_parser.cci
805 squid.conf.default squid.conf.documented: cf_parser.cci
808 cf_parser.cci: cf.data cf_gen$(EXEEXT)
809 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
811 # The cf_gen_defines.cci is auto-generated and does not exist when the
812 # dependencies computed. We need to add its include files (autoconf.h) here
813 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
814 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
817 ## FIXME: generate a sed command file from configure. Then this doesn't
818 ## depend on the Makefile.
819 cf.data: cf.data.pre Makefile
821 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
822 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
823 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
824 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
825 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
826 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
827 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
828 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
829 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
830 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
831 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
832 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
833 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
834 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
835 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
836 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
837 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
838 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
839 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
840 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
841 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
842 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
843 -f $(srcdir)/cf.data.sed \
844 < $(srcdir)/cf.data.pre >$@
846 repl_modules.cc: repl_modules.sh Makefile
847 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
849 include $(top_srcdir)/doc/manuals/Substitute.am
851 squid.8: $(srcdir)/squid.8.in Makefile
852 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
855 EXTRA_DIST += squid.8.in
856 CLEANFILES += squid.8
858 install-data-local: install-sysconfDATA install-dataDATA
859 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
860 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
862 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
863 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
865 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
866 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
868 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
869 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
871 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
872 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
873 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
874 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
875 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
876 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
877 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
879 uninstall-local: squid.conf.default
880 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
881 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
883 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
886 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
887 cp $(top_srcdir)/test-suite/test_tools.cc .
889 # stock tools for unit tests - library independent versions of dlink_list
891 # globals.cc is needed by test_tools.cc.
892 # Neither of these should be disted from here.
899 tests/testBoilerplate \
900 tests/testCacheManager \
901 tests/testCharacterSet \
904 tests/testEnumIterator \
906 tests/testEventLoop \
907 tests/test_http_range \
908 tests/testTokenizer \
909 tests/testHttp1Parser \
910 tests/testHttpReply \
911 tests/testHttpRequest \
913 tests/testIpAddress \
919 tests/testConfigParser \
921 tests/testLookupTable \
925 check_PROGRAMS += tests/testRock
928 check_PROGRAMS += tests/testUfs
931 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
932 TESTS += $(check_PROGRAMS)
934 ### Template for new Unit Test Program
935 ## - add tests/testX to check_PROGRAMS above.
936 ## - copy template below and substitue X for class name
937 ## - add other component .(h|cc) files needed to link and run tests
939 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
941 #tests_testX_SOURCES=\
946 #nodist_tests_testX_SOURCES=\
947 # tests/stubs_as_needed.cc\
949 #tests_testX_LDFLAGS = $(LIBADD_DL)
951 # $(SQUID_CPPUNIT_LIBS) \
952 # $(SQUID_CPPUNIT_LA) \
954 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
957 # - add other component .(h|cc) files needed to link and run tests
958 tests_testHttpReply_SOURCES=\
964 tests/stub_fatal.cc \
967 HttpHeaderFieldStat.h \
971 HttpHdrContRange.cc \
981 HttpHeaderFieldInfo.h \
1003 SBufDetailedStats.h \
1004 tests/stub_SBufDetailedStats.cc \
1009 tests/stub_access_log.cc \
1011 tests/stub_cache_cf.cc \
1012 tests/stub_cache_manager.cc \
1013 tests/stub_comm.cc \
1014 tests/stub_debug.cc \
1015 tests/stub_errorpage.cc \
1016 tests/stub_event.cc \
1018 tests/stub_HelperChildConfig.cc \
1019 tests/stub_libformat.cc \
1020 tests/stub_libauth.cc \
1021 tests/stub_libcomm.cc \
1022 tests/stub_libmgr.cc \
1023 tests/stub_libsecurity.cc \
1024 tests/stub_libsslsquid.cc \
1028 tests/stub_StatHist.cc \
1030 tests/stub_store.cc \
1031 tests/stub_store_stats.cc \
1033 tests/stub_tools.cc \
1034 tests/stub_HttpRequest.cc \
1035 tests/testHttpReply.cc \
1036 tests/testHttpReply.h \
1037 tests/stub_time.cc \
1041 nodist_tests_testHttpReply_SOURCES=\
1043 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1044 tests_testHttpReply_LDADD=\
1046 http/libsquid-http.la \
1047 parser/libsquid-parser.la \
1056 $(top_builddir)/lib/libmisccontainers.la \
1057 $(top_builddir)/lib/libmiscencoding.la \
1058 $(top_builddir)/lib/libmiscutil.la \
1059 $(SQUID_CPPUNIT_LIBS) \
1060 $(SQUID_CPPUNIT_LA) \
1065 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1067 tests_testACLMaxUserIP_SOURCES= \
1070 tests/stub_CollapsedForwarding.cc \
1073 tests/stub_ETag.cc \
1076 tests/stub_fatal.cc \
1082 HttpHeaderFieldInfo.h \
1084 HttpHeaderTools.cc \
1085 HttpHdrContRange.cc \
1087 HttpHeaderFieldStat.h \
1092 HttpHdrScTarget.cc \
1104 tests/stub_libsecurity.cc \
1111 tests/stub_StatHist.cc \
1116 SBufDetailedStats.h \
1117 tests/stub_SBufDetailedStats.cc \
1120 tests/stub_StoreMeta.cc \
1121 StoreMetaUnpacker.cc \
1122 StoreSwapLogData.cc \
1127 tests/stub_SwapDir.cc \
1130 tests/stub_access_log.cc \
1132 tests/stub_cache_cf.cc \
1133 tests/stub_client_side.cc \
1134 tests/stub_debug.cc \
1135 tests/stub_DelayId.cc \
1136 tests/stub_errorpage.cc \
1139 tests/stub_HttpRequest.cc \
1140 tests/stub_HttpReply.cc \
1141 tests/stub_ipc_TypedMsgHdr.cc \
1142 tests/stub_libauth.cc \
1143 tests/stub_libcomm.cc \
1144 tests/stub_libdiskio.cc \
1145 tests/stub_libformat.cc \
1146 tests/stub_libmem.cc \
1147 tests/stub_libsslsquid.cc \
1148 tests/stub_MemObject.cc \
1149 tests/stub_MemStore.cc \
1151 tests/stub_mime.cc \
1152 tests/stub_pconn.cc \
1153 tests/stub_Port.cc \
1155 tests/stub_store.cc \
1156 tests/stub_store_client.cc \
1158 tests/stub_store_rebuild.cc \
1159 tests/stub_store_stats.cc \
1160 tests/stub_store_swapout.cc \
1162 tests/stub_tools.cc \
1163 tests/stub_cache_manager.cc \
1164 tests/stub_UdsOp.cc \
1165 tests/testACLMaxUserIP.cc \
1166 tests/testACLMaxUserIP.h \
1167 tests/stub_time.cc \
1173 nodist_tests_testACLMaxUserIP_SOURCES= \
1175 tests_testACLMaxUserIP_LDADD= \
1177 helper/libhelper.la \
1178 http/libsquid-http.la \
1179 parser/libsquid-parser.la \
1191 $(top_builddir)/lib/libmisccontainers.la \
1192 $(top_builddir)/lib/libmiscencoding.la \
1193 $(top_builddir)/lib/libmiscutil.la \
1196 $(SQUID_CPPUNIT_LIBS) \
1200 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1201 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1202 ## $(SQUID_CPPUNIT_LA)
1204 ## a demonstration test that does nothing but shows the salient points
1205 ## involved in writing tests.
1206 tests_testBoilerplate_SOURCES = \
1207 tests/testBoilerplate.cc \
1208 tests/testBoilerplate.h \
1209 tests/stub_debug.cc \
1210 tests/stub_libmem.cc \
1212 nodist_tests_testBoilerplate_SOURCES = \
1213 tests/stub_cbdata.cc \
1214 tests/stub_MemBuf.cc \
1216 tests_testBoilerplate_LDADD= \
1217 $(SQUID_CPPUNIT_LIBS) \
1222 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1223 tests_testBoilerplate_DEPENDENCIES = \
1226 ## Tests of base/libbase.la objects
1227 tests_testCharacterSet_SOURCES = \
1228 tests/testCharacterSet.cc \
1229 tests/testCharacterSet.h
1230 nodist_tests_testCharacterSet_SOURCES = \
1231 base/CharacterSet.h \
1233 tests/stub_cbdata.cc \
1234 tests/stub_debug.cc \
1235 tests/stub_libmem.cc \
1236 tests/stub_MemBuf.cc
1237 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1238 tests_testCharacterSet_LDADD= \
1241 $(SQUID_CPPUNIT_LA) \
1242 $(SQUID_CPPUNIT_LIBS) \
1245 ## Tests of the CacheManager module.
1246 tests_testCacheManager_SOURCES = \
1253 tests/testCacheManager.cc \
1254 tests/testCacheManager.h \
1255 tests/stub_main_cc.cc \
1256 tests/stub_HttpControlMsg.cc \
1257 tests/stub_ipc_Forwarder.cc \
1258 tests/stub_store_stats.cc \
1259 tests/stub_EventLoop.cc \
1270 tests/stub_CacheDigest.cc \
1272 tests/stub_carp.cc \
1278 client_side_reply.cc \
1279 client_side_request.cc \
1282 tests/stub_CollapsedForwarding.cc \
1289 $(DELAY_POOL_SOURCE) \
1296 tests/stub_ETag.cc \
1299 ExternalACLEntry.cc \
1301 tests/stub_fatal.cc \
1322 HttpHeaderFieldInfo.h \
1324 HttpHeaderTools.cc \
1325 HttpHeaderFieldStat.h \
1329 HttpHdrContRange.cc \
1332 HttpHdrScTarget.cc \
1344 tests/stub_libsecurity.cc \
1365 peer_proxy_negotiate_auth.h \
1366 peer_proxy_negotiate_auth.cc \
1369 peer_sourcehash.cc \
1377 tests/stub_redirect.cc \
1384 SBufDetailedStats.h \
1385 tests/stub_SBufDetailedStats.cc \
1397 tests/stub_libauth_acls.cc \
1398 tests/stub_libauth.cc \
1399 tests/stub_libdiskio.cc \
1400 tests/stub_StatHist.cc \
1406 tests/stub_store_digest.cc \
1418 StoreFileSystem.cc \
1420 tests/stub_StoreMeta.cc \
1421 StoreMetaUnpacker.cc \
1422 StoreSwapLogData.cc \
1426 tests/stub_tunnel.cc \
1427 tests/stub_SwapDir.cc \
1434 tests/stub_wccp2.cc \
1436 tests/stub_whois.cc \
1441 nodist_tests_testCacheManager_SOURCES = \
1443 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1444 tests_testCacheManager_LDADD = \
1446 clients/libclients.la \
1447 servers/libservers.la \
1449 helper/libhelper.la \
1450 http/libsquid-http.la \
1451 parser/libsquid-parser.la \
1462 icmp/libicmp.la icmp/libicmp-core.la \
1464 format/libformat.la \
1466 $(ADAPTATION_LIBS) \
1475 $(top_builddir)/lib/libmisccontainers.la \
1476 $(top_builddir)/lib/libmiscencoding.la \
1477 $(top_builddir)/lib/libmiscutil.la \
1480 $(SQUID_CPPUNIT_LIBS) \
1481 $(SQUID_CPPUNIT_LA) \
1486 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1487 tests_testCacheManager_DEPENDENCIES = \
1491 tests_testDiskIO_SOURCES = \
1493 tests/stub_CacheDigest.cc \
1497 tests/stub_CollapsedForwarding.cc \
1500 $(DELAY_POOL_SOURCE) \
1503 tests/stub_ETag.cc \
1507 tests/stub_fatal.cc \
1516 HttpHeaderFieldStat.h \
1520 HttpHdrContRange.cc \
1522 HttpHdrScTarget.cc \
1524 HttpHeaderFieldInfo.h \
1526 HttpHeaderTools.cc \
1548 tests/stub_libsecurity.cc \
1552 tests/stub_StatHist.cc \
1557 SBufDetailedStats.h \
1558 tests/stub_SBufDetailedStats.cc \
1559 StoreFileSystem.cc \
1561 tests/stub_StoreMeta.cc \
1562 StoreMetaUnpacker.cc \
1563 StoreSwapLogData.cc \
1574 tests/stub_SwapDir.cc \
1577 tests/stub_access_log.cc \
1580 tests/stub_cache_cf.cc \
1581 tests/stub_cache_manager.cc \
1582 tests/stub_client_db.cc \
1583 client_side_request.h \
1584 tests/stub_client_side_request.cc \
1585 tests/stub_debug.cc \
1586 tests/stub_errorpage.cc \
1587 tests/stub_helper.cc \
1588 tests/stub_HelperChildConfig.cc \
1589 tests/stub_HttpRequest.cc \
1590 tests/stub_http.cc \
1593 tests/stub_internal.cc \
1595 tests/stub_ipcache.cc \
1596 tests/stub_libauth_acls.cc \
1597 tests/stub_libauth.cc \
1598 tests/stub_libeui.cc \
1599 tests/stub_libformat.cc \
1600 tests/stub_libicmp.cc \
1601 tests/stub_MemStore.cc \
1603 tests/stub_mime.cc \
1604 tests/stub_neighbors.cc \
1605 tests/stub_pconn.cc \
1606 tests/stub_Port.cc \
1607 tests/stub_stat.cc \
1608 tests/stub_store_client.cc \
1609 tests/stub_store_stats.cc \
1611 tests/stub_store_rebuild.cc \
1612 tests/stub_UdsOp.cc \
1613 tests/testDiskIO.cc \
1614 tests/testDiskIO.h \
1615 tests/testStoreSupport.cc \
1616 tests/testStoreSupport.h \
1617 tests/stub_time.cc \
1625 nodist_tests_testDiskIO_SOURCES= \
1630 tests_testDiskIO_LDADD = \
1632 http/libsquid-http.la \
1633 parser/libsquid-parser.la \
1644 DiskIO/libdiskio.la \
1654 $(top_builddir)/lib/libmisccontainers.la \
1655 $(top_builddir)/lib/libmiscencoding.la \
1656 $(top_builddir)/lib/libmiscutil.la \
1659 $(SQUID_CPPUNIT_LIBS) \
1664 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1665 tests_testDiskIO_DEPENDENCIES = \
1666 DiskIO/libdiskio.la \
1670 tests_testDns_SOURCES= \
1671 tests/testRFC1035.cc \
1673 nodist_tests_testDns_SOURCES= \
1674 tests/stub_debug.cc \
1675 tests/stub_libmem.cc \
1676 tests/stub_SBuf.cc \
1678 tests_testDns_LDADD= \
1681 $(top_builddir)/lib/libmiscutil.la \
1684 $(SQUID_CPPUNIT_LA) \
1685 $(SQUID_CPPUNIT_LIBS)
1686 tests_testDns_LDFLAGS= $(LIBADD_DL)
1688 tests_testEvent_SOURCES = \
1692 tests/stub_CacheDigest.cc \
1701 tests/stub_carp.cc \
1707 client_side_reply.cc \
1708 client_side_request.cc \
1711 tests/stub_CollapsedForwarding.cc \
1719 $(DELAY_POOL_SOURCE) \
1726 tests/stub_ETag.cc \
1731 ExternalACLEntry.cc \
1734 tests/stub_fatal.cc \
1752 tests/stub_HttpControlMsg.cc \
1755 HttpHeaderFieldInfo.h \
1757 HttpHeaderTools.cc \
1758 HttpHeaderFieldStat.h \
1762 HttpHdrContRange.cc \
1765 HttpHdrScTarget.cc \
1782 tests/stub_libsecurity.cc \
1787 tests/stub_libmem.cc \
1804 peer_proxy_negotiate_auth.h \
1805 peer_proxy_negotiate_auth.cc \
1808 peer_sourcehash.cc \
1814 tests/stub_redirect.cc \
1823 SBufDetailedStats.h \
1824 tests/stub_SBufDetailedStats.cc \
1840 tests/stub_store_digest.cc \
1852 StoreFileSystem.cc \
1854 tests/stub_StoreMeta.cc \
1855 StoreMetaUnpacker.cc \
1856 StoreSwapLogData.cc \
1858 tests/stub_SwapDir.cc \
1859 tests/CapturingStoreEntry.h \
1860 tests/testEvent.cc \
1862 tests/stub_main_cc.cc \
1863 tests/stub_ipc_Forwarder.cc \
1864 tests/stub_libauth_acls.cc \
1865 tests/stub_libauth.cc \
1866 tests/stub_libdiskio.cc \
1867 tests/stub_libeui.cc \
1868 tests/stub_store_stats.cc \
1873 tests/stub_tunnel.cc \
1880 tests/stub_wccp2.cc \
1882 tests/stub_whois.cc \
1886 nodist_tests_testEvent_SOURCES = \
1888 tests_testEvent_LDADD = \
1890 clients/libclients.la \
1891 servers/libservers.la \
1893 helper/libhelper.la \
1894 http/libsquid-http.la \
1895 parser/libsquid-parser.la \
1905 icmp/libicmp.la icmp/libicmp-core.la \
1908 format/libformat.la \
1910 $(ADAPTATION_LIBS) \
1913 $(top_builddir)/lib/libmisccontainers.la \
1914 $(top_builddir)/lib/libmiscencoding.la \
1915 $(top_builddir)/lib/libmiscutil.la \
1922 $(SQUID_CPPUNIT_LIBS) \
1923 $(SQUID_CPPUNIT_LA) \
1928 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1929 tests_testEvent_DEPENDENCIES = \
1933 ## Tests of the EventLoop module.
1934 tests_testEventLoop_SOURCES = \
1938 tests/stub_CacheDigest.cc \
1947 tests/stub_carp.cc \
1953 client_side_reply.cc \
1954 client_side_request.cc \
1957 tests/stub_CollapsedForwarding.cc \
1965 $(DELAY_POOL_SOURCE) \
1972 tests/stub_ETag.cc \
1977 ExternalACLEntry.cc \
1980 tests/stub_fatal.cc \
1998 tests/stub_HttpControlMsg.cc \
2001 HttpHeaderFieldInfo.h \
2003 HttpHeaderTools.cc \
2004 HttpHeaderFieldStat.h \
2008 HttpHdrContRange.cc \
2011 HttpHdrScTarget.cc \
2034 tests/stub_libmem.cc \
2049 peer_proxy_negotiate_auth.h \
2050 peer_proxy_negotiate_auth.cc \
2053 peer_sourcehash.cc \
2060 tests/stub_redirect.cc \
2066 SBufDetailedStats.h \
2067 tests/stub_SBufDetailedStats.cc \
2083 tests/stub_store_digest.cc \
2095 StoreFileSystem.cc \
2097 tests/stub_StoreMeta.cc \
2098 StoreMetaUnpacker.cc \
2099 StoreSwapLogData.cc \
2103 tests/stub_SwapDir.cc \
2104 tests/testEventLoop.cc \
2105 tests/testEventLoop.h \
2106 tests/stub_main_cc.cc \
2107 tests/stub_ipc_Forwarder.cc \
2108 tests/stub_libauth_acls.cc \
2109 tests/stub_libauth.cc \
2110 tests/stub_libdiskio.cc \
2111 tests/stub_libeui.cc \
2112 tests/stub_libsecurity.cc \
2113 tests/stub_store_stats.cc \
2118 tests/stub_tunnel.cc \
2125 tests/stub_wccp2.cc \
2127 tests/stub_whois.cc \
2131 nodist_tests_testEventLoop_SOURCES = \
2133 tests_testEventLoop_LDADD = \
2135 clients/libclients.la \
2136 servers/libservers.la \
2138 helper/libhelper.la \
2139 http/libsquid-http.la \
2140 parser/libsquid-parser.la \
2150 icmp/libicmp.la icmp/libicmp-core.la \
2153 format/libformat.la \
2155 $(ADAPTATION_LIBS) \
2158 $(top_builddir)/lib/libmisccontainers.la \
2159 $(top_builddir)/lib/libmiscencoding.la \
2160 $(top_builddir)/lib/libmiscutil.la \
2167 $(SQUID_CPPUNIT_LIBS) \
2168 $(SQUID_CPPUNIT_LA) \
2173 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2174 tests_testEventLoop_DEPENDENCIES = \
2178 tests_test_http_range_SOURCES = \
2189 tests/stub_CacheDigest.cc \
2191 tests/stub_carp.cc \
2197 client_side_reply.cc \
2198 client_side_request.cc \
2201 tests/stub_CollapsedForwarding.cc \
2209 $(DELAY_POOL_SOURCE) \
2216 tests/stub_ETag.cc \
2220 tests/stub_libauth.cc \
2221 tests/stub_fatal.cc \
2239 tests/stub_HttpControlMsg.cc \
2240 HttpHeaderFieldStat.h \
2244 HttpHdrContRange.cc \
2247 HttpHdrScTarget.cc \
2250 HttpHeaderFieldInfo.h \
2252 HttpHeaderTools.cc \
2275 tests/stub_libmem.cc \
2289 peer_proxy_negotiate_auth.h \
2290 peer_proxy_negotiate_auth.cc \
2293 peer_sourcehash.cc \
2300 tests/stub_redirect.cc \
2307 SBufDetailedStats.h \
2308 tests/stub_SBufDetailedStats.cc \
2324 tests/stub_store_digest.cc \
2336 StoreFileSystem.cc \
2338 tests/stub_StoreMeta.cc \
2339 StoreMetaUnpacker.cc \
2340 StoreSwapLogData.cc \
2344 tests/stub_SwapDir.cc \
2346 tests/test_http_range.cc \
2347 tests/stub_external_acl.cc \
2348 tests/stub_ipc_Forwarder.cc \
2349 tests/stub_libdiskio.cc \
2350 tests/stub_libeui.cc \
2351 tests/stub_libsecurity.cc \
2352 tests/stub_main_cc.cc \
2353 tests/stub_MemStore.cc \
2354 tests/stub_store_stats.cc \
2355 tests/stub_EventLoop.cc \
2359 tests/stub_tunnel.cc \
2365 tests/stub_wccp2.cc \
2367 tests/stub_whois.cc \
2371 nodist_tests_test_http_range_SOURCES = \
2373 tests_test_http_range_LDADD = \
2375 clients/libclients.la \
2376 servers/libservers.la \
2378 helper/libhelper.la \
2379 http/libsquid-http.la \
2380 parser/libsquid-parser.la \
2385 parser/libsquid-parser.la \
2389 icmp/libicmp.la icmp/libicmp-core.la \
2392 format/libformat.la \
2394 $(ADAPTATION_LIBS) \
2403 $(top_builddir)/lib/libmisccontainers.la \
2404 $(top_builddir)/lib/libmiscencoding.la \
2405 $(top_builddir)/lib/libmiscutil.la \
2408 $(SQUID_CPPUNIT_LIBS) \
2409 $(SQUID_CPPUNIT_LA) \
2414 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2415 tests_test_http_range_DEPENDENCIES = \
2418 ## Tests of parser/* objects
2419 tests_testTokenizer_SOURCES = \
2420 tests/testTokenizer.h \
2421 tests/testTokenizer.cc
2422 nodist_tests_testTokenizer_SOURCES = \
2423 parser/Tokenizer.h \
2428 tests/stub_debug.cc \
2429 tests/stub_libmem.cc \
2430 tests/stub_time.cc \
2431 tests/stub_SBufDetailedStats.cc
2432 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2433 tests_testTokenizer_LDADD = \
2434 parser/libsquid-parser.la \
2436 $(top_builddir)/lib/libmiscutil.la \
2438 $(SQUID_CPPUNIT_LA) \
2439 $(SQUID_CPPUNIT_LIBS) \
2442 tests_testHttp1Parser_SOURCES = \
2446 tests/stub_MemObject.cc \
2454 tests/stub_SBufDetailedStats.cc \
2455 tests/stub_cache_cf.cc \
2456 tests/stub_cache_manager.cc \
2457 tests/stub_comm.cc \
2458 tests/stub_cbdata.cc \
2459 tests/stub_debug.cc \
2460 tests/stub_event.cc \
2461 tests/stub_HelperChildConfig.cc \
2462 tests/stub_libmem.cc \
2463 tests/stub_libsecurity.cc \
2464 tests/stub_stmem.cc \
2465 tests/stub_store.cc \
2466 tests/stub_store_stats.cc \
2468 tests/stub_tools.cc \
2469 tests/testHttp1Parser.cc \
2470 tests/testHttp1Parser.h \
2471 tests/stub_time.cc \
2474 nodist_tests_testHttp1Parser_SOURCES = \
2476 tests_testHttp1Parser_LDADD= \
2477 http/libsquid-http.la \
2478 parser/libsquid-parser.la \
2483 $(top_builddir)/lib/libmiscutil.la \
2484 $(SQUID_CPPUNIT_LIBS) \
2488 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2489 tests_testHttp1Parser_DEPENDENCIES = \
2492 ## Tests of the HttpRequest module.
2493 tests_testHttpRequest_SOURCES = \
2498 tests/stub_libmem.cc \
2500 tests/testHttpRequest.h \
2501 tests/testHttpRequest.cc \
2502 tests/testHttpRequestMethod.h \
2503 tests/testHttpRequestMethod.cc \
2504 tests/stub_libauth.cc \
2505 tests/stub_main_cc.cc \
2506 tests/stub_ipc_Forwarder.cc \
2507 tests/stub_libdiskio.cc \
2508 tests/stub_libeui.cc \
2509 tests/stub_store_stats.cc \
2510 tests/stub_EventLoop.cc \
2520 tests/stub_CacheDigest.cc \
2524 tests/stub_carp.cc \
2530 client_side_reply.cc \
2531 client_side_request.cc \
2534 tests/stub_CollapsedForwarding.cc \
2541 $(DELAY_POOL_SOURCE) \
2548 tests/stub_ETag.cc \
2550 ExternalACLEntry.cc \
2552 tests/stub_fatal.cc \
2568 tests/stub_HttpControlMsg.cc \
2571 HttpHeaderFieldInfo.h \
2573 HttpHeaderTools.cc \
2574 HttpHeaderFieldStat.h \
2578 HttpHdrContRange.cc \
2581 HttpHdrScTarget.cc \
2593 tests/stub_libsecurity.cc \
2614 peer_proxy_negotiate_auth.h \
2615 peer_proxy_negotiate_auth.cc \
2618 peer_sourcehash.cc \
2626 tests/stub_libauth_acls.cc \
2627 tests/stub_redirect.cc \
2634 SBufDetailedStats.h \
2635 tests/stub_SBufDetailedStats.cc \
2651 tests/stub_store_digest.cc \
2663 StoreFileSystem.cc \
2665 tests/stub_StoreMeta.cc \
2666 StoreMetaUnpacker.cc \
2667 StoreSwapLogData.cc \
2674 tests/stub_tunnel.cc \
2675 tests/stub_SwapDir.cc \
2681 tests/stub_wccp2.cc \
2683 tests/stub_whois.cc \
2688 nodist_tests_testHttpRequest_SOURCES = \
2690 tests_testHttpRequest_LDADD = \
2692 clients/libclients.la \
2693 servers/libservers.la \
2694 helper/libhelper.la \
2696 http/libsquid-http.la \
2701 parser/libsquid-parser.la \
2706 parser/libsquid-parser.la \
2712 icmp/libicmp.la icmp/libicmp-core.la \
2715 format/libformat.la \
2718 $(ADAPTATION_LIBS) \
2720 $(top_builddir)/lib/libmisccontainers.la \
2721 $(top_builddir)/lib/libmiscencoding.la \
2722 $(top_builddir)/lib/libmiscutil.la \
2725 $(SQUID_CPPUNIT_LIBS) \
2726 $(SQUID_CPPUNIT_LA) \
2731 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2732 tests_testHttpRequest_DEPENDENCIES = \
2736 ## Tests for icmp/* objects
2737 # icmp/libicmp-core.la is used by pinger so SHOULD NOT require more dependancies! :-(
2738 tests_testIcmp_SOURCES = \
2741 nodist_tests_testIcmp_SOURCES = \
2744 tests/stub_debug.cc \
2745 tests/stub_libmem.cc \
2748 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2749 tests_testIcmp_LDADD=\
2750 icmp/libicmp-core.la \
2754 $(SQUID_CPPUNIT_LA) \
2755 $(SQUID_CPPUNIT_LIBS) \
2758 ## Tests for ip/* objects
2759 tests_testIpAddress_SOURCES= \
2760 tests/testAddress.cc \
2762 nodist_tests_testIpAddress_SOURCES= \
2764 tests/stub_debug.cc \
2765 tests/stub_libmem.cc \
2767 tests_testIpAddress_LDADD= \
2771 $(SQUID_CPPUNIT_LA) \
2772 $(SQUID_CPPUNIT_LIBS) \
2774 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2776 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2777 ## first line - what we are testing.
2778 tests_testStore_SOURCES= \
2780 tests/stub_CacheDigest.cc \
2783 tests/stub_CollapsedForwarding.cc \
2786 $(DELAY_POOL_SOURCE) \
2793 tests/stub_fatal.cc \
2796 HttpHeaderFieldStat.h \
2800 HttpHdrContRange.cc \
2803 HttpHdrScTarget.cc \
2804 HttpHeaderFieldInfo.h \
2806 HttpHeaderTools.cc \
2837 tests/stub_StoreMeta.cc \
2838 StoreMetaUnpacker.cc \
2839 StoreSwapLogData.cc \
2845 SBufDetailedStats.h \
2846 tests/stub_SBufDetailedStats.cc \
2850 tests/CapturingStoreEntry.h \
2852 tests/stub_access_log.cc \
2855 tests/stub_cache_cf.cc \
2856 tests/stub_cache_manager.cc \
2857 tests/stub_client_side_request.cc \
2858 tests/stub_comm.cc \
2859 tests/stub_debug.cc \
2860 tests/stub_errorpage.cc \
2864 tests/stub_helper.cc \
2865 tests/stub_HelperChildConfig.cc \
2866 tests/stub_http.cc \
2867 tests/stub_libauth.cc \
2868 tests/stub_libeui.cc \
2869 tests/stub_libdiskio.cc \
2870 tests/stub_libformat.cc \
2871 tests/stub_libsecurity.cc \
2872 tests/stub_libsslsquid.cc \
2875 tests/stub_HttpReply.cc \
2876 tests/stub_HttpRequest.cc \
2877 tests/stub_libcomm.cc \
2878 tests/stub_MemStore.cc \
2880 tests/stub_mime.cc \
2881 tests/stub_Port.cc \
2882 tests/stub_stat.cc \
2883 tests/stub_store_client.cc \
2884 tests/stub_store_stats.cc \
2886 tests/stub_store_rebuild.cc \
2887 tests/stub_store_swapout.cc \
2890 tests/stub_tools.cc \
2891 tests/stub_UdsOp.cc \
2892 tests/testPackableStream.cc \
2893 tests/testPackableStream.h \
2894 tests/testStore.cc \
2896 tests/testStoreController.cc \
2897 tests/testStoreController.h \
2898 tests/testStoreHashIndex.cc \
2899 tests/testStoreHashIndex.h \
2900 tests/testStoreSupport.cc \
2901 tests/testStoreSupport.h \
2902 tests/TestSwapDir.cc \
2903 tests/TestSwapDir.h \
2904 tests/stub_time.cc \
2909 nodist_tests_testStore_SOURCES= \
2915 tests_testStore_LDADD= \
2917 http/libsquid-http.la \
2918 parser/libsquid-parser.la \
2932 DiskIO/libdiskio.la \
2933 $(top_builddir)/lib/libmisccontainers.la \
2934 $(top_builddir)/lib/libmiscencoding.la \
2935 $(top_builddir)/lib/libmiscutil.la \
2938 $(SQUID_CPPUNIT_LIBS) \
2943 tests_testStore_LDFLAGS = $(LIBADD_DL)
2944 tests_testStore_DEPENDENCIES = \
2947 ## string needs mem.cc.
2948 ## mem.cc needs ClientInfo.h
2949 ## libsquid pulls in SquidConfig and children. stub them.
2950 tests_testString_SOURCES = \
2955 SBufDetailedStats.h \
2956 tests/stub_SBufDetailedStats.cc \
2957 tests/testString.cc \
2958 tests/testString.h \
2960 tests/stub_cache_cf.cc \
2961 tests/stub_cache_manager.cc \
2962 tests/stub_cbdata.cc \
2963 tests/stub_debug.cc \
2964 tests/stub_HelperChildConfig.cc \
2965 tests/stub_libmem.cc \
2967 tests/stub_tools.cc \
2968 tests/stub_time.cc \
2971 nodist_tests_testString_SOURCES = \
2973 tests_testString_LDADD = \
2977 $(top_builddir)/lib/libmiscutil.la \
2979 $(SQUID_CPPUNIT_LIBS) \
2983 tests_testString_LDFLAGS = $(LIBADD_DL)
2984 tests_testString_DEPENDENCIES = \
2997 DiskIO/libdiskio.la \
3003 tests_testUfs_SOURCES = \
3006 tests/stub_cache_manager.cc \
3007 tests/stub_client_db.cc \
3008 tests/stub_CollapsedForwarding.cc \
3009 tests/stub_HelperChildConfig.cc \
3012 tests/stub_ipcache.cc \
3013 tests/stub_libeui.cc \
3014 tests/stub_libicmp.cc \
3015 tests/stub_MemStore.cc \
3016 tests/stub_neighbors.cc \
3017 tests/stub_pconn.cc \
3018 tests/stub_Port.cc \
3019 tests/stub_UdsOp.cc \
3021 tests/stub_internal.cc \
3022 tests/stub_libformat.cc \
3023 tests/stub_libsecurity.cc \
3024 tests/stub_stat.cc \
3026 tests/stub_store_rebuild.cc \
3027 tests/stub_store_stats.cc \
3029 tests/stub_fatal.cc \
3054 StoreSwapLogData.cc \
3056 StoreMetaUnpacker.cc \
3057 $(STOREMETA_SOURCE) \
3058 StoreFileSystem.cc \
3065 $(DELAY_POOL_SOURCE) \
3067 tests/stub_CacheDigest.cc \
3080 tests/stub_cache_cf.cc \
3081 tests/stub_helper.cc \
3086 SBufDetailedStats.h \
3087 tests/stub_SBufDetailedStats.cc \
3089 tests/stub_debug.cc \
3090 tests/stub_client_side_request.cc \
3091 tests/stub_http.cc \
3092 tests/stub_libauth.cc \
3096 tests/stub_mime.cc \
3097 HttpHeaderFieldInfo.h \
3099 HttpHeaderTools.cc \
3104 HttpHdrContRange.cc \
3105 HttpHeaderFieldStat.h \
3110 HttpHdrScTarget.cc \
3120 tests/stub_errorpage.cc \
3121 tests/stub_HttpRequest.cc \
3123 tests/stub_access_log.cc \
3126 tests/stub_store_client.cc \
3128 tests/stub_tools.cc \
3129 tests/testStoreSupport.cc \
3130 tests/testStoreSupport.h \
3135 nodist_tests_testUfs_SOURCES = \
3140 tests_testUfs_LDADD = \
3141 http/libsquid-http.la \
3142 parser/libsquid-parser.la \
3154 DiskIO/libdiskio.la \
3165 $(top_builddir)/lib/libmisccontainers.la \
3166 $(top_builddir)/lib/libmiscencoding.la \
3167 $(top_builddir)/lib/libmiscutil.la \
3170 $(SQUID_CPPUNIT_LIBS) \
3174 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3175 tests_testUfs_DEPENDENCIES = \
3178 check_PROGRAMS += testRefCount
3179 testRefCount_SOURCES= \
3182 tests/stub_cbdata.cc \
3183 tests/stub_debug.cc \
3184 tests/stub_libmem.cc \
3185 tests/stub_MemBuf.cc \
3186 tests/testRefCount.cc
3187 testRefCount_LDADD = \
3189 $(top_builddir)/lib/libmiscutil.la \
3193 tests_testRock_SOURCES = \
3196 CollapsedForwarding.h \
3197 CollapsedForwarding.cc \
3198 tests/stub_CacheDigest.cc \
3214 HttpHeaderFieldStat.h \
3218 HttpHdrContRange.cc \
3221 HttpHdrScTarget.cc \
3224 HttpHeaderFieldInfo.h \
3226 HttpHeaderTools.cc \
3247 tests/stub_StatHist.cc \
3250 tests/stub_stat.cc \
3252 StoreFileSystem.cc \
3254 StoreMetaUnpacker.cc \
3255 $(STOREMETA_SOURCE) \
3256 StoreSwapLogData.cc \
3265 SBufDetailedStats.h \
3266 tests/stub_SBufDetailedStats.cc \
3274 tests/testStoreSupport.cc \
3275 tests/testStoreSupport.h \
3277 tests/stub_access_log.cc \
3279 tests/stub_cache_cf.cc \
3281 tests/stub_cache_manager.cc \
3282 tests/stub_client_db.cc \
3283 tests/stub_client_side_request.cc \
3284 tests/stub_debug.cc \
3285 tests/stub_errorpage.cc \
3286 tests/stub_HelperChildConfig.cc \
3287 tests/stub_http.cc \
3288 tests/stub_HttpRequest.cc \
3289 tests/stub_libauth.cc \
3292 tests/stub_ipcache.cc \
3293 tests/stub_libeui.cc \
3294 tests/stub_libformat.cc \
3295 tests/stub_libicmp.cc \
3296 tests/stub_libmgr.cc \
3297 tests/stub_libsecurity.cc \
3298 tests/stub_MemStore.cc \
3300 tests/stub_mime.cc \
3301 tests/stub_neighbors.cc \
3302 tests/stub_Port.cc \
3303 tests/stub_pconn.cc \
3304 tests/stub_store_client.cc \
3306 tests/stub_store_rebuild.cc \
3307 tests/stub_store_stats.cc \
3309 tests/stub_tools.cc \
3314 $(DELAY_POOL_SOURCE) \
3316 nodist_tests_testRock_SOURCES = \
3321 tests_testRock_LDADD = \
3322 http/libsquid-http.la \
3323 parser/libsquid-parser.la \
3330 DiskIO/libdiskio.la \
3341 $(top_builddir)/lib/libmisccontainers.la \
3342 $(top_builddir)/lib/libmiscencoding.la \
3343 $(top_builddir)/lib/libmiscutil.la \
3346 $(SQUID_CPPUNIT_LIBS) \
3350 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3351 tests_testRock_DEPENDENCIES = \
3354 ## Tests of the URL module.
3355 ## TODO: Trim this down once the insanity is over.
3356 tests_testURL_SOURCES = \
3363 tests/stub_cache_manager.cc \
3365 tests/stub_CacheDigest.cc \
3369 tests/stub_carp.cc \
3375 client_side_reply.cc \
3376 client_side_request.cc \
3379 tests/stub_CollapsedForwarding.cc \
3386 $(DELAY_POOL_SOURCE) \
3396 ExternalACLEntry.cc \
3398 tests/stub_fatal.cc \
3416 tests/stub_HttpControlMsg.cc \
3417 HttpHeaderFieldStat.h \
3421 HttpHdrContRange.cc \
3424 HttpHdrScTarget.cc \
3427 HttpHeaderFieldInfo.h \
3429 HttpHeaderTools.cc \
3445 tests/stub_libeui.cc \
3467 peer_proxy_negotiate_auth.h \
3468 peer_proxy_negotiate_auth.cc \
3471 peer_sourcehash.cc \
3477 tests/stub_redirect.cc \
3484 SBufDetailedStats.h \
3485 tests/stub_SBufDetailedStats.cc \
3495 tests/stub_StatHist.cc \
3501 tests/stub_store_digest.cc \
3513 StoreFileSystem.cc \
3515 tests/stub_StoreMeta.cc \
3516 StoreMetaUnpacker.cc \
3517 StoreSwapLogData.cc \
3522 tests/stub_SwapDir.cc \
3524 tests/stub_debug.cc \
3525 tests/stub_libauth_acls.cc \
3526 tests/stub_libauth.cc \
3527 tests/stub_libdiskio.cc \
3528 tests/stub_libmem.cc \
3529 tests/stub_libsecurity.cc \
3530 tests/stub_main_cc.cc \
3531 tests/stub_ipc_Forwarder.cc \
3532 tests/stub_store_stats.cc \
3535 tests/testUriScheme.cc \
3536 tests/testUriScheme.h \
3537 tests/stub_time.cc \
3538 tests/stub_EventLoop.cc \
3541 tests/stub_tunnel.cc \
3546 tests/stub_wccp2.cc \
3548 tests/stub_whois.cc \
3553 nodist_tests_testURL_SOURCES = \
3555 tests_testURL_LDADD = \
3557 clients/libclients.la \
3558 servers/libservers.la \
3559 helper/libhelper.la \
3560 http/libsquid-http.la \
3562 parser/libsquid-parser.la \
3577 icmp/libicmp.la icmp/libicmp-core.la \
3580 format/libformat.la \
3584 $(ADAPTATION_LIBS) \
3586 $(top_builddir)/lib/libmisccontainers.la \
3587 $(top_builddir)/lib/libmiscencoding.la \
3588 $(top_builddir)/lib/libmiscutil.la \
3591 $(SQUID_CPPUNIT_LIBS) \
3592 $(SQUID_CPPUNIT_LA) \
3597 tests_testURL_LDFLAGS = $(LIBADD_DL)
3598 tests_testURL_DEPENDENCIES = \
3602 tests_testSBuf_SOURCES= \
3605 tests/SBufFindTest.h \
3606 tests/SBufFindTest.cc \
3608 SBufDetailedStats.h \
3609 tests/stub_SBufDetailedStats.cc \
3613 tests/stub_time.cc \
3614 tests/stub_debug.cc \
3615 tests/stub_fatal.cc \
3616 tests/stub_HelperChildConfig.cc \
3617 tests/stub_libmem.cc \
3618 tests/stub_cache_cf.cc \
3619 tests/stub_cache_manager.cc \
3620 tests/stub_cbdata.cc \
3621 tests/stub_store.cc \
3622 tests/stub_store_stats.cc \
3623 tests/stub_tools.cc \
3626 tests/stub_wordlist.cc \
3627 tests/stub_MemBuf.cc
3628 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3629 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3630 tests_testSBuf_LDADD=\
3635 $(top_builddir)/lib/libmiscutil.la \
3637 $(SQUID_CPPUNIT_LIBS) \
3640 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3642 tests_testSBufList_SOURCES= \
3643 tests/testSBufList.h \
3644 tests/testSBufList.cc \
3650 SBufDetailedStats.h \
3651 tests/stub_SBufDetailedStats.cc \
3653 tests/stub_time.cc \
3654 tests/stub_MemObject.cc \
3655 tests/stub_cbdata.cc \
3656 tests/stub_comm.cc \
3657 tests/stub_debug.cc \
3658 tests/stub_event.cc \
3659 tests/stub_fatal.cc \
3661 tests/stub_HelperChildConfig.cc \
3662 tests/stub_libmem.cc \
3663 tests/stub_cache_cf.cc \
3664 tests/stub_cache_manager.cc \
3665 tests/stub_store.cc \
3666 tests/stub_stmem.cc \
3667 tests/stub_store_stats.cc \
3668 tests/stub_tools.cc \
3672 tests/stub_wordlist.cc \
3673 tests/stub_MemBuf.cc
3674 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3675 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3676 tests_testSBufList_LDADD=\
3681 $(top_builddir)/lib/libmiscutil.la \
3682 $(SQUID_CPPUNIT_LIBS) \
3685 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3687 tests_testConfigParser_SOURCES = \
3689 tests/stub_MemBuf.cc \
3690 tests/stub_time.cc \
3692 SBufDetailedStats.h \
3693 tests/stub_SBufDetailedStats.cc \
3697 tests/stub_fatal.cc \
3698 tests/testConfigParser.cc \
3699 tests/testConfigParser.h \
3701 tests/stub_cache_cf.cc \
3702 tests/stub_cache_manager.cc \
3703 tests/stub_cbdata.cc \
3704 tests/stub_debug.cc \
3705 tests/stub_libmem.cc \
3706 tests/stub_HelperChildConfig.cc \
3708 tests/stub_tools.cc \
3711 nodist_tests_testConfigParser_SOURCES = \
3713 tests_testConfigParser_LDADD = \
3717 $(top_builddir)/lib/libmiscutil.la \
3719 $(SQUID_CPPUNIT_LIBS) \
3723 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3724 tests_testConfigParser_DEPENDENCIES = \
3727 tests_testStatHist_SOURCES = \
3728 tests/stub_cbdata.cc \
3730 tests/stub_fatal.cc \
3731 tests/stub_MemBuf.cc \
3733 SBufDetailedStats.h \
3734 tests/stub_SBufDetailedStats.cc \
3738 tests/stub_cache_manager.cc \
3739 tests/stub_comm.cc \
3740 tests/stub_debug.cc \
3741 tests/stub_DelayId.cc \
3742 tests/stub_HelperChildConfig.cc \
3743 tests/stub_libmem.cc \
3744 tests/stub_MemObject.cc \
3746 tests/stub_mime.cc \
3747 tests/stub_pconn.cc \
3748 tests/stub_stmem.cc \
3750 tests/stub_store.cc \
3751 tests/stub_store_stats.cc \
3754 tests/stub_tools.cc \
3755 tests/testStatHist.cc \
3756 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_testLookupTable_SOURCES = \
3770 tests/testLookupTable.h \
3771 tests/testLookupTable.cc \
3772 tests/stub_debug.cc \
3773 tests/stub_libmem.cc \
3774 tests/stub_SBufDetailedStats.cc \
3775 base/LookupTable.h \
3780 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3781 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3782 tests_testLookupTable_LDADD = \
3784 $(SQUID_CPPUNIT_LIBS) \
3787 tests_testLookupTable_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3789 tests_testEnumIterator_SOURCES = \
3790 base/EnumIterator.h \
3791 tests/stub_debug.cc \
3792 tests/stub_libmem.cc \
3793 tests/testEnumIterator.h \
3794 tests/testEnumIterator.cc
3795 nodist_tests_testEnumIterator_SOURCES = \
3797 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3798 tests_testEnumIterator_LDADD = \
3800 $(SQUID_CPPUNIT_LIBS) \
3802 $(SQUID_CPPUNIT_LA) \
3804 tests_testEnumIterator_DEPENDENCIES =
3806 tests_testYesNoNone_SOURCES = \
3807 tests/testYesNoNone.cc \
3808 tests/testYesNoNone.h
3809 nodist_tests_testYesNoNone_SOURCES = \
3812 tests_testYesNoNone_LDADD= \
3813 $(SQUID_CPPUNIT_LIBS) \
3816 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3818 TESTS += testHeaders
3820 ## Special Universal .h dependency test script
3821 ## aborts if error encountered
3822 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3823 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3824 ## src/repl/ has no .h files and its own makefile.
3826 CLEANFILES += testHeaders