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.
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 \
885 tests/testConfigParser \
887 tests/testLookupTable \
891 check_PROGRAMS += tests/testRock
894 check_PROGRAMS += tests/testUfs
897 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
898 TESTS += $(check_PROGRAMS)
900 ### Template for new Unit Test Program
901 ## - add tests/testX to check_PROGRAMS above.
902 ## - copy template below and substitue X for class name
903 ## - add other component .(h|cc) files needed to link and run tests
905 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
907 #tests_testX_SOURCES=\
912 #nodist_tests_testX_SOURCES=\
913 # tests/stubs_as_needed.cc\
915 #tests_testX_LDFLAGS = $(LIBADD_DL)
917 # $(LIBCPPUNIT_LIBS) \
921 # - add other component .(h|cc) files needed to link and run tests
922 tests_testHttpReply_SOURCES=\
928 tests/stub_fatal.cc \
931 HttpHeaderFieldStat.h \
935 HttpHdrContRange.cc \
945 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 \
1001 nodist_tests_testHttpReply_SOURCES=\
1003 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1004 tests_testHttpReply_LDADD=\
1007 parser/libparser.la \
1017 $(top_builddir)/lib/libmisccontainers.la \
1018 $(top_builddir)/lib/libmiscencoding.la \
1019 $(top_builddir)/lib/libmiscutil.la \
1022 $(LIBCPPUNIT_LIBS) \
1026 tests_testACLMaxUserIP_SOURCES= \
1029 tests/stub_CollapsedForwarding.cc \
1032 tests/stub_ETag.cc \
1035 tests/stub_fatal.cc \
1041 HttpHeaderFieldInfo.h \
1043 HttpHeaderTools.cc \
1044 HttpHdrContRange.cc \
1046 HttpHeaderFieldStat.h \
1051 HttpHdrScTarget.cc \
1061 tests/stub_libsecurity.cc \
1068 tests/stub_StatHist.cc \
1070 tests/stub_SBufDetailedStats.cc \
1073 tests/stub_StoreMeta.cc \
1074 StoreMetaUnpacker.cc \
1075 StoreSwapLogData.cc \
1080 tests/stub_SwapDir.cc \
1083 tests/stub_access_log.cc \
1085 tests/stub_cache_cf.cc \
1086 tests/stub_client_side.cc \
1087 tests/stub_debug.cc \
1088 tests/stub_DelayId.cc \
1089 tests/stub_errorpage.cc \
1092 tests/stub_HttpRequest.cc \
1093 tests/stub_HttpReply.cc \
1094 tests/stub_ipc_TypedMsgHdr.cc \
1095 tests/stub_libauth.cc \
1096 tests/stub_libcomm.cc \
1097 tests/stub_libdiskio.cc \
1098 tests/stub_libformat.cc \
1099 tests/stub_libmem.cc \
1100 tests/stub_libsslsquid.cc \
1101 tests/stub_MemObject.cc \
1102 tests/stub_MemStore.cc \
1104 tests/stub_mime.cc \
1105 tests/stub_pconn.cc \
1106 tests/stub_Port.cc \
1108 tests/stub_store.cc \
1109 tests/stub_store_client.cc \
1111 tests/stub_store_rebuild.cc \
1112 tests/stub_store_stats.cc \
1113 tests/stub_store_swapout.cc \
1115 tests/stub_tools.cc \
1116 tests/stub_cache_manager.cc \
1117 tests/stub_UdsOp.cc \
1118 tests/testACLMaxUserIP.cc \
1119 tests/testACLMaxUserIP.h \
1120 tests/stub_time.cc \
1126 nodist_tests_testACLMaxUserIP_SOURCES= \
1128 tests_testACLMaxUserIP_LDADD= \
1130 helper/libhelper.la \
1132 parser/libparser.la \
1145 $(top_builddir)/lib/libmisccontainers.la \
1146 $(top_builddir)/lib/libmiscencoding.la \
1147 $(top_builddir)/lib/libmiscutil.la \
1151 $(LIBCPPUNIT_LIBS) \
1154 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1156 ## a demonstration test that does nothing but shows the salient points
1157 ## involved in writing tests.
1158 tests_testBoilerplate_SOURCES = \
1159 tests/testBoilerplate.cc \
1160 tests/testBoilerplate.h \
1161 tests/stub_debug.cc \
1162 tests/stub_libmem.cc \
1164 nodist_tests_testBoilerplate_SOURCES = \
1165 tests/stub_cbdata.cc \
1166 tests/stub_MemBuf.cc \
1168 tests_testBoilerplate_LDADD= \
1171 $(LIBCPPUNIT_LIBS) \
1174 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1176 ## Tests of base/libbase.la objects
1177 tests_testCharacterSet_SOURCES = \
1178 tests/testCharacterSet.cc \
1179 tests/testCharacterSet.h
1180 nodist_tests_testCharacterSet_SOURCES = \
1181 base/CharacterSet.h \
1183 tests/stub_cbdata.cc \
1184 tests/stub_debug.cc \
1185 tests/stub_libmem.cc \
1186 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 \
1277 HttpHdrContRange.cc \
1280 HttpHdrScTarget.cc \
1292 tests/stub_libsecurity.cc \
1311 peer_proxy_negotiate_auth.h \
1312 peer_proxy_negotiate_auth.cc \
1315 peer_sourcehash.cc \
1323 tests/stub_redirect.cc \
1327 tests/stub_SBufDetailedStats.cc \
1339 tests/stub_libauth_acls.cc \
1340 tests/stub_libauth.cc \
1341 tests/stub_libdiskio.cc \
1342 tests/stub_StatHist.cc \
1348 tests/stub_store_digest.cc \
1360 StoreFileSystem.cc \
1362 tests/stub_StoreMeta.cc \
1363 StoreMetaUnpacker.cc \
1364 StoreSwapLogData.cc \
1368 tests/stub_tunnel.cc \
1369 tests/stub_SwapDir.cc \
1376 tests/stub_wccp2.cc \
1378 tests/stub_whois.cc \
1383 nodist_tests_testCacheManager_SOURCES = \
1385 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1386 tests_testCacheManager_LDADD = \
1388 clients/libclients.la \
1389 servers/libservers.la \
1391 helper/libhelper.la \
1393 parser/libparser.la \
1406 format/libformat.la \
1408 $(ADAPTATION_LIBS) \
1418 $(top_builddir)/lib/libmisccontainers.la \
1419 $(top_builddir)/lib/libmiscencoding.la \
1420 $(top_builddir)/lib/libmiscutil.la \
1425 $(LIBCPPUNIT_LIBS) \
1428 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1430 tests_testDiskIO_SOURCES = \
1434 tests/stub_CacheDigest.cc \
1438 tests/stub_CollapsedForwarding.cc \
1441 $(DELAY_POOL_SOURCE) \
1444 tests/stub_ETag.cc \
1448 tests/stub_fatal.cc \
1457 HttpHeaderFieldStat.h \
1461 HttpHdrContRange.cc \
1463 HttpHdrScTarget.cc \
1465 HttpHeaderFieldInfo.h \
1467 HttpHeaderTools.cc \
1487 tests/stub_libsecurity.cc \
1491 tests/stub_StatHist.cc \
1493 tests/stub_SBufDetailedStats.cc \
1494 StoreFileSystem.cc \
1496 tests/stub_StoreMeta.cc \
1497 StoreMetaUnpacker.cc \
1498 StoreSwapLogData.cc \
1509 tests/stub_SwapDir.cc \
1512 tests/stub_access_log.cc \
1515 tests/stub_cache_cf.cc \
1516 tests/stub_cache_manager.cc \
1517 tests/stub_client_db.cc \
1518 client_side_request.h \
1519 tests/stub_client_side_request.cc \
1520 tests/stub_debug.cc \
1521 tests/stub_errorpage.cc \
1522 tests/stub_helper.cc \
1523 tests/stub_HelperChildConfig.cc \
1524 tests/stub_HttpRequest.cc \
1525 tests/stub_http.cc \
1528 tests/stub_internal.cc \
1530 tests/stub_ipcache.cc \
1531 tests/stub_libauth_acls.cc \
1532 tests/stub_libauth.cc \
1533 tests/stub_libeui.cc \
1534 tests/stub_libformat.cc \
1535 tests/stub_libicmp.cc \
1536 tests/stub_liblog.cc \
1537 tests/stub_MemStore.cc \
1539 tests/stub_mime.cc \
1540 tests/stub_neighbors.cc \
1541 tests/stub_pconn.cc \
1542 tests/stub_Port.cc \
1543 tests/stub_stat.cc \
1544 tests/stub_store_client.cc \
1545 tests/stub_store_stats.cc \
1547 tests/stub_store_rebuild.cc \
1548 tests/stub_UdsOp.cc \
1549 tests/testDiskIO.cc \
1550 tests/testDiskIO.h \
1551 tests/testStoreSupport.cc \
1552 tests/testStoreSupport.h \
1553 tests/stub_time.cc \
1561 nodist_tests_testDiskIO_SOURCES= \
1566 tests_testDiskIO_LDADD = \
1569 parser/libparser.la \
1580 $(ADAPTATION_LIBS) \
1581 DiskIO/libdiskio.la \
1592 $(top_builddir)/lib/libmisccontainers.la \
1593 $(top_builddir)/lib/libmiscencoding.la \
1594 $(top_builddir)/lib/libmiscutil.la \
1598 $(LIBCPPUNIT_LIBS) \
1601 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1602 tests_testDiskIO_DEPENDENCIES = \
1603 DiskIO/libdiskio.la \
1606 tests_testDns_SOURCES= \
1607 tests/testRFC1035.cc \
1609 nodist_tests_testDns_SOURCES= \
1610 tests/stub_debug.cc \
1611 tests/stub_libmem.cc \
1612 tests/stub_SBuf.cc \
1614 tests_testDns_LDADD= \
1617 $(top_builddir)/lib/libmiscutil.la \
1618 $(LIBCPPUNIT_LIBS) \
1621 tests_testDns_LDFLAGS= $(LIBADD_DL)
1623 tests_testEvent_SOURCES = \
1627 tests/stub_CacheDigest.cc \
1636 tests/stub_carp.cc \
1642 client_side_reply.cc \
1643 client_side_request.cc \
1646 tests/stub_CollapsedForwarding.cc \
1654 $(DELAY_POOL_SOURCE) \
1661 tests/stub_ETag.cc \
1666 ExternalACLEntry.cc \
1669 tests/stub_fatal.cc \
1687 tests/stub_HttpControlMsg.cc \
1690 HttpHeaderFieldInfo.h \
1692 HttpHeaderTools.cc \
1693 HttpHeaderFieldStat.h \
1697 HttpHdrContRange.cc \
1700 HttpHdrScTarget.cc \
1717 tests/stub_libsecurity.cc \
1720 tests/stub_libmem.cc \
1737 peer_proxy_negotiate_auth.h \
1738 peer_proxy_negotiate_auth.cc \
1741 peer_sourcehash.cc \
1747 tests/stub_redirect.cc \
1753 tests/stub_SBufDetailedStats.cc \
1769 tests/stub_store_digest.cc \
1781 StoreFileSystem.cc \
1783 tests/stub_StoreMeta.cc \
1784 StoreMetaUnpacker.cc \
1785 StoreSwapLogData.cc \
1787 tests/stub_SwapDir.cc \
1788 tests/CapturingStoreEntry.h \
1789 tests/testEvent.cc \
1791 tests/stub_main_cc.cc \
1792 tests/stub_ipc_Forwarder.cc \
1793 tests/stub_libauth_acls.cc \
1794 tests/stub_libauth.cc \
1795 tests/stub_libdiskio.cc \
1796 tests/stub_libeui.cc \
1797 tests/stub_store_stats.cc \
1802 tests/stub_tunnel.cc \
1809 tests/stub_wccp2.cc \
1811 tests/stub_whois.cc \
1815 nodist_tests_testEvent_SOURCES = \
1817 tests_testEvent_LDADD = \
1819 clients/libclients.la \
1820 servers/libservers.la \
1822 helper/libhelper.la \
1824 parser/libparser.la \
1837 format/libformat.la \
1839 $(ADAPTATION_LIBS) \
1842 $(top_builddir)/lib/libmisccontainers.la \
1843 $(top_builddir)/lib/libmiscencoding.la \
1844 $(top_builddir)/lib/libmiscutil.la \
1854 $(LIBCPPUNIT_LIBS) \
1857 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1859 ## Tests of the EventLoop module.
1860 tests_testEventLoop_SOURCES = \
1864 tests/stub_CacheDigest.cc \
1873 tests/stub_carp.cc \
1879 client_side_reply.cc \
1880 client_side_request.cc \
1883 tests/stub_CollapsedForwarding.cc \
1891 $(DELAY_POOL_SOURCE) \
1898 tests/stub_ETag.cc \
1903 ExternalACLEntry.cc \
1906 tests/stub_fatal.cc \
1924 tests/stub_HttpControlMsg.cc \
1927 HttpHeaderFieldInfo.h \
1929 HttpHeaderTools.cc \
1930 HttpHeaderFieldStat.h \
1934 HttpHdrContRange.cc \
1937 HttpHdrScTarget.cc \
1958 tests/stub_libmem.cc \
1973 peer_proxy_negotiate_auth.h \
1974 peer_proxy_negotiate_auth.cc \
1977 peer_sourcehash.cc \
1984 tests/stub_redirect.cc \
1987 tests/stub_SBufDetailedStats.cc \
2003 tests/stub_store_digest.cc \
2015 StoreFileSystem.cc \
2017 tests/stub_StoreMeta.cc \
2018 StoreMetaUnpacker.cc \
2019 StoreSwapLogData.cc \
2023 tests/stub_SwapDir.cc \
2024 tests/testEventLoop.cc \
2025 tests/testEventLoop.h \
2026 tests/stub_main_cc.cc \
2027 tests/stub_ipc_Forwarder.cc \
2028 tests/stub_libauth_acls.cc \
2029 tests/stub_libauth.cc \
2030 tests/stub_libdiskio.cc \
2031 tests/stub_libeui.cc \
2032 tests/stub_libsecurity.cc \
2033 tests/stub_store_stats.cc \
2038 tests/stub_tunnel.cc \
2045 tests/stub_wccp2.cc \
2047 tests/stub_whois.cc \
2051 nodist_tests_testEventLoop_SOURCES = \
2053 tests_testEventLoop_LDADD = \
2055 clients/libclients.la \
2056 servers/libservers.la \
2058 helper/libhelper.la \
2060 parser/libparser.la \
2073 format/libformat.la \
2075 $(ADAPTATION_LIBS) \
2078 $(top_builddir)/lib/libmisccontainers.la \
2079 $(top_builddir)/lib/libmiscencoding.la \
2080 $(top_builddir)/lib/libmiscutil.la \
2090 $(LIBCPPUNIT_LIBS) \
2093 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2095 tests_test_http_range_SOURCES = \
2106 tests/stub_CacheDigest.cc \
2108 tests/stub_carp.cc \
2114 client_side_reply.cc \
2115 client_side_request.cc \
2118 tests/stub_CollapsedForwarding.cc \
2126 $(DELAY_POOL_SOURCE) \
2133 tests/stub_ETag.cc \
2137 tests/stub_libauth.cc \
2138 tests/stub_fatal.cc \
2156 tests/stub_HttpControlMsg.cc \
2157 HttpHeaderFieldStat.h \
2161 HttpHdrContRange.cc \
2164 HttpHdrScTarget.cc \
2167 HttpHeaderFieldInfo.h \
2169 HttpHeaderTools.cc \
2190 tests/stub_libmem.cc \
2204 peer_proxy_negotiate_auth.h \
2205 peer_proxy_negotiate_auth.cc \
2208 peer_sourcehash.cc \
2215 tests/stub_redirect.cc \
2219 tests/stub_SBufDetailedStats.cc \
2235 tests/stub_store_digest.cc \
2247 StoreFileSystem.cc \
2249 tests/stub_StoreMeta.cc \
2250 StoreMetaUnpacker.cc \
2251 StoreSwapLogData.cc \
2255 tests/stub_SwapDir.cc \
2257 tests/test_http_range.cc \
2258 tests/stub_external_acl.cc \
2259 tests/stub_ipc_Forwarder.cc \
2260 tests/stub_libdiskio.cc \
2261 tests/stub_libeui.cc \
2262 tests/stub_libsecurity.cc \
2263 tests/stub_main_cc.cc \
2264 tests/stub_MemStore.cc \
2265 tests/stub_store_stats.cc \
2266 tests/stub_EventLoop.cc \
2270 tests/stub_tunnel.cc \
2276 tests/stub_wccp2.cc \
2278 tests/stub_whois.cc \
2282 nodist_tests_test_http_range_SOURCES = \
2284 tests_test_http_range_LDADD = \
2286 clients/libclients.la \
2287 servers/libservers.la \
2289 helper/libhelper.la \
2291 parser/libparser.la \
2296 parser/libparser.la \
2303 format/libformat.la \
2305 $(ADAPTATION_LIBS) \
2315 $(top_builddir)/lib/libmisccontainers.la \
2316 $(top_builddir)/lib/libmiscencoding.la \
2317 $(top_builddir)/lib/libmiscutil.la \
2322 $(LIBCPPUNIT_LIBS) \
2325 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2327 ## Tests of parser/* objects
2328 tests_testTokenizer_SOURCES = \
2329 tests/testTokenizer.h \
2330 tests/testTokenizer.cc
2331 nodist_tests_testTokenizer_SOURCES = \
2332 parser/Tokenizer.h \
2336 tests/stub_debug.cc \
2337 tests/stub_libmem.cc \
2338 tests/stub_time.cc \
2339 tests/stub_SBufDetailedStats.cc
2340 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2341 tests_testTokenizer_LDADD = \
2342 parser/libparser.la \
2345 $(top_builddir)/lib/libmiscutil.la \
2346 $(LIBCPPUNIT_LIBS) \
2350 tests_testHttp1Parser_SOURCES = \
2354 tests/stub_MemObject.cc \
2359 tests/stub_SBufDetailedStats.cc \
2360 tests/stub_cache_cf.cc \
2361 tests/stub_cache_manager.cc \
2362 tests/stub_comm.cc \
2363 tests/stub_cbdata.cc \
2364 tests/stub_debug.cc \
2365 tests/stub_event.cc \
2366 tests/stub_HelperChildConfig.cc \
2367 tests/stub_libmem.cc \
2368 tests/stub_libsecurity.cc \
2369 tests/stub_stmem.cc \
2370 tests/stub_store.cc \
2371 tests/stub_store_stats.cc \
2373 tests/stub_tools.cc \
2374 tests/testHttp1Parser.cc \
2375 tests/testHttp1Parser.h \
2376 tests/stub_time.cc \
2379 nodist_tests_testHttp1Parser_SOURCES = \
2381 tests_testHttp1Parser_LDADD= \
2383 parser/libparser.la \
2389 $(top_builddir)/lib/libmiscutil.la \
2391 $(LIBCPPUNIT_LIBS) \
2394 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2396 ## Tests of the HttpRequest module.
2397 tests_testHttpRequest_SOURCES = \
2402 tests/stub_libmem.cc \
2404 tests/testHttpRequest.h \
2405 tests/testHttpRequest.cc \
2406 tests/testHttpRequestMethod.h \
2407 tests/testHttpRequestMethod.cc \
2408 tests/stub_libauth.cc \
2409 tests/stub_main_cc.cc \
2410 tests/stub_ipc_Forwarder.cc \
2411 tests/stub_libdiskio.cc \
2412 tests/stub_libeui.cc \
2413 tests/stub_store_stats.cc \
2414 tests/stub_EventLoop.cc \
2424 tests/stub_CacheDigest.cc \
2428 tests/stub_carp.cc \
2434 client_side_reply.cc \
2435 client_side_request.cc \
2438 tests/stub_CollapsedForwarding.cc \
2445 $(DELAY_POOL_SOURCE) \
2452 tests/stub_ETag.cc \
2454 ExternalACLEntry.cc \
2456 tests/stub_fatal.cc \
2472 tests/stub_HttpControlMsg.cc \
2475 HttpHeaderFieldInfo.h \
2477 HttpHeaderTools.cc \
2478 HttpHeaderFieldStat.h \
2482 HttpHdrContRange.cc \
2485 HttpHdrScTarget.cc \
2497 tests/stub_libsecurity.cc \
2516 peer_proxy_negotiate_auth.h \
2517 peer_proxy_negotiate_auth.cc \
2520 peer_sourcehash.cc \
2528 tests/stub_libauth_acls.cc \
2529 tests/stub_redirect.cc \
2533 tests/stub_SBufDetailedStats.cc \
2549 tests/stub_store_digest.cc \
2561 StoreFileSystem.cc \
2563 tests/stub_StoreMeta.cc \
2564 StoreMetaUnpacker.cc \
2565 StoreSwapLogData.cc \
2572 tests/stub_tunnel.cc \
2573 tests/stub_SwapDir.cc \
2579 tests/stub_wccp2.cc \
2581 tests/stub_whois.cc \
2586 nodist_tests_testHttpRequest_SOURCES = \
2588 tests_testHttpRequest_LDADD = \
2590 clients/libclients.la \
2591 servers/libservers.la \
2592 helper/libhelper.la \
2599 parser/libparser.la \
2604 parser/libparser.la \
2613 format/libformat.la \
2617 $(ADAPTATION_LIBS) \
2619 $(top_builddir)/lib/libmisccontainers.la \
2620 $(top_builddir)/lib/libmiscencoding.la \
2621 $(top_builddir)/lib/libmiscutil.la \
2626 $(LIBCPPUNIT_LIBS) \
2629 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2631 ## Tests for icmp/* objects
2632 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2633 tests_testIcmp_SOURCES = \
2636 nodist_tests_testIcmp_SOURCES = \
2639 tests/stub_debug.cc \
2640 tests/stub_libmem.cc \
2643 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2644 tests_testIcmp_LDADD=\
2645 icmp/libicmpcore.la \
2648 $(LIBCPPUNIT_LIBS) \
2652 tests_testNetDb_SOURCES = \
2653 tests/testNetDb.cc \
2655 nodist_tests_testNetDb_SOURCES = \
2657 tests/stub_debug.cc \
2658 tests/stub_libmem.cc \
2661 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2662 tests_testNetDb_LDADD = \
2666 $(top_builddir)/lib/libmisccontainers.la \
2667 $(LIBCPPUNIT_LIBS) \
2671 ## Tests for ip/* objects
2672 tests_testIpAddress_SOURCES= \
2673 tests/testAddress.cc \
2675 nodist_tests_testIpAddress_SOURCES= \
2677 tests/stub_debug.cc \
2678 tests/stub_libmem.cc \
2680 tests_testIpAddress_LDADD= \
2683 $(LIBCPPUNIT_LIBS) \
2686 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2688 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2689 ## first line - what we are testing.
2690 tests_testStore_SOURCES= \
2692 tests/stub_CacheDigest.cc \
2695 tests/stub_CollapsedForwarding.cc \
2698 $(DELAY_POOL_SOURCE) \
2705 tests/stub_fatal.cc \
2708 HttpHeaderFieldStat.h \
2712 HttpHdrContRange.cc \
2715 HttpHdrScTarget.cc \
2716 HttpHeaderFieldInfo.h \
2718 HttpHeaderTools.cc \
2747 tests/stub_StoreMeta.cc \
2748 StoreMetaUnpacker.cc \
2749 StoreSwapLogData.cc \
2752 tests/stub_SBufDetailedStats.cc \
2756 tests/CapturingStoreEntry.h \
2758 tests/stub_access_log.cc \
2761 tests/stub_cache_cf.cc \
2762 tests/stub_cache_manager.cc \
2763 tests/stub_client_side_request.cc \
2764 tests/stub_comm.cc \
2765 tests/stub_debug.cc \
2766 tests/stub_errorpage.cc \
2770 tests/stub_helper.cc \
2771 tests/stub_HelperChildConfig.cc \
2772 tests/stub_http.cc \
2773 tests/stub_libauth.cc \
2774 tests/stub_libeui.cc \
2775 tests/stub_libdiskio.cc \
2776 tests/stub_libformat.cc \
2777 tests/stub_libsecurity.cc \
2778 tests/stub_libsslsquid.cc \
2781 tests/stub_HttpReply.cc \
2782 tests/stub_HttpRequest.cc \
2783 tests/stub_libcomm.cc \
2784 tests/stub_MemStore.cc \
2786 tests/stub_mime.cc \
2787 tests/stub_Port.cc \
2788 tests/stub_stat.cc \
2789 tests/stub_store_client.cc \
2790 tests/stub_store_stats.cc \
2792 tests/stub_store_rebuild.cc \
2793 tests/stub_store_swapout.cc \
2796 tests/stub_tools.cc \
2797 tests/stub_UdsOp.cc \
2798 tests/testPackableStream.cc \
2799 tests/testPackableStream.h \
2800 tests/testStore.cc \
2802 tests/testStoreController.cc \
2803 tests/testStoreController.h \
2804 tests/testStoreHashIndex.cc \
2805 tests/testStoreHashIndex.h \
2806 tests/testStoreSupport.cc \
2807 tests/testStoreSupport.h \
2808 tests/TestSwapDir.cc \
2809 tests/TestSwapDir.h \
2810 tests/stub_time.cc \
2815 nodist_tests_testStore_SOURCES= \
2821 tests_testStore_LDADD= \
2824 parser/libparser.la \
2839 DiskIO/libdiskio.la \
2840 $(top_builddir)/lib/libmisccontainers.la \
2841 $(top_builddir)/lib/libmiscencoding.la \
2842 $(top_builddir)/lib/libmiscutil.la \
2847 $(LIBCPPUNIT_LIBS) \
2850 tests_testStore_LDFLAGS = $(LIBADD_DL)
2852 ## string needs mem.cc.
2853 ## mem.cc needs ClientInfo.h
2854 ## libsquid pulls in SquidConfig and children. stub them.
2855 tests_testString_SOURCES = \
2859 tests/stub_SBufDetailedStats.cc \
2860 tests/testString.cc \
2861 tests/testString.h \
2863 tests/stub_cache_cf.cc \
2864 tests/stub_cache_manager.cc \
2865 tests/stub_cbdata.cc \
2866 tests/stub_debug.cc \
2867 tests/stub_HelperChildConfig.cc \
2868 tests/stub_libmem.cc \
2870 tests/stub_tools.cc \
2871 tests/stub_time.cc \
2874 nodist_tests_testString_SOURCES = \
2876 tests_testString_LDADD = \
2881 $(top_builddir)/lib/libmiscutil.la \
2884 $(LIBCPPUNIT_LIBS) \
2887 tests_testString_LDFLAGS = $(LIBADD_DL)
2899 DiskIO/libdiskio.la \
2904 tests_testUfs_SOURCES = \
2909 tests/stub_cache_manager.cc \
2910 tests/stub_client_db.cc \
2911 tests/stub_CollapsedForwarding.cc \
2912 tests/stub_HelperChildConfig.cc \
2915 tests/stub_ipcache.cc \
2916 tests/stub_libeui.cc \
2917 tests/stub_libicmp.cc \
2918 tests/stub_liblog.cc \
2919 tests/stub_MemStore.cc \
2920 tests/stub_neighbors.cc \
2921 tests/stub_pconn.cc \
2922 tests/stub_Port.cc \
2923 tests/stub_UdsOp.cc \
2925 tests/stub_internal.cc \
2926 tests/stub_libformat.cc \
2927 tests/stub_libsecurity.cc \
2928 tests/stub_stat.cc \
2930 tests/stub_store_rebuild.cc \
2931 tests/stub_store_stats.cc \
2933 tests/stub_fatal.cc \
2956 StoreSwapLogData.cc \
2958 StoreMetaUnpacker.cc \
2959 $(STOREMETA_SOURCE) \
2960 StoreFileSystem.cc \
2967 $(DELAY_POOL_SOURCE) \
2969 tests/stub_CacheDigest.cc \
2982 tests/stub_cache_cf.cc \
2983 tests/stub_helper.cc \
2985 tests/stub_SBufDetailedStats.cc \
2987 tests/stub_debug.cc \
2988 tests/stub_client_side_request.cc \
2989 tests/stub_http.cc \
2990 tests/stub_libauth.cc \
2994 tests/stub_mime.cc \
2995 HttpHeaderFieldInfo.h \
2997 HttpHeaderTools.cc \
3002 HttpHdrContRange.cc \
3003 HttpHeaderFieldStat.h \
3008 HttpHdrScTarget.cc \
3018 tests/stub_errorpage.cc \
3019 tests/stub_HttpRequest.cc \
3021 tests/stub_access_log.cc \
3024 tests/stub_store_client.cc \
3026 tests/stub_tools.cc \
3027 tests/testStoreSupport.cc \
3028 tests/testStoreSupport.h \
3033 nodist_tests_testUfs_SOURCES = \
3038 tests_testUfs_LDADD = \
3040 parser/libparser.la \
3052 DiskIO/libdiskio.la \
3063 $(ADAPTATION_LIBS) \
3065 $(top_builddir)/lib/libmisccontainers.la \
3066 $(top_builddir)/lib/libmiscencoding.la \
3067 $(top_builddir)/lib/libmiscutil.la \
3071 $(LIBCPPUNIT_LIBS) \
3074 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3075 tests_testUfs_DEPENDENCIES = \
3078 check_PROGRAMS += testRefCount
3079 testRefCount_SOURCES= \
3082 tests/stub_cbdata.cc \
3083 tests/stub_debug.cc \
3084 tests/stub_libmem.cc \
3085 tests/stub_MemBuf.cc \
3086 tests/testRefCount.cc
3087 testRefCount_LDADD = \
3089 $(top_builddir)/lib/libmiscutil.la \
3093 tests_testRock_SOURCES = \
3098 CollapsedForwarding.h \
3099 CollapsedForwarding.cc \
3100 tests/stub_CacheDigest.cc \
3116 HttpHeaderFieldStat.h \
3120 HttpHdrContRange.cc \
3123 HttpHdrScTarget.cc \
3126 HttpHeaderFieldInfo.h \
3128 HttpHeaderTools.cc \
3147 tests/stub_StatHist.cc \
3150 tests/stub_stat.cc \
3152 StoreFileSystem.cc \
3154 StoreMetaUnpacker.cc \
3155 $(STOREMETA_SOURCE) \
3156 StoreSwapLogData.cc \
3162 tests/stub_SBufDetailedStats.cc \
3170 tests/testStoreSupport.cc \
3171 tests/testStoreSupport.h \
3173 tests/stub_access_log.cc \
3175 tests/stub_cache_cf.cc \
3177 tests/stub_cache_manager.cc \
3178 tests/stub_client_db.cc \
3179 tests/stub_client_side_request.cc \
3180 tests/stub_debug.cc \
3181 tests/stub_errorpage.cc \
3182 tests/stub_HelperChildConfig.cc \
3183 tests/stub_http.cc \
3184 tests/stub_HttpRequest.cc \
3185 tests/stub_libauth.cc \
3188 tests/stub_ipcache.cc \
3189 tests/stub_libeui.cc \
3190 tests/stub_libformat.cc \
3191 tests/stub_libicmp.cc \
3192 tests/stub_liblog.cc \
3193 tests/stub_libmgr.cc \
3194 tests/stub_libsecurity.cc \
3195 tests/stub_MemStore.cc \
3197 tests/stub_mime.cc \
3198 tests/stub_neighbors.cc \
3199 tests/stub_Port.cc \
3200 tests/stub_pconn.cc \
3201 tests/stub_store_client.cc \
3203 tests/stub_store_rebuild.cc \
3204 tests/stub_store_stats.cc \
3206 tests/stub_tools.cc \
3211 $(DELAY_POOL_SOURCE) \
3213 nodist_tests_testRock_SOURCES = \
3218 tests_testRock_LDADD = \
3220 parser/libparser.la \
3227 DiskIO/libdiskio.la \
3238 $(ADAPTATION_LIBS) \
3240 $(top_builddir)/lib/libmisccontainers.la \
3241 $(top_builddir)/lib/libmiscencoding.la \
3242 $(top_builddir)/lib/libmiscutil.la \
3246 $(LIBCPPUNIT_LIBS) \
3249 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3250 tests_testRock_DEPENDENCIES = \
3253 ## Tests of the URL module.
3254 ## TODO: Trim this down once the insanity is over.
3255 tests_testURL_SOURCES = \
3262 tests/stub_cache_manager.cc \
3264 tests/stub_CacheDigest.cc \
3268 tests/stub_carp.cc \
3274 client_side_reply.cc \
3275 client_side_request.cc \
3278 tests/stub_CollapsedForwarding.cc \
3285 $(DELAY_POOL_SOURCE) \
3295 ExternalACLEntry.cc \
3297 tests/stub_fatal.cc \
3315 tests/stub_HttpControlMsg.cc \
3316 HttpHeaderFieldStat.h \
3320 HttpHdrContRange.cc \
3323 HttpHdrScTarget.cc \
3326 HttpHeaderFieldInfo.h \
3328 HttpHeaderTools.cc \
3344 tests/stub_libeui.cc \
3364 peer_proxy_negotiate_auth.h \
3365 peer_proxy_negotiate_auth.cc \
3368 peer_sourcehash.cc \
3374 tests/stub_redirect.cc \
3378 tests/stub_SBufDetailedStats.cc \
3388 tests/stub_StatHist.cc \
3394 tests/stub_store_digest.cc \
3406 StoreFileSystem.cc \
3408 tests/stub_StoreMeta.cc \
3409 StoreMetaUnpacker.cc \
3410 StoreSwapLogData.cc \
3415 tests/stub_SwapDir.cc \
3417 tests/stub_debug.cc \
3418 tests/stub_libauth_acls.cc \
3419 tests/stub_libauth.cc \
3420 tests/stub_libdiskio.cc \
3421 tests/stub_libmem.cc \
3422 tests/stub_libsecurity.cc \
3423 tests/stub_main_cc.cc \
3424 tests/stub_ipc_Forwarder.cc \
3425 tests/stub_store_stats.cc \
3428 tests/testUriScheme.cc \
3429 tests/testUriScheme.h \
3430 tests/stub_time.cc \
3431 tests/stub_EventLoop.cc \
3434 tests/stub_tunnel.cc \
3439 tests/stub_wccp2.cc \
3441 tests/stub_whois.cc \
3446 nodist_tests_testURL_SOURCES = \
3448 tests_testURL_LDADD = \
3450 clients/libclients.la \
3451 servers/libservers.la \
3452 helper/libhelper.la \
3455 parser/libparser.la \
3473 format/libformat.la \
3478 $(ADAPTATION_LIBS) \
3480 $(top_builddir)/lib/libmisccontainers.la \
3481 $(top_builddir)/lib/libmiscencoding.la \
3482 $(top_builddir)/lib/libmiscutil.la \
3486 $(LIBCPPUNIT_LIBS) \
3489 tests_testURL_LDFLAGS = $(LIBADD_DL)
3491 tests_testSBuf_SOURCES= \
3494 tests/SBufFindTest.h \
3495 tests/SBufFindTest.cc \
3496 tests/stub_SBufDetailedStats.cc \
3497 tests/stub_time.cc \
3498 tests/stub_debug.cc \
3499 tests/stub_fatal.cc \
3500 tests/stub_libmem.cc
3501 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3502 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3503 tests_testSBuf_LDADD= \
3506 $(LIBCPPUNIT_LIBS) \
3510 tests_testSBufList_SOURCES= \
3511 tests/testSBufList.h \
3512 tests/testSBufList.cc \
3513 tests/stub_SBufDetailedStats.cc \
3514 tests/stub_time.cc \
3515 tests/stub_debug.cc \
3516 tests/stub_fatal.cc \
3517 tests/stub_libmem.cc
3518 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3519 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3520 tests_testSBufList_LDADD=\
3523 $(LIBCPPUNIT_LIBS) \
3527 tests_testConfigParser_SOURCES = \
3529 tests/stub_MemBuf.cc \
3530 tests/stub_time.cc \
3531 tests/stub_SBufDetailedStats.cc \
3535 tests/stub_fatal.cc \
3536 tests/testConfigParser.cc \
3537 tests/testConfigParser.h \
3539 tests/stub_cache_cf.cc \
3540 tests/stub_cbdata.cc \
3541 tests/stub_debug.cc \
3542 tests/stub_libmem.cc \
3543 tests/stub_HelperChildConfig.cc \
3545 tests/stub_tools.cc \
3548 nodist_tests_testConfigParser_SOURCES = \
3550 tests_testConfigParser_LDADD = \
3555 $(top_builddir)/lib/libmiscutil.la \
3558 $(LIBCPPUNIT_LIBS) \
3561 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3563 tests_testStatHist_SOURCES = \
3564 tests/stub_cbdata.cc \
3566 tests/stub_fatal.cc \
3567 tests/stub_MemBuf.cc \
3568 tests/stub_SBufDetailedStats.cc \
3572 tests/stub_cache_manager.cc \
3573 tests/stub_comm.cc \
3574 tests/stub_debug.cc \
3575 tests/stub_DelayId.cc \
3576 tests/stub_HelperChildConfig.cc \
3577 tests/stub_libmem.cc \
3578 tests/stub_MemObject.cc \
3580 tests/stub_mime.cc \
3581 tests/stub_pconn.cc \
3582 tests/stub_stmem.cc \
3584 tests/stub_store.cc \
3585 tests/stub_store_stats.cc \
3588 tests/stub_tools.cc \
3589 tests/testStatHist.cc \
3590 tests/testStatHist.h
3591 nodist_tests_testStatHist_SOURCES = \
3593 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3594 tests_testStatHist_LDADD = \
3597 $(top_builddir)/lib/libmiscutil.la \
3598 $(top_builddir)/lib/libmisccontainers.la \
3599 $(LIBCPPUNIT_LIBS) \
3602 tests_testLookupTable_SOURCES = \
3603 tests/testLookupTable.h \
3604 tests/testLookupTable.cc \
3605 tests/stub_debug.cc \
3606 tests/stub_libmem.cc \
3607 tests/stub_SBufDetailedStats.cc \
3609 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3610 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3611 tests_testLookupTable_LDADD = \
3614 $(LIBCPPUNIT_LIBS) \
3618 tests_testEnumIterator_SOURCES = \
3619 base/EnumIterator.h \
3620 tests/stub_debug.cc \
3621 tests/stub_libmem.cc \
3622 tests/testEnumIterator.h \
3623 tests/testEnumIterator.cc
3624 nodist_tests_testEnumIterator_SOURCES = \
3626 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3627 tests_testEnumIterator_LDADD = \
3629 $(LIBCPPUNIT_LIBS) \
3633 tests_testYesNoNone_SOURCES = \
3634 tests/testYesNoNone.cc \
3635 tests/testYesNoNone.h
3636 nodist_tests_testYesNoNone_SOURCES = \
3638 tests/stub_debug.cc \
3639 tests/stub_libmem.cc \
3641 tests_testYesNoNone_LDADD= \
3643 $(LIBCPPUNIT_LIBS) \
3646 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3648 TESTS += testHeaders
3650 ## Special Universal .h dependency test script
3651 ## aborts if error encountered
3652 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3653 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3654 ## src/repl/ has no .h files and its own makefile.
3656 CLEANFILES += testHeaders