1 ## Copyright (C) 1996-2017 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.
189 cf_gen_SOURCES = cf_gen.cc
190 nodist_cf_gen_HEADER = cf_gen_defines.cci
191 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
193 cf_gen.$(OBJEXT): cf_gen_defines.cci
195 ## cf_gen.cc needs src/cf_gen_defines.cci
196 AM_CPPFLAGS += -I$(top_builddir)/src
199 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
201 # common library for all the binaries and tests. This is kindof a catch all
202 # and smaller libraries split from this are encouraged. Using lt convenience
203 # libraries, dependencies should not be a problem either.
204 libsquid_la_SOURCES = \
215 $(ACL_REGISTRATION_SOURCES) \
227 NeighborTypeDomainList.h \
240 client_side_reply.cc \
241 client_side_reply.h \
242 client_side_request.cc \
243 client_side_request.h \
248 ClientRequestContext.h \
251 clientStreamForward.h \
252 CollapsedForwarding.cc \
253 CollapsedForwarding.h \
254 CompletionDispatcher.cc \
255 CompletionDispatcher.h \
269 $(DELAY_POOL_SOURCE) \
290 ExternalACLEntry.cc \
313 HierarchyLogEntry.h \
317 HttpHeaderFieldStat.h \
326 HttpHdrContRange.cc \
333 HttpHeaderFieldInfo.h \
359 $(LEAKFINDERSOURCE) \
384 $(XPROF_STATS_SOURCE) \
389 peer_proxy_negotiate_auth.h \
390 peer_proxy_negotiate_auth.cc \
413 sbuf/StringConvert.h \
453 StoreMetaUnpacker.cc \
454 StoreMetaUnpacker.h \
455 $(STOREMETA_SOURCE) \
459 StoreSwapLogData.cc \
488 EXTRA_squid_SOURCES = \
491 $(DELAY_POOL_ALL_SOURCE) \
501 $(WIN32_ALL_SOURCE) \
502 $(LOADABLE_MODULES_SOURCES)
505 client_side_request.cci \
523 CLEANFILES += $(BUILT_SOURCES)
525 nodist_squid_SOURCES = \
535 clients/libclients.la \
536 servers/libservers.la \
538 helper/libhelper.la \
545 DiskIO/libdiskio.la \
548 security/libsecurity.la \
552 parser/libparser.la \
556 format/libformat.la \
568 $(top_builddir)/lib/libmisccontainers.la \
569 $(top_builddir)/lib/libmiscencoding.la \
570 $(top_builddir)/lib/libmiscutil.la \
579 if ENABLE_LOADABLE_MODULES
580 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
581 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
582 squid_LDFLAGS = -export-dynamic -dlopen force
583 ## when static module linking is supported and enabled:
584 ## squid_LDFLAGS = -all-static -dlopen self
586 ## LTDL headers require their local include path...
587 AM_CPPFLAGS += $(INCLTDL)
590 ## Kerberos libraries require their include path...
591 AM_CPPFLAGS += $(KRB5INCS)
594 unlinkd_SOURCES = unlinkd_daemon.cc
599 recv_announce_SOURCES = recv-announce.cc
601 ## What requires what..
602 ## many things want ACLChecklist.cc
603 ## ACLChecklist.cc wants AuthUserRequest.cc
604 ## ACLChecklist.cc wants AuthScheme.cc
605 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
606 ## ACLProxyAuth.cc wants ACLUserData
607 ## ACLProxyAuth.cc wants ACLRegexData
608 ## cache_cf.cc wants $(AUTH_LIBS)
609 ## cache_cf.cc wants store/libstore.la
610 ## cache_cf.cc wants AnyP::PortCfg
611 ## client_side wants client_db
612 ## client_db wants SNMP_SOURCE
613 ## snmp_core wants ACLStringData
614 ## tools.cc wants ip/libip.la
615 ## client_side.cc wants ip/libip.la
616 ## libbase.la wants cbdata.*
617 ## libbase.la wants MemBuf.*
631 tests/stub_StoreMeta.cc \
632 StoreMetaUnpacker.cc \
639 helper/ChildConfig.h \
640 tests/stub_HelperChildConfig.cc \
667 ufsdump_DEPENDENCIES = \
679 DiskIO/libdiskio.la \
682 nodist_ufsdump_SOURCES = \
687 squid.conf.documented \
712 include $(srcdir)/tests/Stub.list
720 mk-string-arrays.awk \
726 # Make location configure settings available to the code
727 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
729 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
731 globals.cc: globals.h mk-globals-c.awk
732 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
734 ## Generate files containing string arrays for various enums....
735 hier_code.cc: hier_code.h mk-string-arrays.awk
736 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
738 err_type.cc: err_type.h mk-string-arrays.awk
739 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
741 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
742 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
744 lookup_t.cc: lookup_t.h mk-string-arrays.awk
745 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
747 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
748 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
750 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
751 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
754 ## other generated files...
756 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
757 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
759 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
760 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
762 ## If autodependency works well this is not needed anymore
763 cache_cf.o: cf_parser.cci
765 # cf_gen builds the configuration files.
766 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
767 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
769 # squid.conf.default is built by cf_gen when making cf_parser.cci
770 squid.conf.default squid.conf.documented: cf_parser.cci
773 cf_parser.cci: cf.data cf_gen$(EXEEXT)
774 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
776 # The cf_gen_defines.cci is auto-generated and does not exist when the
777 # dependencies computed. We need to add its include files (autoconf.h) here
778 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
779 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
782 ## FIXME: generate a sed command file from configure. Then this doesn't
783 ## depend on the Makefile.
784 cf.data: cf.data.pre Makefile
786 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
787 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
788 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
789 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
790 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
791 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
792 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
793 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
794 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
795 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
796 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
797 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
798 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
799 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
800 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
801 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
802 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
803 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
804 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
805 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
806 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
807 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
808 -f $(srcdir)/cf.data.sed \
809 < $(srcdir)/cf.data.pre >$@
811 repl_modules.cc: repl_modules.sh Makefile
812 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
814 include $(top_srcdir)/doc/manuals/Substitute.am
816 squid.8: $(srcdir)/squid.8.in Makefile
817 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
820 EXTRA_DIST += squid.8.in
821 CLEANFILES += squid.8
823 install-data-local: install-sysconfDATA install-dataDATA
824 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
825 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
827 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
828 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
830 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
831 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
833 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
834 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
836 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
837 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
838 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
839 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
840 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
841 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
842 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
844 uninstall-local: squid.conf.default
845 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
846 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
848 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
851 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
852 cp $(top_srcdir)/test-suite/test_tools.cc .
854 # stock tools for unit tests - library independent versions of dlink_list
856 # globals.cc is needed by test_tools.cc.
857 # Neither of these should be disted from here.
864 tests/testBoilerplate \
865 tests/testCacheManager \
866 tests/testCharacterSet \
869 tests/testEnumIterator \
871 tests/testEventLoop \
872 tests/test_http_range \
873 tests/testTokenizer \
874 tests/testHttp1Parser \
875 tests/testHttpReply \
876 tests/testHttpRequest \
878 tests/testIpAddress \
886 tests/testConfigParser \
888 tests/testLookupTable \
892 check_PROGRAMS += tests/testRock
895 check_PROGRAMS += tests/testUfs
898 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
899 TESTS += $(check_PROGRAMS)
901 ### Template for new Unit Test Program
902 ## - add tests/testX to check_PROGRAMS above.
903 ## - copy template below and substitue X for class name
904 ## - add other component .(h|cc) files needed to link and run tests
906 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
908 #tests_testX_SOURCES=\
913 #nodist_tests_testX_SOURCES=\
914 # tests/stubs_as_needed.cc\
916 #tests_testX_LDFLAGS = $(LIBADD_DL)
918 # $(LIBCPPUNIT_LIBS) \
922 # - add other component .(h|cc) files needed to link and run tests
923 tests_testHttpReply_SOURCES=\
929 tests/stub_fatal.cc \
932 HttpHeaderFieldStat.h \
936 HttpHdrContRange.cc \
946 HttpHeaderFieldInfo.h \
965 tests/stub_SBufDetailedStats.cc \
970 tests/stub_access_log.cc \
972 tests/stub_cache_cf.cc \
973 tests/stub_cache_manager.cc \
975 tests/stub_debug.cc \
976 tests/stub_errorpage.cc \
977 tests/stub_event.cc \
979 tests/stub_HelperChildConfig.cc \
980 tests/stub_libformat.cc \
981 tests/stub_libauth.cc \
982 tests/stub_libcomm.cc \
983 tests/stub_libmgr.cc \
984 tests/stub_libsecurity.cc \
985 tests/stub_libsslsquid.cc \
989 tests/stub_StatHist.cc \
991 tests/stub_store.cc \
992 tests/stub_store_stats.cc \
994 tests/stub_tools.cc \
995 tests/stub_HttpRequest.cc \
996 tests/testHttpReply.cc \
997 tests/testHttpReply.h \
1002 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 \
1052 HttpHdrScTarget.cc \
1062 tests/stub_libsecurity.cc \
1069 tests/stub_StatHist.cc \
1071 tests/stub_SBufDetailedStats.cc \
1074 tests/stub_StoreMeta.cc \
1075 StoreMetaUnpacker.cc \
1076 StoreSwapLogData.cc \
1081 tests/stub_SwapDir.cc \
1084 tests/stub_access_log.cc \
1086 tests/stub_cache_cf.cc \
1087 tests/stub_client_side.cc \
1088 tests/stub_debug.cc \
1089 tests/stub_DelayId.cc \
1090 tests/stub_errorpage.cc \
1093 tests/stub_HttpRequest.cc \
1094 tests/stub_HttpReply.cc \
1095 tests/stub_ipc_TypedMsgHdr.cc \
1096 tests/stub_libauth.cc \
1097 tests/stub_libcomm.cc \
1098 tests/stub_libdiskio.cc \
1099 tests/stub_libformat.cc \
1100 tests/stub_libmem.cc \
1101 tests/stub_libsslsquid.cc \
1102 tests/stub_MemObject.cc \
1103 tests/stub_MemStore.cc \
1105 tests/stub_mime.cc \
1106 tests/stub_pconn.cc \
1107 tests/stub_Port.cc \
1109 tests/stub_store.cc \
1110 tests/stub_store_client.cc \
1112 tests/stub_store_rebuild.cc \
1113 tests/stub_store_stats.cc \
1114 tests/stub_store_swapout.cc \
1116 tests/stub_tools.cc \
1117 tests/stub_cache_manager.cc \
1118 tests/stub_UdsOp.cc \
1119 tests/testACLMaxUserIP.cc \
1120 tests/testACLMaxUserIP.h \
1121 tests/stub_time.cc \
1127 nodist_tests_testACLMaxUserIP_SOURCES= \
1129 tests_testACLMaxUserIP_LDADD= \
1131 helper/libhelper.la \
1133 parser/libparser.la \
1146 $(top_builddir)/lib/libmisccontainers.la \
1147 $(top_builddir)/lib/libmiscencoding.la \
1148 $(top_builddir)/lib/libmiscutil.la \
1152 $(LIBCPPUNIT_LIBS) \
1155 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1157 ## a demonstration test that does nothing but shows the salient points
1158 ## involved in writing tests.
1159 tests_testBoilerplate_SOURCES = \
1160 tests/testBoilerplate.cc \
1161 tests/testBoilerplate.h \
1162 tests/stub_debug.cc \
1163 tests/stub_libmem.cc \
1165 nodist_tests_testBoilerplate_SOURCES = \
1166 tests/stub_cbdata.cc \
1167 tests/stub_MemBuf.cc \
1169 tests_testBoilerplate_LDADD= \
1172 $(LIBCPPUNIT_LIBS) \
1175 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1177 ## Tests of base/libbase.la objects
1178 tests_testCharacterSet_SOURCES = \
1179 tests/testCharacterSet.cc \
1180 tests/testCharacterSet.h
1181 nodist_tests_testCharacterSet_SOURCES = \
1182 base/CharacterSet.h \
1184 tests/stub_cbdata.cc \
1185 tests/stub_debug.cc \
1186 tests/stub_libmem.cc \
1187 tests/stub_MemBuf.cc
1188 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1189 tests_testCharacterSet_LDADD= \
1191 $(LIBCPPUNIT_LIBS) \
1195 ## Tests of the CacheManager module.
1196 tests_testCacheManager_SOURCES = \
1203 tests/testCacheManager.cc \
1204 tests/testCacheManager.h \
1205 tests/stub_main_cc.cc \
1206 tests/stub_HttpControlMsg.cc \
1207 tests/stub_ipc_Forwarder.cc \
1208 tests/stub_store_stats.cc \
1209 tests/stub_EventLoop.cc \
1220 tests/stub_CacheDigest.cc \
1222 tests/stub_carp.cc \
1228 client_side_reply.cc \
1229 client_side_request.cc \
1232 tests/stub_CollapsedForwarding.cc \
1239 $(DELAY_POOL_SOURCE) \
1246 tests/stub_ETag.cc \
1249 ExternalACLEntry.cc \
1251 tests/stub_fatal.cc \
1271 HttpHeaderFieldInfo.h \
1273 HttpHeaderTools.cc \
1274 HttpHeaderFieldStat.h \
1278 HttpHdrContRange.cc \
1281 HttpHdrScTarget.cc \
1293 tests/stub_libsecurity.cc \
1312 peer_proxy_negotiate_auth.h \
1313 peer_proxy_negotiate_auth.cc \
1316 peer_sourcehash.cc \
1324 tests/stub_redirect.cc \
1328 tests/stub_SBufDetailedStats.cc \
1340 tests/stub_libauth_acls.cc \
1341 tests/stub_libauth.cc \
1342 tests/stub_libdiskio.cc \
1343 tests/stub_StatHist.cc \
1349 tests/stub_store_digest.cc \
1361 StoreFileSystem.cc \
1363 tests/stub_StoreMeta.cc \
1364 StoreMetaUnpacker.cc \
1365 StoreSwapLogData.cc \
1369 tests/stub_tunnel.cc \
1370 tests/stub_SwapDir.cc \
1377 tests/stub_wccp2.cc \
1379 tests/stub_whois.cc \
1384 nodist_tests_testCacheManager_SOURCES = \
1386 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1387 tests_testCacheManager_LDADD = \
1389 clients/libclients.la \
1390 servers/libservers.la \
1392 helper/libhelper.la \
1394 parser/libparser.la \
1407 format/libformat.la \
1409 $(ADAPTATION_LIBS) \
1419 $(top_builddir)/lib/libmisccontainers.la \
1420 $(top_builddir)/lib/libmiscencoding.la \
1421 $(top_builddir)/lib/libmiscutil.la \
1426 $(LIBCPPUNIT_LIBS) \
1429 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1431 tests_testDiskIO_SOURCES = \
1435 tests/stub_CacheDigest.cc \
1439 tests/stub_CollapsedForwarding.cc \
1442 $(DELAY_POOL_SOURCE) \
1445 tests/stub_ETag.cc \
1449 tests/stub_fatal.cc \
1458 HttpHeaderFieldStat.h \
1462 HttpHdrContRange.cc \
1464 HttpHdrScTarget.cc \
1466 HttpHeaderFieldInfo.h \
1468 HttpHeaderTools.cc \
1488 tests/stub_libsecurity.cc \
1492 tests/stub_StatHist.cc \
1494 tests/stub_SBufDetailedStats.cc \
1495 StoreFileSystem.cc \
1497 tests/stub_StoreMeta.cc \
1498 StoreMetaUnpacker.cc \
1499 StoreSwapLogData.cc \
1510 tests/stub_SwapDir.cc \
1513 tests/stub_access_log.cc \
1516 tests/stub_cache_cf.cc \
1517 tests/stub_cache_manager.cc \
1518 tests/stub_client_db.cc \
1519 client_side_request.h \
1520 tests/stub_client_side_request.cc \
1521 tests/stub_debug.cc \
1522 tests/stub_errorpage.cc \
1523 tests/stub_helper.cc \
1524 tests/stub_HelperChildConfig.cc \
1525 tests/stub_HttpRequest.cc \
1526 tests/stub_http.cc \
1529 tests/stub_internal.cc \
1531 tests/stub_ipcache.cc \
1532 tests/stub_libauth_acls.cc \
1533 tests/stub_libauth.cc \
1534 tests/stub_libeui.cc \
1535 tests/stub_libformat.cc \
1536 tests/stub_libicmp.cc \
1537 tests/stub_liblog.cc \
1538 tests/stub_MemStore.cc \
1540 tests/stub_mime.cc \
1541 tests/stub_neighbors.cc \
1542 tests/stub_pconn.cc \
1543 tests/stub_Port.cc \
1544 tests/stub_stat.cc \
1545 tests/stub_store_client.cc \
1546 tests/stub_store_stats.cc \
1548 tests/stub_store_rebuild.cc \
1549 tests/stub_UdsOp.cc \
1550 tests/testDiskIO.cc \
1551 tests/testDiskIO.h \
1552 tests/testStoreSupport.cc \
1553 tests/testStoreSupport.h \
1554 tests/stub_time.cc \
1562 nodist_tests_testDiskIO_SOURCES= \
1567 tests_testDiskIO_LDADD = \
1570 parser/libparser.la \
1581 $(ADAPTATION_LIBS) \
1582 DiskIO/libdiskio.la \
1593 $(top_builddir)/lib/libmisccontainers.la \
1594 $(top_builddir)/lib/libmiscencoding.la \
1595 $(top_builddir)/lib/libmiscutil.la \
1599 $(LIBCPPUNIT_LIBS) \
1602 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1603 tests_testDiskIO_DEPENDENCIES = \
1604 DiskIO/libdiskio.la \
1607 tests_testDns_SOURCES= \
1608 tests/testRFC1035.cc \
1610 nodist_tests_testDns_SOURCES= \
1611 tests/stub_debug.cc \
1612 tests/stub_libmem.cc \
1613 tests/stub_SBuf.cc \
1615 tests_testDns_LDADD= \
1618 $(top_builddir)/lib/libmiscutil.la \
1619 $(LIBCPPUNIT_LIBS) \
1622 tests_testDns_LDFLAGS= $(LIBADD_DL)
1624 tests_testEvent_SOURCES = \
1628 tests/stub_CacheDigest.cc \
1637 tests/stub_carp.cc \
1643 client_side_reply.cc \
1644 client_side_request.cc \
1647 tests/stub_CollapsedForwarding.cc \
1655 $(DELAY_POOL_SOURCE) \
1662 tests/stub_ETag.cc \
1667 ExternalACLEntry.cc \
1670 tests/stub_fatal.cc \
1688 tests/stub_HttpControlMsg.cc \
1691 HttpHeaderFieldInfo.h \
1693 HttpHeaderTools.cc \
1694 HttpHeaderFieldStat.h \
1698 HttpHdrContRange.cc \
1701 HttpHdrScTarget.cc \
1718 tests/stub_libsecurity.cc \
1721 tests/stub_libmem.cc \
1738 peer_proxy_negotiate_auth.h \
1739 peer_proxy_negotiate_auth.cc \
1742 peer_sourcehash.cc \
1748 tests/stub_redirect.cc \
1754 tests/stub_SBufDetailedStats.cc \
1770 tests/stub_store_digest.cc \
1782 StoreFileSystem.cc \
1784 tests/stub_StoreMeta.cc \
1785 StoreMetaUnpacker.cc \
1786 StoreSwapLogData.cc \
1788 tests/stub_SwapDir.cc \
1789 tests/CapturingStoreEntry.h \
1790 tests/testEvent.cc \
1792 tests/stub_main_cc.cc \
1793 tests/stub_ipc_Forwarder.cc \
1794 tests/stub_libauth_acls.cc \
1795 tests/stub_libauth.cc \
1796 tests/stub_libdiskio.cc \
1797 tests/stub_libeui.cc \
1798 tests/stub_store_stats.cc \
1803 tests/stub_tunnel.cc \
1810 tests/stub_wccp2.cc \
1812 tests/stub_whois.cc \
1816 nodist_tests_testEvent_SOURCES = \
1818 tests_testEvent_LDADD = \
1820 clients/libclients.la \
1821 servers/libservers.la \
1823 helper/libhelper.la \
1825 parser/libparser.la \
1838 format/libformat.la \
1840 $(ADAPTATION_LIBS) \
1843 $(top_builddir)/lib/libmisccontainers.la \
1844 $(top_builddir)/lib/libmiscencoding.la \
1845 $(top_builddir)/lib/libmiscutil.la \
1855 $(LIBCPPUNIT_LIBS) \
1858 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1860 ## Tests of the EventLoop module.
1861 tests_testEventLoop_SOURCES = \
1865 tests/stub_CacheDigest.cc \
1874 tests/stub_carp.cc \
1880 client_side_reply.cc \
1881 client_side_request.cc \
1884 tests/stub_CollapsedForwarding.cc \
1892 $(DELAY_POOL_SOURCE) \
1899 tests/stub_ETag.cc \
1904 ExternalACLEntry.cc \
1907 tests/stub_fatal.cc \
1925 tests/stub_HttpControlMsg.cc \
1928 HttpHeaderFieldInfo.h \
1930 HttpHeaderTools.cc \
1931 HttpHeaderFieldStat.h \
1935 HttpHdrContRange.cc \
1938 HttpHdrScTarget.cc \
1959 tests/stub_libmem.cc \
1974 peer_proxy_negotiate_auth.h \
1975 peer_proxy_negotiate_auth.cc \
1978 peer_sourcehash.cc \
1985 tests/stub_redirect.cc \
1988 tests/stub_SBufDetailedStats.cc \
2004 tests/stub_store_digest.cc \
2016 StoreFileSystem.cc \
2018 tests/stub_StoreMeta.cc \
2019 StoreMetaUnpacker.cc \
2020 StoreSwapLogData.cc \
2024 tests/stub_SwapDir.cc \
2025 tests/testEventLoop.cc \
2026 tests/testEventLoop.h \
2027 tests/stub_main_cc.cc \
2028 tests/stub_ipc_Forwarder.cc \
2029 tests/stub_libauth_acls.cc \
2030 tests/stub_libauth.cc \
2031 tests/stub_libdiskio.cc \
2032 tests/stub_libeui.cc \
2033 tests/stub_libsecurity.cc \
2034 tests/stub_store_stats.cc \
2039 tests/stub_tunnel.cc \
2046 tests/stub_wccp2.cc \
2048 tests/stub_whois.cc \
2052 nodist_tests_testEventLoop_SOURCES = \
2054 tests_testEventLoop_LDADD = \
2056 clients/libclients.la \
2057 servers/libservers.la \
2059 helper/libhelper.la \
2061 parser/libparser.la \
2074 format/libformat.la \
2076 $(ADAPTATION_LIBS) \
2079 $(top_builddir)/lib/libmisccontainers.la \
2080 $(top_builddir)/lib/libmiscencoding.la \
2081 $(top_builddir)/lib/libmiscutil.la \
2091 $(LIBCPPUNIT_LIBS) \
2094 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2096 tests_test_http_range_SOURCES = \
2107 tests/stub_CacheDigest.cc \
2109 tests/stub_carp.cc \
2115 client_side_reply.cc \
2116 client_side_request.cc \
2119 tests/stub_CollapsedForwarding.cc \
2127 $(DELAY_POOL_SOURCE) \
2134 tests/stub_ETag.cc \
2138 tests/stub_libauth.cc \
2139 tests/stub_fatal.cc \
2157 tests/stub_HttpControlMsg.cc \
2158 HttpHeaderFieldStat.h \
2162 HttpHdrContRange.cc \
2165 HttpHdrScTarget.cc \
2168 HttpHeaderFieldInfo.h \
2170 HttpHeaderTools.cc \
2191 tests/stub_libmem.cc \
2205 peer_proxy_negotiate_auth.h \
2206 peer_proxy_negotiate_auth.cc \
2209 peer_sourcehash.cc \
2216 tests/stub_redirect.cc \
2220 tests/stub_SBufDetailedStats.cc \
2236 tests/stub_store_digest.cc \
2248 StoreFileSystem.cc \
2250 tests/stub_StoreMeta.cc \
2251 StoreMetaUnpacker.cc \
2252 StoreSwapLogData.cc \
2256 tests/stub_SwapDir.cc \
2258 tests/test_http_range.cc \
2259 tests/stub_external_acl.cc \
2260 tests/stub_ipc_Forwarder.cc \
2261 tests/stub_libdiskio.cc \
2262 tests/stub_libeui.cc \
2263 tests/stub_libsecurity.cc \
2264 tests/stub_main_cc.cc \
2265 tests/stub_MemStore.cc \
2266 tests/stub_store_stats.cc \
2267 tests/stub_EventLoop.cc \
2271 tests/stub_tunnel.cc \
2277 tests/stub_wccp2.cc \
2279 tests/stub_whois.cc \
2283 nodist_tests_test_http_range_SOURCES = \
2285 tests_test_http_range_LDADD = \
2287 clients/libclients.la \
2288 servers/libservers.la \
2290 helper/libhelper.la \
2292 parser/libparser.la \
2297 parser/libparser.la \
2304 format/libformat.la \
2306 $(ADAPTATION_LIBS) \
2316 $(top_builddir)/lib/libmisccontainers.la \
2317 $(top_builddir)/lib/libmiscencoding.la \
2318 $(top_builddir)/lib/libmiscutil.la \
2323 $(LIBCPPUNIT_LIBS) \
2326 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2328 ## Tests of parser/* objects
2329 tests_testTokenizer_SOURCES = \
2330 tests/testTokenizer.h \
2331 tests/testTokenizer.cc
2332 nodist_tests_testTokenizer_SOURCES = \
2333 parser/Tokenizer.h \
2337 tests/stub_debug.cc \
2338 tests/stub_libmem.cc \
2339 tests/stub_time.cc \
2340 tests/stub_SBufDetailedStats.cc
2341 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2342 tests_testTokenizer_LDADD = \
2343 parser/libparser.la \
2346 $(top_builddir)/lib/libmiscutil.la \
2347 $(LIBCPPUNIT_LIBS) \
2351 tests_testHttp1Parser_SOURCES = \
2355 tests/stub_MemObject.cc \
2360 tests/stub_SBufDetailedStats.cc \
2361 tests/stub_cache_cf.cc \
2362 tests/stub_cache_manager.cc \
2363 tests/stub_comm.cc \
2364 tests/stub_cbdata.cc \
2365 tests/stub_debug.cc \
2366 tests/stub_event.cc \
2367 tests/stub_HelperChildConfig.cc \
2368 tests/stub_libmem.cc \
2369 tests/stub_libsecurity.cc \
2370 tests/stub_stmem.cc \
2371 tests/stub_store.cc \
2372 tests/stub_store_stats.cc \
2374 tests/stub_tools.cc \
2375 tests/testHttp1Parser.cc \
2376 tests/testHttp1Parser.h \
2377 tests/stub_time.cc \
2380 nodist_tests_testHttp1Parser_SOURCES = \
2382 tests_testHttp1Parser_LDADD= \
2384 parser/libparser.la \
2390 $(top_builddir)/lib/libmiscutil.la \
2392 $(LIBCPPUNIT_LIBS) \
2395 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2397 ## Tests of the HttpRequest module.
2398 tests_testHttpRequest_SOURCES = \
2403 tests/stub_libmem.cc \
2405 tests/testHttpRequest.h \
2406 tests/testHttpRequest.cc \
2407 tests/testHttpRequestMethod.h \
2408 tests/testHttpRequestMethod.cc \
2409 tests/stub_libauth.cc \
2410 tests/stub_main_cc.cc \
2411 tests/stub_ipc_Forwarder.cc \
2412 tests/stub_libdiskio.cc \
2413 tests/stub_libeui.cc \
2414 tests/stub_store_stats.cc \
2415 tests/stub_EventLoop.cc \
2425 tests/stub_CacheDigest.cc \
2429 tests/stub_carp.cc \
2435 client_side_reply.cc \
2436 client_side_request.cc \
2439 tests/stub_CollapsedForwarding.cc \
2446 $(DELAY_POOL_SOURCE) \
2453 tests/stub_ETag.cc \
2455 ExternalACLEntry.cc \
2457 tests/stub_fatal.cc \
2473 tests/stub_HttpControlMsg.cc \
2476 HttpHeaderFieldInfo.h \
2478 HttpHeaderTools.cc \
2479 HttpHeaderFieldStat.h \
2483 HttpHdrContRange.cc \
2486 HttpHdrScTarget.cc \
2498 tests/stub_libsecurity.cc \
2517 peer_proxy_negotiate_auth.h \
2518 peer_proxy_negotiate_auth.cc \
2521 peer_sourcehash.cc \
2529 tests/stub_libauth_acls.cc \
2530 tests/stub_redirect.cc \
2534 tests/stub_SBufDetailedStats.cc \
2550 tests/stub_store_digest.cc \
2562 StoreFileSystem.cc \
2564 tests/stub_StoreMeta.cc \
2565 StoreMetaUnpacker.cc \
2566 StoreSwapLogData.cc \
2573 tests/stub_tunnel.cc \
2574 tests/stub_SwapDir.cc \
2580 tests/stub_wccp2.cc \
2582 tests/stub_whois.cc \
2587 nodist_tests_testHttpRequest_SOURCES = \
2589 tests_testHttpRequest_LDADD = \
2591 clients/libclients.la \
2592 servers/libservers.la \
2593 helper/libhelper.la \
2600 parser/libparser.la \
2605 parser/libparser.la \
2614 format/libformat.la \
2618 $(ADAPTATION_LIBS) \
2620 $(top_builddir)/lib/libmisccontainers.la \
2621 $(top_builddir)/lib/libmiscencoding.la \
2622 $(top_builddir)/lib/libmiscutil.la \
2627 $(LIBCPPUNIT_LIBS) \
2630 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2632 ## Tests for icmp/* objects
2633 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2634 tests_testIcmp_SOURCES = \
2637 nodist_tests_testIcmp_SOURCES = \
2640 tests/stub_debug.cc \
2641 tests/stub_libmem.cc \
2644 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2645 tests_testIcmp_LDADD=\
2646 icmp/libicmpcore.la \
2649 $(LIBCPPUNIT_LIBS) \
2653 tests_testNetDb_SOURCES = \
2654 tests/testNetDb.cc \
2656 nodist_tests_testNetDb_SOURCES = \
2658 tests/stub_debug.cc \
2659 tests/stub_libmem.cc \
2662 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2663 tests_testNetDb_LDADD = \
2667 $(top_builddir)/lib/libmisccontainers.la \
2668 $(LIBCPPUNIT_LIBS) \
2672 ## Tests for ip/* objects
2673 tests_testIpAddress_SOURCES= \
2674 tests/testAddress.cc \
2676 nodist_tests_testIpAddress_SOURCES= \
2678 tests/stub_debug.cc \
2679 tests/stub_libmem.cc \
2681 tests_testIpAddress_LDADD= \
2684 $(LIBCPPUNIT_LIBS) \
2687 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2689 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2690 ## first line - what we are testing.
2691 tests_testStore_SOURCES= \
2693 tests/stub_CacheDigest.cc \
2696 tests/stub_CollapsedForwarding.cc \
2699 $(DELAY_POOL_SOURCE) \
2706 tests/stub_fatal.cc \
2709 HttpHeaderFieldStat.h \
2713 HttpHdrContRange.cc \
2716 HttpHdrScTarget.cc \
2717 HttpHeaderFieldInfo.h \
2719 HttpHeaderTools.cc \
2748 tests/stub_StoreMeta.cc \
2749 StoreMetaUnpacker.cc \
2750 StoreSwapLogData.cc \
2753 tests/stub_SBufDetailedStats.cc \
2757 tests/CapturingStoreEntry.h \
2759 tests/stub_access_log.cc \
2762 tests/stub_cache_cf.cc \
2763 tests/stub_cache_manager.cc \
2764 tests/stub_client_side_request.cc \
2765 tests/stub_comm.cc \
2766 tests/stub_debug.cc \
2767 tests/stub_errorpage.cc \
2771 tests/stub_helper.cc \
2772 tests/stub_HelperChildConfig.cc \
2773 tests/stub_http.cc \
2774 tests/stub_libauth.cc \
2775 tests/stub_libeui.cc \
2776 tests/stub_libdiskio.cc \
2777 tests/stub_libformat.cc \
2778 tests/stub_libsecurity.cc \
2779 tests/stub_libsslsquid.cc \
2782 tests/stub_HttpReply.cc \
2783 tests/stub_HttpRequest.cc \
2784 tests/stub_libcomm.cc \
2785 tests/stub_MemStore.cc \
2787 tests/stub_mime.cc \
2788 tests/stub_Port.cc \
2789 tests/stub_stat.cc \
2790 tests/stub_store_client.cc \
2791 tests/stub_store_stats.cc \
2793 tests/stub_store_rebuild.cc \
2794 tests/stub_store_swapout.cc \
2797 tests/stub_tools.cc \
2798 tests/stub_UdsOp.cc \
2799 tests/testPackableStream.cc \
2800 tests/testPackableStream.h \
2801 tests/testStore.cc \
2803 tests/testStoreController.cc \
2804 tests/testStoreController.h \
2805 tests/testStoreHashIndex.cc \
2806 tests/testStoreHashIndex.h \
2807 tests/testStoreSupport.cc \
2808 tests/testStoreSupport.h \
2809 tests/TestSwapDir.cc \
2810 tests/TestSwapDir.h \
2811 tests/stub_time.cc \
2816 nodist_tests_testStore_SOURCES= \
2822 tests_testStore_LDADD= \
2825 parser/libparser.la \
2840 DiskIO/libdiskio.la \
2841 $(top_builddir)/lib/libmisccontainers.la \
2842 $(top_builddir)/lib/libmiscencoding.la \
2843 $(top_builddir)/lib/libmiscutil.la \
2848 $(LIBCPPUNIT_LIBS) \
2851 tests_testStore_LDFLAGS = $(LIBADD_DL)
2853 ## string needs mem.cc.
2854 ## mem.cc needs ClientInfo.h
2855 ## libsquid pulls in SquidConfig and children. stub them.
2856 tests_testString_SOURCES = \
2860 tests/stub_SBufDetailedStats.cc \
2861 tests/testString.cc \
2862 tests/testString.h \
2864 tests/stub_cache_cf.cc \
2865 tests/stub_cache_manager.cc \
2866 tests/stub_cbdata.cc \
2867 tests/stub_debug.cc \
2868 tests/stub_HelperChildConfig.cc \
2869 tests/stub_libmem.cc \
2871 tests/stub_tools.cc \
2872 tests/stub_time.cc \
2875 nodist_tests_testString_SOURCES = \
2877 tests_testString_LDADD = \
2882 $(top_builddir)/lib/libmiscutil.la \
2885 $(LIBCPPUNIT_LIBS) \
2888 tests_testString_LDFLAGS = $(LIBADD_DL)
2900 DiskIO/libdiskio.la \
2905 tests_testUfs_SOURCES = \
2910 tests/stub_cache_manager.cc \
2911 tests/stub_client_db.cc \
2912 tests/stub_CollapsedForwarding.cc \
2913 tests/stub_HelperChildConfig.cc \
2916 tests/stub_ipcache.cc \
2917 tests/stub_libeui.cc \
2918 tests/stub_libicmp.cc \
2919 tests/stub_liblog.cc \
2920 tests/stub_MemStore.cc \
2921 tests/stub_neighbors.cc \
2922 tests/stub_pconn.cc \
2923 tests/stub_Port.cc \
2924 tests/stub_UdsOp.cc \
2926 tests/stub_internal.cc \
2927 tests/stub_libformat.cc \
2928 tests/stub_libsecurity.cc \
2929 tests/stub_stat.cc \
2931 tests/stub_store_rebuild.cc \
2932 tests/stub_store_stats.cc \
2934 tests/stub_fatal.cc \
2957 StoreSwapLogData.cc \
2959 StoreMetaUnpacker.cc \
2960 $(STOREMETA_SOURCE) \
2961 StoreFileSystem.cc \
2968 $(DELAY_POOL_SOURCE) \
2970 tests/stub_CacheDigest.cc \
2983 tests/stub_cache_cf.cc \
2984 tests/stub_helper.cc \
2986 tests/stub_SBufDetailedStats.cc \
2988 tests/stub_debug.cc \
2989 tests/stub_client_side_request.cc \
2990 tests/stub_http.cc \
2991 tests/stub_libauth.cc \
2995 tests/stub_mime.cc \
2996 HttpHeaderFieldInfo.h \
2998 HttpHeaderTools.cc \
3003 HttpHdrContRange.cc \
3004 HttpHeaderFieldStat.h \
3009 HttpHdrScTarget.cc \
3019 tests/stub_errorpage.cc \
3020 tests/stub_HttpRequest.cc \
3022 tests/stub_access_log.cc \
3025 tests/stub_store_client.cc \
3027 tests/stub_tools.cc \
3028 tests/testStoreSupport.cc \
3029 tests/testStoreSupport.h \
3034 nodist_tests_testUfs_SOURCES = \
3039 tests_testUfs_LDADD = \
3041 parser/libparser.la \
3053 DiskIO/libdiskio.la \
3064 $(ADAPTATION_LIBS) \
3066 $(top_builddir)/lib/libmisccontainers.la \
3067 $(top_builddir)/lib/libmiscencoding.la \
3068 $(top_builddir)/lib/libmiscutil.la \
3072 $(LIBCPPUNIT_LIBS) \
3075 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3076 tests_testUfs_DEPENDENCIES = \
3079 check_PROGRAMS += testRefCount
3080 testRefCount_SOURCES= \
3083 tests/stub_cbdata.cc \
3084 tests/stub_debug.cc \
3085 tests/stub_libmem.cc \
3086 tests/stub_MemBuf.cc \
3087 tests/testRefCount.cc
3088 testRefCount_LDADD = \
3090 $(top_builddir)/lib/libmiscutil.la \
3094 tests_testRock_SOURCES = \
3099 CollapsedForwarding.h \
3100 CollapsedForwarding.cc \
3101 tests/stub_CacheDigest.cc \
3117 HttpHeaderFieldStat.h \
3121 HttpHdrContRange.cc \
3124 HttpHdrScTarget.cc \
3127 HttpHeaderFieldInfo.h \
3129 HttpHeaderTools.cc \
3148 tests/stub_StatHist.cc \
3151 tests/stub_stat.cc \
3153 StoreFileSystem.cc \
3155 StoreMetaUnpacker.cc \
3156 $(STOREMETA_SOURCE) \
3157 StoreSwapLogData.cc \
3163 tests/stub_SBufDetailedStats.cc \
3171 tests/testStoreSupport.cc \
3172 tests/testStoreSupport.h \
3174 tests/stub_access_log.cc \
3176 tests/stub_cache_cf.cc \
3178 tests/stub_cache_manager.cc \
3179 tests/stub_client_db.cc \
3180 tests/stub_client_side_request.cc \
3181 tests/stub_debug.cc \
3182 tests/stub_errorpage.cc \
3183 tests/stub_HelperChildConfig.cc \
3184 tests/stub_http.cc \
3185 tests/stub_HttpRequest.cc \
3186 tests/stub_libauth.cc \
3189 tests/stub_ipcache.cc \
3190 tests/stub_libeui.cc \
3191 tests/stub_libformat.cc \
3192 tests/stub_libicmp.cc \
3193 tests/stub_liblog.cc \
3194 tests/stub_libmgr.cc \
3195 tests/stub_libsecurity.cc \
3196 tests/stub_MemStore.cc \
3198 tests/stub_mime.cc \
3199 tests/stub_neighbors.cc \
3200 tests/stub_Port.cc \
3201 tests/stub_pconn.cc \
3202 tests/stub_store_client.cc \
3204 tests/stub_store_rebuild.cc \
3205 tests/stub_store_stats.cc \
3207 tests/stub_tools.cc \
3212 $(DELAY_POOL_SOURCE) \
3214 nodist_tests_testRock_SOURCES = \
3219 tests_testRock_LDADD = \
3221 parser/libparser.la \
3228 DiskIO/libdiskio.la \
3239 $(ADAPTATION_LIBS) \
3241 $(top_builddir)/lib/libmisccontainers.la \
3242 $(top_builddir)/lib/libmiscencoding.la \
3243 $(top_builddir)/lib/libmiscutil.la \
3247 $(LIBCPPUNIT_LIBS) \
3250 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3251 tests_testRock_DEPENDENCIES = \
3254 ## Tests of the URL module.
3255 ## TODO: Trim this down once the insanity is over.
3256 tests_testURL_SOURCES = \
3263 tests/stub_cache_manager.cc \
3265 tests/stub_CacheDigest.cc \
3269 tests/stub_carp.cc \
3275 client_side_reply.cc \
3276 client_side_request.cc \
3279 tests/stub_CollapsedForwarding.cc \
3286 $(DELAY_POOL_SOURCE) \
3296 ExternalACLEntry.cc \
3298 tests/stub_fatal.cc \
3316 tests/stub_HttpControlMsg.cc \
3317 HttpHeaderFieldStat.h \
3321 HttpHdrContRange.cc \
3324 HttpHdrScTarget.cc \
3327 HttpHeaderFieldInfo.h \
3329 HttpHeaderTools.cc \
3345 tests/stub_libeui.cc \
3365 peer_proxy_negotiate_auth.h \
3366 peer_proxy_negotiate_auth.cc \
3369 peer_sourcehash.cc \
3375 tests/stub_redirect.cc \
3379 tests/stub_SBufDetailedStats.cc \
3389 tests/stub_StatHist.cc \
3395 tests/stub_store_digest.cc \
3407 StoreFileSystem.cc \
3409 tests/stub_StoreMeta.cc \
3410 StoreMetaUnpacker.cc \
3411 StoreSwapLogData.cc \
3416 tests/stub_SwapDir.cc \
3418 tests/stub_debug.cc \
3419 tests/stub_libauth_acls.cc \
3420 tests/stub_libauth.cc \
3421 tests/stub_libdiskio.cc \
3422 tests/stub_libmem.cc \
3423 tests/stub_libsecurity.cc \
3424 tests/stub_main_cc.cc \
3425 tests/stub_ipc_Forwarder.cc \
3426 tests/stub_store_stats.cc \
3429 tests/testUriScheme.cc \
3430 tests/testUriScheme.h \
3431 tests/stub_time.cc \
3432 tests/stub_EventLoop.cc \
3435 tests/stub_tunnel.cc \
3440 tests/stub_wccp2.cc \
3442 tests/stub_whois.cc \
3447 nodist_tests_testURL_SOURCES = \
3449 tests_testURL_LDADD = \
3451 clients/libclients.la \
3452 servers/libservers.la \
3453 helper/libhelper.la \
3456 parser/libparser.la \
3474 format/libformat.la \
3479 $(ADAPTATION_LIBS) \
3481 $(top_builddir)/lib/libmisccontainers.la \
3482 $(top_builddir)/lib/libmiscencoding.la \
3483 $(top_builddir)/lib/libmiscutil.la \
3487 $(LIBCPPUNIT_LIBS) \
3490 tests_testURL_LDFLAGS = $(LIBADD_DL)
3492 tests_testSBuf_SOURCES= \
3495 tests/SBufFindTest.h \
3496 tests/SBufFindTest.cc \
3497 tests/stub_SBufDetailedStats.cc \
3498 tests/stub_time.cc \
3499 tests/stub_debug.cc \
3500 tests/stub_fatal.cc \
3501 tests/stub_libmem.cc
3502 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3503 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3504 tests_testSBuf_LDADD= \
3507 $(LIBCPPUNIT_LIBS) \
3511 tests_testSBufList_SOURCES= \
3512 tests/testSBufList.h \
3513 tests/testSBufList.cc \
3514 tests/stub_SBufDetailedStats.cc \
3515 tests/stub_time.cc \
3516 tests/stub_debug.cc \
3517 tests/stub_fatal.cc \
3518 tests/stub_libmem.cc
3519 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3520 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3521 tests_testSBufList_LDADD=\
3524 $(LIBCPPUNIT_LIBS) \
3528 tests_testConfigParser_SOURCES = \
3530 tests/stub_MemBuf.cc \
3531 tests/stub_time.cc \
3532 tests/stub_SBufDetailedStats.cc \
3536 tests/stub_fatal.cc \
3537 tests/testConfigParser.cc \
3538 tests/testConfigParser.h \
3540 tests/stub_cache_cf.cc \
3541 tests/stub_cbdata.cc \
3542 tests/stub_debug.cc \
3543 tests/stub_libmem.cc \
3544 tests/stub_HelperChildConfig.cc \
3546 tests/stub_tools.cc \
3549 nodist_tests_testConfigParser_SOURCES = \
3551 tests_testConfigParser_LDADD = \
3556 $(top_builddir)/lib/libmiscutil.la \
3559 $(LIBCPPUNIT_LIBS) \
3562 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3564 tests_testStatHist_SOURCES = \
3565 tests/stub_cbdata.cc \
3567 tests/stub_fatal.cc \
3568 tests/stub_MemBuf.cc \
3569 tests/stub_SBufDetailedStats.cc \
3573 tests/stub_cache_manager.cc \
3574 tests/stub_comm.cc \
3575 tests/stub_debug.cc \
3576 tests/stub_DelayId.cc \
3577 tests/stub_HelperChildConfig.cc \
3578 tests/stub_libmem.cc \
3579 tests/stub_MemObject.cc \
3581 tests/stub_mime.cc \
3582 tests/stub_pconn.cc \
3583 tests/stub_stmem.cc \
3585 tests/stub_store.cc \
3586 tests/stub_store_stats.cc \
3589 tests/stub_tools.cc \
3590 tests/testStatHist.cc \
3591 tests/testStatHist.h
3592 nodist_tests_testStatHist_SOURCES = \
3594 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3595 tests_testStatHist_LDADD = \
3598 $(top_builddir)/lib/libmiscutil.la \
3599 $(top_builddir)/lib/libmisccontainers.la \
3600 $(LIBCPPUNIT_LIBS) \
3603 tests_testLookupTable_SOURCES = \
3604 tests/testLookupTable.h \
3605 tests/testLookupTable.cc \
3606 tests/stub_debug.cc \
3607 tests/stub_libmem.cc \
3608 tests/stub_SBufDetailedStats.cc \
3610 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3611 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3612 tests_testLookupTable_LDADD = \
3615 $(LIBCPPUNIT_LIBS) \
3619 tests_testEnumIterator_SOURCES = \
3620 base/EnumIterator.h \
3621 tests/stub_debug.cc \
3622 tests/stub_libmem.cc \
3623 tests/testEnumIterator.h \
3624 tests/testEnumIterator.cc
3625 nodist_tests_testEnumIterator_SOURCES = \
3627 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3628 tests_testEnumIterator_LDADD = \
3630 $(LIBCPPUNIT_LIBS) \
3634 tests_testYesNoNone_SOURCES = \
3635 tests/testYesNoNone.cc \
3636 tests/testYesNoNone.h
3637 nodist_tests_testYesNoNone_SOURCES = \
3639 tests/stub_debug.cc \
3640 tests/stub_libmem.cc \
3642 tests_testYesNoNone_LDADD= \
3644 $(LIBCPPUNIT_LIBS) \
3647 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3649 tests_testMem_SOURCES = \
3652 nodist_tests_testMem_SOURCES = \
3653 tests/stub_debug.cc \
3654 tests/stub_time.cc \
3656 tests_testMem_LDADD= \
3659 $(top_builddir)/lib/libmiscutil.la \
3660 $(LIBCPPUNIT_LIBS) \
3663 tests_testMem_LDFLAGS = $(LIBADD_DL)
3665 TESTS += testHeaders
3667 ## Special Universal .h dependency test script
3668 ## aborts if error encountered
3669 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3670 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3671 ## src/repl/ has no .h files and its own makefile.
3673 CLEANFILES += testHeaders