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 = \
113 ClientDelayConfig.cc \
116 if ENABLE_DELAY_POOLS
117 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
122 if ENABLE_XPROF_STATS
123 XPROF_STATS_SOURCE = ProfStats.cc
129 HTCPSOURCE = htcp.cc htcp.h
133 LEAKFINDERSOURCE = LeakFinder.cc
139 UNLINKDSOURCE = unlinkd.h unlinkd.cc
142 UNLINKDSOURCE = unlinkd.h
151 if ENABLE_WIN32SPECIFIC
152 WIN32_SOURCE = win32.cc
153 WINSVC_SOURCE = WinSvc.cc
160 IPC_SOURCE = SquidIpc.h ipc_win32.cc
162 IPC_SOURCE = SquidIpc.h ipc.cc
165 noinst_LTLIBRARIES = libsquid.la
174 ## cfgen is used when building squid
175 ## ufsdump is a debug utility, it is possibly useful for end users with cache
176 ## corruption, but at this point we do not install it.
188 cf_gen_SOURCES = cf_gen.cc
189 nodist_cf_gen_HEADER = cf_gen_defines.cci
190 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
192 cf_gen.$(OBJEXT): cf_gen_defines.cci
194 ## cf_gen.cc needs src/cf_gen_defines.cci
195 AM_CPPFLAGS += -I$(top_builddir)/src
198 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
200 # common library for all the binaries and tests. This is kindof a catch all
201 # and smaller libraries split from this are encouraged. Using lt convenience
202 # libraries, dependencies should not be a problem either.
203 libsquid_la_SOURCES = \
214 $(ACL_REGISTRATION_SOURCES) \
226 NeighborTypeDomainList.h \
239 client_side_reply.cc \
240 client_side_reply.h \
241 client_side_request.cc \
242 client_side_request.h \
247 ClientRequestContext.h \
250 clientStreamForward.h \
251 CollapsedForwarding.cc \
252 CollapsedForwarding.h \
253 CompletionDispatcher.cc \
254 CompletionDispatcher.h \
268 $(DELAY_POOL_SOURCE) \
289 ExternalACLEntry.cc \
312 HierarchyLogEntry.h \
316 HttpHeaderFieldStat.h \
324 HttpHdrContRange.cc \
331 HttpHeaderFieldInfo.h \
357 $(LEAKFINDERSOURCE) \
382 $(XPROF_STATS_SOURCE) \
387 peer_proxy_negotiate_auth.h \
388 peer_proxy_negotiate_auth.cc \
411 sbuf/StringConvert.h \
451 StoreMetaUnpacker.cc \
452 StoreMetaUnpacker.h \
453 $(STOREMETA_SOURCE) \
457 StoreSwapLogData.cc \
486 EXTRA_squid_SOURCES = \
489 $(DELAY_POOL_ALL_SOURCE) \
499 $(WIN32_ALL_SOURCE) \
500 $(LOADABLE_MODULES_SOURCES)
519 CLEANFILES += $(BUILT_SOURCES)
521 nodist_squid_SOURCES = \
531 clients/libclients.la \
532 servers/libservers.la \
534 helper/libhelper.la \
541 DiskIO/libdiskio.la \
544 security/libsecurity.la \
548 parser/libparser.la \
552 format/libformat.la \
564 $(top_builddir)/lib/libmisccontainers.la \
565 $(top_builddir)/lib/libmiscencoding.la \
566 $(top_builddir)/lib/libmiscutil.la \
575 if ENABLE_LOADABLE_MODULES
576 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
577 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
578 squid_LDFLAGS = -export-dynamic -dlopen force
579 ## when static module linking is supported and enabled:
580 ## squid_LDFLAGS = -all-static -dlopen self
582 ## LTDL headers require their local include path...
583 AM_CPPFLAGS += $(INCLTDL)
586 ## Kerberos libraries require their include path...
587 AM_CPPFLAGS += $(KRB5INCS)
590 unlinkd_SOURCES = unlinkd_daemon.cc
595 recv_announce_SOURCES = recv-announce.cc
597 ## What requires what..
598 ## many things want ACLChecklist.cc
599 ## ACLChecklist.cc wants AuthUserRequest.cc
600 ## ACLChecklist.cc wants AuthScheme.cc
601 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
602 ## ACLProxyAuth.cc wants ACLUserData
603 ## ACLProxyAuth.cc wants ACLRegexData
604 ## cache_cf.cc wants $(AUTH_LIBS)
605 ## cache_cf.cc wants store/libstore.la
606 ## cache_cf.cc wants AnyP::PortCfg
607 ## client_side wants client_db
608 ## client_db wants SNMP_SOURCE
609 ## snmp_core wants ACLStringData
610 ## tools.cc wants ip/libip.la
611 ## client_side.cc wants ip/libip.la
612 ## libbase.la wants cbdata.*
613 ## libbase.la wants MemBuf.*
627 tests/stub_StoreMeta.cc \
628 StoreMetaUnpacker.cc \
635 helper/ChildConfig.h \
636 tests/stub_HelperChildConfig.cc \
663 ufsdump_DEPENDENCIES = \
675 DiskIO/libdiskio.la \
678 nodist_ufsdump_SOURCES = \
683 squid.conf.documented \
708 include $(srcdir)/tests/Stub.list
716 mk-string-arrays.awk \
722 # Make location configure settings available to the code
723 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
725 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
727 globals.cc: globals.h mk-globals-c.awk
728 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
730 ## Generate files containing string arrays for various enums....
731 hier_code.cc: hier_code.h mk-string-arrays.awk
732 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
734 err_type.cc: err_type.h mk-string-arrays.awk
735 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
737 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
738 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
740 lookup_t.cc: lookup_t.h mk-string-arrays.awk
741 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
743 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
744 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
746 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
747 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
750 ## other generated files...
752 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
753 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
755 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
756 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
758 ## If autodependency works well this is not needed anymore
759 cache_cf.o: cf_parser.cci
761 # cf_gen builds the configuration files.
762 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
763 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
765 # squid.conf.default is built by cf_gen when making cf_parser.cci
766 squid.conf.default squid.conf.documented: cf_parser.cci
769 cf_parser.cci: cf.data cf_gen$(EXEEXT)
770 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
772 # The cf_gen_defines.cci is auto-generated and does not exist when the
773 # dependencies computed. We need to add its include files (autoconf.h) here
774 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
775 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
778 ## FIXME: generate a sed command file from configure. Then this doesn't
779 ## depend on the Makefile.
780 cf.data: cf.data.pre Makefile
782 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
783 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
784 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
785 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
786 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
787 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
788 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
789 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
790 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
791 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
792 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
793 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
794 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
795 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
796 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
797 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
798 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
799 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
800 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
801 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
802 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
803 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
804 -f $(srcdir)/cf.data.sed \
805 < $(srcdir)/cf.data.pre >$@
807 repl_modules.cc: repl_modules.sh Makefile
808 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
810 include $(top_srcdir)/doc/manuals/Substitute.am
812 squid.8: $(srcdir)/squid.8.in Makefile
813 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
816 EXTRA_DIST += squid.8.in
817 CLEANFILES += squid.8
819 install-data-local: install-sysconfDATA install-dataDATA
820 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
821 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
823 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
824 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
826 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
827 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
829 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
830 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
832 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
833 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
834 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
835 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
836 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
837 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
838 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
840 uninstall-local: squid.conf.default
841 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
842 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
844 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
847 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
848 cp $(top_srcdir)/test-suite/test_tools.cc .
850 # stock tools for unit tests - library independent versions of dlink_list
852 # globals.cc is needed by test_tools.cc.
853 # Neither of these should be disted from here.
860 tests/testBoilerplate \
861 tests/testCacheManager \
862 tests/testCharacterSet \
865 tests/testEnumIterator \
867 tests/testEventLoop \
868 tests/test_http_range \
869 tests/testTokenizer \
870 tests/testHttp1Parser \
871 tests/testHttpReply \
872 tests/testHttpRequest \
874 tests/testIpAddress \
882 tests/testConfigParser \
884 tests/testLookupTable \
888 check_PROGRAMS += tests/testRock
891 check_PROGRAMS += tests/testUfs
894 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
895 TESTS += $(check_PROGRAMS)
897 ### Template for new Unit Test Program
898 ## - add tests/testX to check_PROGRAMS above.
899 ## - copy template below and substitue X for class name
900 ## - add other component .(h|cc) files needed to link and run tests
902 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
904 #tests_testX_SOURCES=\
909 #nodist_tests_testX_SOURCES=\
910 # tests/stubs_as_needed.cc\
912 #tests_testX_LDFLAGS = $(LIBADD_DL)
914 # $(LIBCPPUNIT_LIBS) \
918 # - add other component .(h|cc) files needed to link and run tests
919 tests_testHttpReply_SOURCES=\
925 tests/stub_fatal.cc \
928 HttpHeaderFieldStat.h \
931 HttpHdrContRange.cc \
941 HttpHeaderFieldInfo.h \
960 tests/stub_SBufDetailedStats.cc \
965 tests/stub_access_log.cc \
967 tests/stub_cache_cf.cc \
968 tests/stub_cache_manager.cc \
970 tests/stub_debug.cc \
971 tests/stub_errorpage.cc \
972 tests/stub_event.cc \
974 tests/stub_HelperChildConfig.cc \
975 tests/stub_libformat.cc \
976 tests/stub_libauth.cc \
977 tests/stub_libcomm.cc \
978 tests/stub_libmgr.cc \
979 tests/stub_libsecurity.cc \
980 tests/stub_libsslsquid.cc \
984 tests/stub_StatHist.cc \
986 tests/stub_store.cc \
987 tests/stub_store_stats.cc \
989 tests/stub_tools.cc \
990 tests/stub_HttpRequest.cc \
991 tests/testHttpReply.cc \
992 tests/testHttpReply.h \
997 nodist_tests_testHttpReply_SOURCES=\
999 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1000 tests_testHttpReply_LDADD=\
1003 parser/libparser.la \
1013 $(top_builddir)/lib/libmisccontainers.la \
1014 $(top_builddir)/lib/libmiscencoding.la \
1015 $(top_builddir)/lib/libmiscutil.la \
1018 $(LIBCPPUNIT_LIBS) \
1022 tests_testACLMaxUserIP_SOURCES= \
1025 tests/stub_CollapsedForwarding.cc \
1028 tests/stub_ETag.cc \
1031 tests/stub_fatal.cc \
1037 HttpHeaderFieldInfo.h \
1039 HttpHeaderTools.cc \
1040 HttpHdrContRange.cc \
1042 HttpHeaderFieldStat.h \
1046 HttpHdrScTarget.cc \
1056 tests/stub_libsecurity.cc \
1063 tests/stub_StatHist.cc \
1065 tests/stub_SBufDetailedStats.cc \
1068 tests/stub_StoreMeta.cc \
1069 StoreMetaUnpacker.cc \
1070 StoreSwapLogData.cc \
1075 tests/stub_SwapDir.cc \
1078 tests/stub_access_log.cc \
1080 tests/stub_cache_cf.cc \
1081 tests/stub_client_side.cc \
1082 tests/stub_debug.cc \
1083 tests/stub_DelayId.cc \
1084 tests/stub_errorpage.cc \
1087 tests/stub_HttpRequest.cc \
1088 tests/stub_HttpReply.cc \
1089 tests/stub_ipc_TypedMsgHdr.cc \
1090 tests/stub_libauth.cc \
1091 tests/stub_libcomm.cc \
1092 tests/stub_libdiskio.cc \
1093 tests/stub_libformat.cc \
1094 tests/stub_libmem.cc \
1095 tests/stub_libsslsquid.cc \
1096 tests/stub_MemObject.cc \
1097 tests/stub_MemStore.cc \
1099 tests/stub_mime.cc \
1100 tests/stub_pconn.cc \
1101 tests/stub_Port.cc \
1103 tests/stub_store.cc \
1104 tests/stub_store_client.cc \
1106 tests/stub_store_rebuild.cc \
1107 tests/stub_store_stats.cc \
1108 tests/stub_store_swapout.cc \
1110 tests/stub_tools.cc \
1111 tests/stub_cache_manager.cc \
1112 tests/stub_UdsOp.cc \
1113 tests/testACLMaxUserIP.cc \
1114 tests/testACLMaxUserIP.h \
1115 tests/stub_time.cc \
1121 nodist_tests_testACLMaxUserIP_SOURCES= \
1123 tests_testACLMaxUserIP_LDADD= \
1125 helper/libhelper.la \
1127 parser/libparser.la \
1140 $(top_builddir)/lib/libmisccontainers.la \
1141 $(top_builddir)/lib/libmiscencoding.la \
1142 $(top_builddir)/lib/libmiscutil.la \
1146 $(LIBCPPUNIT_LIBS) \
1149 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1151 ## a demonstration test that does nothing but shows the salient points
1152 ## involved in writing tests.
1153 tests_testBoilerplate_SOURCES = \
1154 tests/testBoilerplate.cc \
1155 tests/testBoilerplate.h \
1156 tests/stub_debug.cc \
1157 tests/stub_libmem.cc \
1159 nodist_tests_testBoilerplate_SOURCES = \
1160 tests/stub_cbdata.cc \
1161 tests/stub_MemBuf.cc \
1163 tests_testBoilerplate_LDADD= \
1166 $(LIBCPPUNIT_LIBS) \
1169 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1171 ## Tests of base/libbase.la objects
1172 tests_testCharacterSet_SOURCES = \
1173 tests/testCharacterSet.cc \
1174 tests/testCharacterSet.h
1175 nodist_tests_testCharacterSet_SOURCES = \
1176 base/CharacterSet.h \
1178 tests/stub_cbdata.cc \
1179 tests/stub_debug.cc \
1180 tests/stub_libmem.cc \
1181 tests/stub_MemBuf.cc
1182 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1183 tests_testCharacterSet_LDADD= \
1185 $(LIBCPPUNIT_LIBS) \
1189 ## Tests of the CacheManager module.
1190 tests_testCacheManager_SOURCES = \
1197 tests/testCacheManager.cc \
1198 tests/testCacheManager.h \
1199 tests/stub_main_cc.cc \
1200 tests/stub_HttpControlMsg.cc \
1201 tests/stub_ipc_Forwarder.cc \
1202 tests/stub_store_stats.cc \
1203 tests/stub_EventLoop.cc \
1214 tests/stub_CacheDigest.cc \
1216 tests/stub_carp.cc \
1222 client_side_reply.cc \
1223 client_side_request.cc \
1226 tests/stub_CollapsedForwarding.cc \
1233 $(DELAY_POOL_SOURCE) \
1240 tests/stub_ETag.cc \
1243 ExternalACLEntry.cc \
1245 tests/stub_fatal.cc \
1265 HttpHeaderFieldInfo.h \
1267 HttpHeaderTools.cc \
1268 HttpHeaderFieldStat.h \
1271 HttpHdrContRange.cc \
1274 HttpHdrScTarget.cc \
1286 tests/stub_libsecurity.cc \
1305 peer_proxy_negotiate_auth.h \
1306 peer_proxy_negotiate_auth.cc \
1309 peer_sourcehash.cc \
1317 tests/stub_redirect.cc \
1321 tests/stub_SBufDetailedStats.cc \
1333 tests/stub_libauth_acls.cc \
1334 tests/stub_libauth.cc \
1335 tests/stub_libdiskio.cc \
1336 tests/stub_StatHist.cc \
1342 tests/stub_store_digest.cc \
1354 StoreFileSystem.cc \
1356 tests/stub_StoreMeta.cc \
1357 StoreMetaUnpacker.cc \
1358 StoreSwapLogData.cc \
1362 tests/stub_tunnel.cc \
1363 tests/stub_SwapDir.cc \
1370 tests/stub_wccp2.cc \
1372 tests/stub_whois.cc \
1377 nodist_tests_testCacheManager_SOURCES = \
1379 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1380 tests_testCacheManager_LDADD = \
1382 clients/libclients.la \
1383 servers/libservers.la \
1385 helper/libhelper.la \
1387 parser/libparser.la \
1400 format/libformat.la \
1402 $(ADAPTATION_LIBS) \
1412 $(top_builddir)/lib/libmisccontainers.la \
1413 $(top_builddir)/lib/libmiscencoding.la \
1414 $(top_builddir)/lib/libmiscutil.la \
1419 $(LIBCPPUNIT_LIBS) \
1422 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1424 tests_testDiskIO_SOURCES = \
1428 tests/stub_CacheDigest.cc \
1432 tests/stub_CollapsedForwarding.cc \
1435 $(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