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
28 LOADABLE_MODULES_SOURCES = \
34 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
35 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
39 AUTH_LIBS= auth/libauth.la
40 AUTH_ACL_LIBS= auth/libacls.la
41 check_PROGRAMS+= tests/testACLMaxUserIP
45 SUBDIRS += http ip icmp ident log ipc mgr
46 DIST_SUBDIRS += http ip icmp ident log ipc mgr
55 DIST_SUBDIRS += ssl security
65 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
67 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
76 DIST_SUBDIRS += adaptation
82 $(top_builddir)/lib/libTrie/libTrie.a \
90 DELAY_POOL_ALL_SOURCE = \
114 ClientDelayConfig.cc \
117 if ENABLE_DELAY_POOLS
118 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
123 if ENABLE_XPROF_STATS
124 XPROF_STATS_SOURCE = ProfStats.cc
130 HTCPSOURCE = htcp.cc htcp.h
134 LEAKFINDERSOURCE = LeakFinder.cc
140 UNLINKDSOURCE = unlinkd.h unlinkd.cc
143 UNLINKDSOURCE = unlinkd.h
152 if ENABLE_WIN32SPECIFIC
153 WIN32_SOURCE = win32.cc
154 WINSVC_SOURCE = WinSvc.cc
161 IPC_SOURCE = SquidIpc.h ipc_win32.cc
163 IPC_SOURCE = SquidIpc.h ipc.cc
166 noinst_LTLIBRARIES = libsquid.la
175 ## cfgen is used when building squid
176 ## ufsdump is a debug utility, it is possibly useful for end users with cache
177 ## corruption, but at this point we do not install it.
190 cf_gen_SOURCES = cf_gen.cc
191 nodist_cf_gen_HEADER = cf_gen_defines.cci
192 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
194 cf_gen.$(OBJEXT): cf_gen_defines.cci
196 ## cf_gen.cc needs src/cf_gen_defines.cci
197 AM_CPPFLAGS += -I$(top_builddir)/src
200 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
202 # common library for all the binaries and tests. This is kindof a catch all
203 # and smaller libraries split from this are encouraged. Using lt convenience
204 # libraries, dependencies should not be a problem either.
205 libsquid_la_SOURCES = \
216 $(ACL_REGISTRATION_SOURCES) \
228 NeighborTypeDomainList.h \
241 client_side_reply.cc \
242 client_side_reply.h \
243 client_side_request.cc \
244 client_side_request.h \
249 ClientRequestContext.h \
252 clientStreamForward.h \
253 CollapsedForwarding.cc \
254 CollapsedForwarding.h \
255 CompletionDispatcher.cc \
256 CompletionDispatcher.h \
270 $(DELAY_POOL_SOURCE) \
289 ExternalACLEntry.cc \
312 HierarchyLogEntry.h \
317 HttpHeaderFieldStat.h \
326 HttpHdrContRange.cc \
333 HttpHeaderFieldInfo.h \
359 $(LEAKFINDERSOURCE) \
386 $(XPROF_STATS_SOURCE) \
391 peer_proxy_negotiate_auth.h \
392 peer_proxy_negotiate_auth.cc \
415 sbuf/SBufStringConvert.h \
455 StoreMetaUnpacker.cc \
456 StoreMetaUnpacker.h \
457 $(STOREMETA_SOURCE) \
461 StoreSwapLogData.cc \
490 EXTRA_squid_SOURCES = \
493 $(DELAY_POOL_ALL_SOURCE) \
503 $(WIN32_ALL_SOURCE) \
504 $(LOADABLE_MODULES_SOURCES)
507 client_side_request.cci \
525 CLEANFILES += $(BUILT_SOURCES)
527 nodist_squid_SOURCES = \
537 clients/libclients.la \
538 servers/libservers.la \
540 helper/libhelper.la \
542 parser/libparser.la \
548 DiskIO/libdiskio.la \
554 security/libsecurity.la \
558 format/libformat.la \
570 $(top_builddir)/lib/libmisccontainers.la \
571 $(top_builddir)/lib/libmiscencoding.la \
572 $(top_builddir)/lib/libmiscutil.la \
581 if ENABLE_LOADABLE_MODULES
582 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
583 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
584 squid_LDFLAGS = -export-dynamic -dlopen force
585 ## when static module linking is supported and enabled:
586 ## squid_LDFLAGS = -all-static -dlopen self
588 ## LTDL headers require their local include path...
589 AM_CPPFLAGS += $(INCLTDL)
592 ## Kerberos libraries require their include path...
593 AM_CPPFLAGS += $(KRB5INCS)
596 unlinkd_SOURCES = unlinkd_daemon.cc
601 recv_announce_SOURCES = recv-announce.cc
603 ## What requires what..
604 ## many things want ACLChecklist.cc
605 ## ACLChecklist.cc wants AuthUserRequest.cc
606 ## ACLChecklist.cc wants AuthScheme.cc
607 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
608 ## ACLProxyAuth.cc wants ACLUserData
609 ## ACLProxyAuth.cc wants ACLRegexData
610 ## cache_cf.cc wants $(AUTH_LIBS)
611 ## cache_cf.cc wants store/libstore.la
612 ## cache_cf.cc wants AnyP::PortCfg
613 ## client_side wants client_db
614 ## client_db wants SNMP_SOURCE
615 ## snmp_core wants ACLStringData
616 ## tools.cc wants ip/libip.la
617 ## client_side.cc wants ip/libip.la
618 ## libbase.la wants cbdata.*
619 ## libbase.la wants MemBuf.*
633 tests/stub_StoreMeta.cc \
634 StoreMetaUnpacker.cc \
641 helper/ChildConfig.h \
642 tests/stub_HelperChildConfig.cc \
669 ufsdump_DEPENDENCIES = \
681 DiskIO/libdiskio.la \
684 nodist_ufsdump_SOURCES = \
689 squid.conf.documented \
714 include $(srcdir)/tests/Stub.list
722 mk-string-arrays.awk \
728 DEFAULT_HTTP_PORT = 3128
729 DEFAULT_ICP_PORT = 3130
730 DEFAULT_PREFIX = $(prefix)
731 DEFAULT_CONFIG_DIR = $(sysconfdir)
732 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
733 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
734 DEFAULT_SSL_CRTD = $(libexecdir)/`echo security_file_certgen | sed '$(transform);s/$$/$(EXEEXT)/'`
735 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
736 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
737 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
738 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
739 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
740 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
741 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
742 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
743 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
744 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
745 DEFAULT_ICON_DIR = $(datadir)/icons
746 DEFAULT_ERROR_DIR = $(datadir)/errors
748 # Make location configure settings available to the code
749 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
751 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
753 globals.cc: globals.h mk-globals-c.awk
754 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
756 ## Generate files containing string arrays for various enums....
757 hier_code.cc: hier_code.h mk-string-arrays.awk
758 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
760 err_type.cc: err_type.h mk-string-arrays.awk
761 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
763 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
764 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
766 lookup_t.cc: lookup_t.h mk-string-arrays.awk
767 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
769 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
770 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
772 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
773 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
776 ## other generated files...
778 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
779 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
781 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
782 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
784 ## If autodependency works well this is not needed anymore
785 cache_cf.o: cf_parser.cci
787 # cf_gen builds the configuration files.
788 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
789 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
791 # squid.conf.default is built by cf_gen when making cf_parser.cci
792 squid.conf.default squid.conf.documented: cf_parser.cci
795 cf_parser.cci: cf.data cf_gen$(EXEEXT)
796 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
798 # The cf_gen_defines.cci is auto-generated and does not exist when the
799 # dependencies computed. We need to add its include files (autoconf.h) here
800 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
801 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
804 ## FIXME: generate a sed command file from configure. Then this doesn't
805 ## depend on the Makefile.
806 cf.data: cf.data.pre Makefile
808 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
809 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
810 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
811 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
812 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
813 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
814 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
815 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
816 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
817 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
818 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
819 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
820 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
821 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
822 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
823 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
824 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
825 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
826 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
827 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
828 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
829 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
830 -f $(srcdir)/cf.data.sed \
831 < $(srcdir)/cf.data.pre >$@
833 repl_modules.cc: repl_modules.sh Makefile
834 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
836 include $(top_srcdir)/doc/manuals/Substitute.am
838 squid.8: $(srcdir)/squid.8.in Makefile
839 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
842 EXTRA_DIST += squid.8.in
843 CLEANFILES += squid.8
845 install-data-local: install-sysconfDATA install-dataDATA
846 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
847 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
849 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
850 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
852 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
853 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
855 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
856 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
858 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
859 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
860 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
861 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
862 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
863 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
864 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
866 uninstall-local: squid.conf.default
867 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
868 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
870 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
873 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
874 cp $(top_srcdir)/test-suite/test_tools.cc .
876 # stock tools for unit tests - library independent versions of dlink_list
878 # globals.cc is needed by test_tools.cc.
879 # Neither of these should be disted from here.
886 tests/testBoilerplate \
887 tests/testCacheManager \
888 tests/testCharacterSet \
891 tests/testEnumIterator \
893 tests/testEventLoop \
894 tests/test_http_range \
895 tests/testTokenizer \
896 tests/testHttp1Parser \
897 tests/testHttpReply \
898 tests/testHttpRequest \
900 tests/testIpAddress \
906 tests/testConfigParser \
908 tests/testLookupTable \
912 check_PROGRAMS += tests/testRock
915 check_PROGRAMS += tests/testUfs
918 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
919 TESTS += $(check_PROGRAMS)
921 ### Template for new Unit Test Program
922 ## - add tests/testX to check_PROGRAMS above.
923 ## - copy template below and substitue X for class name
924 ## - add other component .(h|cc) files needed to link and run tests
926 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
928 #tests_testX_SOURCES=\
933 #nodist_tests_testX_SOURCES=\
934 # tests/stubs_as_needed.cc\
936 #tests_testX_LDFLAGS = $(LIBADD_DL)
938 # $(SQUID_CPPUNIT_LIBS) \
939 # $(SQUID_CPPUNIT_LA) \
941 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
944 # - add other component .(h|cc) files needed to link and run tests
945 tests_testHttpReply_SOURCES=\
951 tests/stub_fatal.cc \
954 HttpHeaderFieldStat.h \
958 HttpHdrContRange.cc \
968 HttpHeaderFieldInfo.h \
987 tests/stub_SBufDetailedStats.cc \
992 tests/stub_access_log.cc \
994 tests/stub_cache_cf.cc \
995 tests/stub_cache_manager.cc \
997 tests/stub_debug.cc \
998 tests/stub_errorpage.cc \
999 tests/stub_event.cc \
1001 tests/stub_HelperChildConfig.cc \
1002 tests/stub_libformat.cc \
1003 tests/stub_libauth.cc \
1004 tests/stub_libcomm.cc \
1005 tests/stub_libmgr.cc \
1006 tests/stub_libsecurity.cc \
1007 tests/stub_libsslsquid.cc \
1011 tests/stub_StatHist.cc \
1013 tests/stub_store.cc \
1014 tests/stub_store_stats.cc \
1016 tests/stub_tools.cc \
1017 tests/stub_HttpRequest.cc \
1018 tests/testHttpReply.cc \
1019 tests/testHttpReply.h \
1020 tests/stub_time.cc \
1024 nodist_tests_testHttpReply_SOURCES=\
1026 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1027 tests_testHttpReply_LDADD=\
1030 parser/libparser.la \
1040 $(top_builddir)/lib/libmisccontainers.la \
1041 $(top_builddir)/lib/libmiscencoding.la \
1042 $(top_builddir)/lib/libmiscutil.la \
1043 $(SQUID_CPPUNIT_LIBS) \
1044 $(SQUID_CPPUNIT_LA) \
1049 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1051 tests_testACLMaxUserIP_SOURCES= \
1054 tests/stub_CollapsedForwarding.cc \
1057 tests/stub_ETag.cc \
1060 tests/stub_fatal.cc \
1066 HttpHeaderFieldInfo.h \
1068 HttpHeaderTools.cc \
1069 HttpHdrContRange.cc \
1071 HttpHeaderFieldStat.h \
1076 HttpHdrScTarget.cc \
1088 tests/stub_libsecurity.cc \
1095 tests/stub_StatHist.cc \
1097 tests/stub_SBufDetailedStats.cc \
1100 tests/stub_StoreMeta.cc \
1101 StoreMetaUnpacker.cc \
1102 StoreSwapLogData.cc \
1107 tests/stub_SwapDir.cc \
1110 tests/stub_access_log.cc \
1112 tests/stub_cache_cf.cc \
1113 tests/stub_client_side.cc \
1114 tests/stub_debug.cc \
1115 tests/stub_DelayId.cc \
1116 tests/stub_errorpage.cc \
1119 tests/stub_HttpRequest.cc \
1120 tests/stub_HttpReply.cc \
1121 tests/stub_ipc_TypedMsgHdr.cc \
1122 tests/stub_libauth.cc \
1123 tests/stub_libcomm.cc \
1124 tests/stub_libdiskio.cc \
1125 tests/stub_libformat.cc \
1126 tests/stub_libmem.cc \
1127 tests/stub_libsslsquid.cc \
1128 tests/stub_MemObject.cc \
1129 tests/stub_MemStore.cc \
1131 tests/stub_mime.cc \
1132 tests/stub_pconn.cc \
1133 tests/stub_Port.cc \
1135 tests/stub_store.cc \
1136 tests/stub_store_client.cc \
1138 tests/stub_store_rebuild.cc \
1139 tests/stub_store_stats.cc \
1140 tests/stub_store_swapout.cc \
1142 tests/stub_tools.cc \
1143 tests/stub_cache_manager.cc \
1144 tests/stub_UdsOp.cc \
1145 tests/testACLMaxUserIP.cc \
1146 tests/testACLMaxUserIP.h \
1147 tests/stub_time.cc \
1153 nodist_tests_testACLMaxUserIP_SOURCES= \
1155 tests_testACLMaxUserIP_LDADD= \
1157 helper/libhelper.la \
1159 parser/libparser.la \
1172 $(top_builddir)/lib/libmisccontainers.la \
1173 $(top_builddir)/lib/libmiscencoding.la \
1174 $(top_builddir)/lib/libmiscutil.la \
1177 $(SQUID_CPPUNIT_LIBS) \
1181 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1182 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1183 ## $(SQUID_CPPUNIT_LA)
1185 ## a demonstration test that does nothing but shows the salient points
1186 ## involved in writing tests.
1187 tests_testBoilerplate_SOURCES = \
1188 tests/testBoilerplate.cc \
1189 tests/testBoilerplate.h \
1190 tests/stub_debug.cc \
1191 tests/stub_libmem.cc \
1193 nodist_tests_testBoilerplate_SOURCES = \
1194 tests/stub_cbdata.cc \
1195 tests/stub_MemBuf.cc \
1197 tests_testBoilerplate_LDADD= \
1198 $(SQUID_CPPUNIT_LIBS) \
1203 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1204 tests_testBoilerplate_DEPENDENCIES = \
1207 ## Tests of base/libbase.la objects
1208 tests_testCharacterSet_SOURCES = \
1209 tests/testCharacterSet.cc \
1210 tests/testCharacterSet.h
1211 nodist_tests_testCharacterSet_SOURCES = \
1212 base/CharacterSet.h \
1214 tests/stub_cbdata.cc \
1215 tests/stub_debug.cc \
1216 tests/stub_libmem.cc \
1217 tests/stub_MemBuf.cc
1218 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1219 tests_testCharacterSet_LDADD= \
1222 $(SQUID_CPPUNIT_LA) \
1223 $(SQUID_CPPUNIT_LIBS) \
1226 ## Tests of the CacheManager module.
1227 tests_testCacheManager_SOURCES = \
1234 tests/testCacheManager.cc \
1235 tests/testCacheManager.h \
1236 tests/stub_main_cc.cc \
1237 tests/stub_HttpControlMsg.cc \
1238 tests/stub_ipc_Forwarder.cc \
1239 tests/stub_store_stats.cc \
1240 tests/stub_EventLoop.cc \
1251 tests/stub_CacheDigest.cc \
1253 tests/stub_carp.cc \
1259 client_side_reply.cc \
1260 client_side_request.cc \
1263 tests/stub_CollapsedForwarding.cc \
1270 $(DELAY_POOL_SOURCE) \
1277 tests/stub_ETag.cc \
1280 ExternalACLEntry.cc \
1282 tests/stub_fatal.cc \
1303 HttpHeaderFieldInfo.h \
1305 HttpHeaderTools.cc \
1306 HttpHeaderFieldStat.h \
1310 HttpHdrContRange.cc \
1313 HttpHdrScTarget.cc \
1325 tests/stub_libsecurity.cc \
1346 peer_proxy_negotiate_auth.h \
1347 peer_proxy_negotiate_auth.cc \
1350 peer_sourcehash.cc \
1358 tests/stub_redirect.cc \
1362 tests/stub_SBufDetailedStats.cc \
1374 tests/stub_libauth_acls.cc \
1375 tests/stub_libauth.cc \
1376 tests/stub_libdiskio.cc \
1377 tests/stub_StatHist.cc \
1383 tests/stub_store_digest.cc \
1395 StoreFileSystem.cc \
1397 tests/stub_StoreMeta.cc \
1398 StoreMetaUnpacker.cc \
1399 StoreSwapLogData.cc \
1403 tests/stub_tunnel.cc \
1404 tests/stub_SwapDir.cc \
1411 tests/stub_wccp2.cc \
1413 tests/stub_whois.cc \
1418 nodist_tests_testCacheManager_SOURCES = \
1420 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1421 tests_testCacheManager_LDADD = \
1423 clients/libclients.la \
1424 servers/libservers.la \
1426 helper/libhelper.la \
1428 parser/libparser.la \
1441 format/libformat.la \
1443 $(ADAPTATION_LIBS) \
1453 $(top_builddir)/lib/libmisccontainers.la \
1454 $(top_builddir)/lib/libmiscencoding.la \
1455 $(top_builddir)/lib/libmiscutil.la \
1458 $(SQUID_CPPUNIT_LIBS) \
1459 $(SQUID_CPPUNIT_LA) \
1464 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1465 tests_testCacheManager_DEPENDENCIES = \
1469 tests_testDiskIO_SOURCES = \
1471 tests/stub_CacheDigest.cc \
1475 tests/stub_CollapsedForwarding.cc \
1478 $(DELAY_POOL_SOURCE) \
1481 tests/stub_ETag.cc \
1485 tests/stub_fatal.cc \
1494 HttpHeaderFieldStat.h \
1498 HttpHdrContRange.cc \
1500 HttpHdrScTarget.cc \
1502 HttpHeaderFieldInfo.h \
1504 HttpHeaderTools.cc \
1526 tests/stub_libsecurity.cc \
1530 tests/stub_StatHist.cc \
1532 tests/stub_SBufDetailedStats.cc \
1533 StoreFileSystem.cc \
1535 tests/stub_StoreMeta.cc \
1536 StoreMetaUnpacker.cc \
1537 StoreSwapLogData.cc \
1548 tests/stub_SwapDir.cc \
1551 tests/stub_access_log.cc \
1554 tests/stub_cache_cf.cc \
1555 tests/stub_cache_manager.cc \
1556 tests/stub_client_db.cc \
1557 client_side_request.h \
1558 tests/stub_client_side_request.cc \
1559 tests/stub_debug.cc \
1560 tests/stub_errorpage.cc \
1561 tests/stub_helper.cc \
1562 tests/stub_HelperChildConfig.cc \
1563 tests/stub_HttpRequest.cc \
1564 tests/stub_http.cc \
1567 tests/stub_internal.cc \
1569 tests/stub_ipcache.cc \
1570 tests/stub_libauth_acls.cc \
1571 tests/stub_libauth.cc \
1572 tests/stub_libeui.cc \
1573 tests/stub_libformat.cc \
1574 tests/stub_libicmp.cc \
1575 tests/stub_MemStore.cc \
1577 tests/stub_mime.cc \
1578 tests/stub_neighbors.cc \
1579 tests/stub_pconn.cc \
1580 tests/stub_Port.cc \
1581 tests/stub_stat.cc \
1582 tests/stub_store_client.cc \
1583 tests/stub_store_stats.cc \
1585 tests/stub_store_rebuild.cc \
1586 tests/stub_UdsOp.cc \
1587 tests/testDiskIO.cc \
1588 tests/testDiskIO.h \
1589 tests/testStoreSupport.cc \
1590 tests/testStoreSupport.h \
1591 tests/stub_time.cc \
1599 nodist_tests_testDiskIO_SOURCES= \
1604 tests_testDiskIO_LDADD = \
1607 parser/libparser.la \
1618 DiskIO/libdiskio.la \
1629 $(top_builddir)/lib/libmisccontainers.la \
1630 $(top_builddir)/lib/libmiscencoding.la \
1631 $(top_builddir)/lib/libmiscutil.la \
1634 $(SQUID_CPPUNIT_LIBS) \
1639 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1640 tests_testDiskIO_DEPENDENCIES = \
1641 DiskIO/libdiskio.la \
1645 tests_testDns_SOURCES= \
1646 tests/testRFC1035.cc \
1648 nodist_tests_testDns_SOURCES= \
1649 tests/stub_debug.cc \
1650 tests/stub_libmem.cc \
1651 tests/stub_SBuf.cc \
1653 tests_testDns_LDADD= \
1656 $(top_builddir)/lib/libmiscutil.la \
1659 $(SQUID_CPPUNIT_LA) \
1660 $(SQUID_CPPUNIT_LIBS)
1661 tests_testDns_LDFLAGS= $(LIBADD_DL)
1663 tests_testEvent_SOURCES = \
1667 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 \
1727 tests/stub_HttpControlMsg.cc \
1730 HttpHeaderFieldInfo.h \
1732 HttpHeaderTools.cc \
1733 HttpHeaderFieldStat.h \
1737 HttpHdrContRange.cc \
1740 HttpHdrScTarget.cc \
1757 tests/stub_libsecurity.cc \
1762 tests/stub_libmem.cc \
1779 peer_proxy_negotiate_auth.h \
1780 peer_proxy_negotiate_auth.cc \
1783 peer_sourcehash.cc \
1789 tests/stub_redirect.cc \
1795 tests/stub_SBufDetailedStats.cc \
1811 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 \
1866 parser/libparser.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 \
1894 $(SQUID_CPPUNIT_LIBS) \
1895 $(SQUID_CPPUNIT_LA) \
1900 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1901 tests_testEvent_DEPENDENCIES = \
1905 ## Tests of the EventLoop module.
1906 tests_testEventLoop_SOURCES = \
1910 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 \
1970 tests/stub_HttpControlMsg.cc \
1973 HttpHeaderFieldInfo.h \
1975 HttpHeaderTools.cc \
1976 HttpHeaderFieldStat.h \
1980 HttpHdrContRange.cc \
1983 HttpHdrScTarget.cc \
2006 tests/stub_libmem.cc \
2021 peer_proxy_negotiate_auth.h \
2022 peer_proxy_negotiate_auth.cc \
2025 peer_sourcehash.cc \
2032 tests/stub_redirect.cc \
2035 tests/stub_SBufDetailedStats.cc \
2051 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 \
2108 parser/libparser.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 \
2136 $(SQUID_CPPUNIT_LIBS) \
2137 $(SQUID_CPPUNIT_LA) \
2142 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2143 tests_testEventLoop_DEPENDENCIES = \
2147 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 tests/stub_HttpControlMsg.cc \
2209 HttpHeaderFieldStat.h \
2213 HttpHdrContRange.cc \
2216 HttpHdrScTarget.cc \
2219 HttpHeaderFieldInfo.h \
2221 HttpHeaderTools.cc \
2244 tests/stub_libmem.cc \
2258 peer_proxy_negotiate_auth.h \
2259 peer_proxy_negotiate_auth.cc \
2262 peer_sourcehash.cc \
2269 tests/stub_redirect.cc \
2273 tests/stub_SBufDetailedStats.cc \
2289 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 \
2345 parser/libparser.la \
2350 parser/libparser.la \
2357 format/libformat.la \
2359 $(ADAPTATION_LIBS) \
2369 $(top_builddir)/lib/libmisccontainers.la \
2370 $(top_builddir)/lib/libmiscencoding.la \
2371 $(top_builddir)/lib/libmiscutil.la \
2374 $(SQUID_CPPUNIT_LIBS) \
2375 $(SQUID_CPPUNIT_LA) \
2380 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2381 tests_test_http_range_DEPENDENCIES = \
2384 ## Tests of parser/* objects
2385 tests_testTokenizer_SOURCES = \
2386 tests/testTokenizer.h \
2387 tests/testTokenizer.cc
2388 nodist_tests_testTokenizer_SOURCES = \
2389 parser/Tokenizer.h \
2393 tests/stub_debug.cc \
2394 tests/stub_libmem.cc \
2395 tests/stub_time.cc \
2396 tests/stub_SBufDetailedStats.cc
2397 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2398 tests_testTokenizer_LDADD = \
2399 parser/libparser.la \
2402 $(top_builddir)/lib/libmiscutil.la \
2404 $(SQUID_CPPUNIT_LA) \
2405 $(SQUID_CPPUNIT_LIBS) \
2408 tests_testHttp1Parser_SOURCES = \
2412 tests/stub_MemObject.cc \
2417 tests/stub_SBufDetailedStats.cc \
2418 tests/stub_cache_cf.cc \
2419 tests/stub_cache_manager.cc \
2420 tests/stub_comm.cc \
2421 tests/stub_cbdata.cc \
2422 tests/stub_debug.cc \
2423 tests/stub_event.cc \
2424 tests/stub_HelperChildConfig.cc \
2425 tests/stub_libmem.cc \
2426 tests/stub_libsecurity.cc \
2427 tests/stub_stmem.cc \
2428 tests/stub_store.cc \
2429 tests/stub_store_stats.cc \
2431 tests/stub_tools.cc \
2432 tests/testHttp1Parser.cc \
2433 tests/testHttp1Parser.h \
2434 tests/stub_time.cc \
2437 nodist_tests_testHttp1Parser_SOURCES = \
2439 tests_testHttp1Parser_LDADD= \
2441 parser/libparser.la \
2447 $(top_builddir)/lib/libmiscutil.la \
2448 $(SQUID_CPPUNIT_LIBS) \
2452 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2453 tests_testHttp1Parser_DEPENDENCIES = \
2456 ## Tests of the HttpRequest module.
2457 tests_testHttpRequest_SOURCES = \
2462 tests/stub_libmem.cc \
2464 tests/testHttpRequest.h \
2465 tests/testHttpRequest.cc \
2466 tests/testHttpRequestMethod.h \
2467 tests/testHttpRequestMethod.cc \
2468 tests/stub_libauth.cc \
2469 tests/stub_main_cc.cc \
2470 tests/stub_ipc_Forwarder.cc \
2471 tests/stub_libdiskio.cc \
2472 tests/stub_libeui.cc \
2473 tests/stub_store_stats.cc \
2474 tests/stub_EventLoop.cc \
2484 tests/stub_CacheDigest.cc \
2488 tests/stub_carp.cc \
2494 client_side_reply.cc \
2495 client_side_request.cc \
2498 tests/stub_CollapsedForwarding.cc \
2505 $(DELAY_POOL_SOURCE) \
2512 tests/stub_ETag.cc \
2514 ExternalACLEntry.cc \
2516 tests/stub_fatal.cc \
2532 tests/stub_HttpControlMsg.cc \
2535 HttpHeaderFieldInfo.h \
2537 HttpHeaderTools.cc \
2538 HttpHeaderFieldStat.h \
2542 HttpHdrContRange.cc \
2545 HttpHdrScTarget.cc \
2557 tests/stub_libsecurity.cc \
2578 peer_proxy_negotiate_auth.h \
2579 peer_proxy_negotiate_auth.cc \
2582 peer_sourcehash.cc \
2590 tests/stub_libauth_acls.cc \
2591 tests/stub_redirect.cc \
2595 tests/stub_SBufDetailedStats.cc \
2611 tests/stub_store_digest.cc \
2623 StoreFileSystem.cc \
2625 tests/stub_StoreMeta.cc \
2626 StoreMetaUnpacker.cc \
2627 StoreSwapLogData.cc \
2634 tests/stub_tunnel.cc \
2635 tests/stub_SwapDir.cc \
2641 tests/stub_wccp2.cc \
2643 tests/stub_whois.cc \
2648 nodist_tests_testHttpRequest_SOURCES = \
2650 tests_testHttpRequest_LDADD = \
2652 clients/libclients.la \
2653 servers/libservers.la \
2654 helper/libhelper.la \
2661 parser/libparser.la \
2666 parser/libparser.la \
2675 format/libformat.la \
2679 $(ADAPTATION_LIBS) \
2681 $(top_builddir)/lib/libmisccontainers.la \
2682 $(top_builddir)/lib/libmiscencoding.la \
2683 $(top_builddir)/lib/libmiscutil.la \
2686 $(SQUID_CPPUNIT_LIBS) \
2687 $(SQUID_CPPUNIT_LA) \
2692 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2693 tests_testHttpRequest_DEPENDENCIES = \
2697 ## Tests for icmp/* objects
2698 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2699 tests_testIcmp_SOURCES = \
2702 nodist_tests_testIcmp_SOURCES = \
2705 tests/stub_debug.cc \
2706 tests/stub_libmem.cc \
2709 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2710 tests_testIcmp_LDADD=\
2711 icmp/libicmpcore.la \
2715 $(SQUID_CPPUNIT_LA) \
2716 $(SQUID_CPPUNIT_LIBS) \
2719 ## Tests for ip/* objects
2720 tests_testIpAddress_SOURCES= \
2721 tests/testAddress.cc \
2723 nodist_tests_testIpAddress_SOURCES= \
2725 tests/stub_debug.cc \
2726 tests/stub_libmem.cc \
2728 tests_testIpAddress_LDADD= \
2732 $(SQUID_CPPUNIT_LA) \
2733 $(SQUID_CPPUNIT_LIBS) \
2735 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2737 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2738 ## first line - what we are testing.
2739 tests_testStore_SOURCES= \
2741 tests/stub_CacheDigest.cc \
2744 tests/stub_CollapsedForwarding.cc \
2747 $(DELAY_POOL_SOURCE) \
2754 tests/stub_fatal.cc \
2757 HttpHeaderFieldStat.h \
2761 HttpHdrContRange.cc \
2764 HttpHdrScTarget.cc \
2765 HttpHeaderFieldInfo.h \
2767 HttpHeaderTools.cc \
2798 tests/stub_StoreMeta.cc \
2799 StoreMetaUnpacker.cc \
2800 StoreSwapLogData.cc \
2803 tests/stub_SBufDetailedStats.cc \
2807 tests/CapturingStoreEntry.h \
2809 tests/stub_access_log.cc \
2812 tests/stub_cache_cf.cc \
2813 tests/stub_cache_manager.cc \
2814 tests/stub_client_side_request.cc \
2815 tests/stub_comm.cc \
2816 tests/stub_debug.cc \
2817 tests/stub_errorpage.cc \
2821 tests/stub_helper.cc \
2822 tests/stub_HelperChildConfig.cc \
2823 tests/stub_http.cc \
2824 tests/stub_libauth.cc \
2825 tests/stub_libeui.cc \
2826 tests/stub_libdiskio.cc \
2827 tests/stub_libformat.cc \
2828 tests/stub_libsecurity.cc \
2829 tests/stub_libsslsquid.cc \
2832 tests/stub_HttpReply.cc \
2833 tests/stub_HttpRequest.cc \
2834 tests/stub_libcomm.cc \
2835 tests/stub_MemStore.cc \
2837 tests/stub_mime.cc \
2838 tests/stub_Port.cc \
2839 tests/stub_stat.cc \
2840 tests/stub_store_client.cc \
2841 tests/stub_store_stats.cc \
2843 tests/stub_store_rebuild.cc \
2844 tests/stub_store_swapout.cc \
2847 tests/stub_tools.cc \
2848 tests/stub_UdsOp.cc \
2849 tests/testPackableStream.cc \
2850 tests/testPackableStream.h \
2851 tests/testStore.cc \
2853 tests/testStoreController.cc \
2854 tests/testStoreController.h \
2855 tests/testStoreHashIndex.cc \
2856 tests/testStoreHashIndex.h \
2857 tests/testStoreSupport.cc \
2858 tests/testStoreSupport.h \
2859 tests/TestSwapDir.cc \
2860 tests/TestSwapDir.h \
2861 tests/stub_time.cc \
2866 nodist_tests_testStore_SOURCES= \
2872 tests_testStore_LDADD= \
2875 parser/libparser.la \
2890 DiskIO/libdiskio.la \
2891 $(top_builddir)/lib/libmisccontainers.la \
2892 $(top_builddir)/lib/libmiscencoding.la \
2893 $(top_builddir)/lib/libmiscutil.la \
2896 $(SQUID_CPPUNIT_LIBS) \
2901 tests_testStore_LDFLAGS = $(LIBADD_DL)
2902 tests_testStore_DEPENDENCIES = \
2905 ## string needs mem.cc.
2906 ## mem.cc needs ClientInfo.h
2907 ## libsquid pulls in SquidConfig and children. stub them.
2908 tests_testString_SOURCES = \
2912 tests/stub_SBufDetailedStats.cc \
2913 tests/testString.cc \
2914 tests/testString.h \
2916 tests/stub_cache_cf.cc \
2917 tests/stub_cache_manager.cc \
2918 tests/stub_cbdata.cc \
2919 tests/stub_debug.cc \
2920 tests/stub_HelperChildConfig.cc \
2921 tests/stub_libmem.cc \
2923 tests/stub_tools.cc \
2924 tests/stub_time.cc \
2927 nodist_tests_testString_SOURCES = \
2929 tests_testString_LDADD = \
2934 $(top_builddir)/lib/libmiscutil.la \
2936 $(SQUID_CPPUNIT_LIBS) \
2940 tests_testString_LDFLAGS = $(LIBADD_DL)
2941 tests_testString_DEPENDENCIES = \
2954 DiskIO/libdiskio.la \
2960 tests_testUfs_SOURCES = \
2963 tests/stub_cache_manager.cc \
2964 tests/stub_client_db.cc \
2965 tests/stub_CollapsedForwarding.cc \
2966 tests/stub_HelperChildConfig.cc \
2969 tests/stub_ipcache.cc \
2970 tests/stub_libeui.cc \
2971 tests/stub_libicmp.cc \
2972 tests/stub_MemStore.cc \
2973 tests/stub_neighbors.cc \
2974 tests/stub_pconn.cc \
2975 tests/stub_Port.cc \
2976 tests/stub_UdsOp.cc \
2978 tests/stub_internal.cc \
2979 tests/stub_libformat.cc \
2980 tests/stub_libsecurity.cc \
2981 tests/stub_stat.cc \
2983 tests/stub_store_rebuild.cc \
2984 tests/stub_store_stats.cc \
2986 tests/stub_fatal.cc \
3011 StoreSwapLogData.cc \
3013 StoreMetaUnpacker.cc \
3014 $(STOREMETA_SOURCE) \
3015 StoreFileSystem.cc \
3022 $(DELAY_POOL_SOURCE) \
3024 tests/stub_CacheDigest.cc \
3037 tests/stub_cache_cf.cc \
3038 tests/stub_helper.cc \
3040 tests/stub_SBufDetailedStats.cc \
3042 tests/stub_debug.cc \
3043 tests/stub_client_side_request.cc \
3044 tests/stub_http.cc \
3045 tests/stub_libauth.cc \
3049 tests/stub_mime.cc \
3050 HttpHeaderFieldInfo.h \
3052 HttpHeaderTools.cc \
3057 HttpHdrContRange.cc \
3058 HttpHeaderFieldStat.h \
3063 HttpHdrScTarget.cc \
3073 tests/stub_errorpage.cc \
3074 tests/stub_HttpRequest.cc \
3076 tests/stub_access_log.cc \
3079 tests/stub_store_client.cc \
3081 tests/stub_tools.cc \
3082 tests/testStoreSupport.cc \
3083 tests/testStoreSupport.h \
3088 nodist_tests_testUfs_SOURCES = \
3093 tests_testUfs_LDADD = \
3095 parser/libparser.la \
3107 DiskIO/libdiskio.la \
3119 $(top_builddir)/lib/libmisccontainers.la \
3120 $(top_builddir)/lib/libmiscencoding.la \
3121 $(top_builddir)/lib/libmiscutil.la \
3124 $(SQUID_CPPUNIT_LIBS) \
3128 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3129 tests_testUfs_DEPENDENCIES = \
3132 check_PROGRAMS += testRefCount
3133 testRefCount_SOURCES= \
3136 tests/stub_cbdata.cc \
3137 tests/stub_debug.cc \
3138 tests/stub_libmem.cc \
3139 tests/stub_MemBuf.cc \
3140 tests/testRefCount.cc
3141 testRefCount_LDADD = \
3143 $(top_builddir)/lib/libmiscutil.la \
3147 tests_testRock_SOURCES = \
3150 CollapsedForwarding.h \
3151 CollapsedForwarding.cc \
3152 tests/stub_CacheDigest.cc \
3168 HttpHeaderFieldStat.h \
3172 HttpHdrContRange.cc \
3175 HttpHdrScTarget.cc \
3178 HttpHeaderFieldInfo.h \
3180 HttpHeaderTools.cc \
3201 tests/stub_StatHist.cc \
3204 tests/stub_stat.cc \
3206 StoreFileSystem.cc \
3208 StoreMetaUnpacker.cc \
3209 $(STOREMETA_SOURCE) \
3210 StoreSwapLogData.cc \
3216 tests/stub_SBufDetailedStats.cc \
3224 tests/testStoreSupport.cc \
3225 tests/testStoreSupport.h \
3227 tests/stub_access_log.cc \
3229 tests/stub_cache_cf.cc \
3231 tests/stub_cache_manager.cc \
3232 tests/stub_client_db.cc \
3233 tests/stub_client_side_request.cc \
3234 tests/stub_debug.cc \
3235 tests/stub_errorpage.cc \
3236 tests/stub_HelperChildConfig.cc \
3237 tests/stub_http.cc \
3238 tests/stub_HttpRequest.cc \
3239 tests/stub_libauth.cc \
3242 tests/stub_ipcache.cc \
3243 tests/stub_libeui.cc \
3244 tests/stub_libformat.cc \
3245 tests/stub_libicmp.cc \
3246 tests/stub_libmgr.cc \
3247 tests/stub_libsecurity.cc \
3248 tests/stub_MemStore.cc \
3250 tests/stub_mime.cc \
3251 tests/stub_neighbors.cc \
3252 tests/stub_Port.cc \
3253 tests/stub_pconn.cc \
3254 tests/stub_store_client.cc \
3256 tests/stub_store_rebuild.cc \
3257 tests/stub_store_stats.cc \
3259 tests/stub_tools.cc \
3264 $(DELAY_POOL_SOURCE) \
3266 nodist_tests_testRock_SOURCES = \
3271 tests_testRock_LDADD = \
3273 parser/libparser.la \
3280 DiskIO/libdiskio.la \
3292 $(top_builddir)/lib/libmisccontainers.la \
3293 $(top_builddir)/lib/libmiscencoding.la \
3294 $(top_builddir)/lib/libmiscutil.la \
3297 $(SQUID_CPPUNIT_LIBS) \
3301 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3302 tests_testRock_DEPENDENCIES = \
3305 ## Tests of the URL module.
3306 ## TODO: Trim this down once the insanity is over.
3307 tests_testURL_SOURCES = \
3314 tests/stub_cache_manager.cc \
3316 tests/stub_CacheDigest.cc \
3320 tests/stub_carp.cc \
3326 client_side_reply.cc \
3327 client_side_request.cc \
3330 tests/stub_CollapsedForwarding.cc \
3337 $(DELAY_POOL_SOURCE) \
3347 ExternalACLEntry.cc \
3349 tests/stub_fatal.cc \
3367 tests/stub_HttpControlMsg.cc \
3368 HttpHeaderFieldStat.h \
3372 HttpHdrContRange.cc \
3375 HttpHdrScTarget.cc \
3378 HttpHeaderFieldInfo.h \
3380 HttpHeaderTools.cc \
3396 tests/stub_libeui.cc \
3418 peer_proxy_negotiate_auth.h \
3419 peer_proxy_negotiate_auth.cc \
3422 peer_sourcehash.cc \
3428 tests/stub_redirect.cc \
3432 tests/stub_SBufDetailedStats.cc \
3442 tests/stub_StatHist.cc \
3448 tests/stub_store_digest.cc \
3460 StoreFileSystem.cc \
3462 tests/stub_StoreMeta.cc \
3463 StoreMetaUnpacker.cc \
3464 StoreSwapLogData.cc \
3469 tests/stub_SwapDir.cc \
3471 tests/stub_debug.cc \
3472 tests/stub_libauth_acls.cc \
3473 tests/stub_libauth.cc \
3474 tests/stub_libdiskio.cc \
3475 tests/stub_libmem.cc \
3476 tests/stub_libsecurity.cc \
3477 tests/stub_main_cc.cc \
3478 tests/stub_ipc_Forwarder.cc \
3479 tests/stub_store_stats.cc \
3482 tests/testUriScheme.cc \
3483 tests/testUriScheme.h \
3484 tests/stub_time.cc \
3485 tests/stub_EventLoop.cc \
3488 tests/stub_tunnel.cc \
3493 tests/stub_wccp2.cc \
3495 tests/stub_whois.cc \
3500 nodist_tests_testURL_SOURCES = \
3502 tests_testURL_LDADD = \
3504 clients/libclients.la \
3505 servers/libservers.la \
3506 helper/libhelper.la \
3509 parser/libparser.la \
3527 format/libformat.la \
3532 $(ADAPTATION_LIBS) \
3534 $(top_builddir)/lib/libmisccontainers.la \
3535 $(top_builddir)/lib/libmiscencoding.la \
3536 $(top_builddir)/lib/libmiscutil.la \
3539 $(SQUID_CPPUNIT_LIBS) \
3540 $(SQUID_CPPUNIT_LA) \
3545 tests_testURL_LDFLAGS = $(LIBADD_DL)
3546 tests_testURL_DEPENDENCIES = \
3550 tests_testSBuf_SOURCES= \
3553 tests/SBufFindTest.h \
3554 tests/SBufFindTest.cc \
3555 tests/stub_SBufDetailedStats.cc \
3556 tests/stub_time.cc \
3557 tests/stub_debug.cc \
3558 tests/stub_fatal.cc \
3559 tests/stub_HelperChildConfig.cc \
3560 tests/stub_libmem.cc \
3561 tests/stub_cache_cf.cc \
3562 tests/stub_cache_manager.cc \
3563 tests/stub_cbdata.cc \
3564 tests/stub_store.cc \
3565 tests/stub_store_stats.cc \
3568 tests/stub_wordlist.cc \
3569 tests/stub_MemBuf.cc
3570 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3571 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3572 tests_testSBuf_LDADD=\
3578 $(top_builddir)/lib/libmiscutil.la \
3580 $(SQUID_CPPUNIT_LIBS) \
3583 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3585 tests_testSBufList_SOURCES= \
3586 tests/testSBufList.h \
3587 tests/testSBufList.cc \
3588 tests/stub_SBufDetailedStats.cc \
3589 tests/stub_time.cc \
3590 tests/stub_debug.cc \
3591 tests/stub_fatal.cc \
3592 tests/stub_libmem.cc
3593 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3594 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3595 tests_testSBufList_LDADD=\
3598 $(SQUID_CPPUNIT_LIBS) \
3601 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3603 tests_testConfigParser_SOURCES = \
3605 tests/stub_MemBuf.cc \
3606 tests/stub_time.cc \
3607 tests/stub_SBufDetailedStats.cc \
3611 tests/stub_fatal.cc \
3612 tests/testConfigParser.cc \
3613 tests/testConfigParser.h \
3615 tests/stub_cache_cf.cc \
3616 tests/stub_cbdata.cc \
3617 tests/stub_debug.cc \
3618 tests/stub_libmem.cc \
3619 tests/stub_HelperChildConfig.cc \
3621 tests/stub_tools.cc \
3624 nodist_tests_testConfigParser_SOURCES = \
3626 tests_testConfigParser_LDADD = \
3631 $(top_builddir)/lib/libmiscutil.la \
3633 $(SQUID_CPPUNIT_LIBS) \
3637 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3638 tests_testConfigParser_DEPENDENCIES = \
3641 tests_testStatHist_SOURCES = \
3642 tests/stub_cbdata.cc \
3644 tests/stub_fatal.cc \
3645 tests/stub_MemBuf.cc \
3646 tests/stub_SBufDetailedStats.cc \
3650 tests/stub_cache_manager.cc \
3651 tests/stub_comm.cc \
3652 tests/stub_debug.cc \
3653 tests/stub_DelayId.cc \
3654 tests/stub_HelperChildConfig.cc \
3655 tests/stub_libmem.cc \
3656 tests/stub_MemObject.cc \
3658 tests/stub_mime.cc \
3659 tests/stub_pconn.cc \
3660 tests/stub_stmem.cc \
3662 tests/stub_store.cc \
3663 tests/stub_store_stats.cc \
3666 tests/stub_tools.cc \
3667 tests/testStatHist.cc \
3668 tests/testStatHist.h
3669 nodist_tests_testStatHist_SOURCES = \
3671 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3672 tests_testStatHist_LDADD = \
3675 $(top_builddir)/lib/libmiscutil.la \
3676 $(top_builddir)/lib/libmisccontainers.la \
3677 $(SQUID_CPPUNIT_LIBS) \
3678 $(SQUID_CPPUNIT_LA) \
3680 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3682 tests_testLookupTable_SOURCES = \
3683 tests/testLookupTable.h \
3684 tests/testLookupTable.cc \
3685 tests/stub_debug.cc \
3686 tests/stub_libmem.cc \
3687 tests/stub_SBufDetailedStats.cc \
3688 base/LookupTable.h \
3690 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3691 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3692 tests_testLookupTable_LDADD = \
3695 $(SQUID_CPPUNIT_LIBS) \
3698 tests_testLookupTable_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3700 tests_testEnumIterator_SOURCES = \
3701 base/EnumIterator.h \
3702 tests/stub_debug.cc \
3703 tests/stub_libmem.cc \
3704 tests/testEnumIterator.h \
3705 tests/testEnumIterator.cc
3706 nodist_tests_testEnumIterator_SOURCES = \
3708 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3709 tests_testEnumIterator_LDADD = \
3711 $(SQUID_CPPUNIT_LIBS) \
3713 $(SQUID_CPPUNIT_LA) \
3715 tests_testEnumIterator_DEPENDENCIES =
3717 tests_testYesNoNone_SOURCES = \
3718 tests/testYesNoNone.cc \
3719 tests/testYesNoNone.h
3720 nodist_tests_testYesNoNone_SOURCES = \
3722 tests/stub_debug.cc \
3723 tests/stub_libmem.cc \
3725 tests_testYesNoNone_LDADD= \
3727 $(SQUID_CPPUNIT_LIBS) \
3730 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3732 TESTS += testHeaders
3734 ## Special Universal .h dependency test script
3735 ## aborts if error encountered
3736 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3737 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3738 ## src/repl/ has no .h files and its own makefile.
3740 CLEANFILES += testHeaders