1 ## Copyright (C) 1996-2021 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 error eui acl format clients sbuf servers fs repl store DiskIO proxyp
35 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm error eui acl format clients sbuf servers fs repl store DiskIO proxyp
39 AUTH_LIBS= auth/libauth.la
40 AUTH_ACL_LIBS= auth/libacls.la
44 SUBDIRS += http ip icmp ident log ipc mgr
45 DIST_SUBDIRS += http ip icmp ident log ipc mgr
54 DIST_SUBDIRS += ssl security
64 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
66 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
75 DIST_SUBDIRS += adaptation
81 $(top_builddir)/lib/libTrie/libTrie.a \
89 DELAY_POOL_ALL_SOURCE = \
115 MessageDelayPools.h \
116 MessageDelayPools.cc \
118 ClientDelayConfig.cc \
121 if ENABLE_DELAY_POOLS
122 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
127 if ENABLE_XPROF_STATS
128 XPROF_STATS_SOURCE = ProfStats.cc
134 HTCPSOURCE = htcp.cc htcp.h
138 UNLINKDSOURCE = unlinkd.h unlinkd.cc
141 UNLINKDSOURCE = unlinkd.h
150 if ENABLE_WIN32SPECIFIC
151 WIN32_SOURCE = win32.cc
152 WINSVC_SOURCE = WinSvc.cc
159 IPC_SOURCE = SquidIpc.h ipc_win32.cc
161 IPC_SOURCE = SquidIpc.h ipc.cc
164 noinst_LTLIBRARIES = libsquid.la
171 ## cfgen is used when building squid
172 ## ufsdump is a debug utility, it is possibly useful for end users with cache
173 ## corruption, but at this point we do not install it.
185 cf_gen_SOURCES = cf_gen.cc
186 nodist_cf_gen_HEADER = cf_gen_defines.cci
187 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
189 cf_gen.$(OBJEXT): cf_gen_defines.cci
191 ## cf_gen.cc needs src/cf_gen_defines.cci
192 AM_CPPFLAGS += -I$(top_builddir)/src
195 ACL_REGISTRATION_SOURCES = \
199 # common library for all the binaries and tests. This is kindof a catch all
200 # and smaller libraries split from this are encouraged. Using lt convenience
201 # libraries, dependencies should not be a problem either.
202 libsquid_la_SOURCES = \
213 $(ACL_REGISTRATION_SOURCES) \
214 $(DELAY_POOL_SOURCE) \
219 $(STOREMETA_SOURCE) \
223 $(XPROF_STATS_SOURCE) \
237 ClientRequestContext.h \
238 CollapsedForwarding.cc \
239 CollapsedForwarding.h \
240 CollapsingHistory.h \
261 ExternalACLEntry.cc \
271 HierarchyLogEntry.h \
278 HttpHdrContRange.cc \
287 HttpHeaderFieldInfo.h \
288 HttpHeaderFieldStat.h \
298 HttpUpgradeProtocolAccess.cc \
299 HttpUpgradeProtocolAccess.h \
314 NeighborTypeDomainList.h \
349 StoreMetaUnpacker.cc \
350 StoreMetaUnpacker.h \
354 StoreSwapLogData.cc \
362 XactionInitiator.cc \
374 clientStreamForward.h \
379 client_side_reply.cc \
380 client_side_reply.h \
381 client_side_request.cc \
382 client_side_request.h \
436 peer_proxy_negotiate_auth.cc \
437 peer_proxy_negotiate_auth.h \
449 sbuf/StringConvert.h \
488 EXTRA_squid_SOURCES = \
489 $(DELAY_POOL_ALL_SOURCE) \
490 $(LOADABLE_MODULES_SOURCES) \
493 $(WIN32_ALL_SOURCE) \
517 CLEANFILES += $(BUILT_SOURCES)
519 nodist_squid_SOURCES = \
529 clients/libclients.la \
530 servers/libservers.la \
532 helper/libhelper.la \
539 DiskIO/libdiskio.la \
542 security/libsecurity.la \
547 proxyp/libproxyp.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.*
617 tests/stub_HelperChildConfig.cc \
623 tests/stub_StoreMeta.cc \
624 StoreMetaUnpacker.cc \
633 helper/ChildConfig.h \
663 ufsdump_DEPENDENCIES = \
675 DiskIO/libdiskio.la \
678 nodist_ufsdump_SOURCES = \
683 squid.conf.documented \
708 include $(srcdir)/tests/Stub.am
716 mk-string-arrays.awk \
723 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
725 globals.cc: globals.h mk-globals-c.awk
726 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
728 ## Generate files containing string arrays for various enums....
729 hier_code.cc: hier_code.h mk-string-arrays.awk
730 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
732 lookup_t.cc: lookup_t.h mk-string-arrays.awk
733 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
735 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
736 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
738 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
739 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
742 ## other generated files...
744 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
745 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
747 ## If autodependency works well this is not needed anymore
748 cache_cf.o: cf_parser.cci
750 # cf_gen builds the configuration files.
751 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
752 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
754 # squid.conf.default is built by cf_gen when making cf_parser.cci
755 squid.conf.default squid.conf.documented: cf_parser.cci
758 cf_parser.cci: cf.data cf_gen$(EXEEXT)
759 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
761 # The cf_gen_defines.cci is auto-generated and does not exist when the
762 # dependencies computed. We need to add its include files (autoconf.h) here
763 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
764 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
767 ## TODO: generate a sed command file from configure. Then this doesn't
768 ## depend on the Makefile.
769 cf.data: cf.data.pre Makefile
771 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
772 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
773 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
774 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
775 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
776 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
777 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
778 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
779 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
780 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
781 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
782 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
783 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
784 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
785 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
786 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
787 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
788 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
789 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
790 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
791 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
792 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
793 -f $(srcdir)/cf.data.sed \
794 < $(srcdir)/cf.data.pre >$@
796 repl_modules.cc: repl_modules.sh Makefile
797 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
799 include $(top_srcdir)/doc/manuals/Substitute.am
801 squid.8: $(srcdir)/squid.8.in Makefile
802 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
805 EXTRA_DIST += squid.8.in
806 CLEANFILES += squid.8
808 install-data-local: install-sysconfDATA install-dataDATA
809 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
810 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
812 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
813 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
815 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
816 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
818 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
819 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
821 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
822 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
823 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
824 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
825 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
826 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
827 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
829 uninstall-local: squid.conf.default
830 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
831 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
833 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
836 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
837 cp $(top_srcdir)/test-suite/test_tools.cc .
839 # stock tools for unit tests - library independent versions of dlink_list
841 # globals.cc is needed by test_tools.cc.
842 # Neither of these should be disted from here.
848 ### Template for new Unit Test Program
849 ## - copy template below and substitute X for class name
850 ## - place code being tested in _SOURCES
851 ## - place stubs etc. requiredd to link in nodist_*_SOURCES
852 ## - add other component .(h|cc) files needed to link and run tests
854 #check_PROGRAMS += tests/testX
855 #tests_testX_SOURCES= \
858 #nodist_tests_testX_SOURCES= \
860 # tests/stubs_as_needed.cc
862 # $(LIBCPPUNIT_LIBS) \
865 #tests_testX_LDFLAGS = $(LIBADD_DL)
867 ## A demonstration test that does nothing but shows the salient points
868 ## involved in writing tests.
869 check_PROGRAMS += tests/testBoilerplate
870 tests_testBoilerplate_SOURCES = \
871 tests/testBoilerplate.cc \
872 tests/testBoilerplate.h
873 nodist_tests_testBoilerplate_SOURCES = \
875 tests_testBoilerplate_LDADD= \
879 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
881 # Unit Tests are listed below by sub-directory with order matching the SUBDIRS
882 # dependency-based list so that simpler code is tested before more complex code
887 check_PROGRAMS += tests/testMem
888 tests_testMem_SOURCES = \
891 nodist_tests_testMem_SOURCES = \
893 tests_testMem_LDADD = \
895 $(top_builddir)/lib/libmiscutil.la \
899 tests_testMem_LDFLAGS = $(LIBADD_DL)
903 check_PROGRAMS += tests/testCharacterSet
904 tests_testCharacterSet_SOURCES = \
905 tests/testCharacterSet.cc \
906 tests/testCharacterSet.h
907 nodist_tests_testCharacterSet_SOURCES = \
909 tests_testCharacterSet_LDADD = \
914 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
916 check_PROGRAMS += tests/testEnumIterator
917 tests_testEnumIterator_SOURCES = \
918 tests/testEnumIterator.cc \
919 tests/testEnumIterator.h
920 nodist_tests_testEnumIterator_SOURCES = \
922 tests_testEnumIterator_LDADD = \
926 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
928 check_PROGRAMS += tests/testLookupTable
929 tests_testLookupTable_SOURCES = \
930 tests/testLookupTable.cc \
931 tests/testLookupTable.h
932 nodist_tests_testLookupTable_SOURCES = \
933 tests/stub_SBufDetailedStats.cc \
935 tests/stub_debug.cc \
937 tests_testLookupTable_LDADD = \
943 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
945 check_PROGRAMS += tests/testRefCount
946 tests_testRefCount_SOURCES = \
947 tests/testRefCount.cc \
949 nodist_tests_testRefCount_SOURCES = \
951 tests_testRefCount_LDADD = \
955 tests_testRefCount_LDFLAGS = $(LIBADD_DL)
957 check_PROGRAMS += tests/testYesNoNone
958 tests_testYesNoNone_SOURCES = \
959 tests/testYesNoNone.cc \
960 tests/testYesNoNone.h
961 nodist_tests_testYesNoNone_SOURCES = \
965 tests_testYesNoNone_LDADD = \
970 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
974 check_PROGRAMS += tests/testURL
975 tests_testURL_SOURCES = \
978 tests/testUriScheme.cc \
979 tests/testUriScheme.h
980 nodist_tests_testURL_SOURCES = \
981 tests/stub_HelperChildConfig.cc \
982 tests/stub_HttpHeader.cc \
983 tests/stub_HttpRequest.cc \
984 tests/stub_StatHist.cc \
986 tests/stub_access_log.cc \
989 tests/stub_cbdata.cc \
990 tests/stub_debug.cc \
991 tests/stub_libhttp.cc \
993 tests_testURL_LDADD = \
996 parser/libparser.la \
1000 $(top_builddir)/lib/libmiscencoding.la \
1001 $(LIBCPPUNIT_LIBS) \
1004 tests_testURL_LDFLAGS = $(LIBADD_DL)
1008 check_PROGRAMS += tests/testDns
1009 tests_testDns_SOURCES = \
1010 tests/testRFC1035.cc \
1012 nodist_tests_testDns_SOURCES=
1013 tests_testDns_LDADD = \
1015 $(LIBCPPUNIT_LIBS) \
1018 tests_testDns_LDFLAGS = $(LIBADD_DL)
1020 ## Tests of parser/*
1022 check_PROGRAMS += tests/testTokenizer
1023 tests_testTokenizer_SOURCES = \
1024 tests/testTokenizer.cc \
1025 tests/testTokenizer.h
1026 nodist_tests_testTokenizer_SOURCES = \
1027 tests/stub_StatHist.cc \
1028 tests/stub_debug.cc \
1029 tests/stub_libmem.cc \
1031 tests_testTokenizer_LDADD = \
1032 parser/libparser.la \
1035 $(LIBCPPUNIT_LIBS) \
1038 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
1040 ## Tests of sbuf/* and String handling objects
1042 check_PROGRAMS += tests/testSBuf
1043 tests_testSBuf_SOURCES = \
1046 tests/SBufFindTest.cc \
1047 tests/SBufFindTest.h
1048 nodist_tests_testSBuf_SOURCES = \
1049 tests/stub_StatHist.cc \
1050 tests/stub_debug.cc \
1051 tests/stub_libmem.cc
1052 tests_testSBuf_LDADD = \
1055 $(LIBCPPUNIT_LIBS) \
1058 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
1060 check_PROGRAMS += tests/testSBufList
1061 tests_testSBufList_SOURCES = \
1062 tests/testSBufList.cc \
1063 tests/testSBufList.h
1064 nodist_tests_testSBufList_SOURCES = \
1065 tests/stub_StatHist.cc \
1066 tests/stub_debug.cc \
1067 tests/stub_libmem.cc
1068 tests_testSBufList_LDADD = \
1071 $(LIBCPPUNIT_LIBS) \
1074 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
1076 check_PROGRAMS += tests/testString
1077 tests_testString_SOURCES = \
1078 tests/testString.cc \
1080 nodist_tests_testString_SOURCES = \
1081 tests/stub_SBuf.cc \
1083 tests/stub_debug.cc \
1084 tests/stub_libmem.cc
1085 tests_testString_LDADD = \
1087 $(LIBCPPUNIT_LIBS) \
1090 tests_testString_LDFLAGS = $(LIBADD_DL)
1095 check_PROGRAMS += tests/testRock
1096 tests_testRock_SOURCES = \
1097 $(DELAY_POOL_SOURCE) \
1098 $(STOREMETA_SOURCE) \
1102 tests/stub_CacheDigest.cc \
1104 tests/stub_CachePeer.cc \
1105 CollapsedForwarding.cc \
1106 CollapsedForwarding.h \
1113 tests/stub_HelperChildConfig.cc \
1117 HttpHdrContRange.cc \
1120 HttpHdrScTarget.cc \
1123 HttpHeaderFieldInfo.h \
1124 HttpHeaderFieldStat.h \
1125 HttpHeaderTools.cc \
1128 tests/stub_HttpRequest.cc \
1138 tests/stub_Port.cc \
1146 tests/stub_SBufDetailedStats.cc \
1149 tests/stub_StatHist.cc \
1151 StoreFileSystem.cc \
1153 StoreMetaUnpacker.cc \
1154 tests/testStoreSupport.cc \
1155 tests/testStoreSupport.h \
1156 StoreSwapLogData.cc \
1162 tests/stub_access_log.cc \
1163 tests/stub_cache_cf.cc \
1165 tests/stub_cache_manager.cc \
1167 tests/stub_client_db.cc \
1168 tests/stub_client_side_request.cc \
1169 tests/stub_debug.cc \
1170 tests/stub_errorpage.cc \
1181 tests/stub_http.cc \
1186 tests/stub_ipcache.cc \
1187 tests/stub_libanyp.cc \
1188 tests/stub_libauth.cc \
1189 tests/stub_liberror.cc \
1190 tests/stub_libeui.cc \
1191 tests/stub_libformat.cc \
1192 tests/stub_libicmp.cc \
1193 tests/stub_liblog.cc \
1194 tests/stub_libmgr.cc \
1195 tests/stub_libsecurity.cc \
1198 tests/stub_mime.cc \
1200 tests/stub_neighbors.cc \
1201 tests/stub_pconn.cc \
1203 tests/stub_stat.cc \
1206 tests/stub_store_client.cc \
1210 tests/stub_store_rebuild.cc \
1212 tests/stub_store_stats.cc \
1216 tests/stub_tools.cc \
1220 nodist_tests_testRock_SOURCES = \
1226 tests_testRock_LDADD = \
1228 parser/libparser.la \
1235 DiskIO/libdiskio.la \
1246 $(ADAPTATION_LIBS) \
1248 $(top_builddir)/lib/libmisccontainers.la \
1249 $(top_builddir)/lib/libmiscencoding.la \
1250 $(top_builddir)/lib/libmiscutil.la \
1254 $(LIBCPPUNIT_LIBS) \
1257 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1262 tests/testStoreSupport.cc \
1263 tests/testStoreSupport.h
1267 check_PROGRAMS += tests/testUfs
1268 tests_testUfs_SOURCES = \
1269 $(DELAY_POOL_SOURCE) \
1270 $(STOREMETA_SOURCE) \
1275 tests/stub_CacheDigest.cc \
1277 tests/stub_CachePeer.cc \
1279 tests/stub_CollapsedForwarding.cc \
1286 tests/stub_HelperChildConfig.cc \
1291 HttpHdrContRange.cc \
1294 HttpHdrScTarget.cc \
1297 HttpHeaderFieldInfo.h \
1298 HttpHeaderFieldStat.h \
1299 HttpHeaderTools.cc \
1302 tests/stub_HttpRequest.cc \
1312 tests/stub_Port.cc \
1316 tests/stub_SBufDetailedStats.cc \
1321 StoreFileSystem.cc \
1323 StoreMetaUnpacker.cc \
1324 tests/testStoreSupport.cc \
1325 tests/testStoreSupport.h \
1326 StoreSwapLogData.cc \
1331 tests/stub_UdsOp.cc \
1334 tests/stub_access_log.cc \
1336 tests/stub_cache_cf.cc \
1338 tests/stub_cache_manager.cc \
1340 tests/stub_client_db.cc \
1342 tests/stub_client_side_request.cc \
1343 tests/stub_debug.cc \
1344 tests/stub_errorpage.cc \
1346 tests/stub_fatal.cc \
1355 tests/stub_helper.cc \
1356 tests/stub_http.cc \
1360 tests/stub_internal.cc \
1363 tests/stub_ipcache.cc \
1364 tests/stub_libanyp.cc \
1365 tests/stub_libauth.cc \
1366 tests/stub_liberror.cc \
1367 tests/stub_libeui.cc \
1368 tests/stub_libformat.cc \
1369 tests/stub_libicmp.cc \
1370 tests/stub_liblog.cc \
1371 tests/stub_libsecurity.cc \
1374 tests/stub_mime.cc \
1376 tests/stub_neighbors.cc \
1377 tests/stub_pconn.cc \
1381 tests/stub_stat.cc \
1384 tests/stub_store_client.cc \
1388 tests/stub_store_rebuild.cc \
1390 tests/stub_store_stats.cc \
1394 tests/stub_tools.cc \
1398 nodist_tests_testUfs_SOURCES = \
1404 tests_testUfs_LDADD = \
1406 parser/libparser.la \
1418 DiskIO/libdiskio.la \
1429 $(ADAPTATION_LIBS) \
1431 $(top_builddir)/lib/libmisccontainers.la \
1432 $(top_builddir)/lib/libmiscencoding.la \
1433 $(top_builddir)/lib/libmiscutil.la \
1437 $(LIBCPPUNIT_LIBS) \
1440 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1447 ## Tests of store/* and Store objects
1449 check_PROGRAMS += tests/testStore
1450 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1451 ## first line - what we are testing.
1452 tests_testStore_SOURCES = \
1453 $(DELAY_POOL_SOURCE) \
1454 tests/stub_CacheDigest.cc \
1457 tests/stub_CollapsedForwarding.cc \
1463 tests/stub_HelperChildConfig.cc \
1468 HttpHdrContRange.cc \
1471 HttpHdrScTarget.cc \
1474 HttpHeaderFieldInfo.h \
1475 HttpHeaderFieldStat.h \
1476 HttpHeaderTools.cc \
1478 tests/stub_HttpReply.cc \
1479 tests/stub_HttpRequest.cc \
1487 tests/testPackableStream.cc \
1488 tests/testPackableStream.h \
1490 tests/stub_Port.cc \
1494 tests/stub_SBufDetailedStats.cc \
1499 tests/testStore.cc \
1501 tests/testStoreController.cc \
1502 tests/testStoreController.h \
1503 StoreFileSystem.cc \
1504 tests/testStoreHashIndex.cc \
1505 tests/testStoreHashIndex.h \
1507 tests/stub_StoreMeta.cc \
1508 StoreMetaUnpacker.cc \
1509 tests/testStoreSupport.cc \
1510 tests/testStoreSupport.h \
1511 StoreSwapLogData.cc \
1516 tests/stub_UdsOp.cc \
1517 tests/stub_access_log.cc \
1519 tests/stub_cache_cf.cc \
1521 tests/stub_cache_manager.cc \
1523 tests/stub_client_side_request.cc \
1524 tests/stub_comm.cc \
1525 tests/stub_debug.cc \
1526 tests/stub_errorpage.cc \
1528 tests/stub_fatal.cc \
1536 tests/stub_helper.cc \
1537 tests/stub_http.cc \
1540 tests/stub_libanyp.cc \
1541 tests/stub_libauth.cc \
1542 tests/stub_libcomm.cc \
1543 tests/stub_libdiskio.cc \
1544 tests/stub_liberror.cc \
1545 tests/stub_libeui.cc \
1546 tests/stub_libformat.cc \
1547 tests/stub_libsecurity.cc \
1548 tests/stub_libsslsquid.cc \
1551 tests/stub_mime.cc \
1556 tests/stub_stat.cc \
1559 tests/stub_store_client.cc \
1563 tests/stub_store_rebuild.cc \
1565 tests/stub_store_stats.cc \
1567 tests/stub_store_swapout.cc \
1568 tests/CapturingStoreEntry.h \
1569 tests/TestSwapDir.cc \
1570 tests/TestSwapDir.h \
1571 tests/stub_time.cc \
1572 tests/stub_tools.cc \
1576 nodist_tests_testStore_SOURCES = \
1581 tests_testStore_LDADD= \
1584 parser/libparser.la \
1598 DiskIO/libdiskio.la \
1600 $(top_builddir)/lib/libmisccontainers.la \
1601 $(top_builddir)/lib/libmiscencoding.la \
1602 $(top_builddir)/lib/libmiscutil.la \
1607 $(LIBCPPUNIT_LIBS) \
1610 tests_testStore_LDFLAGS = $(LIBADD_DL)
1612 ## Tests of DiskIO/*
1614 check_PROGRAMS += tests/testDiskIO
1615 tests_testDiskIO_SOURCES = \
1616 $(DELAY_POOL_SOURCE) \
1621 tests/stub_CacheDigest.cc \
1623 tests/stub_CachePeer.cc \
1625 tests/stub_CollapsedForwarding.cc \
1628 tests/testDiskIO.cc \
1629 tests/testDiskIO.h \
1630 tests/stub_ETag.cc \
1634 tests/stub_HelperChildConfig.cc \
1639 HttpHdrContRange.cc \
1642 HttpHdrScTarget.cc \
1645 HttpHeaderFieldInfo.h \
1646 HttpHeaderFieldStat.h \
1647 HttpHeaderTools.cc \
1650 tests/stub_HttpRequest.cc \
1656 tests/stub_MemStore.cc \
1660 tests/stub_Port.cc \
1666 tests/stub_SBufDetailedStats.cc \
1669 tests/stub_StatHist.cc \
1671 StoreFileSystem.cc \
1673 tests/stub_StoreMeta.cc \
1674 StoreMetaUnpacker.cc \
1675 tests/testStoreSupport.cc \
1676 tests/testStoreSupport.h \
1677 StoreSwapLogData.cc \
1682 tests/stub_UdsOp.cc \
1683 tests/stub_access_log.cc \
1685 tests/stub_cache_cf.cc \
1687 tests/stub_cache_manager.cc \
1689 tests/stub_client_db.cc \
1691 tests/stub_client_side_request.cc \
1692 client_side_request.h \
1693 tests/stub_debug.cc \
1694 tests/stub_errorpage.cc \
1696 tests/stub_fatal.cc \
1705 tests/stub_helper.cc \
1706 tests/stub_http.cc \
1710 tests/stub_internal.cc \
1713 tests/stub_ipcache.cc \
1714 tests/stub_libanyp.cc \
1715 tests/stub_libauth.cc \
1716 tests/stub_libauth_acls.cc \
1717 tests/stub_liberror.cc \
1718 tests/stub_libeui.cc \
1719 tests/stub_libformat.cc \
1720 tests/stub_libicmp.cc \
1721 tests/stub_liblog.cc \
1722 tests/stub_libsecurity.cc \
1723 tests/stub_libstore.cc \
1726 tests/stub_mime.cc \
1728 tests/stub_neighbors.cc \
1729 tests/stub_pconn.cc \
1733 tests/stub_stat.cc \
1736 tests/stub_store_client.cc \
1740 tests/stub_store_rebuild.cc \
1742 tests/stub_store_stats.cc \
1745 tests/stub_time.cc \
1746 tests/stub_tools.cc \
1750 nodist_tests_testDiskIO_SOURCES = \
1756 tests_testDiskIO_LDADD = \
1759 parser/libparser.la \
1770 $(ADAPTATION_LIBS) \
1771 DiskIO/libdiskio.la \
1781 $(top_builddir)/lib/libmisccontainers.la \
1782 $(top_builddir)/lib/libmiscencoding.la \
1783 $(top_builddir)/lib/libmiscutil.la \
1787 $(LIBCPPUNIT_LIBS) \
1790 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1795 check_PROGRAMS += tests/testACLMaxUserIP
1796 tests_testACLMaxUserIP_SOURCES = \
1797 tests/testACLMaxUserIP.cc \
1798 tests/testACLMaxUserIP.h
1799 nodist_tests_testACLMaxUserIP_SOURCES = \
1801 tests/stub_HelperChildConfig.cc \
1802 tests/stub_HttpHeader.cc \
1803 tests/stub_HttpRequest.cc \
1804 tests/stub_MemBuf.cc \
1806 tests/stub_StatHist.cc \
1808 tests/stub_access_log.cc \
1809 tests/stub_cache_cf.cc \
1810 tests/stub_cbdata.cc \
1811 tests/stub_client_side.cc \
1812 tests/stub_debug.cc \
1814 tests/stub_errorpage.cc \
1815 tests/stub_fatal.cc \
1817 tests/stub_libauth.cc \
1818 tests/stub_libhttp.cc \
1819 tests/stub_libmem.cc \
1820 tests/stub_libsecurity.cc
1821 tests_testACLMaxUserIP_LDADD = \
1828 parser/libparser.la \
1832 $(LIBCPPUNIT_LIBS) \
1835 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1838 tests/testACLMaxUserIP.cc \
1839 tests/testACLMaxUserIP.h
1842 ## Tests of http/* and HTTP Protocol objects
1844 check_PROGRAMS += tests/test_http_range
1845 tests_test_http_range_SOURCES = \
1846 $(DELAY_POOL_SOURCE) \
1856 tests/stub_CacheDigest.cc \
1861 tests/stub_CollapsedForwarding.cc \
1868 tests/stub_ETag.cc \
1869 tests/stub_EventLoop.cc \
1874 HappyConnOpener.cc \
1878 tests/stub_HttpControlMsg.cc \
1881 HttpHdrContRange.cc \
1884 HttpHdrScTarget.cc \
1887 HttpHeaderFieldInfo.h \
1888 HttpHeaderFieldStat.h \
1889 HttpHeaderTools.cc \
1893 tests/stub_HttpUpgradeProtocolAccess.cc \
1895 tests/stub_IpcIoFile.cc \
1901 tests/stub_MemStore.cc \
1915 tests/stub_SBufDetailedStats.cc \
1922 StoreFileSystem.cc \
1924 tests/stub_StoreMeta.cc \
1925 StoreMetaUnpacker.cc \
1926 StoreSwapLogData.cc \
1931 tests/test_http_range.cc \
1932 tests/stub_cache_cf.cc \
1935 tests/stub_carp.cc \
1939 tests/stub_client_db.cc \
1942 client_side_reply.cc \
1943 client_side_request.cc \
1949 tests/stub_external_acl.cc \
1950 tests/stub_fatal.cc \
1960 tests/stub_gopher.cc \
1971 tests/stub_ipc_Forwarder.cc \
1973 tests/stub_libauth.cc \
1974 tests/stub_libdiskio.cc \
1975 tests/stub_liberror.cc \
1976 tests/stub_libeui.cc \
1977 tests/stub_libmem.cc \
1978 tests/stub_libsecurity.cc \
1979 tests/stub_libstore.cc \
1980 tests/stub_main_cc.cc \
1992 peer_proxy_negotiate_auth.cc \
1993 peer_proxy_negotiate_auth.h \
1995 peer_sourcehash.cc \
1999 tests/stub_redirect.cc \
2009 tests/stub_store_digest.cc \
2018 tests/stub_store_stats.cc \
2026 tests/stub_tunnel.cc \
2029 tests/stub_wccp2.cc \
2031 tests/stub_whois.cc \
2035 nodist_tests_test_http_range_SOURCES = \
2037 tests_test_http_range_LDADD = \
2039 clients/libclients.la \
2040 servers/libservers.la \
2042 helper/libhelper.la \
2044 parser/libparser.la \
2049 proxyp/libproxyp.la \
2050 parser/libparser.la \
2057 format/libformat.la \
2059 $(ADAPTATION_LIBS) \
2069 $(top_builddir)/lib/libmisccontainers.la \
2070 $(top_builddir)/lib/libmiscencoding.la \
2071 $(top_builddir)/lib/libmiscutil.la \
2076 $(LIBCPPUNIT_LIBS) \
2080 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2082 check_PROGRAMS += tests/testHttp1Parser
2083 tests_testHttp1Parser_SOURCES = \
2085 tests/stub_HelperChildConfig.cc \
2086 tests/testHttp1Parser.cc \
2087 tests/testHttp1Parser.h \
2090 tests/stub_MemObject.cc \
2091 tests/stub_SBufDetailedStats.cc \
2093 tests/stub_cache_cf.cc \
2095 tests/stub_cache_manager.cc \
2096 tests/stub_cbdata.cc \
2097 tests/stub_comm.cc \
2098 tests/stub_debug.cc \
2099 tests/stub_event.cc \
2100 tests/stub_libanyp.cc \
2101 tests/stub_libmem.cc \
2102 tests/stub_libsecurity.cc \
2105 tests/stub_stmem.cc \
2106 tests/stub_store.cc \
2107 tests/stub_store_stats.cc \
2108 tests/stub_time.cc \
2109 tests/stub_tools.cc \
2113 nodist_tests_testHttp1Parser_SOURCES = \
2115 tests_testHttp1Parser_LDADD= \
2117 parser/libparser.la \
2123 $(top_builddir)/lib/libmiscutil.la \
2125 $(LIBCPPUNIT_LIBS) \
2128 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2130 check_PROGRAMS += tests/testHttpReply
2131 tests_testHttpReply_SOURCES = \
2133 tests/stub_ETag.cc \
2134 tests/stub_HelperChildConfig.cc \
2141 HttpHdrContRange.cc \
2142 HttpHdrContRange.h \
2146 HttpHdrScTarget.cc \
2150 HttpHeaderFieldInfo.h \
2151 HttpHeaderFieldStat.h \
2153 HttpHeaderTools.cc \
2156 tests/testHttpReply.cc \
2158 tests/testHttpReply.h \
2159 tests/stub_HttpRequest.cc \
2166 tests/stub_SBufDetailedStats.cc \
2171 tests/stub_StatHist.cc \
2176 tests/stub_access_log.cc \
2177 tests/stub_cache_cf.cc \
2179 tests/stub_cache_manager.cc \
2182 tests/stub_comm.cc \
2183 tests/stub_debug.cc \
2184 tests/stub_errorpage.cc \
2185 tests/stub_event.cc \
2186 tests/stub_fatal.cc \
2189 tests/stub_libanyp.cc \
2190 tests/stub_libauth.cc \
2191 tests/stub_libcomm.cc \
2192 tests/stub_liberror.cc \
2193 tests/stub_libformat.cc \
2194 tests/stub_libmgr.cc \
2195 tests/stub_libsecurity.cc \
2196 tests/stub_libsslsquid.cc \
2201 tests/stub_store.cc \
2202 tests/stub_store_stats.cc \
2203 tests/stub_time.cc \
2204 tests/stub_tools.cc \
2208 nodist_tests_testHttpReply_SOURCES = \
2211 tests_testHttpReply_LDADD=\
2214 parser/libparser.la \
2224 $(top_builddir)/lib/libmisccontainers.la \
2225 $(top_builddir)/lib/libmiscencoding.la \
2226 $(top_builddir)/lib/libmiscutil.la \
2229 $(LIBCPPUNIT_LIBS) \
2232 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
2234 check_PROGRAMS += tests/testHttpRequest
2235 tests_testHttpRequest_SOURCES = \
2236 $(DELAY_POOL_SOURCE) \
2245 tests/stub_CacheDigest.cc \
2250 tests/stub_CollapsedForwarding.cc \
2257 tests/stub_ETag.cc \
2258 tests/stub_EventLoop.cc \
2259 ExternalACLEntry.cc \
2263 HappyConnOpener.cc \
2267 tests/stub_HttpControlMsg.cc \
2270 HttpHdrContRange.cc \
2273 HttpHdrScTarget.cc \
2276 HttpHeaderFieldInfo.h \
2277 HttpHeaderFieldStat.h \
2278 HttpHeaderTools.cc \
2282 tests/testHttpRequest.cc \
2283 tests/testHttpRequest.h \
2284 tests/testHttpRequestMethod.cc \
2285 tests/testHttpRequestMethod.h \
2286 tests/stub_HttpUpgradeProtocolAccess.cc \
2288 tests/stub_IpcIoFile.cc \
2308 tests/stub_SBufDetailedStats.cc \
2315 StoreFileSystem.cc \
2317 tests/stub_StoreMeta.cc \
2318 StoreMetaUnpacker.cc \
2319 StoreSwapLogData.cc \
2324 tests/stub_cache_cf.cc \
2327 tests/stub_carp.cc \
2331 tests/stub_client_db.cc \
2334 client_side_reply.cc \
2335 client_side_request.cc \
2342 tests/stub_fatal.cc \
2351 tests/stub_gopher.cc \
2362 tests/stub_ipc_Forwarder.cc \
2364 tests/stub_libauth.cc \
2365 tests/stub_libauth_acls.cc \
2366 tests/stub_libdiskio.cc \
2367 tests/stub_liberror.cc \
2368 tests/stub_libeui.cc \
2369 tests/stub_libmem.cc \
2370 tests/stub_libsecurity.cc \
2371 tests/stub_libstore.cc \
2372 tests/stub_main_cc.cc \
2384 peer_proxy_negotiate_auth.cc \
2385 peer_proxy_negotiate_auth.h \
2387 peer_sourcehash.cc \
2391 tests/stub_redirect.cc \
2401 tests/stub_store_digest.cc \
2410 tests/stub_store_stats.cc \
2418 tests/stub_tunnel.cc \
2421 tests/stub_wccp2.cc \
2423 tests/stub_whois.cc \
2427 nodist_tests_testHttpRequest_SOURCES = \
2429 tests_testHttpRequest_LDADD = \
2431 clients/libclients.la \
2432 servers/libservers.la \
2433 helper/libhelper.la \
2440 parser/libparser.la \
2445 proxyp/libproxyp.la \
2446 parser/libparser.la \
2455 format/libformat.la \
2459 $(ADAPTATION_LIBS) \
2461 $(top_builddir)/lib/libmisccontainers.la \
2462 $(top_builddir)/lib/libmiscencoding.la \
2463 $(top_builddir)/lib/libmiscutil.la \
2468 $(LIBCPPUNIT_LIBS) \
2472 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2476 check_PROGRAMS += tests/testIpAddress
2477 tests_testIpAddress_SOURCES = \
2478 tests/testIpAddress.cc \
2479 tests/testIpAddress.h
2480 nodist_tests_testIpAddress_SOURCES = \
2481 tests/stub_SBuf.cc \
2482 tests/stub_debug.cc \
2483 tests/stub_libmem.cc \
2485 tests_testIpAddress_LDADD = \
2488 $(LIBCPPUNIT_LIBS) \
2491 tests_testIpAddress_LDFLAGS = $(LIBADD_DL)
2495 check_PROGRAMS += tests/testIcmp
2496 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2497 tests_testIcmp_SOURCES = \
2500 nodist_tests_testIcmp_SOURCES = \
2501 tests/stub_SBuf.cc \
2503 tests/stub_debug.cc \
2506 tests/stub_libmem.cc \
2508 tests_testIcmp_LDADD=\
2509 icmp/libicmpcore.la \
2512 $(LIBCPPUNIT_LIBS) \
2515 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2517 check_PROGRAMS += tests/testNetDb
2518 tests_testNetDb_SOURCES = \
2519 tests/testNetDb.cc \
2521 nodist_tests_testNetDb_SOURCES = \
2522 tests/stub_SBuf.cc \
2524 tests/stub_debug.cc \
2526 tests/stub_libmem.cc \
2528 tests_testNetDb_LDADD = \
2532 $(top_builddir)/lib/libmisccontainers.la \
2533 $(LIBCPPUNIT_LIBS) \
2536 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2538 ## Tests of mgr/* and CacheManager objects
2540 check_PROGRAMS += tests/testCacheManager
2541 tests_testCacheManager_SOURCES = \
2542 $(DELAY_POOL_SOURCE) \
2552 tests/stub_CacheDigest.cc \
2554 tests/testCacheManager.cc \
2555 tests/testCacheManager.h \
2559 tests/stub_CollapsedForwarding.cc \
2566 tests/stub_ETag.cc \
2567 tests/stub_EventLoop.cc \
2568 ExternalACLEntry.cc \
2573 HappyConnOpener.cc \
2577 tests/stub_HttpControlMsg.cc \
2580 HttpHdrContRange.cc \
2583 HttpHdrScTarget.cc \
2586 HttpHeaderFieldInfo.h \
2587 HttpHeaderFieldStat.h \
2588 HttpHeaderTools.cc \
2592 tests/stub_HttpUpgradeProtocolAccess.cc \
2594 tests/stub_IpcIoFile.cc \
2614 tests/stub_SBufDetailedStats.cc \
2619 tests/stub_StatHist.cc \
2621 StoreFileSystem.cc \
2623 tests/stub_StoreMeta.cc \
2624 StoreMetaUnpacker.cc \
2625 StoreSwapLogData.cc \
2630 tests/stub_cache_cf.cc \
2633 tests/stub_carp.cc \
2637 tests/stub_client_db.cc \
2640 client_side_reply.cc \
2641 client_side_request.cc \
2648 tests/stub_fatal.cc \
2658 tests/stub_gopher.cc \
2669 tests/stub_ipc_Forwarder.cc \
2671 tests/stub_libauth.cc \
2672 tests/stub_libauth_acls.cc \
2673 tests/stub_libdiskio.cc \
2674 tests/stub_liberror.cc \
2675 tests/stub_libsecurity.cc \
2676 tests/stub_libstore.cc \
2677 tests/stub_main_cc.cc \
2689 peer_proxy_negotiate_auth.cc \
2690 peer_proxy_negotiate_auth.h \
2692 peer_sourcehash.cc \
2696 tests/stub_redirect.cc \
2706 tests/stub_store_digest.cc \
2715 tests/stub_store_stats.cc \
2723 tests/stub_tunnel.cc \
2726 tests/stub_wccp2.cc \
2728 tests/stub_whois.cc \
2732 nodist_tests_testCacheManager_SOURCES = \
2734 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
2735 tests_testCacheManager_LDADD = \
2737 clients/libclients.la \
2738 servers/libservers.la \
2740 helper/libhelper.la \
2742 proxyp/libproxyp.la \
2743 parser/libparser.la \
2756 format/libformat.la \
2758 $(ADAPTATION_LIBS) \
2768 $(top_builddir)/lib/libmisccontainers.la \
2769 $(top_builddir)/lib/libmiscencoding.la \
2770 $(top_builddir)/lib/libmiscutil.la \
2775 $(LIBCPPUNIT_LIBS) \
2779 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
2781 check_PROGRAMS += tests/testStatHist
2782 tests_testStatHist_SOURCES = \
2783 tests/stub_DelayId.cc \
2784 tests/stub_HelperChildConfig.cc \
2785 tests/stub_MemBuf.cc \
2786 tests/stub_MemObject.cc \
2787 tests/stub_SBufDetailedStats.cc \
2789 tests/testStatHist.cc \
2791 tests/testStatHist.h \
2793 tests/stub_cache_manager.cc \
2794 tests/stub_cbdata.cc \
2795 tests/stub_comm.cc \
2796 tests/stub_debug.cc \
2797 tests/stub_fatal.cc \
2799 tests/stub_libmem.cc \
2800 tests/stub_mime.cc \
2802 tests/stub_pconn.cc \
2804 tests/stub_stmem.cc \
2805 tests/stub_store.cc \
2806 tests/stub_store_stats.cc \
2808 tests/stub_tools.cc \
2810 nodist_tests_testStatHist_SOURCES = \
2812 tests_testStatHist_LDADD = \
2815 $(top_builddir)/lib/libmiscutil.la \
2816 $(top_builddir)/lib/libmisccontainers.la \
2817 $(LIBCPPUNIT_LIBS) \
2819 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2821 ## Tests of ConfigParser
2823 check_PROGRAMS += tests/testConfigParser
2824 tests_testConfigParser_SOURCES = \
2827 tests/testConfigParser.cc \
2828 tests/testConfigParser.h \
2829 tests/stub_HelperChildConfig.cc \
2830 tests/stub_MemBuf.cc \
2831 tests/stub_SBufDetailedStats.cc \
2833 tests/stub_cache_cf.cc \
2835 tests/stub_cbdata.cc \
2836 tests/stub_debug.cc \
2837 tests/stub_fatal.cc \
2839 tests/stub_libmem.cc \
2840 tests/stub_time.cc \
2841 tests/stub_tools.cc \
2845 nodist_tests_testConfigParser_SOURCES = \
2847 tests_testConfigParser_LDADD = \
2852 $(top_builddir)/lib/libmiscutil.la \
2855 $(LIBCPPUNIT_LIBS) \
2858 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
2860 ## Tests of Event handling
2862 check_PROGRAMS += tests/testEvent
2863 tests_testEvent_SOURCES = \
2864 $(DELAY_POOL_SOURCE) \
2874 tests/stub_CacheDigest.cc \
2879 tests/stub_CollapsedForwarding.cc \
2886 tests/stub_ETag.cc \
2887 tests/testEvent.cc \
2891 ExternalACLEntry.cc \
2896 HappyConnOpener.cc \
2900 tests/stub_HttpControlMsg.cc \
2903 HttpHdrContRange.cc \
2906 HttpHdrScTarget.cc \
2909 HttpHeaderFieldInfo.h \
2910 HttpHeaderFieldStat.h \
2911 HttpHeaderTools.cc \
2915 tests/stub_HttpUpgradeProtocolAccess.cc \
2917 tests/stub_IpcIoFile.cc \
2937 tests/stub_SBufDetailedStats.cc \
2944 StoreFileSystem.cc \
2946 tests/stub_StoreMeta.cc \
2947 StoreMetaUnpacker.cc \
2948 StoreSwapLogData.cc \
2953 tests/stub_cache_cf.cc \
2956 tests/stub_carp.cc \
2960 tests/stub_client_db.cc \
2963 client_side_reply.cc \
2964 client_side_request.cc \
2971 tests/stub_fatal.cc \
2981 tests/stub_gopher.cc \
2992 tests/stub_ipc_Forwarder.cc \
2994 tests/stub_libauth.cc \
2995 tests/stub_libauth_acls.cc \
2996 tests/stub_libdiskio.cc \
2997 tests/stub_liberror.cc \
2998 tests/stub_libeui.cc \
2999 tests/stub_libmem.cc \
3000 tests/stub_libsecurity.cc \
3001 tests/stub_libstore.cc \
3002 tests/stub_main_cc.cc \
3014 peer_proxy_negotiate_auth.cc \
3015 peer_proxy_negotiate_auth.h \
3017 peer_sourcehash.cc \
3021 tests/stub_redirect.cc \
3031 tests/stub_store_digest.cc \
3040 tests/stub_store_stats.cc \
3045 tests/CapturingStoreEntry.h \
3049 tests/stub_tunnel.cc \
3052 tests/stub_wccp2.cc \
3054 tests/stub_whois.cc \
3058 nodist_tests_testEvent_SOURCES = \
3060 tests_testEvent_LDADD = \
3062 clients/libclients.la \
3063 servers/libservers.la \
3065 helper/libhelper.la \
3067 proxyp/libproxyp.la \
3068 parser/libparser.la \
3081 format/libformat.la \
3083 $(ADAPTATION_LIBS) \
3086 $(top_builddir)/lib/libmisccontainers.la \
3087 $(top_builddir)/lib/libmiscencoding.la \
3088 $(top_builddir)/lib/libmiscutil.la \
3098 $(LIBCPPUNIT_LIBS) \
3102 tests_testEvent_LDFLAGS = $(LIBADD_DL)
3104 check_PROGRAMS += tests/testEventLoop
3105 tests_testEventLoop_SOURCES = \
3106 tests/testEventLoop.cc \
3107 tests/testEventLoop.h
3108 nodist_tests_testEventLoop_SOURCES = \
3110 tests/stub_debug.cc \
3111 tests/stub_fatal.cc \
3113 tests_testEventLoop_LDADD = \
3115 $(LIBCPPUNIT_LIBS) \
3118 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
3120 ## Run the unit tests. check_PROGRAMS only builds the binaries.
3121 TESTS += $(check_PROGRAMS) testHeaders
3123 ## Special Universal .h dependency test script
3124 ## aborts if error encountered
3125 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3126 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3127 ## src/repl/ has no .h files and its own makefile.
3129 CLEANFILES += testHeaders