1 ## Copyright (C) 1996-2018 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 = \
116 MessageDelayPools.h \
117 MessageDelayPools.cc \
119 ClientDelayConfig.cc \
122 if ENABLE_DELAY_POOLS
123 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
128 if ENABLE_XPROF_STATS
129 XPROF_STATS_SOURCE = ProfStats.cc
135 HTCPSOURCE = htcp.cc htcp.h
139 LEAKFINDERSOURCE = LeakFinder.cc
145 UNLINKDSOURCE = unlinkd.h unlinkd.cc
148 UNLINKDSOURCE = unlinkd.h
157 if ENABLE_WIN32SPECIFIC
158 WIN32_SOURCE = win32.cc
159 WINSVC_SOURCE = WinSvc.cc
166 IPC_SOURCE = SquidIpc.h ipc_win32.cc
168 IPC_SOURCE = SquidIpc.h ipc.cc
171 noinst_LTLIBRARIES = libsquid.la
180 ## cfgen is used when building squid
181 ## ufsdump is a debug utility, it is possibly useful for end users with cache
182 ## corruption, but at this point we do not install it.
194 cf_gen_SOURCES = cf_gen.cc
195 nodist_cf_gen_HEADER = cf_gen_defines.cci
196 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
198 cf_gen.$(OBJEXT): cf_gen_defines.cci
200 ## cf_gen.cc needs src/cf_gen_defines.cci
201 AM_CPPFLAGS += -I$(top_builddir)/src
204 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
206 # common library for all the binaries and tests. This is kindof a catch all
207 # and smaller libraries split from this are encouraged. Using lt convenience
208 # libraries, dependencies should not be a problem either.
209 libsquid_la_SOURCES = \
220 $(ACL_REGISTRATION_SOURCES) \
232 NeighborTypeDomainList.h \
245 client_side_reply.cc \
246 client_side_reply.h \
247 client_side_request.cc \
248 client_side_request.h \
253 ClientRequestContext.h \
256 clientStreamForward.h \
257 CollapsedForwarding.cc \
258 CollapsedForwarding.h \
259 CollapsingHistory.h \
262 CompletionDispatcher.cc \
263 CompletionDispatcher.h \
277 $(DELAY_POOL_SOURCE) \
298 ExternalACLEntry.cc \
321 HierarchyLogEntry.h \
325 HttpHeaderFieldStat.h \
333 HttpHdrContRange.cc \
340 HttpHeaderFieldInfo.h \
366 $(LEAKFINDERSOURCE) \
391 $(XPROF_STATS_SOURCE) \
396 peer_proxy_negotiate_auth.h \
397 peer_proxy_negotiate_auth.cc \
420 sbuf/StringConvert.h \
460 StoreMetaUnpacker.cc \
461 StoreMetaUnpacker.h \
462 $(STOREMETA_SOURCE) \
466 StoreSwapLogData.cc \
491 XactionInitiator.cc \
495 EXTRA_squid_SOURCES = \
498 $(DELAY_POOL_ALL_SOURCE) \
508 $(WIN32_ALL_SOURCE) \
509 $(LOADABLE_MODULES_SOURCES)
528 CLEANFILES += $(BUILT_SOURCES)
530 nodist_squid_SOURCES = \
540 clients/libclients.la \
541 servers/libservers.la \
543 helper/libhelper.la \
550 DiskIO/libdiskio.la \
553 security/libsecurity.la \
557 parser/libparser.la \
561 format/libformat.la \
573 $(top_builddir)/lib/libmisccontainers.la \
574 $(top_builddir)/lib/libmiscencoding.la \
575 $(top_builddir)/lib/libmiscutil.la \
584 if ENABLE_LOADABLE_MODULES
585 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
586 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
587 squid_LDFLAGS = -export-dynamic -dlopen force
588 ## when static module linking is supported and enabled:
589 ## squid_LDFLAGS = -all-static -dlopen self
591 ## LTDL headers require their local include path...
592 AM_CPPFLAGS += $(INCLTDL)
595 ## Kerberos libraries require their include path...
596 AM_CPPFLAGS += $(KRB5INCS)
599 unlinkd_SOURCES = unlinkd_daemon.cc
604 recv_announce_SOURCES = recv-announce.cc
606 ## What requires what..
607 ## many things want ACLChecklist.cc
608 ## ACLChecklist.cc wants AuthUserRequest.cc
609 ## ACLChecklist.cc wants AuthScheme.cc
610 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
611 ## ACLProxyAuth.cc wants ACLUserData
612 ## ACLProxyAuth.cc wants ACLRegexData
613 ## cache_cf.cc wants $(AUTH_LIBS)
614 ## cache_cf.cc wants store/libstore.la
615 ## cache_cf.cc wants AnyP::PortCfg
616 ## client_side wants client_db
617 ## client_db wants SNMP_SOURCE
618 ## snmp_core wants ACLStringData
619 ## tools.cc wants ip/libip.la
620 ## client_side.cc wants ip/libip.la
621 ## libbase.la wants cbdata.*
622 ## libbase.la wants MemBuf.*
636 tests/stub_StoreMeta.cc \
637 StoreMetaUnpacker.cc \
644 helper/ChildConfig.h \
645 tests/stub_HelperChildConfig.cc \
672 ufsdump_DEPENDENCIES = \
684 DiskIO/libdiskio.la \
687 nodist_ufsdump_SOURCES = \
692 squid.conf.documented \
717 include $(srcdir)/tests/Stub.list
725 mk-string-arrays.awk \
731 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
733 globals.cc: globals.h mk-globals-c.awk
734 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
736 ## Generate files containing string arrays for various enums....
737 hier_code.cc: hier_code.h mk-string-arrays.awk
738 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
740 err_type.cc: err_type.h mk-string-arrays.awk
741 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
743 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
744 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
746 lookup_t.cc: lookup_t.h mk-string-arrays.awk
747 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
749 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
750 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
752 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
753 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
756 ## other generated files...
758 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
759 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
761 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
762 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
764 ## If autodependency works well this is not needed anymore
765 cache_cf.o: cf_parser.cci
767 # cf_gen builds the configuration files.
768 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
769 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
771 # squid.conf.default is built by cf_gen when making cf_parser.cci
772 squid.conf.default squid.conf.documented: cf_parser.cci
775 cf_parser.cci: cf.data cf_gen$(EXEEXT)
776 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
778 # The cf_gen_defines.cci is auto-generated and does not exist when the
779 # dependencies computed. We need to add its include files (autoconf.h) here
780 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
781 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
784 ## FIXME: generate a sed command file from configure. Then this doesn't
785 ## depend on the Makefile.
786 cf.data: cf.data.pre Makefile
788 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
789 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
790 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
791 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
792 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
793 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
794 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
795 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
796 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
797 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
798 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
799 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
800 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
801 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
802 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
803 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
804 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
805 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
806 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
807 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
808 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
809 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
810 -f $(srcdir)/cf.data.sed \
811 < $(srcdir)/cf.data.pre >$@
813 repl_modules.cc: repl_modules.sh Makefile
814 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
816 include $(top_srcdir)/doc/manuals/Substitute.am
818 squid.8: $(srcdir)/squid.8.in Makefile
819 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
822 EXTRA_DIST += squid.8.in
823 CLEANFILES += squid.8
825 install-data-local: install-sysconfDATA install-dataDATA
826 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
827 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
829 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
830 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
832 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
833 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
835 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
836 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
838 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
839 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
840 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
841 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
842 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
843 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
844 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
846 uninstall-local: squid.conf.default
847 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
848 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
850 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
853 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
854 cp $(top_srcdir)/test-suite/test_tools.cc .
856 # stock tools for unit tests - library independent versions of dlink_list
858 # globals.cc is needed by test_tools.cc.
859 # Neither of these should be disted from here.
866 tests/testBoilerplate \
867 tests/testCacheManager \
868 tests/testCharacterSet \
871 tests/testEnumIterator \
873 tests/testEventLoop \
874 tests/test_http_range \
875 tests/testTokenizer \
876 tests/testHttp1Parser \
877 tests/testHttpReply \
878 tests/testHttpRequest \
880 tests/testIpAddress \
888 tests/testConfigParser \
890 tests/testLookupTable \
894 check_PROGRAMS += tests/testRock
897 check_PROGRAMS += tests/testUfs
900 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
901 TESTS += $(check_PROGRAMS)
903 ### Template for new Unit Test Program
904 ## - add tests/testX to check_PROGRAMS above.
905 ## - copy template below and substitue X for class name
906 ## - add other component .(h|cc) files needed to link and run tests
908 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
910 #tests_testX_SOURCES=\
915 #nodist_tests_testX_SOURCES=\
916 # tests/stubs_as_needed.cc\
918 #tests_testX_LDFLAGS = $(LIBADD_DL)
920 # $(LIBCPPUNIT_LIBS) \
924 # - add other component .(h|cc) files needed to link and run tests
925 tests_testHttpReply_SOURCES=\
931 tests/stub_fatal.cc \
934 HttpHeaderFieldStat.h \
937 HttpHdrContRange.cc \
947 HttpHeaderFieldInfo.h \
964 tests/stub_SBufDetailedStats.cc \
969 tests/stub_access_log.cc \
971 tests/stub_cache_cf.cc \
972 tests/stub_cache_manager.cc \
974 tests/stub_debug.cc \
975 tests/stub_errorpage.cc \
976 tests/stub_event.cc \
978 tests/stub_HelperChildConfig.cc \
979 tests/stub_libformat.cc \
980 tests/stub_libauth.cc \
981 tests/stub_libcomm.cc \
982 tests/stub_libmgr.cc \
983 tests/stub_libsecurity.cc \
984 tests/stub_libsslsquid.cc \
988 tests/stub_StatHist.cc \
990 tests/stub_store.cc \
991 tests/stub_store_stats.cc \
993 tests/stub_tools.cc \
994 tests/stub_HttpRequest.cc \
995 tests/testHttpReply.cc \
996 tests/testHttpReply.h \
998 tests/stub_libanyp.cc \
1001 nodist_tests_testHttpReply_SOURCES=\
1004 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1005 tests_testHttpReply_LDADD=\
1008 parser/libparser.la \
1018 $(top_builddir)/lib/libmisccontainers.la \
1019 $(top_builddir)/lib/libmiscencoding.la \
1020 $(top_builddir)/lib/libmiscutil.la \
1023 $(LIBCPPUNIT_LIBS) \
1027 tests_testACLMaxUserIP_SOURCES= \
1030 tests/stub_CollapsedForwarding.cc \
1033 tests/stub_ETag.cc \
1036 tests/stub_fatal.cc \
1042 HttpHeaderFieldInfo.h \
1044 HttpHeaderTools.cc \
1045 HttpHdrContRange.cc \
1047 HttpHeaderFieldStat.h \
1051 HttpHdrScTarget.cc \
1060 tests/stub_libsecurity.cc \
1067 tests/stub_StatHist.cc \
1069 tests/stub_SBufDetailedStats.cc \
1072 tests/stub_StoreMeta.cc \
1073 StoreMetaUnpacker.cc \
1074 StoreSwapLogData.cc \
1079 tests/stub_SwapDir.cc \
1082 tests/stub_access_log.cc \
1084 tests/stub_cache_cf.cc \
1085 tests/stub_client_side.cc \
1086 tests/stub_debug.cc \
1087 tests/stub_DelayId.cc \
1088 tests/stub_errorpage.cc \
1091 tests/stub_HttpRequest.cc \
1092 tests/stub_HttpReply.cc \
1093 tests/stub_ipc_TypedMsgHdr.cc \
1094 tests/stub_libauth.cc \
1095 tests/stub_libcomm.cc \
1096 tests/stub_libdiskio.cc \
1097 tests/stub_libformat.cc \
1098 tests/stub_libmem.cc \
1099 tests/stub_libsslsquid.cc \
1100 tests/stub_MemObject.cc \
1101 tests/stub_MemStore.cc \
1103 tests/stub_mime.cc \
1104 tests/stub_pconn.cc \
1105 tests/stub_Port.cc \
1107 tests/stub_store.cc \
1108 tests/stub_store_client.cc \
1110 tests/stub_store_rebuild.cc \
1111 tests/stub_store_stats.cc \
1112 tests/stub_store_swapout.cc \
1114 tests/stub_tools.cc \
1115 tests/stub_cache_manager.cc \
1116 tests/stub_UdsOp.cc \
1117 tests/testACLMaxUserIP.cc \
1118 tests/testACLMaxUserIP.h \
1119 tests/stub_time.cc \
1120 tests/stub_libanyp.cc \
1124 nodist_tests_testACLMaxUserIP_SOURCES= \
1126 tests_testACLMaxUserIP_LDADD= \
1128 helper/libhelper.la \
1130 parser/libparser.la \
1143 $(top_builddir)/lib/libmisccontainers.la \
1144 $(top_builddir)/lib/libmiscencoding.la \
1145 $(top_builddir)/lib/libmiscutil.la \
1149 $(LIBCPPUNIT_LIBS) \
1152 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1154 ## a demonstration test that does nothing but shows the salient points
1155 ## involved in writing tests.
1156 tests_testBoilerplate_SOURCES = \
1157 tests/testBoilerplate.cc \
1158 tests/testBoilerplate.h \
1159 tests/stub_debug.cc \
1160 tests/stub_libmem.cc \
1161 tests/stub_SBuf.cc \
1163 nodist_tests_testBoilerplate_SOURCES = \
1164 tests/stub_cbdata.cc \
1165 tests/stub_MemBuf.cc \
1167 tests_testBoilerplate_LDADD= \
1170 $(LIBCPPUNIT_LIBS) \
1173 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1175 ## Tests of base/libbase.la objects
1176 tests_testCharacterSet_SOURCES = \
1177 tests/testCharacterSet.cc \
1178 tests/testCharacterSet.h
1179 nodist_tests_testCharacterSet_SOURCES = \
1180 base/CharacterSet.h \
1182 tests/stub_cbdata.cc \
1183 tests/stub_debug.cc \
1184 tests/stub_libmem.cc \
1185 tests/stub_MemBuf.cc \
1187 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1188 tests_testCharacterSet_LDADD= \
1190 $(LIBCPPUNIT_LIBS) \
1194 ## Tests of the CacheManager module.
1195 tests_testCacheManager_SOURCES = \
1202 tests/testCacheManager.cc \
1203 tests/testCacheManager.h \
1204 tests/stub_main_cc.cc \
1205 tests/stub_HttpControlMsg.cc \
1206 tests/stub_ipc_Forwarder.cc \
1207 tests/stub_store_stats.cc \
1208 tests/stub_EventLoop.cc \
1219 tests/stub_CacheDigest.cc \
1221 tests/stub_carp.cc \
1227 client_side_reply.cc \
1228 client_side_request.cc \
1231 tests/stub_CollapsedForwarding.cc \
1238 $(DELAY_POOL_SOURCE) \
1245 tests/stub_ETag.cc \
1248 ExternalACLEntry.cc \
1250 tests/stub_fatal.cc \
1270 HttpHeaderFieldInfo.h \
1272 HttpHeaderTools.cc \
1273 HttpHeaderFieldStat.h \
1276 HttpHdrContRange.cc \
1279 HttpHdrScTarget.cc \
1290 tests/stub_libsecurity.cc \
1309 peer_proxy_negotiate_auth.h \
1310 peer_proxy_negotiate_auth.cc \
1313 peer_sourcehash.cc \
1321 tests/stub_redirect.cc \
1325 tests/stub_SBufDetailedStats.cc \
1337 tests/stub_libauth_acls.cc \
1338 tests/stub_libauth.cc \
1339 tests/stub_libdiskio.cc \
1340 tests/stub_StatHist.cc \
1346 tests/stub_store_digest.cc \
1358 StoreFileSystem.cc \
1360 tests/stub_StoreMeta.cc \
1361 StoreMetaUnpacker.cc \
1362 StoreSwapLogData.cc \
1366 tests/stub_tunnel.cc \
1367 tests/stub_SwapDir.cc \
1370 tests/stub_libanyp.cc \
1374 tests/stub_wccp2.cc \
1376 tests/stub_whois.cc \
1381 nodist_tests_testCacheManager_SOURCES = \
1383 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1384 tests_testCacheManager_LDADD = \
1386 clients/libclients.la \
1387 servers/libservers.la \
1389 helper/libhelper.la \
1391 parser/libparser.la \
1404 format/libformat.la \
1406 $(ADAPTATION_LIBS) \
1416 $(top_builddir)/lib/libmisccontainers.la \
1417 $(top_builddir)/lib/libmiscencoding.la \
1418 $(top_builddir)/lib/libmiscutil.la \
1423 $(LIBCPPUNIT_LIBS) \
1426 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1428 tests_testDiskIO_SOURCES = \
1432 tests/stub_CacheDigest.cc \
1436 tests/stub_CollapsedForwarding.cc \
1439 $(DELAY_POOL_SOURCE) \
1443 tests/stub_ETag.cc \
1447 tests/stub_fatal.cc \
1456 HttpHeaderFieldStat.h \
1459 HttpHdrContRange.cc \
1461 HttpHdrScTarget.cc \
1463 HttpHeaderFieldInfo.h \
1465 HttpHeaderTools.cc \
1485 tests/stub_libsecurity.cc \
1489 tests/stub_StatHist.cc \
1491 tests/stub_SBufDetailedStats.cc \
1492 StoreFileSystem.cc \
1494 tests/stub_StoreMeta.cc \
1495 StoreMetaUnpacker.cc \
1496 StoreSwapLogData.cc \
1507 tests/stub_SwapDir.cc \
1510 tests/stub_access_log.cc \
1513 tests/stub_cache_cf.cc \
1514 tests/stub_cache_manager.cc \
1515 tests/stub_client_db.cc \
1516 client_side_request.h \
1517 tests/stub_client_side_request.cc \
1518 tests/stub_debug.cc \
1519 tests/stub_errorpage.cc \
1520 tests/stub_helper.cc \
1521 tests/stub_HelperChildConfig.cc \
1522 tests/stub_HttpRequest.cc \
1523 tests/stub_http.cc \
1526 tests/stub_internal.cc \
1528 tests/stub_ipcache.cc \
1529 tests/stub_libauth_acls.cc \
1530 tests/stub_libauth.cc \
1531 tests/stub_libeui.cc \
1532 tests/stub_libformat.cc \
1533 tests/stub_libicmp.cc \
1534 tests/stub_liblog.cc \
1535 tests/stub_MemStore.cc \
1537 tests/stub_mime.cc \
1538 tests/stub_neighbors.cc \
1539 tests/stub_pconn.cc \
1540 tests/stub_Port.cc \
1541 tests/stub_stat.cc \
1542 tests/stub_store_client.cc \
1543 tests/stub_store_stats.cc \
1545 tests/stub_store_rebuild.cc \
1546 tests/stub_UdsOp.cc \
1547 tests/testDiskIO.cc \
1548 tests/testDiskIO.h \
1549 tests/testStoreSupport.cc \
1550 tests/testStoreSupport.h \
1551 tests/stub_time.cc \
1553 tests/stub_libanyp.cc \
1559 nodist_tests_testDiskIO_SOURCES= \
1565 tests_testDiskIO_LDADD = \
1568 parser/libparser.la \
1579 $(ADAPTATION_LIBS) \
1580 DiskIO/libdiskio.la \
1591 $(top_builddir)/lib/libmisccontainers.la \
1592 $(top_builddir)/lib/libmiscencoding.la \
1593 $(top_builddir)/lib/libmiscutil.la \
1597 $(LIBCPPUNIT_LIBS) \
1600 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1601 tests_testDiskIO_DEPENDENCIES = \
1602 DiskIO/libdiskio.la \
1605 tests_testDns_SOURCES= \
1606 tests/testRFC1035.cc \
1608 nodist_tests_testDns_SOURCES= \
1609 tests/stub_debug.cc \
1610 tests/stub_libmem.cc \
1611 tests/stub_SBuf.cc \
1613 tests_testDns_LDADD= \
1616 $(top_builddir)/lib/libmiscutil.la \
1617 $(LIBCPPUNIT_LIBS) \
1620 tests_testDns_LDFLAGS= $(LIBADD_DL)
1622 tests_testEvent_SOURCES = \
1626 tests/stub_CacheDigest.cc \
1635 tests/stub_carp.cc \
1641 client_side_reply.cc \
1642 client_side_request.cc \
1645 tests/stub_CollapsedForwarding.cc \
1653 $(DELAY_POOL_SOURCE) \
1660 tests/stub_ETag.cc \
1665 ExternalACLEntry.cc \
1668 tests/stub_fatal.cc \
1686 tests/stub_HttpControlMsg.cc \
1689 HttpHeaderFieldInfo.h \
1691 HttpHeaderTools.cc \
1692 HttpHeaderFieldStat.h \
1695 HttpHdrContRange.cc \
1698 HttpHdrScTarget.cc \
1714 tests/stub_libsecurity.cc \
1717 tests/stub_libmem.cc \
1734 peer_proxy_negotiate_auth.h \
1735 peer_proxy_negotiate_auth.cc \
1738 peer_sourcehash.cc \
1744 tests/stub_redirect.cc \
1750 tests/stub_SBufDetailedStats.cc \
1766 tests/stub_store_digest.cc \
1778 StoreFileSystem.cc \
1780 tests/stub_StoreMeta.cc \
1781 StoreMetaUnpacker.cc \
1782 StoreSwapLogData.cc \
1784 tests/stub_SwapDir.cc \
1785 tests/CapturingStoreEntry.h \
1786 tests/testEvent.cc \
1788 tests/stub_main_cc.cc \
1789 tests/stub_ipc_Forwarder.cc \
1790 tests/stub_libauth_acls.cc \
1791 tests/stub_libauth.cc \
1792 tests/stub_libdiskio.cc \
1793 tests/stub_libeui.cc \
1794 tests/stub_store_stats.cc \
1799 tests/stub_tunnel.cc \
1802 tests/stub_libanyp.cc \
1806 tests/stub_wccp2.cc \
1808 tests/stub_whois.cc \
1812 nodist_tests_testEvent_SOURCES = \
1814 tests_testEvent_LDADD = \
1816 clients/libclients.la \
1817 servers/libservers.la \
1819 helper/libhelper.la \
1821 parser/libparser.la \
1834 format/libformat.la \
1836 $(ADAPTATION_LIBS) \
1839 $(top_builddir)/lib/libmisccontainers.la \
1840 $(top_builddir)/lib/libmiscencoding.la \
1841 $(top_builddir)/lib/libmiscutil.la \
1851 $(LIBCPPUNIT_LIBS) \
1854 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1856 ## Tests of the EventLoop module.
1857 tests_testEventLoop_SOURCES = \
1861 tests/stub_CacheDigest.cc \
1870 tests/stub_carp.cc \
1876 client_side_reply.cc \
1877 client_side_request.cc \
1880 tests/stub_CollapsedForwarding.cc \
1888 $(DELAY_POOL_SOURCE) \
1895 tests/stub_ETag.cc \
1900 ExternalACLEntry.cc \
1903 tests/stub_fatal.cc \
1921 tests/stub_HttpControlMsg.cc \
1924 HttpHeaderFieldInfo.h \
1926 HttpHeaderTools.cc \
1927 HttpHeaderFieldStat.h \
1930 HttpHdrContRange.cc \
1933 HttpHdrScTarget.cc \
1953 tests/stub_libmem.cc \
1968 peer_proxy_negotiate_auth.h \
1969 peer_proxy_negotiate_auth.cc \
1972 peer_sourcehash.cc \
1979 tests/stub_redirect.cc \
1982 tests/stub_SBufDetailedStats.cc \
1998 tests/stub_store_digest.cc \
2010 StoreFileSystem.cc \
2012 tests/stub_StoreMeta.cc \
2013 StoreMetaUnpacker.cc \
2014 StoreSwapLogData.cc \
2018 tests/stub_SwapDir.cc \
2019 tests/testEventLoop.cc \
2020 tests/testEventLoop.h \
2021 tests/stub_main_cc.cc \
2022 tests/stub_ipc_Forwarder.cc \
2023 tests/stub_libauth_acls.cc \
2024 tests/stub_libauth.cc \
2025 tests/stub_libdiskio.cc \
2026 tests/stub_libeui.cc \
2027 tests/stub_libsecurity.cc \
2028 tests/stub_store_stats.cc \
2033 tests/stub_tunnel.cc \
2036 tests/stub_libanyp.cc \
2040 tests/stub_wccp2.cc \
2042 tests/stub_whois.cc \
2046 nodist_tests_testEventLoop_SOURCES = \
2048 tests_testEventLoop_LDADD = \
2050 clients/libclients.la \
2051 servers/libservers.la \
2053 helper/libhelper.la \
2055 parser/libparser.la \
2068 format/libformat.la \
2070 $(ADAPTATION_LIBS) \
2073 $(top_builddir)/lib/libmisccontainers.la \
2074 $(top_builddir)/lib/libmiscencoding.la \
2075 $(top_builddir)/lib/libmiscutil.la \
2085 $(LIBCPPUNIT_LIBS) \
2088 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2090 tests_test_http_range_SOURCES = \
2101 tests/stub_CacheDigest.cc \
2103 tests/stub_carp.cc \
2109 client_side_reply.cc \
2110 client_side_request.cc \
2113 tests/stub_CollapsedForwarding.cc \
2121 $(DELAY_POOL_SOURCE) \
2128 tests/stub_ETag.cc \
2132 tests/stub_libauth.cc \
2133 tests/stub_fatal.cc \
2151 tests/stub_HttpControlMsg.cc \
2152 HttpHeaderFieldStat.h \
2155 HttpHdrContRange.cc \
2158 HttpHdrScTarget.cc \
2161 HttpHeaderFieldInfo.h \
2163 HttpHeaderTools.cc \
2183 tests/stub_libmem.cc \
2197 peer_proxy_negotiate_auth.h \
2198 peer_proxy_negotiate_auth.cc \
2201 peer_sourcehash.cc \
2208 tests/stub_redirect.cc \
2212 tests/stub_SBufDetailedStats.cc \
2228 tests/stub_store_digest.cc \
2240 StoreFileSystem.cc \
2242 tests/stub_StoreMeta.cc \
2243 StoreMetaUnpacker.cc \
2244 StoreSwapLogData.cc \
2248 tests/stub_SwapDir.cc \
2250 tests/test_http_range.cc \
2251 tests/stub_external_acl.cc \
2252 tests/stub_ipc_Forwarder.cc \
2253 tests/stub_libdiskio.cc \
2254 tests/stub_libeui.cc \
2255 tests/stub_libsecurity.cc \
2256 tests/stub_main_cc.cc \
2257 tests/stub_MemStore.cc \
2258 tests/stub_store_stats.cc \
2259 tests/stub_EventLoop.cc \
2263 tests/stub_tunnel.cc \
2265 tests/stub_libanyp.cc \
2269 tests/stub_wccp2.cc \
2271 tests/stub_whois.cc \
2275 nodist_tests_test_http_range_SOURCES = \
2277 tests_test_http_range_LDADD = \
2279 clients/libclients.la \
2280 servers/libservers.la \
2282 helper/libhelper.la \
2284 parser/libparser.la \
2289 parser/libparser.la \
2296 format/libformat.la \
2298 $(ADAPTATION_LIBS) \
2308 $(top_builddir)/lib/libmisccontainers.la \
2309 $(top_builddir)/lib/libmiscencoding.la \
2310 $(top_builddir)/lib/libmiscutil.la \
2315 $(LIBCPPUNIT_LIBS) \
2318 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2320 ## Tests of parser/* objects
2321 tests_testTokenizer_SOURCES = \
2322 tests/testTokenizer.h \
2323 tests/testTokenizer.cc
2324 nodist_tests_testTokenizer_SOURCES = \
2325 parser/Tokenizer.h \
2329 tests/stub_debug.cc \
2330 tests/stub_libmem.cc \
2331 tests/stub_time.cc \
2332 tests/stub_SBufDetailedStats.cc
2333 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2334 tests_testTokenizer_LDADD = \
2335 parser/libparser.la \
2338 $(top_builddir)/lib/libmiscutil.la \
2339 $(LIBCPPUNIT_LIBS) \
2343 tests_testHttp1Parser_SOURCES = \
2347 tests/stub_MemObject.cc \
2352 tests/stub_SBufDetailedStats.cc \
2353 tests/stub_cache_cf.cc \
2354 tests/stub_cache_manager.cc \
2355 tests/stub_comm.cc \
2356 tests/stub_cbdata.cc \
2357 tests/stub_debug.cc \
2358 tests/stub_event.cc \
2359 tests/stub_HelperChildConfig.cc \
2360 tests/stub_libmem.cc \
2361 tests/stub_libsecurity.cc \
2362 tests/stub_stmem.cc \
2363 tests/stub_store.cc \
2364 tests/stub_store_stats.cc \
2366 tests/stub_tools.cc \
2367 tests/testHttp1Parser.cc \
2368 tests/testHttp1Parser.h \
2369 tests/stub_time.cc \
2370 tests/stub_libanyp.cc \
2373 nodist_tests_testHttp1Parser_SOURCES = \
2375 tests_testHttp1Parser_LDADD= \
2377 parser/libparser.la \
2383 $(top_builddir)/lib/libmiscutil.la \
2385 $(LIBCPPUNIT_LIBS) \
2388 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2390 ## Tests of the HttpRequest module.
2391 tests_testHttpRequest_SOURCES = \
2396 tests/stub_libmem.cc \
2398 tests/testHttpRequest.h \
2399 tests/testHttpRequest.cc \
2400 tests/testHttpRequestMethod.h \
2401 tests/testHttpRequestMethod.cc \
2402 tests/stub_libauth.cc \
2403 tests/stub_main_cc.cc \
2404 tests/stub_ipc_Forwarder.cc \
2405 tests/stub_libdiskio.cc \
2406 tests/stub_libeui.cc \
2407 tests/stub_store_stats.cc \
2408 tests/stub_EventLoop.cc \
2418 tests/stub_CacheDigest.cc \
2422 tests/stub_carp.cc \
2428 client_side_reply.cc \
2429 client_side_request.cc \
2432 tests/stub_CollapsedForwarding.cc \
2439 $(DELAY_POOL_SOURCE) \
2446 tests/stub_ETag.cc \
2448 ExternalACLEntry.cc \
2450 tests/stub_fatal.cc \
2466 tests/stub_HttpControlMsg.cc \
2469 HttpHeaderFieldInfo.h \
2471 HttpHeaderTools.cc \
2472 HttpHeaderFieldStat.h \
2475 HttpHdrContRange.cc \
2478 HttpHdrScTarget.cc \
2489 tests/stub_libsecurity.cc \
2508 peer_proxy_negotiate_auth.h \
2509 peer_proxy_negotiate_auth.cc \
2512 peer_sourcehash.cc \
2520 tests/stub_libauth_acls.cc \
2521 tests/stub_redirect.cc \
2525 tests/stub_SBufDetailedStats.cc \
2541 tests/stub_store_digest.cc \
2553 StoreFileSystem.cc \
2555 tests/stub_StoreMeta.cc \
2556 StoreMetaUnpacker.cc \
2557 StoreSwapLogData.cc \
2564 tests/stub_tunnel.cc \
2565 tests/stub_SwapDir.cc \
2570 tests/stub_wccp2.cc \
2572 tests/stub_whois.cc \
2577 nodist_tests_testHttpRequest_SOURCES = \
2579 tests_testHttpRequest_LDADD = \
2581 clients/libclients.la \
2582 servers/libservers.la \
2583 helper/libhelper.la \
2590 parser/libparser.la \
2595 parser/libparser.la \
2604 format/libformat.la \
2608 $(ADAPTATION_LIBS) \
2610 $(top_builddir)/lib/libmisccontainers.la \
2611 $(top_builddir)/lib/libmiscencoding.la \
2612 $(top_builddir)/lib/libmiscutil.la \
2617 $(LIBCPPUNIT_LIBS) \
2620 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2622 ## Tests for icmp/* objects
2623 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2624 tests_testIcmp_SOURCES = \
2627 nodist_tests_testIcmp_SOURCES = \
2630 tests/stub_debug.cc \
2631 tests/stub_libmem.cc \
2632 tests/stub_SBuf.cc \
2635 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2636 tests_testIcmp_LDADD=\
2637 icmp/libicmpcore.la \
2640 $(LIBCPPUNIT_LIBS) \
2644 tests_testNetDb_SOURCES = \
2645 tests/testNetDb.cc \
2647 nodist_tests_testNetDb_SOURCES = \
2649 tests/stub_debug.cc \
2650 tests/stub_libmem.cc \
2651 tests/stub_SBuf.cc \
2654 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2655 tests_testNetDb_LDADD = \
2659 $(top_builddir)/lib/libmisccontainers.la \
2660 $(LIBCPPUNIT_LIBS) \
2664 ## Tests for ip/* objects
2665 tests_testIpAddress_SOURCES= \
2666 tests/testAddress.cc \
2668 nodist_tests_testIpAddress_SOURCES= \
2670 tests/stub_debug.cc \
2671 tests/stub_libmem.cc \
2673 tests_testIpAddress_LDADD= \
2676 $(LIBCPPUNIT_LIBS) \
2679 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2681 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2682 ## first line - what we are testing.
2683 tests_testStore_SOURCES= \
2685 tests/stub_CacheDigest.cc \
2688 tests/stub_CollapsedForwarding.cc \
2691 $(DELAY_POOL_SOURCE) \
2698 tests/stub_fatal.cc \
2701 HttpHeaderFieldStat.h \
2704 HttpHdrContRange.cc \
2707 HttpHdrScTarget.cc \
2708 HttpHeaderFieldInfo.h \
2710 HttpHeaderTools.cc \
2739 tests/stub_StoreMeta.cc \
2740 StoreMetaUnpacker.cc \
2741 StoreSwapLogData.cc \
2744 tests/stub_SBufDetailedStats.cc \
2748 tests/CapturingStoreEntry.h \
2750 tests/stub_access_log.cc \
2753 tests/stub_cache_cf.cc \
2754 tests/stub_cache_manager.cc \
2755 tests/stub_client_side_request.cc \
2756 tests/stub_comm.cc \
2757 tests/stub_debug.cc \
2758 tests/stub_errorpage.cc \
2762 tests/stub_helper.cc \
2763 tests/stub_HelperChildConfig.cc \
2764 tests/stub_http.cc \
2765 tests/stub_libauth.cc \
2766 tests/stub_libeui.cc \
2767 tests/stub_libdiskio.cc \
2768 tests/stub_libformat.cc \
2769 tests/stub_libsecurity.cc \
2770 tests/stub_libsslsquid.cc \
2773 tests/stub_HttpReply.cc \
2774 tests/stub_HttpRequest.cc \
2775 tests/stub_libcomm.cc \
2777 tests/stub_mime.cc \
2778 tests/stub_Port.cc \
2779 tests/stub_stat.cc \
2780 tests/stub_store_client.cc \
2781 tests/stub_store_stats.cc \
2783 tests/stub_store_rebuild.cc \
2784 tests/stub_store_swapout.cc \
2787 tests/stub_tools.cc \
2788 tests/stub_UdsOp.cc \
2789 tests/testPackableStream.cc \
2790 tests/testPackableStream.h \
2791 tests/testStore.cc \
2793 tests/testStoreController.cc \
2794 tests/testStoreController.h \
2795 tests/testStoreHashIndex.cc \
2796 tests/testStoreHashIndex.h \
2797 tests/testStoreSupport.cc \
2798 tests/testStoreSupport.h \
2799 tests/TestSwapDir.cc \
2800 tests/TestSwapDir.h \
2801 tests/stub_time.cc \
2802 tests/stub_libanyp.cc \
2806 nodist_tests_testStore_SOURCES= \
2812 tests_testStore_LDADD= \
2815 parser/libparser.la \
2830 DiskIO/libdiskio.la \
2831 $(top_builddir)/lib/libmisccontainers.la \
2832 $(top_builddir)/lib/libmiscencoding.la \
2833 $(top_builddir)/lib/libmiscutil.la \
2838 $(LIBCPPUNIT_LIBS) \
2841 tests_testStore_LDFLAGS = $(LIBADD_DL)
2843 ## string needs mem.cc.
2844 ## mem.cc needs ClientInfo.h
2845 ## libsquid pulls in SquidConfig and children. stub them.
2846 tests_testString_SOURCES = \
2850 tests/stub_SBufDetailedStats.cc \
2851 tests/testString.cc \
2852 tests/testString.h \
2854 tests/stub_cache_cf.cc \
2855 tests/stub_cache_manager.cc \
2856 tests/stub_cbdata.cc \
2857 tests/stub_debug.cc \
2858 tests/stub_HelperChildConfig.cc \
2859 tests/stub_libmem.cc \
2861 tests/stub_tools.cc \
2862 tests/stub_time.cc \
2865 nodist_tests_testString_SOURCES = \
2867 tests_testString_LDADD = \
2872 $(top_builddir)/lib/libmiscutil.la \
2875 $(LIBCPPUNIT_LIBS) \
2878 tests_testString_LDFLAGS = $(LIBADD_DL)
2890 DiskIO/libdiskio.la \
2895 tests_testUfs_SOURCES = \
2900 tests/stub_cache_manager.cc \
2901 tests/stub_client_db.cc \
2902 tests/stub_CollapsedForwarding.cc \
2903 tests/stub_HelperChildConfig.cc \
2906 tests/stub_ipcache.cc \
2907 tests/stub_libeui.cc \
2908 tests/stub_libicmp.cc \
2909 tests/stub_liblog.cc \
2910 tests/stub_neighbors.cc \
2911 tests/stub_pconn.cc \
2912 tests/stub_Port.cc \
2913 tests/stub_UdsOp.cc \
2915 tests/stub_internal.cc \
2916 tests/stub_libformat.cc \
2917 tests/stub_libsecurity.cc \
2918 tests/stub_stat.cc \
2920 tests/stub_store_rebuild.cc \
2921 tests/stub_store_stats.cc \
2923 tests/stub_fatal.cc \
2949 StoreSwapLogData.cc \
2951 StoreMetaUnpacker.cc \
2952 $(STOREMETA_SOURCE) \
2953 StoreFileSystem.cc \
2960 $(DELAY_POOL_SOURCE) \
2962 tests/stub_CacheDigest.cc \
2974 tests/stub_cache_cf.cc \
2975 tests/stub_helper.cc \
2977 tests/stub_SBufDetailedStats.cc \
2979 tests/stub_debug.cc \
2980 tests/stub_client_side_request.cc \
2981 tests/stub_http.cc \
2982 tests/stub_libauth.cc \
2986 tests/stub_mime.cc \
2987 HttpHeaderFieldInfo.h \
2989 HttpHeaderTools.cc \
2994 HttpHdrContRange.cc \
2995 HttpHeaderFieldStat.h \
2999 HttpHdrScTarget.cc \
3000 tests/stub_libanyp.cc \
3009 tests/stub_errorpage.cc \
3010 tests/stub_HttpRequest.cc \
3012 tests/stub_access_log.cc \
3015 tests/stub_store_client.cc \
3017 tests/stub_tools.cc \
3018 tests/testStoreSupport.cc \
3019 tests/testStoreSupport.h \
3024 nodist_tests_testUfs_SOURCES = \
3030 tests_testUfs_LDADD = \
3032 parser/libparser.la \
3044 DiskIO/libdiskio.la \
3055 $(ADAPTATION_LIBS) \
3057 $(top_builddir)/lib/libmisccontainers.la \
3058 $(top_builddir)/lib/libmiscencoding.la \
3059 $(top_builddir)/lib/libmiscutil.la \
3063 $(LIBCPPUNIT_LIBS) \
3066 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3067 tests_testUfs_DEPENDENCIES = \
3070 check_PROGRAMS += testRefCount
3071 testRefCount_SOURCES= \
3074 tests/stub_cbdata.cc \
3075 tests/stub_debug.cc \
3076 tests/stub_libmem.cc \
3077 tests/stub_MemBuf.cc \
3078 tests/testRefCount.cc
3079 testRefCount_LDADD = \
3081 $(top_builddir)/lib/libmiscutil.la \
3085 tests_testRock_SOURCES = \
3090 CollapsedForwarding.h \
3091 CollapsedForwarding.cc \
3092 tests/stub_CacheDigest.cc \
3109 HttpHeaderFieldStat.h \
3113 HttpHdrContRange.cc \
3116 HttpHdrScTarget.cc \
3119 HttpHeaderFieldInfo.h \
3121 HttpHeaderTools.cc \
3141 tests/stub_StatHist.cc \
3144 tests/stub_stat.cc \
3146 StoreFileSystem.cc \
3148 StoreMetaUnpacker.cc \
3149 $(STOREMETA_SOURCE) \
3150 StoreSwapLogData.cc \
3156 tests/stub_SBufDetailedStats.cc \
3164 tests/testStoreSupport.cc \
3165 tests/testStoreSupport.h \
3167 tests/stub_access_log.cc \
3169 tests/stub_cache_cf.cc \
3171 tests/stub_cache_manager.cc \
3172 tests/stub_client_db.cc \
3173 tests/stub_client_side_request.cc \
3174 tests/stub_debug.cc \
3175 tests/stub_errorpage.cc \
3176 tests/stub_HelperChildConfig.cc \
3177 tests/stub_http.cc \
3178 tests/stub_HttpRequest.cc \
3179 tests/stub_libauth.cc \
3182 tests/stub_ipcache.cc \
3183 tests/stub_libeui.cc \
3184 tests/stub_libformat.cc \
3185 tests/stub_libicmp.cc \
3186 tests/stub_liblog.cc \
3187 tests/stub_libmgr.cc \
3188 tests/stub_libsecurity.cc \
3190 tests/stub_mime.cc \
3191 tests/stub_neighbors.cc \
3192 tests/stub_Port.cc \
3193 tests/stub_pconn.cc \
3194 tests/stub_store_client.cc \
3196 tests/stub_store_rebuild.cc \
3197 tests/stub_store_stats.cc \
3199 tests/stub_tools.cc \
3201 tests/stub_libanyp.cc \
3204 $(DELAY_POOL_SOURCE) \
3206 nodist_tests_testRock_SOURCES = \
3212 tests_testRock_LDADD = \
3214 parser/libparser.la \
3221 DiskIO/libdiskio.la \
3232 $(ADAPTATION_LIBS) \
3234 $(top_builddir)/lib/libmisccontainers.la \
3235 $(top_builddir)/lib/libmiscencoding.la \
3236 $(top_builddir)/lib/libmiscutil.la \
3240 $(LIBCPPUNIT_LIBS) \
3243 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3244 tests_testRock_DEPENDENCIES = \
3247 ## Tests of the URL module.
3248 ## TODO: Trim this down once the insanity is over.
3249 tests_testURL_SOURCES = \
3256 tests/stub_cache_manager.cc \
3258 tests/stub_CacheDigest.cc \
3262 tests/stub_carp.cc \
3268 client_side_reply.cc \
3269 client_side_request.cc \
3272 tests/stub_CollapsedForwarding.cc \
3279 $(DELAY_POOL_SOURCE) \
3289 ExternalACLEntry.cc \
3291 tests/stub_fatal.cc \
3309 tests/stub_HttpControlMsg.cc \
3310 HttpHeaderFieldStat.h \
3313 HttpHdrContRange.cc \
3316 HttpHdrScTarget.cc \
3319 HttpHeaderFieldInfo.h \
3321 HttpHeaderTools.cc \
3336 tests/stub_libeui.cc \
3356 peer_proxy_negotiate_auth.h \
3357 peer_proxy_negotiate_auth.cc \
3360 peer_sourcehash.cc \
3366 tests/stub_redirect.cc \
3370 tests/stub_SBufDetailedStats.cc \
3380 tests/stub_StatHist.cc \
3386 tests/stub_store_digest.cc \
3398 StoreFileSystem.cc \
3400 tests/stub_StoreMeta.cc \
3401 StoreMetaUnpacker.cc \
3402 StoreSwapLogData.cc \
3407 tests/stub_SwapDir.cc \
3409 tests/stub_debug.cc \
3410 tests/stub_libauth_acls.cc \
3411 tests/stub_libauth.cc \
3412 tests/stub_libdiskio.cc \
3413 tests/stub_libmem.cc \
3414 tests/stub_libsecurity.cc \
3415 tests/stub_main_cc.cc \
3416 tests/stub_ipc_Forwarder.cc \
3417 tests/stub_store_stats.cc \
3420 tests/testUriScheme.cc \
3421 tests/testUriScheme.h \
3422 tests/stub_time.cc \
3423 tests/stub_EventLoop.cc \
3426 tests/stub_tunnel.cc \
3430 tests/stub_wccp2.cc \
3432 tests/stub_whois.cc \
3437 nodist_tests_testURL_SOURCES = \
3439 tests_testURL_LDADD = \
3441 clients/libclients.la \
3442 servers/libservers.la \
3443 helper/libhelper.la \
3446 parser/libparser.la \
3464 format/libformat.la \
3469 $(ADAPTATION_LIBS) \
3471 $(top_builddir)/lib/libmisccontainers.la \
3472 $(top_builddir)/lib/libmiscencoding.la \
3473 $(top_builddir)/lib/libmiscutil.la \
3477 $(LIBCPPUNIT_LIBS) \
3480 tests_testURL_LDFLAGS = $(LIBADD_DL)
3482 tests_testSBuf_SOURCES= \
3485 tests/SBufFindTest.h \
3486 tests/SBufFindTest.cc \
3487 tests/stub_SBufDetailedStats.cc \
3488 tests/stub_time.cc \
3489 tests/stub_debug.cc \
3490 tests/stub_fatal.cc \
3491 tests/stub_libmem.cc
3492 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3493 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3494 tests_testSBuf_LDADD= \
3497 $(LIBCPPUNIT_LIBS) \
3501 tests_testSBufList_SOURCES= \
3502 tests/testSBufList.h \
3503 tests/testSBufList.cc \
3504 tests/stub_SBufDetailedStats.cc \
3505 tests/stub_time.cc \
3506 tests/stub_debug.cc \
3507 tests/stub_fatal.cc \
3508 tests/stub_libmem.cc
3509 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3510 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3511 tests_testSBufList_LDADD=\
3514 $(LIBCPPUNIT_LIBS) \
3518 tests_testConfigParser_SOURCES = \
3520 tests/stub_MemBuf.cc \
3521 tests/stub_time.cc \
3522 tests/stub_SBufDetailedStats.cc \
3526 tests/stub_fatal.cc \
3527 tests/testConfigParser.cc \
3528 tests/testConfigParser.h \
3530 tests/stub_cache_cf.cc \
3531 tests/stub_cbdata.cc \
3532 tests/stub_debug.cc \
3533 tests/stub_libmem.cc \
3534 tests/stub_HelperChildConfig.cc \
3536 tests/stub_tools.cc \
3539 nodist_tests_testConfigParser_SOURCES = \
3541 tests_testConfigParser_LDADD = \
3546 $(top_builddir)/lib/libmiscutil.la \
3549 $(LIBCPPUNIT_LIBS) \
3552 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3554 tests_testStatHist_SOURCES = \
3555 tests/stub_cbdata.cc \
3557 tests/stub_fatal.cc \
3558 tests/stub_MemBuf.cc \
3559 tests/stub_SBufDetailedStats.cc \
3563 tests/stub_cache_manager.cc \
3564 tests/stub_comm.cc \
3565 tests/stub_debug.cc \
3566 tests/stub_DelayId.cc \
3567 tests/stub_HelperChildConfig.cc \
3568 tests/stub_libmem.cc \
3569 tests/stub_MemObject.cc \
3571 tests/stub_mime.cc \
3572 tests/stub_pconn.cc \
3573 tests/stub_stmem.cc \
3575 tests/stub_store.cc \
3576 tests/stub_store_stats.cc \
3579 tests/stub_tools.cc \
3580 tests/testStatHist.cc \
3581 tests/testStatHist.h
3582 nodist_tests_testStatHist_SOURCES = \
3584 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3585 tests_testStatHist_LDADD = \
3588 $(top_builddir)/lib/libmiscutil.la \
3589 $(top_builddir)/lib/libmisccontainers.la \
3590 $(LIBCPPUNIT_LIBS) \
3593 tests_testLookupTable_SOURCES = \
3594 tests/testLookupTable.h \
3595 tests/testLookupTable.cc \
3596 tests/stub_debug.cc \
3597 tests/stub_libmem.cc \
3598 tests/stub_SBufDetailedStats.cc \
3600 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3601 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3602 tests_testLookupTable_LDADD = \
3605 $(LIBCPPUNIT_LIBS) \
3609 tests_testEnumIterator_SOURCES = \
3610 base/EnumIterator.h \
3611 tests/stub_debug.cc \
3612 tests/stub_libmem.cc \
3613 tests/stub_SBuf.cc \
3614 tests/testEnumIterator.h \
3615 tests/testEnumIterator.cc
3616 nodist_tests_testEnumIterator_SOURCES = \
3618 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3619 tests_testEnumIterator_LDADD = \
3621 $(LIBCPPUNIT_LIBS) \
3625 tests_testYesNoNone_SOURCES = \
3626 tests/testYesNoNone.cc \
3627 tests/testYesNoNone.h
3628 nodist_tests_testYesNoNone_SOURCES = \
3630 tests/stub_debug.cc \
3631 tests/stub_libmem.cc \
3632 tests/stub_SBuf.cc \
3634 tests_testYesNoNone_LDADD= \
3636 $(LIBCPPUNIT_LIBS) \
3639 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3641 tests_testMem_SOURCES = \
3644 nodist_tests_testMem_SOURCES = \
3645 tests/stub_debug.cc \
3646 tests/stub_SBuf.cc \
3647 tests/stub_time.cc \
3649 tests_testMem_LDADD= \
3652 $(top_builddir)/lib/libmiscutil.la \
3653 $(LIBCPPUNIT_LIBS) \
3656 tests_testMem_LDFLAGS = $(LIBADD_DL)
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