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 \
325 HttpHdrContRange.cc \
332 HttpHeaderFieldInfo.h \
358 $(LEAKFINDERSOURCE) \
383 $(XPROF_STATS_SOURCE) \
388 peer_proxy_negotiate_auth.h \
389 peer_proxy_negotiate_auth.cc \
412 sbuf/StringConvert.h \
452 StoreMetaUnpacker.cc \
453 StoreMetaUnpacker.h \
454 $(STOREMETA_SOURCE) \
458 StoreSwapLogData.cc \
487 EXTRA_squid_SOURCES = \
490 $(DELAY_POOL_ALL_SOURCE) \
500 $(WIN32_ALL_SOURCE) \
501 $(LOADABLE_MODULES_SOURCES)
520 CLEANFILES += $(BUILT_SOURCES)
522 nodist_squid_SOURCES = \
532 clients/libclients.la \
533 servers/libservers.la \
535 helper/libhelper.la \
542 DiskIO/libdiskio.la \
545 security/libsecurity.la \
549 parser/libparser.la \
553 format/libformat.la \
565 $(top_builddir)/lib/libmisccontainers.la \
566 $(top_builddir)/lib/libmiscencoding.la \
567 $(top_builddir)/lib/libmiscutil.la \
576 if ENABLE_LOADABLE_MODULES
577 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
578 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
579 squid_LDFLAGS = -export-dynamic -dlopen force
580 ## when static module linking is supported and enabled:
581 ## squid_LDFLAGS = -all-static -dlopen self
583 ## LTDL headers require their local include path...
584 AM_CPPFLAGS += $(INCLTDL)
587 ## Kerberos libraries require their include path...
588 AM_CPPFLAGS += $(KRB5INCS)
591 unlinkd_SOURCES = unlinkd_daemon.cc
596 recv_announce_SOURCES = recv-announce.cc
598 ## What requires what..
599 ## many things want ACLChecklist.cc
600 ## ACLChecklist.cc wants AuthUserRequest.cc
601 ## ACLChecklist.cc wants AuthScheme.cc
602 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
603 ## ACLProxyAuth.cc wants ACLUserData
604 ## ACLProxyAuth.cc wants ACLRegexData
605 ## cache_cf.cc wants $(AUTH_LIBS)
606 ## cache_cf.cc wants store/libstore.la
607 ## cache_cf.cc wants AnyP::PortCfg
608 ## client_side wants client_db
609 ## client_db wants SNMP_SOURCE
610 ## snmp_core wants ACLStringData
611 ## tools.cc wants ip/libip.la
612 ## client_side.cc wants ip/libip.la
613 ## libbase.la wants cbdata.*
614 ## libbase.la wants MemBuf.*
628 tests/stub_StoreMeta.cc \
629 StoreMetaUnpacker.cc \
636 helper/ChildConfig.h \
637 tests/stub_HelperChildConfig.cc \
664 ufsdump_DEPENDENCIES = \
676 DiskIO/libdiskio.la \
679 nodist_ufsdump_SOURCES = \
684 squid.conf.documented \
709 include $(srcdir)/tests/Stub.list
717 mk-string-arrays.awk \
723 # Make location configure settings available to the code
724 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
726 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
728 globals.cc: globals.h mk-globals-c.awk
729 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
731 ## Generate files containing string arrays for various enums....
732 hier_code.cc: hier_code.h mk-string-arrays.awk
733 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
735 err_type.cc: err_type.h mk-string-arrays.awk
736 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
738 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
739 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
741 lookup_t.cc: lookup_t.h mk-string-arrays.awk
742 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
744 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
745 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
747 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
748 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
751 ## other generated files...
753 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
754 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
756 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
757 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
759 ## If autodependency works well this is not needed anymore
760 cache_cf.o: cf_parser.cci
762 # cf_gen builds the configuration files.
763 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
764 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
766 # squid.conf.default is built by cf_gen when making cf_parser.cci
767 squid.conf.default squid.conf.documented: cf_parser.cci
770 cf_parser.cci: cf.data cf_gen$(EXEEXT)
771 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
773 # The cf_gen_defines.cci is auto-generated and does not exist when the
774 # dependencies computed. We need to add its include files (autoconf.h) here
775 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
776 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
779 ## FIXME: generate a sed command file from configure. Then this doesn't
780 ## depend on the Makefile.
781 cf.data: cf.data.pre Makefile
783 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
784 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
785 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
786 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
787 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
788 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
789 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
790 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
791 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
792 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
793 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
794 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
795 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
796 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
797 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
798 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
799 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
800 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
801 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
802 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
803 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
804 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
805 -f $(srcdir)/cf.data.sed \
806 < $(srcdir)/cf.data.pre >$@
808 repl_modules.cc: repl_modules.sh Makefile
809 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
811 include $(top_srcdir)/doc/manuals/Substitute.am
813 squid.8: $(srcdir)/squid.8.in Makefile
814 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
817 EXTRA_DIST += squid.8.in
818 CLEANFILES += squid.8
820 install-data-local: install-sysconfDATA install-dataDATA
821 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
822 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
824 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
825 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
827 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
828 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
830 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
831 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
833 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
834 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
835 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
836 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
837 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
838 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
839 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
841 uninstall-local: squid.conf.default
842 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
843 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
845 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
848 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
849 cp $(top_srcdir)/test-suite/test_tools.cc .
851 # stock tools for unit tests - library independent versions of dlink_list
853 # globals.cc is needed by test_tools.cc.
854 # Neither of these should be disted from here.
861 tests/testBoilerplate \
862 tests/testCacheManager \
863 tests/testCharacterSet \
866 tests/testEnumIterator \
868 tests/testEventLoop \
869 tests/test_http_range \
870 tests/testTokenizer \
871 tests/testHttp1Parser \
872 tests/testHttpReply \
873 tests/testHttpRequest \
875 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 \
932 HttpHdrContRange.cc \
942 HttpHeaderFieldInfo.h \
961 tests/stub_SBufDetailedStats.cc \
966 tests/stub_access_log.cc \
968 tests/stub_cache_cf.cc \
969 tests/stub_cache_manager.cc \
971 tests/stub_debug.cc \
972 tests/stub_errorpage.cc \
973 tests/stub_event.cc \
975 tests/stub_HelperChildConfig.cc \
976 tests/stub_libformat.cc \
977 tests/stub_libauth.cc \
978 tests/stub_libcomm.cc \
979 tests/stub_libmgr.cc \
980 tests/stub_libsecurity.cc \
981 tests/stub_libsslsquid.cc \
985 tests/stub_StatHist.cc \
987 tests/stub_store.cc \
988 tests/stub_store_stats.cc \
990 tests/stub_tools.cc \
991 tests/stub_HttpRequest.cc \
992 tests/testHttpReply.cc \
993 tests/testHttpReply.h \
998 nodist_tests_testHttpReply_SOURCES=\
1000 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1001 tests_testHttpReply_LDADD=\
1004 parser/libparser.la \
1014 $(top_builddir)/lib/libmisccontainers.la \
1015 $(top_builddir)/lib/libmiscencoding.la \
1016 $(top_builddir)/lib/libmiscutil.la \
1019 $(LIBCPPUNIT_LIBS) \
1023 tests_testACLMaxUserIP_SOURCES= \
1026 tests/stub_CollapsedForwarding.cc \
1029 tests/stub_ETag.cc \
1032 tests/stub_fatal.cc \
1038 HttpHeaderFieldInfo.h \
1040 HttpHeaderTools.cc \
1041 HttpHdrContRange.cc \
1043 HttpHeaderFieldStat.h \
1047 HttpHdrScTarget.cc \
1057 tests/stub_libsecurity.cc \
1064 tests/stub_StatHist.cc \
1066 tests/stub_SBufDetailedStats.cc \
1069 tests/stub_StoreMeta.cc \
1070 StoreMetaUnpacker.cc \
1071 StoreSwapLogData.cc \
1076 tests/stub_SwapDir.cc \
1079 tests/stub_access_log.cc \
1081 tests/stub_cache_cf.cc \
1082 tests/stub_client_side.cc \
1083 tests/stub_debug.cc \
1084 tests/stub_DelayId.cc \
1085 tests/stub_errorpage.cc \
1088 tests/stub_HttpRequest.cc \
1089 tests/stub_HttpReply.cc \
1090 tests/stub_ipc_TypedMsgHdr.cc \
1091 tests/stub_libauth.cc \
1092 tests/stub_libcomm.cc \
1093 tests/stub_libdiskio.cc \
1094 tests/stub_libformat.cc \
1095 tests/stub_libmem.cc \
1096 tests/stub_libsslsquid.cc \
1097 tests/stub_MemObject.cc \
1098 tests/stub_MemStore.cc \
1100 tests/stub_mime.cc \
1101 tests/stub_pconn.cc \
1102 tests/stub_Port.cc \
1104 tests/stub_store.cc \
1105 tests/stub_store_client.cc \
1107 tests/stub_store_rebuild.cc \
1108 tests/stub_store_stats.cc \
1109 tests/stub_store_swapout.cc \
1111 tests/stub_tools.cc \
1112 tests/stub_cache_manager.cc \
1113 tests/stub_UdsOp.cc \
1114 tests/testACLMaxUserIP.cc \
1115 tests/testACLMaxUserIP.h \
1116 tests/stub_time.cc \
1122 nodist_tests_testACLMaxUserIP_SOURCES= \
1124 tests_testACLMaxUserIP_LDADD= \
1126 helper/libhelper.la \
1128 parser/libparser.la \
1141 $(top_builddir)/lib/libmisccontainers.la \
1142 $(top_builddir)/lib/libmiscencoding.la \
1143 $(top_builddir)/lib/libmiscutil.la \
1147 $(LIBCPPUNIT_LIBS) \
1150 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1152 ## a demonstration test that does nothing but shows the salient points
1153 ## involved in writing tests.
1154 tests_testBoilerplate_SOURCES = \
1155 tests/testBoilerplate.cc \
1156 tests/testBoilerplate.h \
1157 tests/stub_debug.cc \
1158 tests/stub_libmem.cc \
1160 nodist_tests_testBoilerplate_SOURCES = \
1161 tests/stub_cbdata.cc \
1162 tests/stub_MemBuf.cc \
1164 tests_testBoilerplate_LDADD= \
1167 $(LIBCPPUNIT_LIBS) \
1170 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1172 ## Tests of base/libbase.la objects
1173 tests_testCharacterSet_SOURCES = \
1174 tests/testCharacterSet.cc \
1175 tests/testCharacterSet.h
1176 nodist_tests_testCharacterSet_SOURCES = \
1177 base/CharacterSet.h \
1179 tests/stub_cbdata.cc \
1180 tests/stub_debug.cc \
1181 tests/stub_libmem.cc \
1182 tests/stub_MemBuf.cc
1183 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1184 tests_testCharacterSet_LDADD= \
1186 $(LIBCPPUNIT_LIBS) \
1190 ## Tests of the CacheManager module.
1191 tests_testCacheManager_SOURCES = \
1198 tests/testCacheManager.cc \
1199 tests/testCacheManager.h \
1200 tests/stub_main_cc.cc \
1201 tests/stub_HttpControlMsg.cc \
1202 tests/stub_ipc_Forwarder.cc \
1203 tests/stub_store_stats.cc \
1204 tests/stub_EventLoop.cc \
1215 tests/stub_CacheDigest.cc \
1217 tests/stub_carp.cc \
1223 client_side_reply.cc \
1224 client_side_request.cc \
1227 tests/stub_CollapsedForwarding.cc \
1234 $(DELAY_POOL_SOURCE) \
1241 tests/stub_ETag.cc \
1244 ExternalACLEntry.cc \
1246 tests/stub_fatal.cc \
1266 HttpHeaderFieldInfo.h \
1268 HttpHeaderTools.cc \
1269 HttpHeaderFieldStat.h \
1272 HttpHdrContRange.cc \
1275 HttpHdrScTarget.cc \
1287 tests/stub_libsecurity.cc \
1306 peer_proxy_negotiate_auth.h \
1307 peer_proxy_negotiate_auth.cc \
1310 peer_sourcehash.cc \
1318 tests/stub_redirect.cc \
1322 tests/stub_SBufDetailedStats.cc \
1334 tests/stub_libauth_acls.cc \
1335 tests/stub_libauth.cc \
1336 tests/stub_libdiskio.cc \
1337 tests/stub_StatHist.cc \
1343 tests/stub_store_digest.cc \
1355 StoreFileSystem.cc \
1357 tests/stub_StoreMeta.cc \
1358 StoreMetaUnpacker.cc \
1359 StoreSwapLogData.cc \
1363 tests/stub_tunnel.cc \
1364 tests/stub_SwapDir.cc \
1371 tests/stub_wccp2.cc \
1373 tests/stub_whois.cc \
1378 nodist_tests_testCacheManager_SOURCES = \
1380 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1381 tests_testCacheManager_LDADD = \
1383 clients/libclients.la \
1384 servers/libservers.la \
1386 helper/libhelper.la \
1388 parser/libparser.la \
1401 format/libformat.la \
1403 $(ADAPTATION_LIBS) \
1413 $(top_builddir)/lib/libmisccontainers.la \
1414 $(top_builddir)/lib/libmiscencoding.la \
1415 $(top_builddir)/lib/libmiscutil.la \
1420 $(LIBCPPUNIT_LIBS) \
1423 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1425 tests_testDiskIO_SOURCES = \
1429 tests/stub_CacheDigest.cc \
1433 tests/stub_CollapsedForwarding.cc \
1436 $(DELAY_POOL_SOURCE) \
1439 tests/stub_ETag.cc \
1443 tests/stub_fatal.cc \
1452 HttpHeaderFieldStat.h \
1455 HttpHdrContRange.cc \
1457 HttpHdrScTarget.cc \
1459 HttpHeaderFieldInfo.h \
1461 HttpHeaderTools.cc \
1481 tests/stub_libsecurity.cc \
1485 tests/stub_StatHist.cc \
1487 tests/stub_SBufDetailedStats.cc \
1488 StoreFileSystem.cc \
1490 tests/stub_StoreMeta.cc \
1491 StoreMetaUnpacker.cc \
1492 StoreSwapLogData.cc \
1503 tests/stub_SwapDir.cc \
1506 tests/stub_access_log.cc \
1509 tests/stub_cache_cf.cc \
1510 tests/stub_cache_manager.cc \
1511 tests/stub_client_db.cc \
1512 client_side_request.h \
1513 tests/stub_client_side_request.cc \
1514 tests/stub_debug.cc \
1515 tests/stub_errorpage.cc \
1516 tests/stub_helper.cc \
1517 tests/stub_HelperChildConfig.cc \
1518 tests/stub_HttpRequest.cc \
1519 tests/stub_http.cc \
1522 tests/stub_internal.cc \
1524 tests/stub_ipcache.cc \
1525 tests/stub_libauth_acls.cc \
1526 tests/stub_libauth.cc \
1527 tests/stub_libeui.cc \
1528 tests/stub_libformat.cc \
1529 tests/stub_libicmp.cc \
1530 tests/stub_liblog.cc \
1531 tests/stub_MemStore.cc \
1533 tests/stub_mime.cc \
1534 tests/stub_neighbors.cc \
1535 tests/stub_pconn.cc \
1536 tests/stub_Port.cc \
1537 tests/stub_stat.cc \
1538 tests/stub_store_client.cc \
1539 tests/stub_store_stats.cc \
1541 tests/stub_store_rebuild.cc \
1542 tests/stub_UdsOp.cc \
1543 tests/testDiskIO.cc \
1544 tests/testDiskIO.h \
1545 tests/testStoreSupport.cc \
1546 tests/testStoreSupport.h \
1547 tests/stub_time.cc \
1555 nodist_tests_testDiskIO_SOURCES= \
1560 tests_testDiskIO_LDADD = \
1563 parser/libparser.la \
1574 $(ADAPTATION_LIBS) \
1575 DiskIO/libdiskio.la \
1586 $(top_builddir)/lib/libmisccontainers.la \
1587 $(top_builddir)/lib/libmiscencoding.la \
1588 $(top_builddir)/lib/libmiscutil.la \
1592 $(LIBCPPUNIT_LIBS) \
1595 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1596 tests_testDiskIO_DEPENDENCIES = \
1597 DiskIO/libdiskio.la \
1600 tests_testDns_SOURCES= \
1601 tests/testRFC1035.cc \
1603 nodist_tests_testDns_SOURCES= \
1604 tests/stub_debug.cc \
1605 tests/stub_libmem.cc \
1606 tests/stub_SBuf.cc \
1608 tests_testDns_LDADD= \
1611 $(top_builddir)/lib/libmiscutil.la \
1612 $(LIBCPPUNIT_LIBS) \
1615 tests_testDns_LDFLAGS= $(LIBADD_DL)
1617 tests_testEvent_SOURCES = \
1621 tests/stub_CacheDigest.cc \
1630 tests/stub_carp.cc \
1636 client_side_reply.cc \
1637 client_side_request.cc \
1640 tests/stub_CollapsedForwarding.cc \
1648 $(DELAY_POOL_SOURCE) \
1655 tests/stub_ETag.cc \
1660 ExternalACLEntry.cc \
1663 tests/stub_fatal.cc \
1681 tests/stub_HttpControlMsg.cc \
1684 HttpHeaderFieldInfo.h \
1686 HttpHeaderTools.cc \
1687 HttpHeaderFieldStat.h \
1690 HttpHdrContRange.cc \
1693 HttpHdrScTarget.cc \
1710 tests/stub_libsecurity.cc \
1713 tests/stub_libmem.cc \
1730 peer_proxy_negotiate_auth.h \
1731 peer_proxy_negotiate_auth.cc \
1734 peer_sourcehash.cc \
1740 tests/stub_redirect.cc \
1746 tests/stub_SBufDetailedStats.cc \
1762 tests/stub_store_digest.cc \
1774 StoreFileSystem.cc \
1776 tests/stub_StoreMeta.cc \
1777 StoreMetaUnpacker.cc \
1778 StoreSwapLogData.cc \
1780 tests/stub_SwapDir.cc \
1781 tests/CapturingStoreEntry.h \
1782 tests/testEvent.cc \
1784 tests/stub_main_cc.cc \
1785 tests/stub_ipc_Forwarder.cc \
1786 tests/stub_libauth_acls.cc \
1787 tests/stub_libauth.cc \
1788 tests/stub_libdiskio.cc \
1789 tests/stub_libeui.cc \
1790 tests/stub_store_stats.cc \
1795 tests/stub_tunnel.cc \
1802 tests/stub_wccp2.cc \
1804 tests/stub_whois.cc \
1808 nodist_tests_testEvent_SOURCES = \
1810 tests_testEvent_LDADD = \
1812 clients/libclients.la \
1813 servers/libservers.la \
1815 helper/libhelper.la \
1817 parser/libparser.la \
1830 format/libformat.la \
1832 $(ADAPTATION_LIBS) \
1835 $(top_builddir)/lib/libmisccontainers.la \
1836 $(top_builddir)/lib/libmiscencoding.la \
1837 $(top_builddir)/lib/libmiscutil.la \
1847 $(LIBCPPUNIT_LIBS) \
1850 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1852 ## Tests of the EventLoop module.
1853 tests_testEventLoop_SOURCES = \
1857 tests/stub_CacheDigest.cc \
1866 tests/stub_carp.cc \
1872 client_side_reply.cc \
1873 client_side_request.cc \
1876 tests/stub_CollapsedForwarding.cc \
1884 $(DELAY_POOL_SOURCE) \
1891 tests/stub_ETag.cc \
1896 ExternalACLEntry.cc \
1899 tests/stub_fatal.cc \
1917 tests/stub_HttpControlMsg.cc \
1920 HttpHeaderFieldInfo.h \
1922 HttpHeaderTools.cc \
1923 HttpHeaderFieldStat.h \
1926 HttpHdrContRange.cc \
1929 HttpHdrScTarget.cc \
1950 tests/stub_libmem.cc \
1965 peer_proxy_negotiate_auth.h \
1966 peer_proxy_negotiate_auth.cc \
1969 peer_sourcehash.cc \
1976 tests/stub_redirect.cc \
1979 tests/stub_SBufDetailedStats.cc \
1995 tests/stub_store_digest.cc \
2007 StoreFileSystem.cc \
2009 tests/stub_StoreMeta.cc \
2010 StoreMetaUnpacker.cc \
2011 StoreSwapLogData.cc \
2015 tests/stub_SwapDir.cc \
2016 tests/testEventLoop.cc \
2017 tests/testEventLoop.h \
2018 tests/stub_main_cc.cc \
2019 tests/stub_ipc_Forwarder.cc \
2020 tests/stub_libauth_acls.cc \
2021 tests/stub_libauth.cc \
2022 tests/stub_libdiskio.cc \
2023 tests/stub_libeui.cc \
2024 tests/stub_libsecurity.cc \
2025 tests/stub_store_stats.cc \
2030 tests/stub_tunnel.cc \
2037 tests/stub_wccp2.cc \
2039 tests/stub_whois.cc \
2043 nodist_tests_testEventLoop_SOURCES = \
2045 tests_testEventLoop_LDADD = \
2047 clients/libclients.la \
2048 servers/libservers.la \
2050 helper/libhelper.la \
2052 parser/libparser.la \
2065 format/libformat.la \
2067 $(ADAPTATION_LIBS) \
2070 $(top_builddir)/lib/libmisccontainers.la \
2071 $(top_builddir)/lib/libmiscencoding.la \
2072 $(top_builddir)/lib/libmiscutil.la \
2082 $(LIBCPPUNIT_LIBS) \
2085 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2087 tests_test_http_range_SOURCES = \
2098 tests/stub_CacheDigest.cc \
2100 tests/stub_carp.cc \
2106 client_side_reply.cc \
2107 client_side_request.cc \
2110 tests/stub_CollapsedForwarding.cc \
2118 $(DELAY_POOL_SOURCE) \
2125 tests/stub_ETag.cc \
2129 tests/stub_libauth.cc \
2130 tests/stub_fatal.cc \
2148 tests/stub_HttpControlMsg.cc \
2149 HttpHeaderFieldStat.h \
2152 HttpHdrContRange.cc \
2155 HttpHdrScTarget.cc \
2158 HttpHeaderFieldInfo.h \
2160 HttpHeaderTools.cc \
2181 tests/stub_libmem.cc \
2195 peer_proxy_negotiate_auth.h \
2196 peer_proxy_negotiate_auth.cc \
2199 peer_sourcehash.cc \
2206 tests/stub_redirect.cc \
2210 tests/stub_SBufDetailedStats.cc \
2226 tests/stub_store_digest.cc \
2238 StoreFileSystem.cc \
2240 tests/stub_StoreMeta.cc \
2241 StoreMetaUnpacker.cc \
2242 StoreSwapLogData.cc \
2246 tests/stub_SwapDir.cc \
2248 tests/test_http_range.cc \
2249 tests/stub_external_acl.cc \
2250 tests/stub_ipc_Forwarder.cc \
2251 tests/stub_libdiskio.cc \
2252 tests/stub_libeui.cc \
2253 tests/stub_libsecurity.cc \
2254 tests/stub_main_cc.cc \
2255 tests/stub_MemStore.cc \
2256 tests/stub_store_stats.cc \
2257 tests/stub_EventLoop.cc \
2261 tests/stub_tunnel.cc \
2267 tests/stub_wccp2.cc \
2269 tests/stub_whois.cc \
2273 nodist_tests_test_http_range_SOURCES = \
2275 tests_test_http_range_LDADD = \
2277 clients/libclients.la \
2278 servers/libservers.la \
2280 helper/libhelper.la \
2282 parser/libparser.la \
2287 parser/libparser.la \
2294 format/libformat.la \
2296 $(ADAPTATION_LIBS) \
2306 $(top_builddir)/lib/libmisccontainers.la \
2307 $(top_builddir)/lib/libmiscencoding.la \
2308 $(top_builddir)/lib/libmiscutil.la \
2313 $(LIBCPPUNIT_LIBS) \
2316 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2318 ## Tests of parser/* objects
2319 tests_testTokenizer_SOURCES = \
2320 tests/testTokenizer.h \
2321 tests/testTokenizer.cc
2322 nodist_tests_testTokenizer_SOURCES = \
2323 parser/Tokenizer.h \
2327 tests/stub_debug.cc \
2328 tests/stub_libmem.cc \
2329 tests/stub_time.cc \
2330 tests/stub_SBufDetailedStats.cc
2331 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2332 tests_testTokenizer_LDADD = \
2333 parser/libparser.la \
2336 $(top_builddir)/lib/libmiscutil.la \
2337 $(LIBCPPUNIT_LIBS) \
2341 tests_testHttp1Parser_SOURCES = \
2345 tests/stub_MemObject.cc \
2350 tests/stub_SBufDetailedStats.cc \
2351 tests/stub_cache_cf.cc \
2352 tests/stub_cache_manager.cc \
2353 tests/stub_comm.cc \
2354 tests/stub_cbdata.cc \
2355 tests/stub_debug.cc \
2356 tests/stub_event.cc \
2357 tests/stub_HelperChildConfig.cc \
2358 tests/stub_libmem.cc \
2359 tests/stub_libsecurity.cc \
2360 tests/stub_stmem.cc \
2361 tests/stub_store.cc \
2362 tests/stub_store_stats.cc \
2364 tests/stub_tools.cc \
2365 tests/testHttp1Parser.cc \
2366 tests/testHttp1Parser.h \
2367 tests/stub_time.cc \
2370 nodist_tests_testHttp1Parser_SOURCES = \
2372 tests_testHttp1Parser_LDADD= \
2374 parser/libparser.la \
2380 $(top_builddir)/lib/libmiscutil.la \
2382 $(LIBCPPUNIT_LIBS) \
2385 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2387 ## Tests of the HttpRequest module.
2388 tests_testHttpRequest_SOURCES = \
2393 tests/stub_libmem.cc \
2395 tests/testHttpRequest.h \
2396 tests/testHttpRequest.cc \
2397 tests/testHttpRequestMethod.h \
2398 tests/testHttpRequestMethod.cc \
2399 tests/stub_libauth.cc \
2400 tests/stub_main_cc.cc \
2401 tests/stub_ipc_Forwarder.cc \
2402 tests/stub_libdiskio.cc \
2403 tests/stub_libeui.cc \
2404 tests/stub_store_stats.cc \
2405 tests/stub_EventLoop.cc \
2415 tests/stub_CacheDigest.cc \
2419 tests/stub_carp.cc \
2425 client_side_reply.cc \
2426 client_side_request.cc \
2429 tests/stub_CollapsedForwarding.cc \
2436 $(DELAY_POOL_SOURCE) \
2443 tests/stub_ETag.cc \
2445 ExternalACLEntry.cc \
2447 tests/stub_fatal.cc \
2463 tests/stub_HttpControlMsg.cc \
2466 HttpHeaderFieldInfo.h \
2468 HttpHeaderTools.cc \
2469 HttpHeaderFieldStat.h \
2472 HttpHdrContRange.cc \
2475 HttpHdrScTarget.cc \
2487 tests/stub_libsecurity.cc \
2506 peer_proxy_negotiate_auth.h \
2507 peer_proxy_negotiate_auth.cc \
2510 peer_sourcehash.cc \
2518 tests/stub_libauth_acls.cc \
2519 tests/stub_redirect.cc \
2523 tests/stub_SBufDetailedStats.cc \
2539 tests/stub_store_digest.cc \
2551 StoreFileSystem.cc \
2553 tests/stub_StoreMeta.cc \
2554 StoreMetaUnpacker.cc \
2555 StoreSwapLogData.cc \
2562 tests/stub_tunnel.cc \
2563 tests/stub_SwapDir.cc \
2569 tests/stub_wccp2.cc \
2571 tests/stub_whois.cc \
2576 nodist_tests_testHttpRequest_SOURCES = \
2578 tests_testHttpRequest_LDADD = \
2580 clients/libclients.la \
2581 servers/libservers.la \
2582 helper/libhelper.la \
2589 parser/libparser.la \
2594 parser/libparser.la \
2603 format/libformat.la \
2607 $(ADAPTATION_LIBS) \
2609 $(top_builddir)/lib/libmisccontainers.la \
2610 $(top_builddir)/lib/libmiscencoding.la \
2611 $(top_builddir)/lib/libmiscutil.la \
2616 $(LIBCPPUNIT_LIBS) \
2619 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2621 ## Tests for icmp/* objects
2622 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2623 tests_testIcmp_SOURCES = \
2626 nodist_tests_testIcmp_SOURCES = \
2629 tests/stub_debug.cc \
2630 tests/stub_libmem.cc \
2633 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2634 tests_testIcmp_LDADD=\
2635 icmp/libicmpcore.la \
2638 $(LIBCPPUNIT_LIBS) \
2642 tests_testNetDb_SOURCES = \
2643 tests/testNetDb.cc \
2645 nodist_tests_testNetDb_SOURCES = \
2647 tests/stub_debug.cc \
2648 tests/stub_libmem.cc \
2651 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2652 tests_testNetDb_LDADD = \
2656 $(top_builddir)/lib/libmisccontainers.la \
2657 $(LIBCPPUNIT_LIBS) \
2661 ## Tests for ip/* objects
2662 tests_testIpAddress_SOURCES= \
2663 tests/testAddress.cc \
2665 nodist_tests_testIpAddress_SOURCES= \
2667 tests/stub_debug.cc \
2668 tests/stub_libmem.cc \
2670 tests_testIpAddress_LDADD= \
2673 $(LIBCPPUNIT_LIBS) \
2676 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2678 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2679 ## first line - what we are testing.
2680 tests_testStore_SOURCES= \
2682 tests/stub_CacheDigest.cc \
2685 tests/stub_CollapsedForwarding.cc \
2688 $(DELAY_POOL_SOURCE) \
2695 tests/stub_fatal.cc \
2698 HttpHeaderFieldStat.h \
2701 HttpHdrContRange.cc \
2704 HttpHdrScTarget.cc \
2705 HttpHeaderFieldInfo.h \
2707 HttpHeaderTools.cc \
2736 tests/stub_StoreMeta.cc \
2737 StoreMetaUnpacker.cc \
2738 StoreSwapLogData.cc \
2741 tests/stub_SBufDetailedStats.cc \
2745 tests/CapturingStoreEntry.h \
2747 tests/stub_access_log.cc \
2750 tests/stub_cache_cf.cc \
2751 tests/stub_cache_manager.cc \
2752 tests/stub_client_side_request.cc \
2753 tests/stub_comm.cc \
2754 tests/stub_debug.cc \
2755 tests/stub_errorpage.cc \
2759 tests/stub_helper.cc \
2760 tests/stub_HelperChildConfig.cc \
2761 tests/stub_http.cc \
2762 tests/stub_libauth.cc \
2763 tests/stub_libeui.cc \
2764 tests/stub_libdiskio.cc \
2765 tests/stub_libformat.cc \
2766 tests/stub_libsecurity.cc \
2767 tests/stub_libsslsquid.cc \
2770 tests/stub_HttpReply.cc \
2771 tests/stub_HttpRequest.cc \
2772 tests/stub_libcomm.cc \
2773 tests/stub_MemStore.cc \
2775 tests/stub_mime.cc \
2776 tests/stub_Port.cc \
2777 tests/stub_stat.cc \
2778 tests/stub_store_client.cc \
2779 tests/stub_store_stats.cc \
2781 tests/stub_store_rebuild.cc \
2782 tests/stub_store_swapout.cc \
2785 tests/stub_tools.cc \
2786 tests/stub_UdsOp.cc \
2787 tests/testPackableStream.cc \
2788 tests/testPackableStream.h \
2789 tests/testStore.cc \
2791 tests/testStoreController.cc \
2792 tests/testStoreController.h \
2793 tests/testStoreHashIndex.cc \
2794 tests/testStoreHashIndex.h \
2795 tests/testStoreSupport.cc \
2796 tests/testStoreSupport.h \
2797 tests/TestSwapDir.cc \
2798 tests/TestSwapDir.h \
2799 tests/stub_time.cc \
2804 nodist_tests_testStore_SOURCES= \
2810 tests_testStore_LDADD= \
2813 parser/libparser.la \
2828 DiskIO/libdiskio.la \
2829 $(top_builddir)/lib/libmisccontainers.la \
2830 $(top_builddir)/lib/libmiscencoding.la \
2831 $(top_builddir)/lib/libmiscutil.la \
2836 $(LIBCPPUNIT_LIBS) \
2839 tests_testStore_LDFLAGS = $(LIBADD_DL)
2841 ## string needs mem.cc.
2842 ## mem.cc needs ClientInfo.h
2843 ## libsquid pulls in SquidConfig and children. stub them.
2844 tests_testString_SOURCES = \
2848 tests/stub_SBufDetailedStats.cc \
2849 tests/testString.cc \
2850 tests/testString.h \
2852 tests/stub_cache_cf.cc \
2853 tests/stub_cache_manager.cc \
2854 tests/stub_cbdata.cc \
2855 tests/stub_debug.cc \
2856 tests/stub_HelperChildConfig.cc \
2857 tests/stub_libmem.cc \
2859 tests/stub_tools.cc \
2860 tests/stub_time.cc \
2863 nodist_tests_testString_SOURCES = \
2865 tests_testString_LDADD = \
2870 $(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 \
2996 HttpHdrScTarget.cc \
3006 tests/stub_errorpage.cc \
3007 tests/stub_HttpRequest.cc \
3009 tests/stub_access_log.cc \
3012 tests/stub_store_client.cc \
3014 tests/stub_tools.cc \
3015 tests/testStoreSupport.cc \
3016 tests/testStoreSupport.h \
3021 nodist_tests_testUfs_SOURCES = \
3026 tests_testUfs_LDADD = \
3028 parser/libparser.la \
3040 DiskIO/libdiskio.la \
3051 $(ADAPTATION_LIBS) \
3053 $(top_builddir)/lib/libmisccontainers.la \
3054 $(top_builddir)/lib/libmiscencoding.la \
3055 $(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 \
3234 $(LIBCPPUNIT_LIBS) \
3237 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3238 tests_testRock_DEPENDENCIES = \
3241 ## Tests of the URL module.
3242 ## TODO: Trim this down once the insanity is over.
3243 tests_testURL_SOURCES = \
3250 tests/stub_cache_manager.cc \
3252 tests/stub_CacheDigest.cc \
3256 tests/stub_carp.cc \
3262 client_side_reply.cc \
3263 client_side_request.cc \
3266 tests/stub_CollapsedForwarding.cc \
3273 $(DELAY_POOL_SOURCE) \
3283 ExternalACLEntry.cc \
3285 tests/stub_fatal.cc \
3303 tests/stub_HttpControlMsg.cc \
3304 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 \
3465 $(ADAPTATION_LIBS) \
3467 $(top_builddir)/lib/libmisccontainers.la \
3468 $(top_builddir)/lib/libmiscencoding.la \
3469 $(top_builddir)/lib/libmiscutil.la \
3473 $(LIBCPPUNIT_LIBS) \
3476 tests_testURL_LDFLAGS = $(LIBADD_DL)
3478 tests_testSBuf_SOURCES= \
3481 tests/SBufFindTest.h \
3482 tests/SBufFindTest.cc \
3483 tests/stub_SBufDetailedStats.cc \
3484 tests/stub_time.cc \
3485 tests/stub_debug.cc \
3486 tests/stub_fatal.cc \
3487 tests/stub_libmem.cc
3488 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3489 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3490 tests_testSBuf_LDADD= \
3493 $(LIBCPPUNIT_LIBS) \
3497 tests_testSBufList_SOURCES= \
3498 tests/testSBufList.h \
3499 tests/testSBufList.cc \
3500 tests/stub_SBufDetailedStats.cc \
3501 tests/stub_time.cc \
3502 tests/stub_debug.cc \
3503 tests/stub_fatal.cc \
3504 tests/stub_libmem.cc
3505 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3506 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3507 tests_testSBufList_LDADD=\
3510 $(LIBCPPUNIT_LIBS) \
3514 tests_testConfigParser_SOURCES = \
3516 tests/stub_MemBuf.cc \
3517 tests/stub_time.cc \
3518 tests/stub_SBufDetailedStats.cc \
3522 tests/stub_fatal.cc \
3523 tests/testConfigParser.cc \
3524 tests/testConfigParser.h \
3526 tests/stub_cache_cf.cc \
3527 tests/stub_cbdata.cc \
3528 tests/stub_debug.cc \
3529 tests/stub_libmem.cc \
3530 tests/stub_HelperChildConfig.cc \
3532 tests/stub_tools.cc \
3535 nodist_tests_testConfigParser_SOURCES = \
3537 tests_testConfigParser_LDADD = \
3542 $(top_builddir)/lib/libmiscutil.la \
3545 $(LIBCPPUNIT_LIBS) \
3548 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3550 tests_testStatHist_SOURCES = \
3551 tests/stub_cbdata.cc \
3553 tests/stub_fatal.cc \
3554 tests/stub_MemBuf.cc \
3555 tests/stub_SBufDetailedStats.cc \
3559 tests/stub_cache_manager.cc \
3560 tests/stub_comm.cc \
3561 tests/stub_debug.cc \
3562 tests/stub_DelayId.cc \
3563 tests/stub_HelperChildConfig.cc \
3564 tests/stub_libmem.cc \
3565 tests/stub_MemObject.cc \
3567 tests/stub_mime.cc \
3568 tests/stub_pconn.cc \
3569 tests/stub_stmem.cc \
3571 tests/stub_store.cc \
3572 tests/stub_store_stats.cc \
3575 tests/stub_tools.cc \
3576 tests/testStatHist.cc \
3577 tests/testStatHist.h
3578 nodist_tests_testStatHist_SOURCES = \
3580 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3581 tests_testStatHist_LDADD = \
3584 $(top_builddir)/lib/libmiscutil.la \
3585 $(top_builddir)/lib/libmisccontainers.la \
3586 $(LIBCPPUNIT_LIBS) \
3589 tests_testLookupTable_SOURCES = \
3590 tests/testLookupTable.h \
3591 tests/testLookupTable.cc \
3592 tests/stub_debug.cc \
3593 tests/stub_libmem.cc \
3594 tests/stub_SBufDetailedStats.cc \
3596 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3597 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3598 tests_testLookupTable_LDADD = \
3601 $(LIBCPPUNIT_LIBS) \
3605 tests_testEnumIterator_SOURCES = \
3606 base/EnumIterator.h \
3607 tests/stub_debug.cc \
3608 tests/stub_libmem.cc \
3609 tests/testEnumIterator.h \
3610 tests/testEnumIterator.cc
3611 nodist_tests_testEnumIterator_SOURCES = \
3613 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3614 tests_testEnumIterator_LDADD = \
3616 $(LIBCPPUNIT_LIBS) \
3620 tests_testYesNoNone_SOURCES = \
3621 tests/testYesNoNone.cc \
3622 tests/testYesNoNone.h
3623 nodist_tests_testYesNoNone_SOURCES = \
3625 tests/stub_debug.cc \
3626 tests/stub_libmem.cc \
3628 tests_testYesNoNone_LDADD= \
3630 $(LIBCPPUNIT_LIBS) \
3633 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3635 tests_testMem_SOURCES = \
3638 nodist_tests_testMem_SOURCES = \
3639 tests/stub_debug.cc \
3640 tests/stub_time.cc \
3642 tests_testMem_LDADD= \
3645 $(top_builddir)/lib/libmiscutil.la \
3646 $(LIBCPPUNIT_LIBS) \
3649 tests_testMem_LDFLAGS = $(LIBADD_DL)
3651 TESTS += testHeaders
3653 ## Special Universal .h dependency test script
3654 ## aborts if error encountered
3655 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3656 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3657 ## src/repl/ has no .h files and its own makefile.
3659 CLEANFILES += testHeaders