1 ## Copyright (C) 1996-2020 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 proxyp
35 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm 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 \
438 peer_proxy_negotiate_auth.cc \
439 peer_proxy_negotiate_auth.h \
451 sbuf/StringConvert.h \
490 EXTRA_squid_SOURCES = \
491 $(DELAY_POOL_ALL_SOURCE) \
492 $(LOADABLE_MODULES_SOURCES) \
495 $(WIN32_ALL_SOURCE) \
521 CLEANFILES += $(BUILT_SOURCES)
523 nodist_squid_SOURCES = \
533 clients/libclients.la \
534 servers/libservers.la \
536 helper/libhelper.la \
543 DiskIO/libdiskio.la \
546 security/libsecurity.la \
550 proxyp/libproxyp.la \
551 parser/libparser.la \
555 format/libformat.la \
567 $(top_builddir)/lib/libmisccontainers.la \
568 $(top_builddir)/lib/libmiscencoding.la \
569 $(top_builddir)/lib/libmiscutil.la \
578 if ENABLE_LOADABLE_MODULES
579 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
580 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
581 squid_LDFLAGS = -export-dynamic -dlopen force
582 ## when static module linking is supported and enabled:
583 ## squid_LDFLAGS = -all-static -dlopen self
585 ## LTDL headers require their local include path...
586 AM_CPPFLAGS += $(INCLTDL)
589 ## Kerberos libraries require their include path...
590 AM_CPPFLAGS += $(KRB5INCS)
593 unlinkd_SOURCES = unlinkd_daemon.cc
598 recv_announce_SOURCES = recv-announce.cc
600 ## What requires what..
601 ## many things want ACLChecklist.cc
602 ## ACLChecklist.cc wants AuthUserRequest.cc
603 ## ACLChecklist.cc wants AuthScheme.cc
604 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
605 ## ACLProxyAuth.cc wants ACLUserData
606 ## ACLProxyAuth.cc wants ACLRegexData
607 ## cache_cf.cc wants $(AUTH_LIBS)
608 ## cache_cf.cc wants store/libstore.la
609 ## cache_cf.cc wants AnyP::PortCfg
610 ## client_side wants client_db
611 ## client_db wants SNMP_SOURCE
612 ## snmp_core wants ACLStringData
613 ## tools.cc wants ip/libip.la
614 ## client_side.cc wants ip/libip.la
615 ## libbase.la wants cbdata.*
616 ## libbase.la wants MemBuf.*
620 tests/stub_HelperChildConfig.cc \
626 tests/stub_StoreMeta.cc \
627 StoreMetaUnpacker.cc \
636 helper/ChildConfig.h \
666 ufsdump_DEPENDENCIES = \
678 DiskIO/libdiskio.la \
681 nodist_ufsdump_SOURCES = \
686 squid.conf.documented \
711 include $(srcdir)/tests/Stub.am
719 mk-string-arrays.awk \
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 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
754 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
756 ## If autodependency works well this is not needed anymore
757 cache_cf.o: cf_parser.cci
759 # cf_gen builds the configuration files.
760 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
761 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
763 # squid.conf.default is built by cf_gen when making cf_parser.cci
764 squid.conf.default squid.conf.documented: cf_parser.cci
767 cf_parser.cci: cf.data cf_gen$(EXEEXT)
768 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
770 # The cf_gen_defines.cci is auto-generated and does not exist when the
771 # dependencies computed. We need to add its include files (autoconf.h) here
772 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
773 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
776 ## TODO: generate a sed command file from configure. Then this doesn't
777 ## depend on the Makefile.
778 cf.data: cf.data.pre Makefile
780 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
781 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
782 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
783 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
784 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
785 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
786 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
787 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
788 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
789 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
790 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
791 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
792 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
793 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
794 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
795 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
796 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
797 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
798 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
799 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
800 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
801 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
802 -f $(srcdir)/cf.data.sed \
803 < $(srcdir)/cf.data.pre >$@
805 repl_modules.cc: repl_modules.sh Makefile
806 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
808 include $(top_srcdir)/doc/manuals/Substitute.am
810 squid.8: $(srcdir)/squid.8.in Makefile
811 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
814 EXTRA_DIST += squid.8.in
815 CLEANFILES += squid.8
817 install-data-local: install-sysconfDATA install-dataDATA
818 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
819 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
821 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
822 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
824 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
825 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
827 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
828 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
830 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
831 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
832 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
833 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
834 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
835 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
836 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
838 uninstall-local: squid.conf.default
839 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
840 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
842 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
845 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
846 cp $(top_srcdir)/test-suite/test_tools.cc .
848 # stock tools for unit tests - library independent versions of dlink_list
850 # globals.cc is needed by test_tools.cc.
851 # Neither of these should be disted from here.
857 ### Template for new Unit Test Program
858 ## - copy template below and substitute X for class name
859 ## - place code being tested in _SOURCES
860 ## - place stubs etc. requiredd to link in nodist_*_SOURCES
861 ## - add other component .(h|cc) files needed to link and run tests
863 #check_PROGRAMS += tests/testX
864 #tests_testX_SOURCES= \
867 #nodist_tests_testX_SOURCES= \
869 # tests/stubs_as_needed.cc
871 # $(LIBCPPUNIT_LIBS) \
874 #tests_testX_LDFLAGS = $(LIBADD_DL)
876 ## A demonstration test that does nothing but shows the salient points
877 ## involved in writing tests.
878 check_PROGRAMS += tests/testBoilerplate
879 tests_testBoilerplate_SOURCES = \
880 tests/testBoilerplate.cc \
881 tests/testBoilerplate.h
882 nodist_tests_testBoilerplate_SOURCES = \
884 tests_testBoilerplate_LDADD= \
888 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
890 # Unit Tests are listed below by sub-directory with order matching the SUBDIRS
891 # dependency-based list so that simpler code is tested before more complex code
896 check_PROGRAMS += tests/testMem
897 tests_testMem_SOURCES = \
900 nodist_tests_testMem_SOURCES = \
902 tests_testMem_LDADD = \
904 $(top_builddir)/lib/libmiscutil.la \
908 tests_testMem_LDFLAGS = $(LIBADD_DL)
912 check_PROGRAMS += tests/testCharacterSet
913 tests_testCharacterSet_SOURCES = \
914 tests/testCharacterSet.cc \
915 tests/testCharacterSet.h
916 nodist_tests_testCharacterSet_SOURCES = \
918 tests_testCharacterSet_LDADD = \
923 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
925 check_PROGRAMS += tests/testEnumIterator
926 tests_testEnumIterator_SOURCES = \
927 tests/testEnumIterator.cc \
928 tests/testEnumIterator.h
929 nodist_tests_testEnumIterator_SOURCES = \
931 tests_testEnumIterator_LDADD = \
935 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
937 check_PROGRAMS += tests/testLookupTable
938 tests_testLookupTable_SOURCES = \
939 tests/testLookupTable.cc \
940 tests/testLookupTable.h
941 nodist_tests_testLookupTable_SOURCES = \
942 tests/stub_SBufDetailedStats.cc \
944 tests/stub_debug.cc \
946 tests_testLookupTable_LDADD = \
952 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
954 check_PROGRAMS += tests/testRefCount
955 tests_testRefCount_SOURCES = \
956 tests/testRefCount.cc \
958 nodist_tests_testRefCount_SOURCES = \
960 tests_testRefCount_LDADD = \
964 tests_testRefCount_LDFLAGS = $(LIBADD_DL)
966 check_PROGRAMS += tests/testYesNoNone
967 tests_testYesNoNone_SOURCES = \
968 tests/testYesNoNone.cc \
969 tests/testYesNoNone.h
970 nodist_tests_testYesNoNone_SOURCES = \
974 tests_testYesNoNone_LDADD = \
979 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
983 check_PROGRAMS += tests/testURL
984 tests_testURL_SOURCES = \
987 tests/testUriScheme.cc \
988 tests/testUriScheme.h
989 nodist_tests_testURL_SOURCES = \
990 tests/stub_HelperChildConfig.cc \
991 tests/stub_HttpHeader.cc \
992 tests/stub_HttpRequest.cc \
993 tests/stub_StatHist.cc \
995 tests/stub_access_log.cc \
998 tests/stub_cbdata.cc \
999 tests/stub_debug.cc \
1000 tests/stub_libhttp.cc \
1001 tests/stub_libmem.cc
1002 tests_testURL_LDADD = \
1005 parser/libparser.la \
1009 $(top_builddir)/lib/libmiscencoding.la \
1010 $(LIBCPPUNIT_LIBS) \
1013 tests_testURL_LDFLAGS = $(LIBADD_DL)
1017 check_PROGRAMS += tests/testDns
1018 tests_testDns_SOURCES = \
1019 tests/testRFC1035.cc \
1021 nodist_tests_testDns_SOURCES=
1022 tests_testDns_LDADD = \
1024 $(LIBCPPUNIT_LIBS) \
1027 tests_testDns_LDFLAGS = $(LIBADD_DL)
1029 ## Tests of parser/*
1031 check_PROGRAMS += tests/testTokenizer
1032 tests_testTokenizer_SOURCES = \
1033 tests/testTokenizer.cc \
1034 tests/testTokenizer.h
1035 nodist_tests_testTokenizer_SOURCES = \
1036 tests/stub_StatHist.cc \
1037 tests/stub_debug.cc \
1038 tests/stub_libmem.cc \
1040 tests_testTokenizer_LDADD = \
1041 parser/libparser.la \
1044 $(LIBCPPUNIT_LIBS) \
1047 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
1049 ## Tests of sbuf/* and String handling objects
1051 check_PROGRAMS += tests/testSBuf
1052 tests_testSBuf_SOURCES = \
1055 tests/SBufFindTest.cc \
1056 tests/SBufFindTest.h
1057 nodist_tests_testSBuf_SOURCES = \
1058 tests/stub_StatHist.cc \
1059 tests/stub_debug.cc \
1060 tests/stub_libmem.cc
1061 tests_testSBuf_LDADD = \
1064 $(LIBCPPUNIT_LIBS) \
1067 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
1069 check_PROGRAMS += tests/testSBufList
1070 tests_testSBufList_SOURCES = \
1071 tests/testSBufList.cc \
1072 tests/testSBufList.h
1073 nodist_tests_testSBufList_SOURCES = \
1074 tests/stub_StatHist.cc \
1075 tests/stub_debug.cc \
1076 tests/stub_libmem.cc
1077 tests_testSBufList_LDADD = \
1080 $(LIBCPPUNIT_LIBS) \
1083 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
1085 check_PROGRAMS += tests/testString
1086 tests_testString_SOURCES = \
1087 tests/testString.cc \
1089 nodist_tests_testString_SOURCES = \
1090 tests/stub_SBuf.cc \
1092 tests/stub_debug.cc \
1093 tests/stub_libmem.cc
1094 tests_testString_LDADD = \
1096 $(LIBCPPUNIT_LIBS) \
1099 tests_testString_LDFLAGS = $(LIBADD_DL)
1104 check_PROGRAMS += tests/testRock
1105 tests_testRock_SOURCES = \
1106 $(DELAY_POOL_SOURCE) \
1107 $(STOREMETA_SOURCE) \
1111 tests/stub_CacheDigest.cc \
1113 tests/stub_CachePeer.cc \
1114 CollapsedForwarding.cc \
1115 CollapsedForwarding.h \
1122 tests/stub_HelperChildConfig.cc \
1126 HttpHdrContRange.cc \
1129 HttpHdrScTarget.cc \
1132 HttpHeaderFieldInfo.h \
1133 HttpHeaderFieldStat.h \
1134 HttpHeaderTools.cc \
1137 tests/stub_HttpRequest.cc \
1147 tests/stub_Port.cc \
1155 tests/stub_SBufDetailedStats.cc \
1158 tests/stub_StatHist.cc \
1160 StoreFileSystem.cc \
1162 StoreMetaUnpacker.cc \
1163 tests/testStoreSupport.cc \
1164 tests/testStoreSupport.h \
1165 StoreSwapLogData.cc \
1171 tests/stub_access_log.cc \
1172 tests/stub_cache_cf.cc \
1174 tests/stub_cache_manager.cc \
1176 tests/stub_client_db.cc \
1177 tests/stub_client_side_request.cc \
1178 tests/stub_debug.cc \
1179 tests/stub_errorpage.cc \
1190 tests/stub_http.cc \
1195 tests/stub_ipcache.cc \
1196 tests/stub_libanyp.cc \
1197 tests/stub_libauth.cc \
1198 tests/stub_libeui.cc \
1199 tests/stub_libformat.cc \
1200 tests/stub_libicmp.cc \
1201 tests/stub_liblog.cc \
1202 tests/stub_libmgr.cc \
1203 tests/stub_libsecurity.cc \
1206 tests/stub_mime.cc \
1208 tests/stub_neighbors.cc \
1209 tests/stub_pconn.cc \
1211 tests/stub_stat.cc \
1214 tests/stub_store_client.cc \
1218 tests/stub_store_rebuild.cc \
1220 tests/stub_store_stats.cc \
1224 tests/stub_tools.cc \
1228 nodist_tests_testRock_SOURCES = \
1234 tests_testRock_LDADD = \
1236 parser/libparser.la \
1243 DiskIO/libdiskio.la \
1254 $(ADAPTATION_LIBS) \
1256 $(top_builddir)/lib/libmisccontainers.la \
1257 $(top_builddir)/lib/libmiscencoding.la \
1258 $(top_builddir)/lib/libmiscutil.la \
1262 $(LIBCPPUNIT_LIBS) \
1265 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1270 tests/testStoreSupport.cc \
1271 tests/testStoreSupport.h
1275 check_PROGRAMS += tests/testUfs
1276 tests_testUfs_SOURCES = \
1277 $(DELAY_POOL_SOURCE) \
1278 $(STOREMETA_SOURCE) \
1283 tests/stub_CacheDigest.cc \
1285 tests/stub_CachePeer.cc \
1287 tests/stub_CollapsedForwarding.cc \
1294 tests/stub_HelperChildConfig.cc \
1299 HttpHdrContRange.cc \
1302 HttpHdrScTarget.cc \
1305 HttpHeaderFieldInfo.h \
1306 HttpHeaderFieldStat.h \
1307 HttpHeaderTools.cc \
1310 tests/stub_HttpRequest.cc \
1320 tests/stub_Port.cc \
1324 tests/stub_SBufDetailedStats.cc \
1329 StoreFileSystem.cc \
1331 StoreMetaUnpacker.cc \
1332 tests/testStoreSupport.cc \
1333 tests/testStoreSupport.h \
1334 StoreSwapLogData.cc \
1339 tests/stub_UdsOp.cc \
1342 tests/stub_access_log.cc \
1344 tests/stub_cache_cf.cc \
1346 tests/stub_cache_manager.cc \
1348 tests/stub_client_db.cc \
1350 tests/stub_client_side_request.cc \
1351 tests/stub_debug.cc \
1352 tests/stub_errorpage.cc \
1354 tests/stub_fatal.cc \
1363 tests/stub_helper.cc \
1364 tests/stub_http.cc \
1368 tests/stub_internal.cc \
1371 tests/stub_ipcache.cc \
1372 tests/stub_libanyp.cc \
1373 tests/stub_libauth.cc \
1374 tests/stub_libeui.cc \
1375 tests/stub_libformat.cc \
1376 tests/stub_libicmp.cc \
1377 tests/stub_liblog.cc \
1378 tests/stub_libsecurity.cc \
1381 tests/stub_mime.cc \
1383 tests/stub_neighbors.cc \
1384 tests/stub_pconn.cc \
1388 tests/stub_stat.cc \
1391 tests/stub_store_client.cc \
1395 tests/stub_store_rebuild.cc \
1397 tests/stub_store_stats.cc \
1401 tests/stub_tools.cc \
1405 nodist_tests_testUfs_SOURCES = \
1411 tests_testUfs_LDADD = \
1413 parser/libparser.la \
1425 DiskIO/libdiskio.la \
1436 $(ADAPTATION_LIBS) \
1438 $(top_builddir)/lib/libmisccontainers.la \
1439 $(top_builddir)/lib/libmiscencoding.la \
1440 $(top_builddir)/lib/libmiscutil.la \
1444 $(LIBCPPUNIT_LIBS) \
1447 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1454 ## Tests of store/* and Store objects
1456 check_PROGRAMS += tests/testStore
1457 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1458 ## first line - what we are testing.
1459 tests_testStore_SOURCES = \
1460 $(DELAY_POOL_SOURCE) \
1461 tests/stub_CacheDigest.cc \
1464 tests/stub_CollapsedForwarding.cc \
1470 tests/stub_HelperChildConfig.cc \
1475 HttpHdrContRange.cc \
1478 HttpHdrScTarget.cc \
1481 HttpHeaderFieldInfo.h \
1482 HttpHeaderFieldStat.h \
1483 HttpHeaderTools.cc \
1485 tests/stub_HttpReply.cc \
1486 tests/stub_HttpRequest.cc \
1494 tests/testPackableStream.cc \
1495 tests/testPackableStream.h \
1497 tests/stub_Port.cc \
1501 tests/stub_SBufDetailedStats.cc \
1506 tests/testStore.cc \
1508 tests/testStoreController.cc \
1509 tests/testStoreController.h \
1510 StoreFileSystem.cc \
1511 tests/testStoreHashIndex.cc \
1512 tests/testStoreHashIndex.h \
1514 tests/stub_StoreMeta.cc \
1515 StoreMetaUnpacker.cc \
1516 tests/testStoreSupport.cc \
1517 tests/testStoreSupport.h \
1518 StoreSwapLogData.cc \
1523 tests/stub_UdsOp.cc \
1524 tests/stub_access_log.cc \
1526 tests/stub_cache_cf.cc \
1528 tests/stub_cache_manager.cc \
1530 tests/stub_client_side_request.cc \
1531 tests/stub_comm.cc \
1532 tests/stub_debug.cc \
1533 tests/stub_errorpage.cc \
1535 tests/stub_fatal.cc \
1543 tests/stub_helper.cc \
1544 tests/stub_http.cc \
1547 tests/stub_libanyp.cc \
1548 tests/stub_libauth.cc \
1549 tests/stub_libcomm.cc \
1550 tests/stub_libdiskio.cc \
1551 tests/stub_libeui.cc \
1552 tests/stub_libformat.cc \
1553 tests/stub_libsecurity.cc \
1554 tests/stub_libsslsquid.cc \
1557 tests/stub_mime.cc \
1562 tests/stub_stat.cc \
1565 tests/stub_store_client.cc \
1569 tests/stub_store_rebuild.cc \
1571 tests/stub_store_stats.cc \
1573 tests/stub_store_swapout.cc \
1574 tests/CapturingStoreEntry.h \
1575 tests/TestSwapDir.cc \
1576 tests/TestSwapDir.h \
1577 tests/stub_time.cc \
1578 tests/stub_tools.cc \
1582 nodist_tests_testStore_SOURCES = \
1587 tests_testStore_LDADD= \
1590 parser/libparser.la \
1604 DiskIO/libdiskio.la \
1606 $(top_builddir)/lib/libmisccontainers.la \
1607 $(top_builddir)/lib/libmiscencoding.la \
1608 $(top_builddir)/lib/libmiscutil.la \
1613 $(LIBCPPUNIT_LIBS) \
1616 tests_testStore_LDFLAGS = $(LIBADD_DL)
1618 ## Tests of DiskIO/*
1620 check_PROGRAMS += tests/testDiskIO
1621 tests_testDiskIO_SOURCES = \
1622 $(DELAY_POOL_SOURCE) \
1627 tests/stub_CacheDigest.cc \
1629 tests/stub_CachePeer.cc \
1631 tests/stub_CollapsedForwarding.cc \
1634 tests/testDiskIO.cc \
1635 tests/testDiskIO.h \
1636 tests/stub_ETag.cc \
1640 tests/stub_HelperChildConfig.cc \
1645 HttpHdrContRange.cc \
1648 HttpHdrScTarget.cc \
1651 HttpHeaderFieldInfo.h \
1652 HttpHeaderFieldStat.h \
1653 HttpHeaderTools.cc \
1656 tests/stub_HttpRequest.cc \
1662 tests/stub_MemStore.cc \
1666 tests/stub_Port.cc \
1672 tests/stub_SBufDetailedStats.cc \
1675 tests/stub_StatHist.cc \
1677 StoreFileSystem.cc \
1679 tests/stub_StoreMeta.cc \
1680 StoreMetaUnpacker.cc \
1681 tests/testStoreSupport.cc \
1682 tests/testStoreSupport.h \
1683 StoreSwapLogData.cc \
1688 tests/stub_UdsOp.cc \
1689 tests/stub_access_log.cc \
1691 tests/stub_cache_cf.cc \
1693 tests/stub_cache_manager.cc \
1695 tests/stub_client_db.cc \
1697 tests/stub_client_side_request.cc \
1698 client_side_request.h \
1699 tests/stub_debug.cc \
1700 tests/stub_errorpage.cc \
1702 tests/stub_fatal.cc \
1711 tests/stub_helper.cc \
1712 tests/stub_http.cc \
1716 tests/stub_internal.cc \
1719 tests/stub_ipcache.cc \
1720 tests/stub_libanyp.cc \
1721 tests/stub_libauth.cc \
1722 tests/stub_libauth_acls.cc \
1723 tests/stub_libeui.cc \
1724 tests/stub_libformat.cc \
1725 tests/stub_libicmp.cc \
1726 tests/stub_liblog.cc \
1727 tests/stub_libsecurity.cc \
1728 tests/stub_libstore.cc \
1731 tests/stub_mime.cc \
1733 tests/stub_neighbors.cc \
1734 tests/stub_pconn.cc \
1738 tests/stub_stat.cc \
1741 tests/stub_store_client.cc \
1745 tests/stub_store_rebuild.cc \
1747 tests/stub_store_stats.cc \
1750 tests/stub_time.cc \
1751 tests/stub_tools.cc \
1755 nodist_tests_testDiskIO_SOURCES = \
1761 tests_testDiskIO_LDADD = \
1764 parser/libparser.la \
1775 $(ADAPTATION_LIBS) \
1776 DiskIO/libdiskio.la \
1786 $(top_builddir)/lib/libmisccontainers.la \
1787 $(top_builddir)/lib/libmiscencoding.la \
1788 $(top_builddir)/lib/libmiscutil.la \
1792 $(LIBCPPUNIT_LIBS) \
1795 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1800 check_PROGRAMS += tests/testACLMaxUserIP
1801 tests_testACLMaxUserIP_SOURCES = \
1802 tests/testACLMaxUserIP.cc \
1803 tests/testACLMaxUserIP.h
1804 nodist_tests_testACLMaxUserIP_SOURCES = \
1806 tests/stub_HelperChildConfig.cc \
1807 tests/stub_HttpHeader.cc \
1808 tests/stub_HttpRequest.cc \
1809 tests/stub_MemBuf.cc \
1811 tests/stub_StatHist.cc \
1813 tests/stub_access_log.cc \
1814 tests/stub_cache_cf.cc \
1815 tests/stub_cbdata.cc \
1816 tests/stub_client_side.cc \
1817 tests/stub_debug.cc \
1819 tests/stub_errorpage.cc \
1820 tests/stub_fatal.cc \
1822 tests/stub_libauth.cc \
1823 tests/stub_libhttp.cc \
1824 tests/stub_libmem.cc \
1825 tests/stub_libsecurity.cc
1826 tests_testACLMaxUserIP_LDADD = \
1833 parser/libparser.la \
1837 $(LIBCPPUNIT_LIBS) \
1840 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1843 tests/testACLMaxUserIP.cc \
1844 tests/testACLMaxUserIP.h
1847 ## Tests of http/* and HTTP Protocol objects
1849 check_PROGRAMS += tests/test_http_range
1850 tests_test_http_range_SOURCES = \
1851 $(DELAY_POOL_SOURCE) \
1861 tests/stub_CacheDigest.cc \
1866 tests/stub_CollapsedForwarding.cc \
1873 tests/stub_ETag.cc \
1874 tests/stub_EventLoop.cc \
1879 HappyConnOpener.cc \
1883 tests/stub_HttpControlMsg.cc \
1886 HttpHdrContRange.cc \
1889 HttpHdrScTarget.cc \
1892 HttpHeaderFieldInfo.h \
1893 HttpHeaderFieldStat.h \
1894 HttpHeaderTools.cc \
1898 tests/stub_HttpUpgradeProtocolAccess.cc \
1900 tests/stub_IpcIoFile.cc \
1906 tests/stub_MemStore.cc \
1920 tests/stub_SBufDetailedStats.cc \
1927 StoreFileSystem.cc \
1929 tests/stub_StoreMeta.cc \
1930 StoreMetaUnpacker.cc \
1931 StoreSwapLogData.cc \
1936 tests/test_http_range.cc \
1937 tests/stub_cache_cf.cc \
1940 tests/stub_carp.cc \
1944 tests/stub_client_db.cc \
1947 client_side_reply.cc \
1948 client_side_request.cc \
1954 tests/stub_external_acl.cc \
1955 tests/stub_fatal.cc \
1965 tests/stub_gopher.cc \
1976 tests/stub_ipc_Forwarder.cc \
1978 tests/stub_libauth.cc \
1979 tests/stub_libdiskio.cc \
1980 tests/stub_libeui.cc \
1981 tests/stub_libmem.cc \
1982 tests/stub_libsecurity.cc \
1983 tests/stub_libstore.cc \
1984 tests/stub_main_cc.cc \
1996 peer_proxy_negotiate_auth.cc \
1997 peer_proxy_negotiate_auth.h \
1999 peer_sourcehash.cc \
2003 tests/stub_redirect.cc \
2013 tests/stub_store_digest.cc \
2022 tests/stub_store_stats.cc \
2030 tests/stub_tunnel.cc \
2033 tests/stub_wccp2.cc \
2035 tests/stub_whois.cc \
2039 nodist_tests_test_http_range_SOURCES = \
2041 tests_test_http_range_LDADD = \
2043 clients/libclients.la \
2044 servers/libservers.la \
2046 helper/libhelper.la \
2048 parser/libparser.la \
2053 proxyp/libproxyp.la \
2054 parser/libparser.la \
2061 format/libformat.la \
2063 $(ADAPTATION_LIBS) \
2073 $(top_builddir)/lib/libmisccontainers.la \
2074 $(top_builddir)/lib/libmiscencoding.la \
2075 $(top_builddir)/lib/libmiscutil.la \
2080 $(LIBCPPUNIT_LIBS) \
2083 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2085 check_PROGRAMS += tests/testHttp1Parser
2086 tests_testHttp1Parser_SOURCES = \
2088 tests/stub_HelperChildConfig.cc \
2089 tests/testHttp1Parser.cc \
2090 tests/testHttp1Parser.h \
2093 tests/stub_MemObject.cc \
2094 tests/stub_SBufDetailedStats.cc \
2096 tests/stub_cache_cf.cc \
2098 tests/stub_cache_manager.cc \
2099 tests/stub_cbdata.cc \
2100 tests/stub_comm.cc \
2101 tests/stub_debug.cc \
2102 tests/stub_event.cc \
2103 tests/stub_libanyp.cc \
2104 tests/stub_libmem.cc \
2105 tests/stub_libsecurity.cc \
2108 tests/stub_stmem.cc \
2109 tests/stub_store.cc \
2110 tests/stub_store_stats.cc \
2111 tests/stub_time.cc \
2112 tests/stub_tools.cc \
2116 nodist_tests_testHttp1Parser_SOURCES = \
2118 tests_testHttp1Parser_LDADD= \
2120 parser/libparser.la \
2126 $(top_builddir)/lib/libmiscutil.la \
2128 $(LIBCPPUNIT_LIBS) \
2131 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2133 check_PROGRAMS += tests/testHttpReply
2134 tests_testHttpReply_SOURCES = \
2136 tests/stub_ETag.cc \
2137 tests/stub_HelperChildConfig.cc \
2144 HttpHdrContRange.cc \
2145 HttpHdrContRange.h \
2149 HttpHdrScTarget.cc \
2153 HttpHeaderFieldInfo.h \
2154 HttpHeaderFieldStat.h \
2156 HttpHeaderTools.cc \
2159 tests/testHttpReply.cc \
2161 tests/testHttpReply.h \
2162 tests/stub_HttpRequest.cc \
2169 tests/stub_SBufDetailedStats.cc \
2174 tests/stub_StatHist.cc \
2179 tests/stub_access_log.cc \
2180 tests/stub_cache_cf.cc \
2182 tests/stub_cache_manager.cc \
2185 tests/stub_comm.cc \
2186 tests/stub_debug.cc \
2187 tests/stub_errorpage.cc \
2188 tests/stub_event.cc \
2189 tests/stub_fatal.cc \
2192 tests/stub_libanyp.cc \
2193 tests/stub_libauth.cc \
2194 tests/stub_libcomm.cc \
2195 tests/stub_libformat.cc \
2196 tests/stub_libmgr.cc \
2197 tests/stub_libsecurity.cc \
2198 tests/stub_libsslsquid.cc \
2203 tests/stub_store.cc \
2204 tests/stub_store_stats.cc \
2205 tests/stub_time.cc \
2206 tests/stub_tools.cc \
2210 nodist_tests_testHttpReply_SOURCES = \
2213 tests_testHttpReply_LDADD=\
2216 parser/libparser.la \
2226 $(top_builddir)/lib/libmisccontainers.la \
2227 $(top_builddir)/lib/libmiscencoding.la \
2228 $(top_builddir)/lib/libmiscutil.la \
2231 $(LIBCPPUNIT_LIBS) \
2234 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
2236 check_PROGRAMS += tests/testHttpRequest
2237 tests_testHttpRequest_SOURCES = \
2238 $(DELAY_POOL_SOURCE) \
2247 tests/stub_CacheDigest.cc \
2252 tests/stub_CollapsedForwarding.cc \
2259 tests/stub_ETag.cc \
2260 tests/stub_EventLoop.cc \
2261 ExternalACLEntry.cc \
2265 HappyConnOpener.cc \
2269 tests/stub_HttpControlMsg.cc \
2272 HttpHdrContRange.cc \
2275 HttpHdrScTarget.cc \
2278 HttpHeaderFieldInfo.h \
2279 HttpHeaderFieldStat.h \
2280 HttpHeaderTools.cc \
2284 tests/testHttpRequest.cc \
2285 tests/testHttpRequest.h \
2286 tests/testHttpRequestMethod.cc \
2287 tests/testHttpRequestMethod.h \
2288 tests/stub_HttpUpgradeProtocolAccess.cc \
2290 tests/stub_IpcIoFile.cc \
2310 tests/stub_SBufDetailedStats.cc \
2317 StoreFileSystem.cc \
2319 tests/stub_StoreMeta.cc \
2320 StoreMetaUnpacker.cc \
2321 StoreSwapLogData.cc \
2326 tests/stub_cache_cf.cc \
2329 tests/stub_carp.cc \
2333 tests/stub_client_db.cc \
2336 client_side_reply.cc \
2337 client_side_request.cc \
2344 tests/stub_fatal.cc \
2353 tests/stub_gopher.cc \
2364 tests/stub_ipc_Forwarder.cc \
2366 tests/stub_libauth.cc \
2367 tests/stub_libauth_acls.cc \
2368 tests/stub_libdiskio.cc \
2369 tests/stub_libeui.cc \
2370 tests/stub_libmem.cc \
2371 tests/stub_libsecurity.cc \
2372 tests/stub_libstore.cc \
2373 tests/stub_main_cc.cc \
2385 peer_proxy_negotiate_auth.cc \
2386 peer_proxy_negotiate_auth.h \
2388 peer_sourcehash.cc \
2392 tests/stub_redirect.cc \
2402 tests/stub_store_digest.cc \
2411 tests/stub_store_stats.cc \
2419 tests/stub_tunnel.cc \
2422 tests/stub_wccp2.cc \
2424 tests/stub_whois.cc \
2428 nodist_tests_testHttpRequest_SOURCES = \
2430 tests_testHttpRequest_LDADD = \
2432 clients/libclients.la \
2433 servers/libservers.la \
2434 helper/libhelper.la \
2441 parser/libparser.la \
2446 proxyp/libproxyp.la \
2447 parser/libparser.la \
2456 format/libformat.la \
2460 $(ADAPTATION_LIBS) \
2462 $(top_builddir)/lib/libmisccontainers.la \
2463 $(top_builddir)/lib/libmiscencoding.la \
2464 $(top_builddir)/lib/libmiscutil.la \
2469 $(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_libsecurity.cc \
2675 tests/stub_libstore.cc \
2676 tests/stub_main_cc.cc \
2688 peer_proxy_negotiate_auth.cc \
2689 peer_proxy_negotiate_auth.h \
2691 peer_sourcehash.cc \
2695 tests/stub_redirect.cc \
2705 tests/stub_store_digest.cc \
2714 tests/stub_store_stats.cc \
2722 tests/stub_tunnel.cc \
2725 tests/stub_wccp2.cc \
2727 tests/stub_whois.cc \
2731 nodist_tests_testCacheManager_SOURCES = \
2733 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
2734 tests_testCacheManager_LDADD = \
2736 clients/libclients.la \
2737 servers/libservers.la \
2739 helper/libhelper.la \
2741 proxyp/libproxyp.la \
2742 parser/libparser.la \
2755 format/libformat.la \
2757 $(ADAPTATION_LIBS) \
2767 $(top_builddir)/lib/libmisccontainers.la \
2768 $(top_builddir)/lib/libmiscencoding.la \
2769 $(top_builddir)/lib/libmiscutil.la \
2774 $(LIBCPPUNIT_LIBS) \
2777 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
2779 check_PROGRAMS += tests/testStatHist
2780 tests_testStatHist_SOURCES = \
2781 tests/stub_DelayId.cc \
2782 tests/stub_HelperChildConfig.cc \
2783 tests/stub_MemBuf.cc \
2784 tests/stub_MemObject.cc \
2785 tests/stub_SBufDetailedStats.cc \
2787 tests/testStatHist.cc \
2789 tests/testStatHist.h \
2791 tests/stub_cache_manager.cc \
2792 tests/stub_cbdata.cc \
2793 tests/stub_comm.cc \
2794 tests/stub_debug.cc \
2795 tests/stub_fatal.cc \
2797 tests/stub_libmem.cc \
2798 tests/stub_mime.cc \
2800 tests/stub_pconn.cc \
2802 tests/stub_stmem.cc \
2803 tests/stub_store.cc \
2804 tests/stub_store_stats.cc \
2806 tests/stub_tools.cc \
2808 nodist_tests_testStatHist_SOURCES = \
2810 tests_testStatHist_LDADD = \
2813 $(top_builddir)/lib/libmiscutil.la \
2814 $(top_builddir)/lib/libmisccontainers.la \
2815 $(LIBCPPUNIT_LIBS) \
2817 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2819 ## Tests of ConfigParser
2821 check_PROGRAMS += tests/testConfigParser
2822 tests_testConfigParser_SOURCES = \
2825 tests/testConfigParser.cc \
2826 tests/testConfigParser.h \
2827 tests/stub_HelperChildConfig.cc \
2828 tests/stub_MemBuf.cc \
2829 tests/stub_SBufDetailedStats.cc \
2831 tests/stub_cache_cf.cc \
2833 tests/stub_cbdata.cc \
2834 tests/stub_debug.cc \
2835 tests/stub_fatal.cc \
2837 tests/stub_libmem.cc \
2838 tests/stub_time.cc \
2839 tests/stub_tools.cc \
2843 nodist_tests_testConfigParser_SOURCES = \
2845 tests_testConfigParser_LDADD = \
2850 $(top_builddir)/lib/libmiscutil.la \
2853 $(LIBCPPUNIT_LIBS) \
2856 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
2858 ## Tests of Event handling
2860 check_PROGRAMS += tests/testEvent
2861 tests_testEvent_SOURCES = \
2862 $(DELAY_POOL_SOURCE) \
2872 tests/stub_CacheDigest.cc \
2877 tests/stub_CollapsedForwarding.cc \
2884 tests/stub_ETag.cc \
2885 tests/testEvent.cc \
2889 ExternalACLEntry.cc \
2894 HappyConnOpener.cc \
2898 tests/stub_HttpControlMsg.cc \
2901 HttpHdrContRange.cc \
2904 HttpHdrScTarget.cc \
2907 HttpHeaderFieldInfo.h \
2908 HttpHeaderFieldStat.h \
2909 HttpHeaderTools.cc \
2913 tests/stub_HttpUpgradeProtocolAccess.cc \
2915 tests/stub_IpcIoFile.cc \
2935 tests/stub_SBufDetailedStats.cc \
2942 StoreFileSystem.cc \
2944 tests/stub_StoreMeta.cc \
2945 StoreMetaUnpacker.cc \
2946 StoreSwapLogData.cc \
2951 tests/stub_cache_cf.cc \
2954 tests/stub_carp.cc \
2958 tests/stub_client_db.cc \
2961 client_side_reply.cc \
2962 client_side_request.cc \
2969 tests/stub_fatal.cc \
2979 tests/stub_gopher.cc \
2990 tests/stub_ipc_Forwarder.cc \
2992 tests/stub_libauth.cc \
2993 tests/stub_libauth_acls.cc \
2994 tests/stub_libdiskio.cc \
2995 tests/stub_libeui.cc \
2996 tests/stub_libmem.cc \
2997 tests/stub_libsecurity.cc \
2998 tests/stub_libstore.cc \
2999 tests/stub_main_cc.cc \
3011 peer_proxy_negotiate_auth.cc \
3012 peer_proxy_negotiate_auth.h \
3014 peer_sourcehash.cc \
3018 tests/stub_redirect.cc \
3028 tests/stub_store_digest.cc \
3037 tests/stub_store_stats.cc \
3042 tests/CapturingStoreEntry.h \
3046 tests/stub_tunnel.cc \
3049 tests/stub_wccp2.cc \
3051 tests/stub_whois.cc \
3055 nodist_tests_testEvent_SOURCES = \
3057 tests_testEvent_LDADD = \
3059 clients/libclients.la \
3060 servers/libservers.la \
3062 helper/libhelper.la \
3064 proxyp/libproxyp.la \
3065 parser/libparser.la \
3078 format/libformat.la \
3080 $(ADAPTATION_LIBS) \
3083 $(top_builddir)/lib/libmisccontainers.la \
3084 $(top_builddir)/lib/libmiscencoding.la \
3085 $(top_builddir)/lib/libmiscutil.la \
3095 $(LIBCPPUNIT_LIBS) \
3098 tests_testEvent_LDFLAGS = $(LIBADD_DL)
3100 check_PROGRAMS += tests/testEventLoop
3101 tests_testEventLoop_SOURCES = \
3102 tests/testEventLoop.cc \
3103 tests/testEventLoop.h
3104 nodist_tests_testEventLoop_SOURCES = \
3106 tests/stub_debug.cc \
3107 tests/stub_fatal.cc \
3109 tests_testEventLoop_LDADD = \
3111 $(LIBCPPUNIT_LIBS) \
3114 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
3116 ## Run the unit tests. check_PROGRAMS only builds the binaries.
3117 TESTS += $(check_PROGRAMS) testHeaders
3119 ## Special Universal .h dependency test script
3120 ## aborts if error encountered
3121 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3122 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3123 ## src/repl/ has no .h files and its own makefile.
3125 CLEANFILES += testHeaders