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 \
567 $(top_builddir)/lib/libmisccontainers.la \
568 $(top_builddir)/lib/libmiscencoding.la \
569 $(top_builddir)/lib/libmiscutil.la \
578 if ENABLE_LOADABLE_MODULES
579 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
580 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
581 squid_LDFLAGS = -export-dynamic -dlopen force
582 ## when static module linking is supported and enabled:
583 ## squid_LDFLAGS = -all-static -dlopen self
585 ## LTDL headers require their local include path...
586 AM_CPPFLAGS += $(INCLTDL)
589 ## Kerberos libraries require their include path...
590 AM_CPPFLAGS += $(KRB5INCS)
593 unlinkd_SOURCES = unlinkd_daemon.cc
598 recv_announce_SOURCES = recv-announce.cc
600 ## What requires what..
601 ## many things want ACLChecklist.cc
602 ## ACLChecklist.cc wants AuthUserRequest.cc
603 ## ACLChecklist.cc wants AuthScheme.cc
604 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
605 ## ACLProxyAuth.cc wants ACLUserData
606 ## ACLProxyAuth.cc wants ACLRegexData
607 ## cache_cf.cc wants $(AUTH_LIBS)
608 ## cache_cf.cc wants store/libstore.la
609 ## cache_cf.cc wants AnyP::PortCfg
610 ## client_side wants client_db
611 ## client_db wants SNMP_SOURCE
612 ## snmp_core wants ACLStringData
613 ## tools.cc wants ip/libip.la
614 ## client_side.cc wants ip/libip.la
615 ## libbase.la wants cbdata.*
616 ## libbase.la wants MemBuf.*
630 tests/stub_StoreMeta.cc \
631 StoreMetaUnpacker.cc \
638 helper/ChildConfig.h \
639 tests/stub_HelperChildConfig.cc \
665 ufsdump_DEPENDENCIES = \
677 DiskIO/libdiskio.la \
680 nodist_ufsdump_SOURCES = \
685 squid.conf.documented \
710 include $(srcdir)/tests/Stub.list
718 mk-string-arrays.awk \
724 # Make location configure settings available to the code
725 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
727 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
729 globals.cc: globals.h mk-globals-c.awk
730 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
732 ## Generate files containing string arrays for various enums....
733 hier_code.cc: hier_code.h mk-string-arrays.awk
734 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
736 err_type.cc: err_type.h mk-string-arrays.awk
737 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
739 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
740 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
742 lookup_t.cc: lookup_t.h mk-string-arrays.awk
743 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
745 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
746 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
748 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
749 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
752 ## other generated files...
754 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
755 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
757 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
758 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
760 ## If autodependency works well this is not needed anymore
761 cache_cf.o: cf_parser.cci
763 # cf_gen builds the configuration files.
764 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
765 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
767 # squid.conf.default is built by cf_gen when making cf_parser.cci
768 squid.conf.default squid.conf.documented: cf_parser.cci
771 cf_parser.cci: cf.data cf_gen$(EXEEXT)
772 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
774 # The cf_gen_defines.cci is auto-generated and does not exist when the
775 # dependencies computed. We need to add its include files (autoconf.h) here
776 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
777 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
780 ## FIXME: generate a sed command file from configure. Then this doesn't
781 ## depend on the Makefile.
782 cf.data: cf.data.pre Makefile
784 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
785 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
786 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
787 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
788 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
789 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
790 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
791 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
792 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
793 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
794 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
795 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
796 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
797 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
798 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
799 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
800 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
801 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
802 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
803 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
804 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
805 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
806 -f $(srcdir)/cf.data.sed \
807 < $(srcdir)/cf.data.pre >$@
809 repl_modules.cc: repl_modules.sh Makefile
810 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
812 include $(top_srcdir)/doc/manuals/Substitute.am
814 squid.8: $(srcdir)/squid.8.in Makefile
815 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
818 EXTRA_DIST += squid.8.in
819 CLEANFILES += squid.8
821 install-data-local: install-sysconfDATA install-dataDATA
822 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
823 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
825 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
826 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
828 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
829 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
831 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
832 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
834 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
835 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
836 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
837 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
838 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
839 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
840 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
842 uninstall-local: squid.conf.default
843 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
844 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
846 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
849 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
850 cp $(top_srcdir)/test-suite/test_tools.cc .
852 # stock tools for unit tests - library independent versions of dlink_list
854 # globals.cc is needed by test_tools.cc.
855 # Neither of these should be disted from here.
862 tests/testBoilerplate \
863 tests/testCacheManager \
864 tests/testCharacterSet \
867 tests/testEnumIterator \
869 tests/testEventLoop \
870 tests/test_http_range \
871 tests/testTokenizer \
872 tests/testHttp1Parser \
873 tests/testHttpReply \
874 tests/testHttpRequest \
876 tests/testIpAddress \
883 tests/testConfigParser \
885 tests/testLookupTable \
889 check_PROGRAMS += tests/testRock
892 check_PROGRAMS += tests/testUfs
895 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
896 TESTS += $(check_PROGRAMS)
898 ### Template for new Unit Test Program
899 ## - add tests/testX to check_PROGRAMS above.
900 ## - copy template below and substitue X for class name
901 ## - add other component .(h|cc) files needed to link and run tests
903 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
905 #tests_testX_SOURCES=\
910 #nodist_tests_testX_SOURCES=\
911 # tests/stubs_as_needed.cc\
913 #tests_testX_LDFLAGS = $(LIBADD_DL)
915 # $(LIBCPPUNIT_LIBS) \
919 # - add other component .(h|cc) files needed to link and run tests
920 tests_testHttpReply_SOURCES=\
926 tests/stub_fatal.cc \
929 HttpHeaderFieldStat.h \
933 HttpHdrContRange.cc \
943 HttpHeaderFieldInfo.h \
962 tests/stub_SBufDetailedStats.cc \
967 tests/stub_access_log.cc \
969 tests/stub_cache_cf.cc \
970 tests/stub_cache_manager.cc \
972 tests/stub_debug.cc \
973 tests/stub_errorpage.cc \
974 tests/stub_event.cc \
976 tests/stub_HelperChildConfig.cc \
977 tests/stub_libformat.cc \
978 tests/stub_libauth.cc \
979 tests/stub_libcomm.cc \
980 tests/stub_libmgr.cc \
981 tests/stub_libsecurity.cc \
982 tests/stub_libsslsquid.cc \
986 tests/stub_StatHist.cc \
988 tests/stub_store.cc \
989 tests/stub_store_stats.cc \
991 tests/stub_tools.cc \
992 tests/stub_HttpRequest.cc \
993 tests/testHttpReply.cc \
994 tests/testHttpReply.h \
999 nodist_tests_testHttpReply_SOURCES=\
1001 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1002 tests_testHttpReply_LDADD=\
1005 parser/libparser.la \
1015 $(top_builddir)/lib/libmisccontainers.la \
1016 $(top_builddir)/lib/libmiscencoding.la \
1017 $(top_builddir)/lib/libmiscutil.la \
1020 $(LIBCPPUNIT_LIBS) \
1024 tests_testACLMaxUserIP_SOURCES= \
1027 tests/stub_CollapsedForwarding.cc \
1030 tests/stub_ETag.cc \
1033 tests/stub_fatal.cc \
1039 HttpHeaderFieldInfo.h \
1041 HttpHeaderTools.cc \
1042 HttpHdrContRange.cc \
1044 HttpHeaderFieldStat.h \
1049 HttpHdrScTarget.cc \
1059 tests/stub_libsecurity.cc \
1066 tests/stub_StatHist.cc \
1068 tests/stub_SBufDetailedStats.cc \
1071 tests/stub_StoreMeta.cc \
1072 StoreMetaUnpacker.cc \
1073 StoreSwapLogData.cc \
1078 tests/stub_SwapDir.cc \
1081 tests/stub_access_log.cc \
1083 tests/stub_cache_cf.cc \
1084 tests/stub_client_side.cc \
1085 tests/stub_debug.cc \
1086 tests/stub_DelayId.cc \
1087 tests/stub_errorpage.cc \
1090 tests/stub_HttpRequest.cc \
1091 tests/stub_HttpReply.cc \
1092 tests/stub_ipc_TypedMsgHdr.cc \
1093 tests/stub_libauth.cc \
1094 tests/stub_libcomm.cc \
1095 tests/stub_libdiskio.cc \
1096 tests/stub_libformat.cc \
1097 tests/stub_libmem.cc \
1098 tests/stub_libsslsquid.cc \
1099 tests/stub_MemObject.cc \
1100 tests/stub_MemStore.cc \
1102 tests/stub_mime.cc \
1103 tests/stub_pconn.cc \
1104 tests/stub_Port.cc \
1106 tests/stub_store.cc \
1107 tests/stub_store_client.cc \
1109 tests/stub_store_rebuild.cc \
1110 tests/stub_store_stats.cc \
1111 tests/stub_store_swapout.cc \
1113 tests/stub_tools.cc \
1114 tests/stub_cache_manager.cc \
1115 tests/stub_UdsOp.cc \
1116 tests/testACLMaxUserIP.cc \
1117 tests/testACLMaxUserIP.h \
1118 tests/stub_time.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 \
1148 $(LIBCPPUNIT_LIBS) \
1151 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1153 ## a demonstration test that does nothing but shows the salient points
1154 ## involved in writing tests.
1155 tests_testBoilerplate_SOURCES = \
1156 tests/testBoilerplate.cc \
1157 tests/testBoilerplate.h \
1158 tests/stub_debug.cc \
1159 tests/stub_libmem.cc \
1161 nodist_tests_testBoilerplate_SOURCES = \
1162 tests/stub_cbdata.cc \
1163 tests/stub_MemBuf.cc \
1165 tests_testBoilerplate_LDADD= \
1168 $(LIBCPPUNIT_LIBS) \
1171 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1173 ## Tests of base/libbase.la objects
1174 tests_testCharacterSet_SOURCES = \
1175 tests/testCharacterSet.cc \
1176 tests/testCharacterSet.h
1177 nodist_tests_testCharacterSet_SOURCES = \
1178 base/CharacterSet.h \
1180 tests/stub_cbdata.cc \
1181 tests/stub_debug.cc \
1182 tests/stub_libmem.cc \
1183 tests/stub_MemBuf.cc
1184 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1185 tests_testCharacterSet_LDADD= \
1187 $(LIBCPPUNIT_LIBS) \
1191 ## Tests of the CacheManager module.
1192 tests_testCacheManager_SOURCES = \
1199 tests/testCacheManager.cc \
1200 tests/testCacheManager.h \
1201 tests/stub_main_cc.cc \
1202 tests/stub_HttpControlMsg.cc \
1203 tests/stub_ipc_Forwarder.cc \
1204 tests/stub_store_stats.cc \
1205 tests/stub_EventLoop.cc \
1216 tests/stub_CacheDigest.cc \
1218 tests/stub_carp.cc \
1224 client_side_reply.cc \
1225 client_side_request.cc \
1228 tests/stub_CollapsedForwarding.cc \
1235 $(DELAY_POOL_SOURCE) \
1242 tests/stub_ETag.cc \
1245 ExternalACLEntry.cc \
1247 tests/stub_fatal.cc \
1267 HttpHeaderFieldInfo.h \
1269 HttpHeaderTools.cc \
1270 HttpHeaderFieldStat.h \
1274 HttpHdrContRange.cc \
1277 HttpHdrScTarget.cc \
1289 tests/stub_libsecurity.cc \
1308 peer_proxy_negotiate_auth.h \
1309 peer_proxy_negotiate_auth.cc \
1312 peer_sourcehash.cc \
1320 tests/stub_redirect.cc \
1324 tests/stub_SBufDetailedStats.cc \
1336 tests/stub_libauth_acls.cc \
1337 tests/stub_libauth.cc \
1338 tests/stub_libdiskio.cc \
1339 tests/stub_StatHist.cc \
1345 tests/stub_store_digest.cc \
1357 StoreFileSystem.cc \
1359 tests/stub_StoreMeta.cc \
1360 StoreMetaUnpacker.cc \
1361 StoreSwapLogData.cc \
1365 tests/stub_tunnel.cc \
1366 tests/stub_SwapDir.cc \
1373 tests/stub_wccp2.cc \
1375 tests/stub_whois.cc \
1380 nodist_tests_testCacheManager_SOURCES = \
1382 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1383 tests_testCacheManager_LDADD = \
1385 clients/libclients.la \
1386 servers/libservers.la \
1388 helper/libhelper.la \
1390 parser/libparser.la \
1403 format/libformat.la \
1405 $(ADAPTATION_LIBS) \
1415 $(top_builddir)/lib/libmisccontainers.la \
1416 $(top_builddir)/lib/libmiscencoding.la \
1417 $(top_builddir)/lib/libmiscutil.la \
1421 $(LIBCPPUNIT_LIBS) \
1424 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1426 tests_testDiskIO_SOURCES = \
1430 tests/stub_CacheDigest.cc \
1434 tests/stub_CollapsedForwarding.cc \
1437 $(DELAY_POOL_SOURCE) \
1440 tests/stub_ETag.cc \
1444 tests/stub_fatal.cc \
1453 HttpHeaderFieldStat.h \
1457 HttpHdrContRange.cc \
1459 HttpHdrScTarget.cc \
1461 HttpHeaderFieldInfo.h \
1463 HttpHeaderTools.cc \
1483 tests/stub_libsecurity.cc \
1487 tests/stub_StatHist.cc \
1489 tests/stub_SBufDetailedStats.cc \
1490 StoreFileSystem.cc \
1492 tests/stub_StoreMeta.cc \
1493 StoreMetaUnpacker.cc \
1494 StoreSwapLogData.cc \
1505 tests/stub_SwapDir.cc \
1508 tests/stub_access_log.cc \
1511 tests/stub_cache_cf.cc \
1512 tests/stub_cache_manager.cc \
1513 tests/stub_client_db.cc \
1514 client_side_request.h \
1515 tests/stub_client_side_request.cc \
1516 tests/stub_debug.cc \
1517 tests/stub_errorpage.cc \
1518 tests/stub_helper.cc \
1519 tests/stub_HelperChildConfig.cc \
1520 tests/stub_HttpRequest.cc \
1521 tests/stub_http.cc \
1524 tests/stub_internal.cc \
1526 tests/stub_ipcache.cc \
1527 tests/stub_libauth_acls.cc \
1528 tests/stub_libauth.cc \
1529 tests/stub_libeui.cc \
1530 tests/stub_libformat.cc \
1531 tests/stub_libicmp.cc \
1532 tests/stub_liblog.cc \
1533 tests/stub_MemStore.cc \
1535 tests/stub_mime.cc \
1536 tests/stub_neighbors.cc \
1537 tests/stub_pconn.cc \
1538 tests/stub_Port.cc \
1539 tests/stub_stat.cc \
1540 tests/stub_store_client.cc \
1541 tests/stub_store_stats.cc \
1543 tests/stub_store_rebuild.cc \
1544 tests/stub_UdsOp.cc \
1545 tests/testDiskIO.cc \
1546 tests/testDiskIO.h \
1547 tests/testStoreSupport.cc \
1548 tests/testStoreSupport.h \
1549 tests/stub_time.cc \
1557 nodist_tests_testDiskIO_SOURCES= \
1562 tests_testDiskIO_LDADD = \
1565 parser/libparser.la \
1576 $(ADAPTATION_LIBS) \
1577 DiskIO/libdiskio.la \
1588 $(top_builddir)/lib/libmisccontainers.la \
1589 $(top_builddir)/lib/libmiscencoding.la \
1590 $(top_builddir)/lib/libmiscutil.la \
1593 $(LIBCPPUNIT_LIBS) \
1596 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1597 tests_testDiskIO_DEPENDENCIES = \
1598 DiskIO/libdiskio.la \
1601 tests_testDns_SOURCES= \
1602 tests/testRFC1035.cc \
1604 nodist_tests_testDns_SOURCES= \
1605 tests/stub_debug.cc \
1606 tests/stub_libmem.cc \
1607 tests/stub_SBuf.cc \
1609 tests_testDns_LDADD= \
1612 $(top_builddir)/lib/libmiscutil.la \
1613 $(LIBCPPUNIT_LIBS) \
1616 tests_testDns_LDFLAGS= $(LIBADD_DL)
1618 tests_testEvent_SOURCES = \
1622 tests/stub_CacheDigest.cc \
1631 tests/stub_carp.cc \
1637 client_side_reply.cc \
1638 client_side_request.cc \
1641 tests/stub_CollapsedForwarding.cc \
1649 $(DELAY_POOL_SOURCE) \
1656 tests/stub_ETag.cc \
1661 ExternalACLEntry.cc \
1664 tests/stub_fatal.cc \
1682 tests/stub_HttpControlMsg.cc \
1685 HttpHeaderFieldInfo.h \
1687 HttpHeaderTools.cc \
1688 HttpHeaderFieldStat.h \
1692 HttpHdrContRange.cc \
1695 HttpHdrScTarget.cc \
1712 tests/stub_libsecurity.cc \
1715 tests/stub_libmem.cc \
1732 peer_proxy_negotiate_auth.h \
1733 peer_proxy_negotiate_auth.cc \
1736 peer_sourcehash.cc \
1742 tests/stub_redirect.cc \
1748 tests/stub_SBufDetailedStats.cc \
1764 tests/stub_store_digest.cc \
1776 StoreFileSystem.cc \
1778 tests/stub_StoreMeta.cc \
1779 StoreMetaUnpacker.cc \
1780 StoreSwapLogData.cc \
1782 tests/stub_SwapDir.cc \
1783 tests/CapturingStoreEntry.h \
1784 tests/testEvent.cc \
1786 tests/stub_main_cc.cc \
1787 tests/stub_ipc_Forwarder.cc \
1788 tests/stub_libauth_acls.cc \
1789 tests/stub_libauth.cc \
1790 tests/stub_libdiskio.cc \
1791 tests/stub_libeui.cc \
1792 tests/stub_store_stats.cc \
1797 tests/stub_tunnel.cc \
1804 tests/stub_wccp2.cc \
1806 tests/stub_whois.cc \
1810 nodist_tests_testEvent_SOURCES = \
1812 tests_testEvent_LDADD = \
1814 clients/libclients.la \
1815 servers/libservers.la \
1817 helper/libhelper.la \
1819 parser/libparser.la \
1832 format/libformat.la \
1834 $(ADAPTATION_LIBS) \
1837 $(top_builddir)/lib/libmisccontainers.la \
1838 $(top_builddir)/lib/libmiscencoding.la \
1839 $(top_builddir)/lib/libmiscutil.la \
1848 $(LIBCPPUNIT_LIBS) \
1851 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1853 ## Tests of the EventLoop module.
1854 tests_testEventLoop_SOURCES = \
1858 tests/stub_CacheDigest.cc \
1867 tests/stub_carp.cc \
1873 client_side_reply.cc \
1874 client_side_request.cc \
1877 tests/stub_CollapsedForwarding.cc \
1885 $(DELAY_POOL_SOURCE) \
1892 tests/stub_ETag.cc \
1897 ExternalACLEntry.cc \
1900 tests/stub_fatal.cc \
1918 tests/stub_HttpControlMsg.cc \
1921 HttpHeaderFieldInfo.h \
1923 HttpHeaderTools.cc \
1924 HttpHeaderFieldStat.h \
1928 HttpHdrContRange.cc \
1931 HttpHdrScTarget.cc \
1952 tests/stub_libmem.cc \
1967 peer_proxy_negotiate_auth.h \
1968 peer_proxy_negotiate_auth.cc \
1971 peer_sourcehash.cc \
1978 tests/stub_redirect.cc \
1981 tests/stub_SBufDetailedStats.cc \
1997 tests/stub_store_digest.cc \
2009 StoreFileSystem.cc \
2011 tests/stub_StoreMeta.cc \
2012 StoreMetaUnpacker.cc \
2013 StoreSwapLogData.cc \
2017 tests/stub_SwapDir.cc \
2018 tests/testEventLoop.cc \
2019 tests/testEventLoop.h \
2020 tests/stub_main_cc.cc \
2021 tests/stub_ipc_Forwarder.cc \
2022 tests/stub_libauth_acls.cc \
2023 tests/stub_libauth.cc \
2024 tests/stub_libdiskio.cc \
2025 tests/stub_libeui.cc \
2026 tests/stub_libsecurity.cc \
2027 tests/stub_store_stats.cc \
2032 tests/stub_tunnel.cc \
2039 tests/stub_wccp2.cc \
2041 tests/stub_whois.cc \
2045 nodist_tests_testEventLoop_SOURCES = \
2047 tests_testEventLoop_LDADD = \
2049 clients/libclients.la \
2050 servers/libservers.la \
2052 helper/libhelper.la \
2054 parser/libparser.la \
2067 format/libformat.la \
2069 $(ADAPTATION_LIBS) \
2072 $(top_builddir)/lib/libmisccontainers.la \
2073 $(top_builddir)/lib/libmiscencoding.la \
2074 $(top_builddir)/lib/libmiscutil.la \
2083 $(LIBCPPUNIT_LIBS) \
2086 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2088 tests_test_http_range_SOURCES = \
2099 tests/stub_CacheDigest.cc \
2101 tests/stub_carp.cc \
2107 client_side_reply.cc \
2108 client_side_request.cc \
2111 tests/stub_CollapsedForwarding.cc \
2119 $(DELAY_POOL_SOURCE) \
2126 tests/stub_ETag.cc \
2130 tests/stub_libauth.cc \
2131 tests/stub_fatal.cc \
2149 tests/stub_HttpControlMsg.cc \
2150 HttpHeaderFieldStat.h \
2154 HttpHdrContRange.cc \
2157 HttpHdrScTarget.cc \
2160 HttpHeaderFieldInfo.h \
2162 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 \
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 \
2314 $(LIBCPPUNIT_LIBS) \
2317 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2319 ## Tests of parser/* objects
2320 tests_testTokenizer_SOURCES = \
2321 tests/testTokenizer.h \
2322 tests/testTokenizer.cc
2323 nodist_tests_testTokenizer_SOURCES = \
2324 parser/Tokenizer.h \
2328 tests/stub_debug.cc \
2329 tests/stub_libmem.cc \
2330 tests/stub_time.cc \
2331 tests/stub_SBufDetailedStats.cc
2332 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2333 tests_testTokenizer_LDADD = \
2334 parser/libparser.la \
2337 $(top_builddir)/lib/libmiscutil.la \
2338 $(LIBCPPUNIT_LIBS) \
2342 tests_testHttp1Parser_SOURCES = \
2346 tests/stub_MemObject.cc \
2351 tests/stub_SBufDetailedStats.cc \
2352 tests/stub_cache_cf.cc \
2353 tests/stub_cache_manager.cc \
2354 tests/stub_comm.cc \
2355 tests/stub_cbdata.cc \
2356 tests/stub_debug.cc \
2357 tests/stub_event.cc \
2358 tests/stub_HelperChildConfig.cc \
2359 tests/stub_libmem.cc \
2360 tests/stub_libsecurity.cc \
2361 tests/stub_stmem.cc \
2362 tests/stub_store.cc \
2363 tests/stub_store_stats.cc \
2365 tests/stub_tools.cc \
2366 tests/testHttp1Parser.cc \
2367 tests/testHttp1Parser.h \
2368 tests/stub_time.cc \
2371 nodist_tests_testHttp1Parser_SOURCES = \
2373 tests_testHttp1Parser_LDADD= \
2375 parser/libparser.la \
2381 $(top_builddir)/lib/libmiscutil.la \
2383 $(LIBCPPUNIT_LIBS) \
2386 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2388 ## Tests of the HttpRequest module.
2389 tests_testHttpRequest_SOURCES = \
2394 tests/stub_libmem.cc \
2396 tests/testHttpRequest.h \
2397 tests/testHttpRequest.cc \
2398 tests/testHttpRequestMethod.h \
2399 tests/testHttpRequestMethod.cc \
2400 tests/stub_libauth.cc \
2401 tests/stub_main_cc.cc \
2402 tests/stub_ipc_Forwarder.cc \
2403 tests/stub_libdiskio.cc \
2404 tests/stub_libeui.cc \
2405 tests/stub_store_stats.cc \
2406 tests/stub_EventLoop.cc \
2416 tests/stub_CacheDigest.cc \
2420 tests/stub_carp.cc \
2426 client_side_reply.cc \
2427 client_side_request.cc \
2430 tests/stub_CollapsedForwarding.cc \
2437 $(DELAY_POOL_SOURCE) \
2444 tests/stub_ETag.cc \
2446 ExternalACLEntry.cc \
2448 tests/stub_fatal.cc \
2464 tests/stub_HttpControlMsg.cc \
2467 HttpHeaderFieldInfo.h \
2469 HttpHeaderTools.cc \
2470 HttpHeaderFieldStat.h \
2474 HttpHdrContRange.cc \
2477 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 \
2571 tests/stub_wccp2.cc \
2573 tests/stub_whois.cc \
2578 nodist_tests_testHttpRequest_SOURCES = \
2580 tests_testHttpRequest_LDADD = \
2582 clients/libclients.la \
2583 servers/libservers.la \
2584 helper/libhelper.la \
2591 parser/libparser.la \
2596 parser/libparser.la \
2605 format/libformat.la \
2609 $(ADAPTATION_LIBS) \
2611 $(top_builddir)/lib/libmisccontainers.la \
2612 $(top_builddir)/lib/libmiscencoding.la \
2613 $(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 \
2634 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2635 tests_testIcmp_LDADD=\
2636 icmp/libicmpcore.la \
2639 $(LIBCPPUNIT_LIBS) \
2643 tests_testNetDb_SOURCES = \
2644 tests/testNetDb.cc \
2646 nodist_tests_testNetDb_SOURCES = \
2648 tests/stub_debug.cc \
2649 tests/stub_libmem.cc \
2652 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2653 tests_testNetDb_LDADD = \
2657 $(top_builddir)/lib/libmisccontainers.la \
2658 $(LIBCPPUNIT_LIBS) \
2662 ## Tests for ip/* objects
2663 tests_testIpAddress_SOURCES= \
2664 tests/testAddress.cc \
2666 nodist_tests_testIpAddress_SOURCES= \
2668 tests/stub_debug.cc \
2669 tests/stub_libmem.cc \
2671 tests_testIpAddress_LDADD= \
2674 $(LIBCPPUNIT_LIBS) \
2677 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2679 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2680 ## first line - what we are testing.
2681 tests_testStore_SOURCES= \
2683 tests/stub_CacheDigest.cc \
2686 tests/stub_CollapsedForwarding.cc \
2689 $(DELAY_POOL_SOURCE) \
2696 tests/stub_fatal.cc \
2699 HttpHeaderFieldStat.h \
2703 HttpHdrContRange.cc \
2706 HttpHdrScTarget.cc \
2707 HttpHeaderFieldInfo.h \
2709 HttpHeaderTools.cc \
2738 tests/stub_StoreMeta.cc \
2739 StoreMetaUnpacker.cc \
2740 StoreSwapLogData.cc \
2743 tests/stub_SBufDetailedStats.cc \
2747 tests/CapturingStoreEntry.h \
2749 tests/stub_access_log.cc \
2752 tests/stub_cache_cf.cc \
2753 tests/stub_cache_manager.cc \
2754 tests/stub_client_side_request.cc \
2755 tests/stub_comm.cc \
2756 tests/stub_debug.cc \
2757 tests/stub_errorpage.cc \
2761 tests/stub_helper.cc \
2762 tests/stub_HelperChildConfig.cc \
2763 tests/stub_http.cc \
2764 tests/stub_libauth.cc \
2765 tests/stub_libeui.cc \
2766 tests/stub_libdiskio.cc \
2767 tests/stub_libformat.cc \
2768 tests/stub_libsecurity.cc \
2769 tests/stub_libsslsquid.cc \
2772 tests/stub_HttpReply.cc \
2773 tests/stub_HttpRequest.cc \
2774 tests/stub_libcomm.cc \
2775 tests/stub_MemStore.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 \
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 \
2837 $(LIBCPPUNIT_LIBS) \
2840 tests_testStore_LDFLAGS = $(LIBADD_DL)
2842 ## string needs mem.cc.
2843 ## mem.cc needs ClientInfo.h
2844 ## libsquid pulls in SquidConfig and children. stub them.
2845 tests_testString_SOURCES = \
2849 tests/stub_SBufDetailedStats.cc \
2850 tests/testString.cc \
2851 tests/testString.h \
2853 tests/stub_cache_cf.cc \
2854 tests/stub_cache_manager.cc \
2855 tests/stub_cbdata.cc \
2856 tests/stub_debug.cc \
2857 tests/stub_HelperChildConfig.cc \
2858 tests/stub_libmem.cc \
2860 tests/stub_tools.cc \
2861 tests/stub_time.cc \
2864 nodist_tests_testString_SOURCES = \
2866 tests_testString_LDADD = \
2871 $(top_builddir)/lib/libmiscutil.la \
2873 $(LIBCPPUNIT_LIBS) \
2876 tests_testString_LDFLAGS = $(LIBADD_DL)
2888 DiskIO/libdiskio.la \
2893 tests_testUfs_SOURCES = \
2898 tests/stub_cache_manager.cc \
2899 tests/stub_client_db.cc \
2900 tests/stub_CollapsedForwarding.cc \
2901 tests/stub_HelperChildConfig.cc \
2904 tests/stub_ipcache.cc \
2905 tests/stub_libeui.cc \
2906 tests/stub_libicmp.cc \
2907 tests/stub_liblog.cc \
2908 tests/stub_MemStore.cc \
2909 tests/stub_neighbors.cc \
2910 tests/stub_pconn.cc \
2911 tests/stub_Port.cc \
2912 tests/stub_UdsOp.cc \
2914 tests/stub_internal.cc \
2915 tests/stub_libformat.cc \
2916 tests/stub_libsecurity.cc \
2917 tests/stub_stat.cc \
2919 tests/stub_store_rebuild.cc \
2920 tests/stub_store_stats.cc \
2922 tests/stub_fatal.cc \
2945 StoreSwapLogData.cc \
2947 StoreMetaUnpacker.cc \
2948 $(STOREMETA_SOURCE) \
2949 StoreFileSystem.cc \
2956 $(DELAY_POOL_SOURCE) \
2958 tests/stub_CacheDigest.cc \
2971 tests/stub_cache_cf.cc \
2972 tests/stub_helper.cc \
2974 tests/stub_SBufDetailedStats.cc \
2976 tests/stub_debug.cc \
2977 tests/stub_client_side_request.cc \
2978 tests/stub_http.cc \
2979 tests/stub_libauth.cc \
2983 tests/stub_mime.cc \
2984 HttpHeaderFieldInfo.h \
2986 HttpHeaderTools.cc \
2991 HttpHdrContRange.cc \
2992 HttpHeaderFieldStat.h \
2997 HttpHdrScTarget.cc \
3007 tests/stub_errorpage.cc \
3008 tests/stub_HttpRequest.cc \
3010 tests/stub_access_log.cc \
3013 tests/stub_store_client.cc \
3015 tests/stub_tools.cc \
3016 tests/testStoreSupport.cc \
3017 tests/testStoreSupport.h \
3022 nodist_tests_testUfs_SOURCES = \
3027 tests_testUfs_LDADD = \
3029 parser/libparser.la \
3041 DiskIO/libdiskio.la \
3052 $(ADAPTATION_LIBS) \
3054 $(top_builddir)/lib/libmisccontainers.la \
3055 $(top_builddir)/lib/libmiscencoding.la \
3056 $(top_builddir)/lib/libmiscutil.la \
3059 $(LIBCPPUNIT_LIBS) \
3062 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3063 tests_testUfs_DEPENDENCIES = \
3066 check_PROGRAMS += testRefCount
3067 testRefCount_SOURCES= \
3070 tests/stub_cbdata.cc \
3071 tests/stub_debug.cc \
3072 tests/stub_libmem.cc \
3073 tests/stub_MemBuf.cc \
3074 tests/testRefCount.cc
3075 testRefCount_LDADD = \
3077 $(top_builddir)/lib/libmiscutil.la \
3081 tests_testRock_SOURCES = \
3086 CollapsedForwarding.h \
3087 CollapsedForwarding.cc \
3088 tests/stub_CacheDigest.cc \
3104 HttpHeaderFieldStat.h \
3108 HttpHdrContRange.cc \
3111 HttpHdrScTarget.cc \
3114 HttpHeaderFieldInfo.h \
3116 HttpHeaderTools.cc \
3135 tests/stub_StatHist.cc \
3138 tests/stub_stat.cc \
3140 StoreFileSystem.cc \
3142 StoreMetaUnpacker.cc \
3143 $(STOREMETA_SOURCE) \
3144 StoreSwapLogData.cc \
3150 tests/stub_SBufDetailedStats.cc \
3158 tests/testStoreSupport.cc \
3159 tests/testStoreSupport.h \
3161 tests/stub_access_log.cc \
3163 tests/stub_cache_cf.cc \
3165 tests/stub_cache_manager.cc \
3166 tests/stub_client_db.cc \
3167 tests/stub_client_side_request.cc \
3168 tests/stub_debug.cc \
3169 tests/stub_errorpage.cc \
3170 tests/stub_HelperChildConfig.cc \
3171 tests/stub_http.cc \
3172 tests/stub_HttpRequest.cc \
3173 tests/stub_libauth.cc \
3176 tests/stub_ipcache.cc \
3177 tests/stub_libeui.cc \
3178 tests/stub_libformat.cc \
3179 tests/stub_libicmp.cc \
3180 tests/stub_liblog.cc \
3181 tests/stub_libmgr.cc \
3182 tests/stub_libsecurity.cc \
3183 tests/stub_MemStore.cc \
3185 tests/stub_mime.cc \
3186 tests/stub_neighbors.cc \
3187 tests/stub_Port.cc \
3188 tests/stub_pconn.cc \
3189 tests/stub_store_client.cc \
3191 tests/stub_store_rebuild.cc \
3192 tests/stub_store_stats.cc \
3194 tests/stub_tools.cc \
3199 $(DELAY_POOL_SOURCE) \
3201 nodist_tests_testRock_SOURCES = \
3206 tests_testRock_LDADD = \
3208 parser/libparser.la \
3215 DiskIO/libdiskio.la \
3226 $(ADAPTATION_LIBS) \
3228 $(top_builddir)/lib/libmisccontainers.la \
3229 $(top_builddir)/lib/libmiscencoding.la \
3230 $(top_builddir)/lib/libmiscutil.la \
3233 $(LIBCPPUNIT_LIBS) \
3236 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3237 tests_testRock_DEPENDENCIES = \
3240 ## Tests of the URL module.
3241 ## TODO: Trim this down once the insanity is over.
3242 tests_testURL_SOURCES = \
3249 tests/stub_cache_manager.cc \
3251 tests/stub_CacheDigest.cc \
3255 tests/stub_carp.cc \
3261 client_side_reply.cc \
3262 client_side_request.cc \
3265 tests/stub_CollapsedForwarding.cc \
3272 $(DELAY_POOL_SOURCE) \
3282 ExternalACLEntry.cc \
3284 tests/stub_fatal.cc \
3302 tests/stub_HttpControlMsg.cc \
3303 HttpHeaderFieldStat.h \
3307 HttpHdrContRange.cc \
3310 HttpHdrScTarget.cc \
3313 HttpHeaderFieldInfo.h \
3315 HttpHeaderTools.cc \
3331 tests/stub_libeui.cc \
3351 peer_proxy_negotiate_auth.h \
3352 peer_proxy_negotiate_auth.cc \
3355 peer_sourcehash.cc \
3361 tests/stub_redirect.cc \
3365 tests/stub_SBufDetailedStats.cc \
3375 tests/stub_StatHist.cc \
3381 tests/stub_store_digest.cc \
3393 StoreFileSystem.cc \
3395 tests/stub_StoreMeta.cc \
3396 StoreMetaUnpacker.cc \
3397 StoreSwapLogData.cc \
3402 tests/stub_SwapDir.cc \
3404 tests/stub_debug.cc \
3405 tests/stub_libauth_acls.cc \
3406 tests/stub_libauth.cc \
3407 tests/stub_libdiskio.cc \
3408 tests/stub_libmem.cc \
3409 tests/stub_libsecurity.cc \
3410 tests/stub_main_cc.cc \
3411 tests/stub_ipc_Forwarder.cc \
3412 tests/stub_store_stats.cc \
3415 tests/testUriScheme.cc \
3416 tests/testUriScheme.h \
3417 tests/stub_time.cc \
3418 tests/stub_EventLoop.cc \
3421 tests/stub_tunnel.cc \
3426 tests/stub_wccp2.cc \
3428 tests/stub_whois.cc \
3433 nodist_tests_testURL_SOURCES = \
3435 tests_testURL_LDADD = \
3437 clients/libclients.la \
3438 servers/libservers.la \
3439 helper/libhelper.la \
3442 parser/libparser.la \
3460 format/libformat.la \
3464 $(ADAPTATION_LIBS) \
3466 $(top_builddir)/lib/libmisccontainers.la \
3467 $(top_builddir)/lib/libmiscencoding.la \
3468 $(top_builddir)/lib/libmiscutil.la \
3472 $(LIBCPPUNIT_LIBS) \
3475 tests_testURL_LDFLAGS = $(LIBADD_DL)
3477 tests_testSBuf_SOURCES= \
3480 tests/SBufFindTest.h \
3481 tests/SBufFindTest.cc \
3482 tests/stub_SBufDetailedStats.cc \
3483 tests/stub_time.cc \
3484 tests/stub_debug.cc \
3485 tests/stub_fatal.cc \
3486 tests/stub_libmem.cc
3487 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3488 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3489 tests_testSBuf_LDADD= \
3492 $(LIBCPPUNIT_LIBS) \
3496 tests_testSBufList_SOURCES= \
3497 tests/testSBufList.h \
3498 tests/testSBufList.cc \
3499 tests/stub_SBufDetailedStats.cc \
3500 tests/stub_time.cc \
3501 tests/stub_debug.cc \
3502 tests/stub_fatal.cc \
3503 tests/stub_libmem.cc
3504 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3505 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3506 tests_testSBufList_LDADD=\
3509 $(LIBCPPUNIT_LIBS) \
3513 tests_testConfigParser_SOURCES = \
3515 tests/stub_MemBuf.cc \
3516 tests/stub_time.cc \
3517 tests/stub_SBufDetailedStats.cc \
3521 tests/stub_fatal.cc \
3522 tests/testConfigParser.cc \
3523 tests/testConfigParser.h \
3525 tests/stub_cache_cf.cc \
3526 tests/stub_cbdata.cc \
3527 tests/stub_debug.cc \
3528 tests/stub_libmem.cc \
3529 tests/stub_HelperChildConfig.cc \
3531 tests/stub_tools.cc \
3534 nodist_tests_testConfigParser_SOURCES = \
3536 tests_testConfigParser_LDADD = \
3541 $(top_builddir)/lib/libmiscutil.la \
3543 $(LIBCPPUNIT_LIBS) \
3546 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3548 tests_testStatHist_SOURCES = \
3549 tests/stub_cbdata.cc \
3551 tests/stub_fatal.cc \
3552 tests/stub_MemBuf.cc \
3553 tests/stub_SBufDetailedStats.cc \
3557 tests/stub_cache_manager.cc \
3558 tests/stub_comm.cc \
3559 tests/stub_debug.cc \
3560 tests/stub_DelayId.cc \
3561 tests/stub_HelperChildConfig.cc \
3562 tests/stub_libmem.cc \
3563 tests/stub_MemObject.cc \
3565 tests/stub_mime.cc \
3566 tests/stub_pconn.cc \
3567 tests/stub_stmem.cc \
3569 tests/stub_store.cc \
3570 tests/stub_store_stats.cc \
3573 tests/stub_tools.cc \
3574 tests/testStatHist.cc \
3575 tests/testStatHist.h
3576 nodist_tests_testStatHist_SOURCES = \
3578 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3579 tests_testStatHist_LDADD = \
3582 $(top_builddir)/lib/libmiscutil.la \
3583 $(top_builddir)/lib/libmisccontainers.la \
3584 $(LIBCPPUNIT_LIBS) \
3587 tests_testLookupTable_SOURCES = \
3588 tests/testLookupTable.h \
3589 tests/testLookupTable.cc \
3590 tests/stub_debug.cc \
3591 tests/stub_libmem.cc \
3592 tests/stub_SBufDetailedStats.cc \
3594 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3595 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3596 tests_testLookupTable_LDADD = \
3599 $(LIBCPPUNIT_LIBS) \
3603 tests_testEnumIterator_SOURCES = \
3604 base/EnumIterator.h \
3605 tests/stub_debug.cc \
3606 tests/stub_libmem.cc \
3607 tests/testEnumIterator.h \
3608 tests/testEnumIterator.cc
3609 nodist_tests_testEnumIterator_SOURCES = \
3611 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3612 tests_testEnumIterator_LDADD = \
3614 $(LIBCPPUNIT_LIBS) \
3618 tests_testYesNoNone_SOURCES = \
3619 tests/testYesNoNone.cc \
3620 tests/testYesNoNone.h
3621 nodist_tests_testYesNoNone_SOURCES = \
3623 tests/stub_debug.cc \
3624 tests/stub_libmem.cc \
3626 tests_testYesNoNone_LDADD= \
3628 $(LIBCPPUNIT_LIBS) \
3631 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3633 TESTS += testHeaders
3635 ## Special Universal .h dependency test script
3636 ## aborts if error encountered
3637 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3638 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3639 ## src/repl/ has no .h files and its own makefile.
3641 CLEANFILES += testHeaders