1 ## Copyright (C) 1996-2015 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
18 OutOfBoundsException.h \
39 LOADABLE_MODULES_SOURCES = \
45 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl store DiskIO
46 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl store DiskIO
50 AUTH_LIBS= auth/libauth.la
51 AUTH_ACL_LIBS= auth/libacls.la
52 check_PROGRAMS+= tests/testACLMaxUserIP
56 SUBDIRS += http ip icmp ident log ipc mgr security
57 DIST_SUBDIRS += http ip icmp ident log ipc mgr security
75 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
77 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
86 DIST_SUBDIRS += adaptation
92 $(top_builddir)/lib/libTrie/libTrie.a \
100 DELAY_POOL_ALL_SOURCE = \
102 CompositePoolNode.h \
124 ClientDelayConfig.cc \
127 if ENABLE_DELAY_POOLS
128 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
133 if ENABLE_XPROF_STATS
134 XPROF_STATS_SOURCE = ProfStats.cc
140 HTCPSOURCE = htcp.cc htcp.h
144 LEAKFINDERSOURCE = LeakFinder.cc
150 UNLINKDSOURCE = unlinkd.h unlinkd.cc
153 UNLINKDSOURCE = unlinkd.h
162 if ENABLE_WIN32SPECIFIC
163 WIN32_SOURCE = win32.cc
164 WINSVC_SOURCE = WinSvc.cc
171 IPC_SOURCE = SquidIpc.h ipc_win32.cc
173 IPC_SOURCE = SquidIpc.h ipc.cc
176 noinst_LTLIBRARIES = libsquid.la
185 ## cfgen is used when building squid
186 ## ufsdump is a debug utility, it is possibly useful for end users with cache
187 ## corruption, but at this point we do not install it.
200 cf_gen_SOURCES = cf_gen.cc
201 nodist_cf_gen_HEADER = cf_gen_defines.cci
202 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
204 cf_gen.$(OBJEXT): cf_gen_defines.cci
206 ## cf_gen.cc needs src/cf_gen_defines.cci
207 AM_CPPFLAGS += -I$(top_builddir)/src
210 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
212 # common library for all the binaries and tests. This is kindof a catch all
213 # and smaller libraries split from this are encouraged. Using lt convenience
214 # libraries, dependencies should not be a problem either.
215 libsquid_la_SOURCES = \
226 $(ACL_REGISTRATION_SOURCES) \
240 NeighborTypeDomainList.h \
253 client_side_reply.cc \
254 client_side_reply.h \
255 client_side_request.cc \
256 client_side_request.h \
261 ClientRequestContext.h \
264 clientStreamForward.h \
265 CollapsedForwarding.cc \
266 CollapsedForwarding.h \
267 CompletionDispatcher.cc \
268 CompletionDispatcher.h \
282 $(DELAY_POOL_SOURCE) \
301 ExternalACLEntry.cc \
324 HierarchyLogEntry.h \
329 HttpHeaderFieldStat.h \
338 HttpHdrContRange.cc \
345 HttpHeaderFieldInfo.h \
370 $(LEAKFINDERSOURCE) \
397 $(XPROF_STATS_SOURCE) \
402 peer_proxy_negotiate_auth.h \
403 peer_proxy_negotiate_auth.cc \
425 SBufDetailedStats.h \
426 SBufDetailedStats.cc \
468 StoreMetaUnpacker.cc \
469 StoreMetaUnpacker.h \
470 $(STOREMETA_SOURCE) \
474 StoreSwapLogData.cc \
503 EXTRA_squid_SOURCES = \
506 $(DELAY_POOL_ALL_SOURCE) \
516 $(WIN32_ALL_SOURCE) \
517 $(LOADABLE_MODULES_SOURCES)
520 client_side_request.cci \
538 CLEANFILES += $(BUILT_SOURCES)
540 nodist_squid_SOURCES = \
550 clients/libclients.la \
551 servers/libservers.la \
553 helper/libhelper.la \
554 http/libsquid-http.la \
555 parser/libsquid-parser.la \
561 DiskIO/libdiskio.la \
566 security/libsecurity.la \
569 icmp/libicmp.la icmp/libicmp-core.la \
571 format/libformat.la \
583 $(top_builddir)/lib/libmisccontainers.la \
584 $(top_builddir)/lib/libmiscencoding.la \
585 $(top_builddir)/lib/libmiscutil.la \
593 if ENABLE_LOADABLE_MODULES
594 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
595 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
596 squid_LDFLAGS = -export-dynamic -dlopen force
597 ## when static module linking is supported and enabled:
598 ## squid_LDFLAGS = -all-static -dlopen self
600 ## LTDL headers require their local include path...
601 AM_CPPFLAGS += $(INCLTDL)
604 ## Kerberos libraries require their include path...
605 AM_CPPFLAGS += $(KRB5INCS)
608 unlinkd_SOURCES = unlinkd_daemon.cc
613 recv_announce_SOURCES = recv-announce.cc
615 ## What requires what..
616 ## many things want ACLChecklist.cc
617 ## ACLChecklist.cc wants AuthUserRequest.cc
618 ## ACLChecklist.cc wants AuthScheme.cc
619 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
620 ## ACLProxyAuth.cc wants ACLUserData
621 ## ACLProxyAuth.cc wants ACLRegexData
622 ## cache_cf.cc wants $(AUTH_LIBS)
623 ## cache_cf.cc wants store/libstore.la
624 ## cache_cf.cc wants AnyP::PortCfg
625 ## client_side wants client_db
626 ## client_db wants SNMP_SOURCE
627 ## snmp_core wants ACLStringData
628 ## tools.cc wants ip/libip.la
629 ## client_side.cc wants ip/libip.la
630 ## libbase.la wants cbdata.*
631 ## libbase.la wants MemBuf.*
645 tests/stub_StoreMeta.cc \
646 StoreMetaUnpacker.cc \
653 helper/ChildConfig.h \
654 tests/stub_HelperChildConfig.cc \
681 ufsdump_DEPENDENCIES = \
693 DiskIO/libdiskio.la \
697 nodist_ufsdump_SOURCES = \
702 squid.conf.documented \
727 include $(srcdir)/tests/Stub.list
735 mk-string-arrays.awk \
741 DEFAULT_HTTP_PORT = 3128
742 DEFAULT_ICP_PORT = 3130
743 DEFAULT_PREFIX = $(prefix)
744 DEFAULT_CONFIG_DIR = $(sysconfdir)
745 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
746 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
747 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
748 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
749 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
750 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
751 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
752 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
753 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
754 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
755 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
756 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
757 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
758 DEFAULT_ICON_DIR = $(datadir)/icons
759 DEFAULT_ERROR_DIR = $(datadir)/errors
761 # Make location configure settings available to the code
762 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
764 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
766 globals.cc: globals.h mk-globals-c.awk
767 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
769 ## Generate files containing string arrays for various enums....
770 hier_code.cc: hier_code.h mk-string-arrays.awk
771 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
773 err_type.cc: err_type.h mk-string-arrays.awk
774 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
776 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
777 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
779 lookup_t.cc: lookup_t.h mk-string-arrays.awk
780 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
782 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
783 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
785 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
786 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
789 ## other generated files...
791 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
792 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
794 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
795 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
797 ## If autodependency works well this is not needed anymore
798 cache_cf.o: cf_parser.cci
800 # cf_gen builds the configuration files.
801 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
802 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
804 # squid.conf.default is built by cf_gen when making cf_parser.cci
805 squid.conf.default squid.conf.documented: cf_parser.cci
808 cf_parser.cci: cf.data cf_gen$(EXEEXT)
809 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
811 # The cf_gen_defines.cci is auto-generated and does not exist when the
812 # dependencies computed. We need to add its include files (autoconf.h) here
813 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
814 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
817 ## FIXME: generate a sed command file from configure. Then this doesn't
818 ## depend on the Makefile.
819 cf.data: cf.data.pre Makefile
821 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
822 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
823 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
824 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
825 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
826 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
827 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
828 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
829 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
830 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
831 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
832 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
833 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
834 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
835 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
836 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
837 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
838 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
839 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
840 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
841 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
842 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
843 -f $(srcdir)/cf.data.sed \
844 < $(srcdir)/cf.data.pre >$@
846 repl_modules.cc: repl_modules.sh Makefile
847 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
849 include $(top_srcdir)/doc/manuals/Substitute.am
851 squid.8: $(srcdir)/squid.8.in Makefile
852 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
855 EXTRA_DIST += squid.8.in
856 CLEANFILES += squid.8
858 install-data-local: install-sysconfDATA install-dataDATA
859 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
860 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
862 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
863 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
865 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
866 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
868 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
869 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
871 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
872 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
873 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
874 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
875 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
876 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
877 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
879 uninstall-local: squid.conf.default
880 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
881 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
883 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
886 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
887 cp $(top_srcdir)/test-suite/test_tools.cc .
889 # stock tools for unit tests - library independent versions of dlink_list
891 # globals.cc is needed by test_tools.cc.
892 # Neither of these should be disted from here.
899 tests/testBoilerplate \
900 tests/testCacheManager \
901 tests/testCharacterSet \
904 tests/testEnumIterator \
906 tests/testEventLoop \
907 tests/test_http_range \
908 tests/testTokenizer \
909 tests/testHttp1Parser \
910 tests/testHttpReply \
911 tests/testHttpRequest \
913 tests/testIpAddress \
919 tests/testConfigParser \
921 tests/testLookupTable
924 check_PROGRAMS += tests/testRock
927 check_PROGRAMS += tests/testUfs
930 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
931 TESTS += $(check_PROGRAMS)
933 ### Template for new Unit Test Program
934 ## - add tests/testX to check_PROGRAMS above.
935 ## - copy template below and substitue X for class name
936 ## - add other component .(h|cc) files needed to link and run tests
938 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
940 #tests_testX_SOURCES=\
945 #nodist_tests_testX_SOURCES=\
946 # tests/stubs_as_needed.cc\
948 #tests_testX_LDFLAGS = $(LIBADD_DL)
950 # $(SQUID_CPPUNIT_LIBS) \
951 # $(SQUID_CPPUNIT_LA) \
953 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
956 # - add other component .(h|cc) files needed to link and run tests
957 tests_testHttpReply_SOURCES=\
963 tests/stub_fatal.cc \
966 HttpHeaderFieldStat.h \
970 HttpHdrContRange.cc \
980 HttpHeaderFieldInfo.h \
1001 SBufDetailedStats.h \
1002 tests/stub_SBufDetailedStats.cc \
1007 tests/stub_access_log.cc \
1010 tests/stub_cache_cf.cc \
1011 tests/stub_cache_manager.cc \
1012 tests/stub_comm.cc \
1013 tests/stub_debug.cc \
1014 tests/stub_errorpage.cc \
1015 tests/stub_event.cc \
1017 tests/stub_HelperChildConfig.cc \
1018 tests/stub_libformat.cc \
1019 tests/stub_libauth.cc \
1020 tests/stub_libcomm.cc \
1021 tests/stub_libmgr.cc \
1022 tests/stub_libsecurity.cc \
1023 tests/stub_libsslsquid.cc \
1027 tests/stub_StatHist.cc \
1029 tests/stub_store.cc \
1030 tests/stub_store_stats.cc \
1032 tests/stub_tools.cc \
1033 tests/stub_HttpRequest.cc \
1034 tests/testHttpReply.cc \
1035 tests/testHttpReply.h \
1036 tests/stub_time.cc \
1040 nodist_tests_testHttpReply_SOURCES=\
1042 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1043 tests_testHttpReply_LDADD=\
1045 http/libsquid-http.la \
1046 parser/libsquid-parser.la \
1055 $(top_builddir)/lib/libmisccontainers.la \
1056 $(top_builddir)/lib/libmiscencoding.la \
1057 $(top_builddir)/lib/libmiscutil.la \
1058 $(SQUID_CPPUNIT_LIBS) \
1059 $(SQUID_CPPUNIT_LA) \
1064 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1066 tests_testACLMaxUserIP_SOURCES= \
1069 tests/stub_CollapsedForwarding.cc \
1072 tests/stub_ETag.cc \
1075 tests/stub_fatal.cc \
1081 HttpHeaderFieldInfo.h \
1083 HttpHeaderTools.cc \
1084 HttpHdrContRange.cc \
1086 HttpHeaderFieldStat.h \
1091 HttpHdrScTarget.cc \
1103 tests/stub_libsecurity.cc \
1110 tests/stub_StatHist.cc \
1115 SBufDetailedStats.h \
1116 tests/stub_SBufDetailedStats.cc \
1119 tests/stub_StoreMeta.cc \
1120 StoreMetaUnpacker.cc \
1121 StoreSwapLogData.cc \
1126 tests/stub_SwapDir.cc \
1129 tests/stub_access_log.cc \
1132 tests/stub_cache_cf.cc \
1133 tests/stub_client_side.cc \
1134 tests/stub_debug.cc \
1135 tests/stub_DelayId.cc \
1136 tests/stub_errorpage.cc \
1139 tests/stub_HttpRequest.cc \
1140 tests/stub_HttpReply.cc \
1141 tests/stub_ipc_TypedMsgHdr.cc \
1142 tests/stub_libauth.cc \
1143 tests/stub_libcomm.cc \
1144 tests/stub_libdiskio.cc \
1145 tests/stub_libformat.cc \
1146 tests/stub_libmem.cc \
1147 tests/stub_libsslsquid.cc \
1148 tests/stub_MemObject.cc \
1149 tests/stub_MemStore.cc \
1151 tests/stub_mime.cc \
1152 tests/stub_pconn.cc \
1153 tests/stub_Port.cc \
1155 tests/stub_store.cc \
1156 tests/stub_store_client.cc \
1158 tests/stub_store_rebuild.cc \
1159 tests/stub_store_stats.cc \
1160 tests/stub_store_swapout.cc \
1162 tests/stub_tools.cc \
1163 tests/stub_cache_manager.cc \
1164 tests/stub_UdsOp.cc \
1165 tests/testACLMaxUserIP.cc \
1166 tests/testACLMaxUserIP.h \
1167 tests/stub_time.cc \
1173 nodist_tests_testACLMaxUserIP_SOURCES= \
1175 tests_testACLMaxUserIP_LDADD= \
1177 helper/libhelper.la \
1178 http/libsquid-http.la \
1179 parser/libsquid-parser.la \
1191 $(top_builddir)/lib/libmisccontainers.la \
1192 $(top_builddir)/lib/libmiscencoding.la \
1193 $(top_builddir)/lib/libmiscutil.la \
1196 $(SQUID_CPPUNIT_LIBS) \
1200 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1201 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1202 ## $(SQUID_CPPUNIT_LA)
1204 ## a demonstration test that does nothing but shows the salient points
1205 ## involved in writing tests.
1206 tests_testBoilerplate_SOURCES = \
1207 tests/testBoilerplate.cc \
1208 tests/testBoilerplate.h \
1209 tests/stub_debug.cc \
1210 tests/stub_libmem.cc \
1212 nodist_tests_testBoilerplate_SOURCES = \
1213 tests/stub_cbdata.cc \
1214 tests/stub_MemBuf.cc \
1216 tests_testBoilerplate_LDADD= \
1217 $(SQUID_CPPUNIT_LIBS) \
1222 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1223 tests_testBoilerplate_DEPENDENCIES = \
1226 ## Tests of base/libbase.la objects
1227 tests_testCharacterSet_SOURCES = \
1228 tests/testCharacterSet.cc \
1229 tests/testCharacterSet.h
1230 nodist_tests_testCharacterSet_SOURCES = \
1231 base/CharacterSet.h \
1233 tests/stub_cbdata.cc \
1234 tests/stub_debug.cc \
1235 tests/stub_libmem.cc \
1236 tests/stub_MemBuf.cc
1237 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1238 tests_testCharacterSet_LDADD= \
1241 $(SQUID_CPPUNIT_LA) \
1242 $(SQUID_CPPUNIT_LIBS) \
1245 ## Tests of the CacheManager module.
1246 tests_testCacheManager_SOURCES = \
1253 tests/testCacheManager.cc \
1254 tests/testCacheManager.h \
1255 tests/stub_main_cc.cc \
1256 tests/stub_ipc_Forwarder.cc \
1257 tests/stub_store_stats.cc \
1258 tests/stub_EventLoop.cc \
1271 tests/stub_CacheDigest.cc \
1273 tests/stub_carp.cc \
1279 client_side_reply.cc \
1280 client_side_request.cc \
1283 tests/stub_CollapsedForwarding.cc \
1290 $(DELAY_POOL_SOURCE) \
1297 tests/stub_ETag.cc \
1300 ExternalACLEntry.cc \
1302 tests/stub_fatal.cc \
1323 HttpHeaderFieldInfo.h \
1325 HttpHeaderTools.cc \
1326 HttpHeaderFieldStat.h \
1330 HttpHdrContRange.cc \
1333 HttpHdrScTarget.cc \
1345 tests/stub_libsecurity.cc \
1366 peer_proxy_negotiate_auth.h \
1367 peer_proxy_negotiate_auth.cc \
1370 peer_sourcehash.cc \
1376 tests/stub_redirect.cc \
1383 SBufDetailedStats.h \
1384 tests/stub_SBufDetailedStats.cc \
1396 tests/stub_libauth_acls.cc \
1397 tests/stub_libauth.cc \
1398 tests/stub_libdiskio.cc \
1399 tests/stub_StatHist.cc \
1405 tests/stub_store_digest.cc \
1417 StoreFileSystem.cc \
1419 tests/stub_StoreMeta.cc \
1420 StoreMetaUnpacker.cc \
1421 StoreSwapLogData.cc \
1425 tests/stub_tunnel.cc \
1426 tests/stub_SwapDir.cc \
1433 tests/stub_wccp2.cc \
1435 tests/stub_whois.cc \
1440 nodist_tests_testCacheManager_SOURCES = \
1442 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1443 tests_testCacheManager_LDADD = \
1445 clients/libclients.la \
1446 servers/libservers.la \
1448 helper/libhelper.la \
1449 http/libsquid-http.la \
1450 parser/libsquid-parser.la \
1461 icmp/libicmp.la icmp/libicmp-core.la \
1463 format/libformat.la \
1465 $(ADAPTATION_LIBS) \
1474 $(top_builddir)/lib/libmisccontainers.la \
1475 $(top_builddir)/lib/libmiscencoding.la \
1476 $(top_builddir)/lib/libmiscutil.la \
1479 $(SQUID_CPPUNIT_LIBS) \
1480 $(SQUID_CPPUNIT_LA) \
1485 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1486 tests_testCacheManager_DEPENDENCIES = \
1490 tests_testDiskIO_SOURCES = \
1492 tests/stub_CacheDigest.cc \
1496 tests/stub_CollapsedForwarding.cc \
1499 $(DELAY_POOL_SOURCE) \
1502 tests/stub_ETag.cc \
1506 tests/stub_fatal.cc \
1515 HttpHeaderFieldStat.h \
1519 HttpHdrContRange.cc \
1521 HttpHdrScTarget.cc \
1523 HttpHeaderFieldInfo.h \
1525 HttpHeaderTools.cc \
1547 tests/stub_libsecurity.cc \
1551 tests/stub_StatHist.cc \
1556 SBufDetailedStats.h \
1557 tests/stub_SBufDetailedStats.cc \
1558 StoreFileSystem.cc \
1560 tests/stub_StoreMeta.cc \
1561 StoreMetaUnpacker.cc \
1562 StoreSwapLogData.cc \
1573 tests/stub_SwapDir.cc \
1576 tests/stub_access_log.cc \
1580 tests/stub_cache_cf.cc \
1581 tests/stub_cache_manager.cc \
1582 tests/stub_client_db.cc \
1583 client_side_request.h \
1584 tests/stub_client_side_request.cc \
1585 tests/stub_debug.cc \
1586 tests/stub_errorpage.cc \
1587 tests/stub_helper.cc \
1588 tests/stub_HelperChildConfig.cc \
1589 tests/stub_HttpRequest.cc \
1590 tests/stub_http.cc \
1593 tests/stub_internal.cc \
1595 tests/stub_ipcache.cc \
1596 tests/stub_libauth_acls.cc \
1597 tests/stub_libauth.cc \
1598 tests/stub_libeui.cc \
1599 tests/stub_libformat.cc \
1600 tests/stub_libicmp.cc \
1601 tests/stub_MemStore.cc \
1603 tests/stub_mime.cc \
1604 tests/stub_neighbors.cc \
1605 tests/stub_pconn.cc \
1606 tests/stub_Port.cc \
1607 tests/stub_stat.cc \
1608 tests/stub_store_client.cc \
1609 tests/stub_store_search.cc \
1610 tests/stub_store_stats.cc \
1612 tests/stub_store_rebuild.cc \
1613 tests/stub_UdsOp.cc \
1614 tests/testDiskIO.cc \
1615 tests/testDiskIO.h \
1616 tests/testStoreSupport.cc \
1617 tests/testStoreSupport.h \
1618 tests/stub_time.cc \
1626 nodist_tests_testDiskIO_SOURCES= \
1631 tests_testDiskIO_LDADD = \
1633 http/libsquid-http.la \
1634 parser/libsquid-parser.la \
1645 DiskIO/libdiskio.la \
1655 $(top_builddir)/lib/libmisccontainers.la \
1656 $(top_builddir)/lib/libmiscencoding.la \
1657 $(top_builddir)/lib/libmiscutil.la \
1660 $(SQUID_CPPUNIT_LIBS) \
1665 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1666 tests_testDiskIO_DEPENDENCIES = \
1667 DiskIO/libdiskio.la \
1671 tests_testDns_SOURCES= \
1672 tests/testRFC1035.cc \
1674 nodist_tests_testDns_SOURCES= \
1675 tests/stub_debug.cc \
1676 tests/stub_libmem.cc \
1677 tests/stub_SBuf.cc \
1679 tests_testDns_LDADD= \
1682 $(top_builddir)/lib/libmiscutil.la \
1685 $(SQUID_CPPUNIT_LA) \
1686 $(SQUID_CPPUNIT_LIBS)
1687 tests_testDns_LDFLAGS= $(LIBADD_DL)
1689 tests_testEvent_SOURCES = \
1693 tests/stub_CacheDigest.cc \
1704 tests/stub_carp.cc \
1710 client_side_reply.cc \
1711 client_side_request.cc \
1714 tests/stub_CollapsedForwarding.cc \
1722 $(DELAY_POOL_SOURCE) \
1729 tests/stub_ETag.cc \
1734 ExternalACLEntry.cc \
1737 tests/stub_fatal.cc \
1757 HttpHeaderFieldInfo.h \
1759 HttpHeaderTools.cc \
1760 HttpHeaderFieldStat.h \
1764 HttpHdrContRange.cc \
1767 HttpHdrScTarget.cc \
1784 tests/stub_libsecurity.cc \
1789 tests/stub_libmem.cc \
1806 peer_proxy_negotiate_auth.h \
1807 peer_proxy_negotiate_auth.cc \
1810 peer_sourcehash.cc \
1814 tests/stub_redirect.cc \
1823 SBufDetailedStats.h \
1824 tests/stub_SBufDetailedStats.cc \
1840 tests/stub_store_digest.cc \
1852 StoreFileSystem.cc \
1854 tests/stub_StoreMeta.cc \
1855 StoreMetaUnpacker.cc \
1856 StoreSwapLogData.cc \
1858 tests/stub_SwapDir.cc \
1859 tests/CapturingStoreEntry.h \
1860 tests/testEvent.cc \
1862 tests/stub_main_cc.cc \
1863 tests/stub_ipc_Forwarder.cc \
1864 tests/stub_libauth_acls.cc \
1865 tests/stub_libauth.cc \
1866 tests/stub_libdiskio.cc \
1867 tests/stub_libeui.cc \
1868 tests/stub_store_stats.cc \
1873 tests/stub_tunnel.cc \
1880 tests/stub_wccp2.cc \
1882 tests/stub_whois.cc \
1886 nodist_tests_testEvent_SOURCES = \
1888 tests_testEvent_LDADD = \
1890 clients/libclients.la \
1891 servers/libservers.la \
1893 helper/libhelper.la \
1894 http/libsquid-http.la \
1895 parser/libsquid-parser.la \
1905 icmp/libicmp.la icmp/libicmp-core.la \
1908 format/libformat.la \
1910 $(ADAPTATION_LIBS) \
1913 $(top_builddir)/lib/libmisccontainers.la \
1914 $(top_builddir)/lib/libmiscencoding.la \
1915 $(top_builddir)/lib/libmiscutil.la \
1922 $(SQUID_CPPUNIT_LIBS) \
1923 $(SQUID_CPPUNIT_LA) \
1928 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1929 tests_testEvent_DEPENDENCIES = \
1933 ## Tests of the EventLoop module.
1934 tests_testEventLoop_SOURCES = \
1938 tests/stub_CacheDigest.cc \
1949 tests/stub_carp.cc \
1955 client_side_reply.cc \
1956 client_side_request.cc \
1959 tests/stub_CollapsedForwarding.cc \
1967 $(DELAY_POOL_SOURCE) \
1974 tests/stub_ETag.cc \
1979 ExternalACLEntry.cc \
1982 tests/stub_fatal.cc \
2002 HttpHeaderFieldInfo.h \
2004 HttpHeaderTools.cc \
2005 HttpHeaderFieldStat.h \
2009 HttpHdrContRange.cc \
2012 HttpHdrScTarget.cc \
2035 tests/stub_libmem.cc \
2050 peer_proxy_negotiate_auth.h \
2051 peer_proxy_negotiate_auth.cc \
2054 peer_sourcehash.cc \
2059 tests/stub_redirect.cc \
2065 SBufDetailedStats.h \
2066 tests/stub_SBufDetailedStats.cc \
2082 tests/stub_store_digest.cc \
2094 StoreFileSystem.cc \
2096 tests/stub_StoreMeta.cc \
2097 StoreMetaUnpacker.cc \
2098 StoreSwapLogData.cc \
2102 tests/stub_SwapDir.cc \
2103 tests/testEventLoop.cc \
2104 tests/testEventLoop.h \
2105 tests/stub_main_cc.cc \
2106 tests/stub_ipc_Forwarder.cc \
2107 tests/stub_libauth_acls.cc \
2108 tests/stub_libauth.cc \
2109 tests/stub_libdiskio.cc \
2110 tests/stub_libeui.cc \
2111 tests/stub_libsecurity.cc \
2112 tests/stub_store_stats.cc \
2117 tests/stub_tunnel.cc \
2124 tests/stub_wccp2.cc \
2126 tests/stub_whois.cc \
2130 nodist_tests_testEventLoop_SOURCES = \
2132 tests_testEventLoop_LDADD = \
2134 clients/libclients.la \
2135 servers/libservers.la \
2137 helper/libhelper.la \
2138 http/libsquid-http.la \
2139 parser/libsquid-parser.la \
2149 icmp/libicmp.la icmp/libicmp-core.la \
2152 format/libformat.la \
2154 $(ADAPTATION_LIBS) \
2157 $(top_builddir)/lib/libmisccontainers.la \
2158 $(top_builddir)/lib/libmiscencoding.la \
2159 $(top_builddir)/lib/libmiscutil.la \
2166 $(SQUID_CPPUNIT_LIBS) \
2167 $(SQUID_CPPUNIT_LA) \
2172 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2173 tests_testEventLoop_DEPENDENCIES = \
2177 tests_test_http_range_SOURCES = \
2190 tests/stub_CacheDigest.cc \
2192 tests/stub_carp.cc \
2198 client_side_reply.cc \
2199 client_side_request.cc \
2202 tests/stub_CollapsedForwarding.cc \
2210 $(DELAY_POOL_SOURCE) \
2217 tests/stub_ETag.cc \
2221 tests/stub_libauth.cc \
2222 tests/stub_fatal.cc \
2240 HttpHeaderFieldStat.h \
2244 HttpHdrContRange.cc \
2247 HttpHdrScTarget.cc \
2250 HttpHeaderFieldInfo.h \
2252 HttpHeaderTools.cc \
2275 tests/stub_libmem.cc \
2289 peer_proxy_negotiate_auth.h \
2290 peer_proxy_negotiate_auth.cc \
2293 peer_sourcehash.cc \
2298 tests/stub_redirect.cc \
2305 SBufDetailedStats.h \
2306 tests/stub_SBufDetailedStats.cc \
2322 tests/stub_store_digest.cc \
2334 StoreFileSystem.cc \
2336 tests/stub_StoreMeta.cc \
2337 StoreMetaUnpacker.cc \
2338 StoreSwapLogData.cc \
2342 tests/stub_SwapDir.cc \
2344 tests/test_http_range.cc \
2345 tests/stub_external_acl.cc \
2346 tests/stub_ipc_Forwarder.cc \
2347 tests/stub_libdiskio.cc \
2348 tests/stub_libeui.cc \
2349 tests/stub_libsecurity.cc \
2350 tests/stub_main_cc.cc \
2351 tests/stub_MemStore.cc \
2352 tests/stub_store_stats.cc \
2353 tests/stub_EventLoop.cc \
2357 tests/stub_tunnel.cc \
2363 tests/stub_wccp2.cc \
2365 tests/stub_whois.cc \
2369 nodist_tests_test_http_range_SOURCES = \
2371 tests_test_http_range_LDADD = \
2373 clients/libclients.la \
2374 servers/libservers.la \
2376 helper/libhelper.la \
2377 http/libsquid-http.la \
2378 parser/libsquid-parser.la \
2383 parser/libsquid-parser.la \
2387 icmp/libicmp.la icmp/libicmp-core.la \
2390 format/libformat.la \
2392 $(ADAPTATION_LIBS) \
2401 $(top_builddir)/lib/libmisccontainers.la \
2402 $(top_builddir)/lib/libmiscencoding.la \
2403 $(top_builddir)/lib/libmiscutil.la \
2406 $(SQUID_CPPUNIT_LIBS) \
2407 $(SQUID_CPPUNIT_LA) \
2412 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2413 tests_test_http_range_DEPENDENCIES = \
2416 ## Tests of parser/* objects
2417 tests_testTokenizer_SOURCES = \
2418 tests/testTokenizer.h \
2419 tests/testTokenizer.cc
2420 nodist_tests_testTokenizer_SOURCES = \
2421 parser/Tokenizer.h \
2426 tests/stub_debug.cc \
2427 tests/stub_libmem.cc \
2428 tests/stub_time.cc \
2429 tests/stub_SBufDetailedStats.cc
2430 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2431 tests_testTokenizer_LDADD = \
2432 parser/libsquid-parser.la \
2434 $(top_builddir)/lib/libmiscutil.la \
2436 $(SQUID_CPPUNIT_LA) \
2437 $(SQUID_CPPUNIT_LIBS) \
2440 tests_testHttp1Parser_SOURCES = \
2444 tests/stub_MemObject.cc \
2453 tests/stub_SBufDetailedStats.cc \
2454 tests/stub_cache_cf.cc \
2455 tests/stub_cache_manager.cc \
2456 tests/stub_comm.cc \
2457 tests/stub_cbdata.cc \
2458 tests/stub_debug.cc \
2459 tests/stub_event.cc \
2460 tests/stub_HelperChildConfig.cc \
2461 tests/stub_libmem.cc \
2462 tests/stub_libsecurity.cc \
2463 tests/stub_stmem.cc \
2464 tests/stub_store.cc \
2465 tests/stub_store_stats.cc \
2467 tests/stub_tools.cc \
2468 tests/testHttp1Parser.cc \
2469 tests/testHttp1Parser.h \
2470 tests/stub_time.cc \
2473 nodist_tests_testHttp1Parser_SOURCES = \
2475 tests_testHttp1Parser_LDADD= \
2476 http/libsquid-http.la \
2477 parser/libsquid-parser.la \
2482 $(top_builddir)/lib/libmiscutil.la \
2483 $(SQUID_CPPUNIT_LIBS) \
2487 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2488 tests_testHttp1Parser_DEPENDENCIES = \
2491 ## Tests of the HttpRequest module.
2492 tests_testHttpRequest_SOURCES = \
2497 tests/stub_libmem.cc \
2499 tests/testHttpRequest.h \
2500 tests/testHttpRequest.cc \
2501 tests/testHttpRequestMethod.h \
2502 tests/testHttpRequestMethod.cc \
2503 tests/stub_libauth.cc \
2504 tests/stub_main_cc.cc \
2505 tests/stub_ipc_Forwarder.cc \
2506 tests/stub_libdiskio.cc \
2507 tests/stub_libeui.cc \
2508 tests/stub_store_stats.cc \
2509 tests/stub_EventLoop.cc \
2521 tests/stub_CacheDigest.cc \
2525 tests/stub_carp.cc \
2531 client_side_reply.cc \
2532 client_side_request.cc \
2535 tests/stub_CollapsedForwarding.cc \
2542 $(DELAY_POOL_SOURCE) \
2549 tests/stub_ETag.cc \
2551 ExternalACLEntry.cc \
2553 tests/stub_fatal.cc \
2571 HttpHeaderFieldInfo.h \
2573 HttpHeaderTools.cc \
2574 HttpHeaderFieldStat.h \
2578 HttpHdrContRange.cc \
2581 HttpHdrScTarget.cc \
2593 tests/stub_libsecurity.cc \
2614 peer_proxy_negotiate_auth.h \
2615 peer_proxy_negotiate_auth.cc \
2618 peer_sourcehash.cc \
2624 tests/stub_libauth_acls.cc \
2625 tests/stub_redirect.cc \
2632 SBufDetailedStats.h \
2633 tests/stub_SBufDetailedStats.cc \
2649 tests/stub_store_digest.cc \
2661 StoreFileSystem.cc \
2663 tests/stub_StoreMeta.cc \
2664 StoreMetaUnpacker.cc \
2665 StoreSwapLogData.cc \
2672 tests/stub_tunnel.cc \
2673 tests/stub_SwapDir.cc \
2679 tests/stub_wccp2.cc \
2681 tests/stub_whois.cc \
2686 nodist_tests_testHttpRequest_SOURCES = \
2688 tests_testHttpRequest_LDADD = \
2690 clients/libclients.la \
2691 servers/libservers.la \
2692 helper/libhelper.la \
2694 http/libsquid-http.la \
2699 parser/libsquid-parser.la \
2704 parser/libsquid-parser.la \
2710 icmp/libicmp.la icmp/libicmp-core.la \
2713 format/libformat.la \
2716 $(ADAPTATION_LIBS) \
2718 $(top_builddir)/lib/libmisccontainers.la \
2719 $(top_builddir)/lib/libmiscencoding.la \
2720 $(top_builddir)/lib/libmiscutil.la \
2723 $(SQUID_CPPUNIT_LIBS) \
2724 $(SQUID_CPPUNIT_LA) \
2729 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2730 tests_testHttpRequest_DEPENDENCIES = \
2734 ## Tests for icmp/* objects
2735 # icmp/libicmp-core.la is used by pinger so SHOULD NOT require more dependancies! :-(
2736 tests_testIcmp_SOURCES = \
2739 nodist_tests_testIcmp_SOURCES = \
2742 tests/stub_debug.cc \
2743 tests/stub_libmem.cc \
2746 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2747 tests_testIcmp_LDADD=\
2748 icmp/libicmp-core.la \
2752 $(SQUID_CPPUNIT_LA) \
2753 $(SQUID_CPPUNIT_LIBS) \
2756 ## Tests for ip/* objects
2757 tests_testIpAddress_SOURCES= \
2758 tests/testAddress.cc \
2760 nodist_tests_testIpAddress_SOURCES= \
2762 tests/stub_debug.cc \
2763 tests/stub_libmem.cc \
2765 tests_testIpAddress_LDADD= \
2769 $(SQUID_CPPUNIT_LA) \
2770 $(SQUID_CPPUNIT_LIBS) \
2772 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2774 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2775 ## first line - what we are testing.
2776 tests_testStore_SOURCES= \
2778 tests/stub_CacheDigest.cc \
2781 tests/stub_CollapsedForwarding.cc \
2784 $(DELAY_POOL_SOURCE) \
2791 tests/stub_fatal.cc \
2794 HttpHeaderFieldStat.h \
2798 HttpHdrContRange.cc \
2801 HttpHdrScTarget.cc \
2802 HttpHeaderFieldInfo.h \
2804 HttpHeaderTools.cc \
2835 tests/stub_StoreMeta.cc \
2836 StoreMetaUnpacker.cc \
2837 StoreSwapLogData.cc \
2843 SBufDetailedStats.h \
2844 tests/stub_SBufDetailedStats.cc \
2848 tests/CapturingStoreEntry.h \
2850 tests/stub_access_log.cc \
2854 tests/stub_cache_cf.cc \
2855 tests/stub_cache_manager.cc \
2856 tests/stub_client_side_request.cc \
2857 tests/stub_comm.cc \
2858 tests/stub_debug.cc \
2859 tests/stub_errorpage.cc \
2863 tests/stub_helper.cc \
2864 tests/stub_HelperChildConfig.cc \
2865 tests/stub_http.cc \
2866 tests/stub_libauth.cc \
2867 tests/stub_libeui.cc \
2868 tests/stub_libdiskio.cc \
2869 tests/stub_libformat.cc \
2870 tests/stub_libsecurity.cc \
2871 tests/stub_libsslsquid.cc \
2874 tests/stub_HttpReply.cc \
2875 tests/stub_HttpRequest.cc \
2876 tests/stub_libcomm.cc \
2877 tests/stub_MemStore.cc \
2879 tests/stub_mime.cc \
2880 tests/stub_Port.cc \
2881 tests/stub_stat.cc \
2882 tests/stub_store_client.cc \
2883 tests/stub_store_stats.cc \
2885 tests/stub_store_rebuild.cc \
2886 tests/stub_store_swapout.cc \
2889 tests/stub_tools.cc \
2890 tests/stub_UdsOp.cc \
2891 tests/testPackableStream.cc \
2892 tests/testPackableStream.h \
2893 tests/testStore.cc \
2895 tests/testStoreController.cc \
2896 tests/testStoreController.h \
2897 tests/testStoreHashIndex.cc \
2898 tests/testStoreHashIndex.h \
2899 tests/testStoreSupport.cc \
2900 tests/testStoreSupport.h \
2901 tests/TestSwapDir.cc \
2902 tests/TestSwapDir.h \
2903 tests/stub_time.cc \
2908 nodist_tests_testStore_SOURCES= \
2914 tests_testStore_LDADD= \
2916 http/libsquid-http.la \
2917 parser/libsquid-parser.la \
2931 DiskIO/libdiskio.la \
2932 $(top_builddir)/lib/libmisccontainers.la \
2933 $(top_builddir)/lib/libmiscencoding.la \
2934 $(top_builddir)/lib/libmiscutil.la \
2937 $(SQUID_CPPUNIT_LIBS) \
2942 tests_testStore_LDFLAGS = $(LIBADD_DL)
2943 tests_testStore_DEPENDENCIES = \
2946 ## string needs mem.cc.
2947 ## mem.cc needs ClientInfo.h
2948 ## libsquid pulls in SquidConfig and children. stub them.
2949 tests_testString_SOURCES = \
2954 SBufDetailedStats.h \
2955 tests/stub_SBufDetailedStats.cc \
2956 tests/testString.cc \
2957 tests/testString.h \
2960 tests/stub_cache_cf.cc \
2961 tests/stub_cache_manager.cc \
2962 tests/stub_cbdata.cc \
2963 tests/stub_debug.cc \
2964 tests/stub_HelperChildConfig.cc \
2965 tests/stub_libmem.cc \
2967 tests/stub_tools.cc \
2968 tests/stub_time.cc \
2971 nodist_tests_testString_SOURCES = \
2973 tests_testString_LDADD = \
2977 $(top_builddir)/lib/libmiscutil.la \
2979 $(SQUID_CPPUNIT_LIBS) \
2983 tests_testString_LDFLAGS = $(LIBADD_DL)
2984 tests_testString_DEPENDENCIES = \
2997 DiskIO/libdiskio.la \
3003 tests_testUfs_SOURCES = \
3006 tests/stub_cache_manager.cc \
3007 tests/stub_client_db.cc \
3008 tests/stub_CollapsedForwarding.cc \
3009 tests/stub_HelperChildConfig.cc \
3012 tests/stub_ipcache.cc \
3013 tests/stub_libeui.cc \
3014 tests/stub_libicmp.cc \
3015 tests/stub_MemStore.cc \
3016 tests/stub_neighbors.cc \
3017 tests/stub_pconn.cc \
3018 tests/stub_Port.cc \
3019 tests/stub_UdsOp.cc \
3021 tests/stub_internal.cc \
3022 tests/stub_libformat.cc \
3023 tests/stub_libsecurity.cc \
3024 tests/stub_stat.cc \
3026 tests/stub_store_rebuild.cc \
3027 tests/stub_store_stats.cc \
3029 tests/stub_fatal.cc \
3054 StoreSwapLogData.cc \
3056 StoreMetaUnpacker.cc \
3057 $(STOREMETA_SOURCE) \
3058 StoreFileSystem.cc \
3065 $(DELAY_POOL_SOURCE) \
3067 tests/stub_CacheDigest.cc \
3081 tests/stub_cache_cf.cc \
3082 tests/stub_helper.cc \
3087 SBufDetailedStats.h \
3088 tests/stub_SBufDetailedStats.cc \
3090 tests/stub_debug.cc \
3091 tests/stub_client_side_request.cc \
3092 tests/stub_http.cc \
3093 tests/stub_libauth.cc \
3097 tests/stub_mime.cc \
3098 HttpHeaderFieldInfo.h \
3100 HttpHeaderTools.cc \
3105 HttpHdrContRange.cc \
3106 HttpHeaderFieldStat.h \
3111 HttpHdrScTarget.cc \
3121 tests/stub_errorpage.cc \
3122 tests/stub_HttpRequest.cc \
3124 tests/stub_access_log.cc \
3127 tests/stub_store_client.cc \
3129 tests/stub_tools.cc \
3130 tests/testStoreSupport.cc \
3131 tests/testStoreSupport.h \
3136 nodist_tests_testUfs_SOURCES = \
3141 tests_testUfs_LDADD = \
3142 http/libsquid-http.la \
3143 parser/libsquid-parser.la \
3155 DiskIO/libdiskio.la \
3166 $(top_builddir)/lib/libmisccontainers.la \
3167 $(top_builddir)/lib/libmiscencoding.la \
3168 $(top_builddir)/lib/libmiscutil.la \
3171 $(SQUID_CPPUNIT_LIBS) \
3175 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3176 tests_testUfs_DEPENDENCIES = \
3179 check_PROGRAMS += testRefCount
3180 testRefCount_SOURCES= \
3183 tests/stub_cbdata.cc \
3184 tests/stub_debug.cc \
3185 tests/stub_libmem.cc \
3186 tests/stub_MemBuf.cc \
3187 tests/testRefCount.cc
3188 testRefCount_LDADD = \
3190 $(top_builddir)/lib/libmiscutil.la \
3194 tests_testRock_SOURCES = \
3197 CollapsedForwarding.h \
3198 CollapsedForwarding.cc \
3199 tests/stub_CacheDigest.cc \
3215 HttpHeaderFieldStat.h \
3219 HttpHdrContRange.cc \
3222 HttpHdrScTarget.cc \
3225 HttpHeaderFieldInfo.h \
3227 HttpHeaderTools.cc \
3248 tests/stub_StatHist.cc \
3251 tests/stub_stat.cc \
3253 StoreFileSystem.cc \
3255 StoreMetaUnpacker.cc \
3256 $(STOREMETA_SOURCE) \
3257 StoreSwapLogData.cc \
3266 SBufDetailedStats.h \
3267 tests/stub_SBufDetailedStats.cc \
3275 tests/testStoreSupport.cc \
3276 tests/testStoreSupport.h \
3278 tests/stub_access_log.cc \
3281 tests/stub_cache_cf.cc \
3283 tests/stub_cache_manager.cc \
3284 tests/stub_client_db.cc \
3285 tests/stub_client_side_request.cc \
3286 tests/stub_debug.cc \
3287 tests/stub_errorpage.cc \
3288 tests/stub_HelperChildConfig.cc \
3289 tests/stub_http.cc \
3290 tests/stub_HttpRequest.cc \
3291 tests/stub_libauth.cc \
3294 tests/stub_ipcache.cc \
3295 tests/stub_libeui.cc \
3296 tests/stub_libformat.cc \
3297 tests/stub_libicmp.cc \
3298 tests/stub_libmgr.cc \
3299 tests/stub_libsecurity.cc \
3300 tests/stub_MemStore.cc \
3302 tests/stub_mime.cc \
3303 tests/stub_neighbors.cc \
3304 tests/stub_Port.cc \
3305 tests/stub_pconn.cc \
3306 tests/stub_store_client.cc \
3308 tests/stub_store_rebuild.cc \
3309 tests/stub_store_stats.cc \
3311 tests/stub_tools.cc \
3316 $(DELAY_POOL_SOURCE) \
3318 nodist_tests_testRock_SOURCES = \
3323 tests_testRock_LDADD = \
3324 http/libsquid-http.la \
3325 parser/libsquid-parser.la \
3332 DiskIO/libdiskio.la \
3343 $(top_builddir)/lib/libmisccontainers.la \
3344 $(top_builddir)/lib/libmiscencoding.la \
3345 $(top_builddir)/lib/libmiscutil.la \
3348 $(SQUID_CPPUNIT_LIBS) \
3352 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3353 tests_testRock_DEPENDENCIES = \
3356 ## Tests of the URL module.
3357 ## TODO: Trim this down once the insanity is over.
3358 tests_testURL_SOURCES = \
3367 tests/stub_cache_manager.cc \
3369 tests/stub_CacheDigest.cc \
3373 tests/stub_carp.cc \
3379 client_side_reply.cc \
3380 client_side_request.cc \
3383 tests/stub_CollapsedForwarding.cc \
3390 $(DELAY_POOL_SOURCE) \
3400 ExternalACLEntry.cc \
3402 tests/stub_fatal.cc \
3420 HttpHeaderFieldStat.h \
3424 HttpHdrContRange.cc \
3427 HttpHdrScTarget.cc \
3430 HttpHeaderFieldInfo.h \
3432 HttpHeaderTools.cc \
3448 tests/stub_libeui.cc \
3470 peer_proxy_negotiate_auth.h \
3471 peer_proxy_negotiate_auth.cc \
3474 peer_sourcehash.cc \
3478 tests/stub_redirect.cc \
3485 SBufDetailedStats.h \
3486 tests/stub_SBufDetailedStats.cc \
3496 tests/stub_StatHist.cc \
3502 tests/stub_store_digest.cc \
3514 StoreFileSystem.cc \
3516 tests/stub_StoreMeta.cc \
3517 StoreMetaUnpacker.cc \
3518 StoreSwapLogData.cc \
3523 tests/stub_SwapDir.cc \
3525 tests/stub_debug.cc \
3526 tests/stub_libauth_acls.cc \
3527 tests/stub_libauth.cc \
3528 tests/stub_libdiskio.cc \
3529 tests/stub_libmem.cc \
3530 tests/stub_libsecurity.cc \
3531 tests/stub_main_cc.cc \
3532 tests/stub_ipc_Forwarder.cc \
3533 tests/stub_store_stats.cc \
3536 tests/testUriScheme.cc \
3537 tests/testUriScheme.h \
3538 tests/stub_time.cc \
3539 tests/stub_EventLoop.cc \
3542 tests/stub_tunnel.cc \
3547 tests/stub_wccp2.cc \
3549 tests/stub_whois.cc \
3554 nodist_tests_testURL_SOURCES = \
3556 tests_testURL_LDADD = \
3558 clients/libclients.la \
3559 servers/libservers.la \
3560 helper/libhelper.la \
3561 http/libsquid-http.la \
3563 parser/libsquid-parser.la \
3578 icmp/libicmp.la icmp/libicmp-core.la \
3581 format/libformat.la \
3585 $(ADAPTATION_LIBS) \
3587 $(top_builddir)/lib/libmisccontainers.la \
3588 $(top_builddir)/lib/libmiscencoding.la \
3589 $(top_builddir)/lib/libmiscutil.la \
3592 $(SQUID_CPPUNIT_LIBS) \
3593 $(SQUID_CPPUNIT_LA) \
3598 tests_testURL_LDFLAGS = $(LIBADD_DL)
3599 tests_testURL_DEPENDENCIES = \
3603 tests_testSBuf_SOURCES= \
3606 tests/SBufFindTest.h \
3607 tests/SBufFindTest.cc \
3609 SBufDetailedStats.h \
3610 tests/stub_SBufDetailedStats.cc \
3614 tests/stub_time.cc \
3615 tests/stub_debug.cc \
3616 tests/stub_fatal.cc \
3617 tests/stub_HelperChildConfig.cc \
3618 tests/stub_libmem.cc \
3619 tests/stub_cache_cf.cc \
3620 tests/stub_cache_manager.cc \
3621 tests/stub_cbdata.cc \
3622 tests/stub_store.cc \
3623 tests/stub_store_stats.cc \
3624 tests/stub_tools.cc \
3627 tests/stub_wordlist.cc \
3628 tests/stub_MemBuf.cc
3629 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3630 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3631 tests_testSBuf_LDADD=\
3636 $(top_builddir)/lib/libmiscutil.la \
3638 $(SQUID_CPPUNIT_LIBS) \
3641 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3643 tests_testSBufList_SOURCES= \
3644 tests/testSBufList.h \
3645 tests/testSBufList.cc \
3651 SBufDetailedStats.h \
3652 tests/stub_SBufDetailedStats.cc \
3654 tests/stub_time.cc \
3655 tests/stub_MemObject.cc \
3656 tests/stub_cbdata.cc \
3657 tests/stub_comm.cc \
3658 tests/stub_debug.cc \
3659 tests/stub_event.cc \
3660 tests/stub_fatal.cc \
3662 tests/stub_HelperChildConfig.cc \
3663 tests/stub_libmem.cc \
3664 tests/stub_cache_cf.cc \
3665 tests/stub_cache_manager.cc \
3666 tests/stub_store.cc \
3667 tests/stub_stmem.cc \
3668 tests/stub_store_stats.cc \
3669 tests/stub_tools.cc \
3673 tests/stub_wordlist.cc \
3674 tests/stub_MemBuf.cc
3675 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3676 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3677 tests_testSBufList_LDADD=\
3682 $(top_builddir)/lib/libmiscutil.la \
3683 $(SQUID_CPPUNIT_LIBS) \
3686 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3688 tests_testConfigParser_SOURCES = \
3690 tests/stub_MemBuf.cc \
3691 tests/stub_time.cc \
3693 SBufDetailedStats.h \
3694 tests/stub_SBufDetailedStats.cc \
3698 tests/stub_fatal.cc \
3699 tests/testConfigParser.cc \
3700 tests/testConfigParser.h \
3703 tests/stub_cache_cf.cc \
3704 tests/stub_cache_manager.cc \
3705 tests/stub_cbdata.cc \
3706 tests/stub_debug.cc \
3707 tests/stub_libmem.cc \
3708 tests/stub_HelperChildConfig.cc \
3710 tests/stub_tools.cc \
3713 nodist_tests_testConfigParser_SOURCES = \
3715 tests_testConfigParser_LDADD = \
3719 $(top_builddir)/lib/libmiscutil.la \
3721 $(SQUID_CPPUNIT_LIBS) \
3725 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3726 tests_testConfigParser_DEPENDENCIES = \
3729 tests_testStatHist_SOURCES = \
3730 tests/stub_cbdata.cc \
3732 tests/stub_fatal.cc \
3733 tests/stub_MemBuf.cc \
3735 SBufDetailedStats.h \
3736 tests/stub_SBufDetailedStats.cc \
3740 tests/stub_cache_manager.cc \
3741 tests/stub_comm.cc \
3742 tests/stub_debug.cc \
3743 tests/stub_DelayId.cc \
3744 tests/stub_HelperChildConfig.cc \
3745 tests/stub_libmem.cc \
3746 tests/stub_MemObject.cc \
3748 tests/stub_mime.cc \
3749 tests/stub_pconn.cc \
3750 tests/stub_stmem.cc \
3752 tests/stub_store.cc \
3753 tests/stub_store_stats.cc \
3756 tests/stub_tools.cc \
3757 tests/testStatHist.cc \
3758 tests/testStatHist.h
3759 nodist_tests_testStatHist_SOURCES = \
3761 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3762 tests_testStatHist_LDADD = \
3764 $(top_builddir)/lib/libmiscutil.la \
3765 $(top_builddir)/lib/libmisccontainers.la \
3766 $(SQUID_CPPUNIT_LIBS) \
3767 $(SQUID_CPPUNIT_LA) \
3769 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3771 tests_testLookupTable_SOURCES = \
3772 tests/testLookupTable.h \
3773 tests/testLookupTable.cc \
3774 tests/stub_debug.cc \
3775 tests/stub_libmem.cc \
3776 tests/stub_SBufDetailedStats.cc \
3777 base/LookupTable.h \
3782 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3783 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3784 tests_testLookupTable_LDADD = \
3786 $(SQUID_CPPUNIT_LIBS) \
3789 tests_testLookupTable_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3791 tests_testEnumIterator_SOURCES = \
3792 base/EnumIterator.h \
3793 tests/stub_debug.cc \
3794 tests/stub_libmem.cc \
3795 tests/testEnumIterator.h \
3796 tests/testEnumIterator.cc
3797 nodist_tests_testEnumIterator_SOURCES = \
3799 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3800 tests_testEnumIterator_LDADD = \
3802 $(SQUID_CPPUNIT_LIBS) \
3804 $(SQUID_CPPUNIT_LA) \
3806 tests_testEnumIterator_DEPENDENCIES =
3808 TESTS += testHeaders
3810 ## Special Universal .h dependency test script
3811 ## aborts if error encountered
3812 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3813 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3814 ## src/repl/ has no .h files and its own makefile.
3816 CLEANFILES += testHeaders