]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Makefile.am
Fix "make check" to test headers (#1463)
[thirdparty/squid.git] / src / Makefile.am
1 ## Copyright (C) 1996-2023 The Squid Software Foundation and contributors
2 ##
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.
6 ##
7
8 include $(top_srcdir)/src/Common.am
9
10 DNSSOURCE = \
11 dns_internal.cc
12
13 LOADABLE_MODULES_SOURCES = \
14 LoadableModule.cc \
15 LoadableModule.h \
16 LoadableModules.cc \
17 LoadableModules.h
18
19 SUBDIRS = mem time debug base anyp helper dns ftp parser comm error eui acl format clients sbuf servers fs repl store DiskIO proxyp
20
21 if ENABLE_AUTH
22 SUBDIRS += auth
23 AUTH_LIBS= auth/libauth.la
24 AUTH_ACL_LIBS= auth/libacls.la
25 endif
26
27 SUBDIRS += http ip icmp ident log ipc mgr
28
29 SSL_LIBS=
30 if ENABLE_SSL
31 SUBDIRS += ssl
32 SSL_LIBS += \
33 ssl/libsslsquid.la \
34 ssl/libsslutil.la
35 endif
36 SUBDIRS += security
37
38 SNMP_ALL_SOURCE = \
39 SnmpRequest.h \
40 snmp_core.h \
41 snmp_core.cc \
42 snmp_agent.h \
43 snmp_agent.cc
44
45 if ENABLE_SNMP
46 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
47 SUBDIRS += snmp
48 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
49 else
50 SNMP_SOURCE =
51 EXCLUDE_FROM_HDR_TESTING += $(SNMP_ALL_SOURCE)
52 endif
53
54 if ENABLE_ADAPTATION
55 SUBDIRS += adaptation
56 endif
57
58 if ENABLE_ESI
59 SUBDIRS += esi
60 ESI_LIBS = \
61 esi/libesi.la \
62 $(top_builddir)/lib/libTrie/libTrie.a \
63 $(LIBEXPAT_LIBS) \
64 $(LIBXML2_LIBS)
65 else
66 ESI_LIBS =
67 endif
68
69 DELAY_POOL_ALL_SOURCE = \
70 BandwidthBucket.cc \
71 BandwidthBucket.h \
72 CommonPool.h \
73 CompositePoolNode.h \
74 delay_pools.cc \
75 DelayId.cc \
76 DelayId.h \
77 DelayIdComposite.h \
78 DelayBucket.cc \
79 DelayBucket.h \
80 DelayConfig.cc \
81 DelayConfig.h \
82 DelayPool.cc \
83 DelayPool.h \
84 DelayPools.h \
85 DelaySpec.cc \
86 DelaySpec.h \
87 DelayTagged.cc \
88 DelayTagged.h \
89 DelayUser.cc \
90 DelayUser.h \
91 DelayVector.cc \
92 DelayVector.h \
93 MessageBucket.cc \
94 MessageBucket.h \
95 MessageDelayPools.h \
96 MessageDelayPools.cc \
97 NullDelayId.h \
98 ClientDelayConfig.cc \
99 ClientDelayConfig.h
100
101 if ENABLE_DELAY_POOLS
102 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
103 else
104 DELAY_POOL_SOURCE =
105 EXCLUDE_FROM_HDR_TESTING += $(DELAY_POOL_ALL_SOURCE)
106 endif
107
108 KNOWN_HTCP_SOURCE = htcp.cc htcp.h
109 if ENABLE_HTCP
110 HTCPSOURCE = $(KNOWN_HTCP_SOURCE)
111 else
112 EXCLUDE_FROM_HDR_TESTING += $(KNOWN_HTCP_SOURCE)
113 endif
114
115 if ENABLE_UNLINKD
116 UNLINKDSOURCE = unlinkd.h unlinkd.cc
117 UNLINKD = unlinkd
118 else
119 UNLINKDSOURCE = unlinkd.h
120 UNLINKD =
121 endif
122
123 WIN32_ALL_SOURCE = \
124 win32.h \
125 win32.cc \
126 WinSvc.h \
127 WinSvc.cc
128 if ENABLE_WIN32SPECIFIC
129 WIN32_SOURCE = win32.cc
130 WINSVC_SOURCE = WinSvc.cc
131 else
132 WIN32_SOURCE =
133 WINSVC_SOURCE =
134 endif
135
136 if ENABLE_WIN32_IPC
137 IPC_SOURCE = SquidIpc.h ipc_win32.cc
138 else
139 IPC_SOURCE = SquidIpc.h ipc.cc
140 endif
141
142 noinst_LTLIBRARIES = libsquid.la
143
144 EXTRA_PROGRAMS = \
145 unlinkd
146
147 ## cfgen is used when building squid
148 noinst_PROGRAMS = \
149 cf_gen
150
151 sbin_PROGRAMS = \
152 squid
153
154 bin_PROGRAMS =
155
156 libexec_PROGRAMS = \
157 $(UNLINKD)
158
159 cf_gen_SOURCES = cf_gen.cc
160 nodist_cf_gen_HEADER = cf_gen_defines.cci
161 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
162 cf_gen_LDADD=
163 cf_gen.$(OBJEXT): cf_gen_defines.cci
164
165 ## cf_gen.cc needs src/cf_gen_defines.cci
166 AM_CPPFLAGS += -I$(top_builddir)/src
167
168
169 ACL_REGISTRATION_SOURCES = \
170 AclRegs.cc \
171 AuthReg.cc
172
173 # common library for all the binaries and tests. This is kindof a catch all
174 # and smaller libraries split from this are encouraged. Using lt convenience
175 # libraries, dependencies should not be a problem either.
176 libsquid_la_SOURCES = \
177 CommCalls.cc \
178 CommCalls.h \
179 DescriptorSet.cc \
180 DescriptorSet.h \
181 SquidConfig.cc \
182 SquidConfig.h \
183 comm.cc \
184 comm.h
185
186 squid_SOURCES = \
187 $(ACL_REGISTRATION_SOURCES) \
188 $(DELAY_POOL_SOURCE) \
189 $(DNSSOURCE) \
190 $(HTCPSOURCE) \
191 $(IPC_SOURCE) \
192 $(SNMP_SOURCE) \
193 $(UNLINKDSOURCE) \
194 $(WIN32_SOURCE) \
195 $(WINSVC_SOURCE) \
196 AccessLogEntry.cc \
197 AccessLogEntry.h \
198 AsyncEngine.cc \
199 AsyncEngine.h \
200 AuthReg.h \
201 BodyPipe.cc \
202 BodyPipe.h \
203 CacheDigest.cc \
204 CacheDigest.h \
205 CacheManager.h \
206 CachePeer.cc \
207 CachePeer.h \
208 CachePeers.cc \
209 CachePeers.h \
210 ClientInfo.h \
211 ClientRequestContext.h \
212 CollapsedForwarding.cc \
213 CollapsedForwarding.h \
214 CollapsingHistory.h \
215 CommandLine.cc \
216 CommandLine.h \
217 ConfigOption.cc \
218 ConfigParser.cc \
219 ConfigParser.h \
220 CpuAffinity.cc \
221 CpuAffinity.h \
222 CpuAffinityMap.cc \
223 CpuAffinityMap.h \
224 CpuAffinitySet.cc \
225 CpuAffinitySet.h \
226 Downloader.cc \
227 Downloader.h \
228 ETag.cc \
229 ETag.h \
230 EventLoop.cc \
231 EventLoop.h \
232 ExternalACL.h \
233 ExternalACLEntry.cc \
234 ExternalACLEntry.h \
235 FadingCounter.cc \
236 FadingCounter.h \
237 FileMap.h \
238 FwdState.cc \
239 FwdState.h \
240 Generic.h \
241 HappyConnOpener.cc \
242 HappyConnOpener.h \
243 HierarchyLogEntry.h \
244 HttpBody.cc \
245 HttpBody.h \
246 HttpControlMsg.cc \
247 HttpControlMsg.h \
248 HttpHdrCc.cc \
249 HttpHdrCc.h \
250 HttpHdrContRange.cc \
251 HttpHdrContRange.h \
252 HttpHdrRange.cc \
253 HttpHdrSc.cc \
254 HttpHdrSc.h \
255 HttpHdrScTarget.cc \
256 HttpHdrScTarget.h \
257 HttpHeader.cc \
258 HttpHeader.h \
259 HttpHeaderFieldInfo.h \
260 HttpHeaderFieldStat.h \
261 HttpHeaderMask.h \
262 HttpHeaderRange.h \
263 HttpHeaderStat.h \
264 HttpHeaderTools.cc \
265 HttpHeaderTools.h \
266 HttpReply.cc \
267 HttpReply.h \
268 HttpRequest.cc \
269 HttpRequest.h \
270 HttpUpgradeProtocolAccess.cc \
271 HttpUpgradeProtocolAccess.h \
272 ICP.h \
273 Instance.cc \
274 Instance.h \
275 IoStats.h \
276 LogTags.cc \
277 LogTags.h \
278 MasterXaction.cc \
279 MasterXaction.h \
280 MemBuf.cc \
281 MemObject.cc \
282 MemObject.h \
283 MemStore.cc \
284 MemStore.h \
285 MessageSizes.h \
286 NeighborTypeDomainList.h \
287 Notes.cc \
288 Notes.h \
289 Parsing.cc \
290 Parsing.h \
291 PeerDigest.h \
292 PeerPoolMgr.cc \
293 PeerPoolMgr.h \
294 PeerSelectState.h \
295 PingData.h \
296 Pipeline.cc \
297 Pipeline.h \
298 RefreshPattern.h \
299 RemovalPolicy.cc \
300 RemovalPolicy.h \
301 RequestFlags.cc \
302 RequestFlags.h \
303 ResolvedPeers.cc \
304 ResolvedPeers.h \
305 SBufStatsAction.cc \
306 SBufStatsAction.h \
307 SquidMath.cc \
308 SquidMath.h \
309 StatCounters.cc \
310 StatCounters.h \
311 StatHist.cc \
312 StatHist.h \
313 Store.h \
314 StoreClient.h \
315 StoreFileSystem.cc \
316 StoreFileSystem.h \
317 StoreIOBuffer.h \
318 StoreIOState.cc \
319 StoreIOState.h \
320 StoreSearch.h \
321 StoreStats.cc \
322 StoreStats.h \
323 StoreSwapLogData.cc \
324 StoreSwapLogData.h \
325 StrList.cc \
326 StrList.h \
327 String.cc \
328 TimeOrTag.h \
329 Transients.cc \
330 Transients.h \
331 XactionInitiator.cc \
332 XactionInitiator.h \
333 XactionStep.h \
334 cache_cf.cc \
335 cache_cf.h \
336 cache_manager.cc \
337 carp.cc \
338 carp.h \
339 cbdata.cc \
340 cbdata.h \
341 clientStream.cc \
342 clientStream.h \
343 clientStreamForward.h \
344 client_db.cc \
345 client_db.h \
346 client_side.cc \
347 client_side.h \
348 client_side_reply.cc \
349 client_side_reply.h \
350 client_side_request.cc \
351 client_side_request.h \
352 defines.h \
353 dlink.cc \
354 dlink.h \
355 enums.h \
356 errorpage.cc \
357 errorpage.h \
358 event.cc \
359 event.h \
360 external_acl.cc \
361 fatal.cc \
362 fatal.h \
363 fd.cc \
364 fd.h \
365 fde.cc \
366 fde.h \
367 filemap.cc \
368 fqdncache.cc \
369 fqdncache.h \
370 fs_io.cc \
371 fs_io.h \
372 globals.h \
373 helper.cc \
374 helper.h \
375 hier_code.h \
376 http.cc \
377 http.h \
378 icp_opcode.h \
379 icp_v2.cc \
380 icp_v3.cc \
381 int.cc \
382 int.h \
383 internal.cc \
384 internal.h \
385 ipcache.cc \
386 ipcache.h \
387 lookup_t.h \
388 main.cc \
389 mem_node.cc \
390 mem_node.h \
391 mime.cc \
392 mime.h \
393 mime_header.cc \
394 mime_header.h \
395 multicast.cc \
396 multicast.h \
397 neighbors.cc \
398 neighbors.h \
399 pconn.cc \
400 pconn.h \
401 peer_digest.cc \
402 peer_proxy_negotiate_auth.cc \
403 peer_proxy_negotiate_auth.h \
404 peer_select.cc \
405 peer_sourcehash.cc \
406 peer_sourcehash.h \
407 peer_userhash.cc \
408 peer_userhash.h \
409 protos.h \
410 redirect.cc \
411 redirect.h \
412 refresh.cc \
413 refresh.h \
414 repl_modules.h \
415 sbuf/StringConvert.h \
416 stat.cc \
417 stat.h \
418 stmem.cc \
419 stmem.h \
420 store.cc \
421 store_client.cc \
422 store_digest.cc \
423 store_digest.h \
424 store_io.cc \
425 store_key_md5.cc \
426 store_key_md5.h \
427 store_log.cc \
428 store_log.h \
429 store_rebuild.cc \
430 store_rebuild.h \
431 store_swapin.cc \
432 store_swapin.h \
433 store_swapout.cc \
434 swap_log_op.h \
435 tools.cc \
436 tools.h \
437 tunnel.cc \
438 tunnel.h \
439 typedefs.h \
440 urn.cc \
441 urn.h \
442 wccp.cc \
443 wccp.h \
444 wccp2.cc \
445 wccp2.h \
446 whois.cc \
447 whois.h \
448 wordlist.cc \
449 wordlist.h
450
451 EXTRA_squid_SOURCES = \
452 $(DELAY_POOL_ALL_SOURCE) \
453 $(LOADABLE_MODULES_SOURCES) \
454 $(SNMP_ALL_SOURCE) \
455 $(UNLINKDSOURCE) \
456 $(WIN32_ALL_SOURCE) \
457 $(all_AUTHMODULES) \
458 ConfigOption.h \
459 htcp.cc \
460 htcp.h \
461 ipc.cc \
462 ipc_win32.cc
463
464 noinst_HEADERS = \
465 MemBuf.h \
466 SquidString.h
467
468 BUILT_SOURCES = \
469 cf_gen_defines.cci \
470 cf_parser.cci \
471 globals.cc \
472 hier_code.cc \
473 icp_opcode.cc \
474 lookup_t.cc \
475 repl_modules.cc \
476 swap_log_op.cc
477
478 CLEANFILES += $(BUILT_SOURCES)
479
480 nodist_squid_SOURCES = \
481 $(BUILT_SOURCES)
482
483 squid_LDADD = \
484 $(AUTH_ACL_LIBS) \
485 ident/libident.la \
486 acl/libacls.la \
487 acl/libstate.la \
488 $(AUTH_LIBS) \
489 acl/libapi.la \
490 clients/libclients.la \
491 servers/libservers.la \
492 ftp/libftp.la \
493 helper/libhelper.la \
494 http/libhttp.la \
495 dns/libdns.la \
496 base/libbase.la \
497 libsquid.la \
498 ip/libip.la \
499 fs/libfs.la \
500 DiskIO/libdiskio.la \
501 comm/libcomm.la \
502 anyp/libanyp.la \
503 security/libsecurity.la \
504 $(SSL_LIBS) \
505 error/liberror.la \
506 ipc/libipc.la \
507 mgr/libmgr.la \
508 proxyp/libproxyp.la \
509 parser/libparser.la \
510 eui/libeui.la \
511 icmp/libicmp.la \
512 log/liblog.la \
513 format/libformat.la \
514 sbuf/libsbuf.la \
515 debug/libdebug.la \
516 $(XTRA_OBJS) \
517 $(REPL_OBJS) \
518 $(CRYPTLIB) \
519 $(REGEXLIB) \
520 $(ADAPTATION_LIBS) \
521 $(ESI_LIBS) \
522 $(SNMP_LIBS) \
523 mem/libmem.la \
524 store/libstore.la \
525 time/libtime.la \
526 $(top_builddir)/lib/libmisccontainers.la \
527 $(top_builddir)/lib/libmiscencoding.la \
528 $(top_builddir)/lib/libmiscutil.la \
529 $(LIBCAP_LIBS) \
530 $(SSLLIB) \
531 $(EPOLL_LIBS) \
532 $(MINGW_LIBS) \
533 $(KRB5LIBS) \
534 $(LIBSYSTEMD_LIBS) \
535 $(COMPAT_LIB) \
536 $(LIBNETTLE_LIBS) \
537 $(LIBPSAPI_LIBS) \
538 $(XTRA_LIBS)
539
540 if ENABLE_LOADABLE_MODULES
541 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
542 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
543 squid_LDFLAGS = -export-dynamic -dlopen force
544 ## when static module linking is supported and enabled:
545 ## squid_LDFLAGS = -all-static -dlopen self
546 ##
547 ## LTDL headers require their local include path...
548 AM_CPPFLAGS += $(INCLTDL)
549 endif
550
551 ## Kerberos libraries require their include path...
552 AM_CPPFLAGS += $(KRB5INCS)
553
554
555 unlinkd_SOURCES = unlinkd_daemon.cc
556 unlinkd_LDADD = \
557 $(COMPAT_LIB) \
558 $(XTRA_LIBS)
559
560 sysconf_DATA = \
561 squid.conf.default \
562 squid.conf.documented \
563 mime.conf.default
564
565 data_DATA = \
566 mib.txt
567
568 LDADD = \
569 $(AUTH_ACL_LIBS) \
570 ident/libident.la \
571 acl/libacls.la \
572 eui/libeui.la \
573 acl/libstate.la \
574 $(AUTH_LIBS) \
575 acl/libapi.la \
576 base/libbase.la \
577 libsquid.la \
578 ip/libip.la \
579 fs/libfs.la \
580 ipc/libipc.la \
581 mgr/libmgr.la \
582 $(EPOLL_LIBS) \
583 $(MINGW_LIBS) \
584 $(COMPAT_LIB) \
585 $(XTRA_LIBS)
586
587 include $(srcdir)/tests/Stub.am
588
589 EXTRA_DIST = \
590 cf_gen_defines \
591 cf.data.pre \
592 cf.data.depend \
593 cf.data.sed \
594 mk-globals-c.awk \
595 mk-string-arrays.awk \
596 repl_modules.sh \
597 $(STUB_SOURCE) \
598 tests/STUB.h \
599 mib.txt \
600 mime.conf.default
601
602 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
603
604 globals.cc: globals.h mk-globals-c.awk
605 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
606
607 ## Generate files containing string arrays for various enums....
608 hier_code.cc: hier_code.h mk-string-arrays.awk
609 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
610
611 lookup_t.cc: lookup_t.h mk-string-arrays.awk
612 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
613
614 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
615 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
616
617 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
618 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
619
620
621 ## other generated files...
622
623 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
624 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
625
626 ## If autodependency works well this is not needed anymore
627 cache_cf.o: cf_parser.cci
628
629 # cf_gen builds the configuration files.
630 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
631 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
632
633 # squid.conf.default is built by cf_gen when making cf_parser.cci
634 squid.conf.default squid.conf.documented: cf_parser.cci
635 true
636
637 cf_parser.cci: cf.data cf_gen$(EXEEXT)
638 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
639
640 # The cf_gen_defines.cci is auto-generated and does not exist when the
641 # dependencies computed. We need to add its include files (autoconf.h) here
642 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
643 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
644
645
646 ## TODO: generate a sed command file from configure. Then this doesn't
647 ## depend on the Makefile.
648 cf.data: cf.data.pre Makefile
649 sed \
650 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
651 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
652 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
653 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
654 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
655 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
656 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
657 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
658 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
659 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
660 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
661 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
662 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
663 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
664 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
665 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
666 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
667 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
668 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
669 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
670 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
671 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
672 -f $(srcdir)/cf.data.sed \
673 < $(srcdir)/cf.data.pre >$@
674
675 repl_modules.cc: repl_modules.sh Makefile
676 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
677
678 include $(top_srcdir)/doc/manuals/Substitute.am
679
680 squid.8: $(srcdir)/squid.8.in Makefile
681 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
682
683 man_MANS = squid.8
684 EXTRA_DIST += squid.8.in
685 CLEANFILES += squid.8
686
687 install-data-local: install-sysconfDATA install-dataDATA
688 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
689 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
690 else \
691 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
692 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
693 fi
694 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
695 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
696 else \
697 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
698 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
699 fi
700 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
701 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
702 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
703 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
704 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
705 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
706 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
707
708 uninstall-local: squid.conf.default
709 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
710 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
711
712 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
713 test_tools.cc *.a
714
715 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
716 cp $(top_srcdir)/test-suite/test_tools.cc .
717
718 # stock tools for unit tests - library independent versions of dlink_list
719 # etc.
720 # globals.cc is needed by test_tools.cc.
721 # Neither of these should be disted from here.
722 TESTSOURCES= \
723 tests/STUB.h \
724 test_tools.cc \
725 globals.cc
726
727 ### Template for new Unit Test Program
728 ## - copy template below and substitute X for class name
729 ## - place code being tested in _SOURCES
730 ## - place stubs etc. requiredd to link in nodist_*_SOURCES
731 ## - add other component .(h|cc) files needed to link and run tests
732 ##
733 #check_PROGRAMS += tests/testX
734 #tests_testX_SOURCES= \
735 # tests/testX.cc \
736 # tests/testX.h
737 #nodist_tests_testX_SOURCES= \
738 # X.cc \
739 # tests/stubs_as_needed.cc
740 #tests_testX_LDADD=\
741 # $(LIBCPPUNIT_LIBS) \
742 # $(COMPAT_LIB) \
743 # $(XTRA_LIBS)
744 #tests_testX_LDFLAGS = $(LIBADD_DL)
745
746 ## A demonstration test that does nothing but shows the salient points
747 ## involved in writing tests.
748 check_PROGRAMS += tests/testBoilerplate
749 tests_testBoilerplate_SOURCES = \
750 tests/testBoilerplate.cc \
751 tests/testBoilerplate.h
752 nodist_tests_testBoilerplate_SOURCES = \
753 $(TESTSOURCES)
754 tests_testBoilerplate_LDADD= \
755 $(LIBCPPUNIT_LIBS) \
756 $(COMPAT_LIB) \
757 $(XTRA_LIBS)
758 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
759
760 # Unit Tests are listed below by sub-directory with order matching the SUBDIRS
761 # dependency-based list so that simpler code is tested before more complex code
762 # which uses it.
763
764 ## Tests of SquidMath.h
765 check_PROGRAMS += tests/testMath
766 tests_testMath_SOURCES = \
767 tests/testMath.cc
768 nodist_tests_testMath_SOURCES = \
769 SquidMath.h
770 tests_testMath_LDADD = \
771 $(LIBCPPUNIT_LIBS) \
772 $(COMPAT_LIB) \
773 $(XTRA_LIBS)
774 tests_testMath_LDFLAGS = $(LIBADD_DL)
775
776 ## Tests of RandomUuid.h
777 check_PROGRAMS += tests/testRandomUuid
778 tests_testRandomUuid_SOURCES = \
779 tests/testRandomUuid.cc
780 nodist_tests_testRandomUuid_SOURCES = \
781 base/RandomUuid.h \
782 tests/stub_debug.cc \
783 tests/stub_libmem.cc
784 tests_testRandomUuid_LDADD = \
785 libsquid.la \
786 sbuf/libsbuf.la \
787 base/libbase.la \
788 $(LIBCPPUNIT_LIBS) \
789 $(COMPAT_LIB) \
790 $(XTRA_LIBS)
791 tests_testRandomUuid_LDFLAGS = $(LIBADD_DL)
792
793 ## Tests of mem/*
794
795 check_PROGRAMS += tests/testMem
796 tests_testMem_SOURCES = \
797 tests/testMem.cc
798 nodist_tests_testMem_SOURCES = \
799 tests/stub_libtime.cc
800 tests_testMem_LDADD = \
801 mem/libmem.la \
802 $(top_builddir)/lib/libmiscutil.la \
803 $(LIBCPPUNIT_LIBS) \
804 $(COMPAT_LIB) \
805 $(XTRA_LIBS)
806 tests_testMem_LDFLAGS = $(LIBADD_DL)
807
808 ## Tests of base/*
809
810 check_PROGRAMS += tests/testCharacterSet
811 tests_testCharacterSet_SOURCES = \
812 tests/testCharacterSet.cc
813 nodist_tests_testCharacterSet_SOURCES = \
814 base/CharacterSet.h
815 tests_testCharacterSet_LDADD = \
816 base/libbase.la \
817 $(LIBCPPUNIT_LIBS) \
818 $(COMPAT_LIB) \
819 $(XTRA_LIBS)
820 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
821
822 check_PROGRAMS += tests/testClpMap
823 tests_testClpMap_SOURCES = \
824 tests/testClpMap.cc
825 nodist_tests_testClpMap_SOURCES = \
826 tests/stub_HelperChildConfig.cc \
827 tests/stub_SBuf.cc \
828 tests/stub_libip.cc \
829 tests/stub_libtime.cc
830 tests_testClpMap_LDADD = \
831 mem/libminimal.la \
832 $(LIBCPPUNIT_LIBS) \
833 $(COMPAT_LIB) \
834 $(XTRA_LIBS)
835
836 check_PROGRAMS += tests/testEnumIterator
837 tests_testEnumIterator_SOURCES = \
838 tests/testEnumIterator.cc
839 nodist_tests_testEnumIterator_SOURCES = \
840 base/EnumIterator.h
841 tests_testEnumIterator_LDADD = \
842 $(LIBCPPUNIT_LIBS) \
843 $(COMPAT_LIB) \
844 $(XTRA_LIBS)
845 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
846
847 check_PROGRAMS += tests/testLookupTable
848 tests_testLookupTable_SOURCES = \
849 tests/testLookupTable.cc
850 nodist_tests_testLookupTable_SOURCES = \
851 base/LookupTable.h \
852 tests/stub_debug.cc \
853 tests/stub_libmem.cc
854 tests_testLookupTable_LDADD = \
855 sbuf/libsbuf.la \
856 base/libbase.la \
857 $(LIBCPPUNIT_LIBS) \
858 $(COMPAT_LIB) \
859 $(XTRA_LIBS)
860 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
861
862 check_PROGRAMS += tests/testRefCount
863 tests_testRefCount_SOURCES = \
864 tests/testRefCount.cc
865 nodist_tests_testRefCount_SOURCES = \
866 base/RefCount.h
867 tests_testRefCount_LDADD = \
868 $(LIBCPPUNIT_LIBS) \
869 $(COMPAT_LIB) \
870 $(XTRA_LIBS)
871 tests_testRefCount_LDFLAGS = $(LIBADD_DL)
872
873 check_PROGRAMS += tests/testYesNoNone
874 tests_testYesNoNone_SOURCES = \
875 tests/testYesNoNone.cc
876 nodist_tests_testYesNoNone_SOURCES = \
877 tests/stub_SBuf.cc \
878 base/YesNoNone.h \
879 tests/stub_debug.cc
880 tests_testYesNoNone_LDADD = \
881 base/libbase.la \
882 $(LIBCPPUNIT_LIBS) \
883 $(COMPAT_LIB) \
884 $(XTRA_LIBS)
885 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
886
887 ## Tests of anyp/*
888
889 check_PROGRAMS += tests/testURL
890 tests_testURL_SOURCES = \
891 tests/testURL.cc \
892 tests/testUriScheme.cc
893 nodist_tests_testURL_SOURCES = \
894 tests/stub_HelperChildConfig.cc \
895 tests/stub_HttpHeader.cc \
896 tests/stub_HttpRequest.cc \
897 tests/stub_StatHist.cc \
898 String.cc \
899 tests/stub_access_log.cc \
900 anyp/Uri.h \
901 anyp/UriScheme.h \
902 tests/stub_cbdata.cc \
903 tests/stub_debug.cc \
904 tests/stub_libhttp.cc \
905 tests/stub_libmem.cc
906 tests_testURL_LDADD = \
907 libsquid.la \
908 anyp/libanyp.la \
909 parser/libparser.la \
910 base/libbase.la \
911 ip/libip.la \
912 sbuf/libsbuf.la \
913 $(top_builddir)/lib/libmiscencoding.la \
914 $(LIBCPPUNIT_LIBS) \
915 $(COMPAT_LIB) \
916 $(XTRA_LIBS)
917 tests_testURL_LDFLAGS = $(LIBADD_DL)
918
919 ## Tests of dns/*
920
921 check_PROGRAMS += tests/testDns
922 tests_testDns_SOURCES = \
923 tests/testRFC1035.cc
924 nodist_tests_testDns_SOURCES=
925 tests_testDns_LDADD = \
926 dns/libdns.la \
927 $(LIBCPPUNIT_LIBS) \
928 $(COMPAT_LIB) \
929 $(XTRA_LIBS)
930 tests_testDns_LDFLAGS = $(LIBADD_DL)
931
932 ## Tests of parser/*
933
934 check_PROGRAMS += tests/testTokenizer
935 tests_testTokenizer_SOURCES = \
936 tests/testTokenizer.cc
937 nodist_tests_testTokenizer_SOURCES = \
938 tests/stub_StatHist.cc \
939 tests/stub_debug.cc \
940 tests/stub_libmem.cc \
941 parser/Tokenizer.h
942 tests_testTokenizer_LDADD = \
943 parser/libparser.la \
944 sbuf/libsbuf.la \
945 base/libbase.la \
946 $(LIBCPPUNIT_LIBS) \
947 $(COMPAT_LIB) \
948 $(XTRA_LIBS)
949 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
950
951 ## Tests of sbuf/* and String handling objects
952
953 check_PROGRAMS += tests/testSBuf
954 tests_testSBuf_SOURCES = \
955 tests/testSBuf.cc \
956 tests/SBufFindTest.cc \
957 tests/SBufFindTest.h
958 nodist_tests_testSBuf_SOURCES = \
959 tests/stub_StatHist.cc \
960 tests/stub_debug.cc \
961 tests/stub_libmem.cc
962 tests_testSBuf_LDADD = \
963 sbuf/libsbuf.la \
964 base/libbase.la \
965 $(LIBCPPUNIT_LIBS) \
966 $(COMPAT_LIB) \
967 $(XTRA_LIBS)
968 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
969
970 check_PROGRAMS += tests/testSBufList
971 tests_testSBufList_SOURCES = \
972 tests/testSBufList.cc
973 nodist_tests_testSBufList_SOURCES = \
974 tests/stub_StatHist.cc \
975 tests/stub_debug.cc \
976 tests/stub_libmem.cc
977 tests_testSBufList_LDADD = \
978 sbuf/libsbuf.la \
979 base/libbase.la \
980 $(LIBCPPUNIT_LIBS) \
981 $(COMPAT_LIB) \
982 $(XTRA_LIBS)
983 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
984
985 check_PROGRAMS += tests/testString
986 tests_testString_SOURCES = \
987 tests/testString.cc
988 nodist_tests_testString_SOURCES = \
989 tests/stub_SBuf.cc \
990 String.cc \
991 tests/stub_debug.cc \
992 tests/stub_event.cc \
993 tests/stub_libmem.cc
994 tests_testString_LDADD = \
995 base/libbase.la \
996 $(LIBCPPUNIT_LIBS) \
997 $(COMPAT_LIB) \
998 $(XTRA_LIBS)
999 tests_testString_LDFLAGS = $(LIBADD_DL)
1000
1001 ## Tests of fs/*
1002
1003 if ENABLE_FS_ROCK
1004 check_PROGRAMS += tests/testRock
1005 tests_testRock_SOURCES = \
1006 $(DELAY_POOL_SOURCE) \
1007 $(UNLINKDSOURCE) \
1008 AccessLogEntry.cc \
1009 AccessLogEntry.h \
1010 tests/stub_CacheDigest.cc \
1011 CacheDigest.h \
1012 tests/stub_CachePeer.cc \
1013 CollapsedForwarding.cc \
1014 CollapsedForwarding.h \
1015 ConfigOption.cc \
1016 ConfigParser.cc \
1017 ETag.cc \
1018 EventLoop.cc \
1019 FadingCounter.cc \
1020 FileMap.h \
1021 tests/stub_HelperChildConfig.cc \
1022 HttpBody.cc \
1023 HttpBody.h \
1024 HttpHdrCc.cc \
1025 HttpHdrContRange.cc \
1026 HttpHdrRange.cc \
1027 HttpHdrSc.cc \
1028 HttpHdrScTarget.cc \
1029 HttpHeader.cc \
1030 HttpHeader.h \
1031 HttpHeaderFieldInfo.h \
1032 HttpHeaderFieldStat.h \
1033 HttpHeaderTools.cc \
1034 HttpHeaderTools.h \
1035 HttpReply.cc \
1036 tests/stub_HttpRequest.cc \
1037 LogTags.cc \
1038 MasterXaction.cc \
1039 MasterXaction.h \
1040 MemBuf.cc \
1041 MemObject.cc \
1042 MemStore.cc \
1043 Notes.cc \
1044 Notes.h \
1045 Parsing.cc \
1046 tests/stub_Port.cc \
1047 RemovalPolicy.cc \
1048 RequestFlags.cc \
1049 RequestFlags.h \
1050 ResolvedPeers.cc \
1051 ResolvedPeers.h \
1052 tests/testRock.cc \
1053 StatCounters.cc \
1054 StatCounters.h \
1055 tests/stub_StatHist.cc \
1056 StatHist.h \
1057 StoreFileSystem.cc \
1058 StoreIOState.cc \
1059 tests/testStoreSupport.cc \
1060 tests/testStoreSupport.h \
1061 StoreSwapLogData.cc \
1062 StrList.cc \
1063 StrList.h \
1064 String.cc \
1065 Transients.cc \
1066 Transients.h \
1067 tests/stub_access_log.cc \
1068 tests/stub_cache_cf.cc \
1069 cache_cf.h \
1070 tests/stub_cache_manager.cc \
1071 cbdata.cc \
1072 tests/stub_client_db.cc \
1073 tests/stub_client_side.cc \
1074 tests/stub_client_side_request.cc \
1075 tests/stub_debug.cc \
1076 tests/stub_errorpage.cc \
1077 event.cc \
1078 fatal.cc \
1079 fatal.h \
1080 fd.cc \
1081 fd.h \
1082 fde.cc \
1083 fde.h \
1084 filemap.cc \
1085 tests/stub_fqdncache.cc \
1086 fs_io.cc \
1087 fs_io.h \
1088 tests/stub_http.cc \
1089 tests/stub_icp.cc \
1090 int.cc \
1091 int.h \
1092 tests/stub_ipc.cc \
1093 tests/stub_ipcache.cc \
1094 tests/stub_libanyp.cc \
1095 tests/stub_libauth.cc \
1096 tests/stub_liberror.cc \
1097 tests/stub_libeui.cc \
1098 tests/stub_libformat.cc \
1099 tests/stub_libicmp.cc \
1100 tests/stub_libip.cc \
1101 tests/stub_liblog.cc \
1102 tests/stub_libmgr.cc \
1103 tests/stub_libsecurity.cc \
1104 log/access_log.h \
1105 mem_node.cc \
1106 tests/stub_mime.cc \
1107 mime.h \
1108 tests/stub_neighbors.cc \
1109 tests/stub_pconn.cc \
1110 repl_modules.h \
1111 tests/stub_stat.cc \
1112 stmem.cc \
1113 store.cc \
1114 tests/stub_store_client.cc \
1115 store_io.cc \
1116 store_key_md5.cc \
1117 store_key_md5.h \
1118 tests/stub_store_rebuild.cc \
1119 store_rebuild.h \
1120 tests/stub_store_stats.cc \
1121 store_swapout.cc \
1122 tests/stub_tools.cc \
1123 tools.h \
1124 wordlist.cc \
1125 wordlist.h
1126 nodist_tests_testRock_SOURCES = \
1127 $(TESTSOURCES) \
1128 SquidMath.cc \
1129 SquidMath.h \
1130 hier_code.cc \
1131 swap_log_op.cc
1132 tests_testRock_LDADD = \
1133 http/libhttp.la \
1134 parser/libparser.la \
1135 libsquid.la \
1136 comm/libcomm.la \
1137 fs/libfs.la \
1138 $(COMMON_LIBS) \
1139 $(REPL_OBJS) \
1140 DiskIO/libdiskio.la \
1141 acl/libacls.la \
1142 acl/libapi.la \
1143 acl/libstate.la \
1144 anyp/libanyp.la \
1145 eui/libeui.la \
1146 $(SSL_LIBS) \
1147 ipc/libipc.la \
1148 base/libbase.la \
1149 mem/libmem.la \
1150 store/libstore.la \
1151 $(ADAPTATION_LIBS) \
1152 sbuf/libsbuf.la \
1153 time/libtime.la \
1154 $(top_builddir)/lib/libmisccontainers.la \
1155 $(top_builddir)/lib/libmiscencoding.la \
1156 $(top_builddir)/lib/libmiscutil.la \
1157 $(REGEXLIB) \
1158 $(SSLLIB) \
1159 $(LIBCPPUNIT_LIBS) \
1160 $(COMPAT_LIB) \
1161 $(LIBNETTLE_LIBS) \
1162 $(XTRA_LIBS)
1163 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1164 else
1165 EXTRA_DIST += \
1166 tests/testRock.cc \
1167 tests/testStoreSupport.cc \
1168 tests/testStoreSupport.h
1169 endif
1170
1171 if ENABLE_FS_UFS
1172 check_PROGRAMS += tests/testUfs
1173 tests_testUfs_SOURCES = \
1174 $(DELAY_POOL_SOURCE) \
1175 $(UNLINKDSOURCE) \
1176 $(WIN32_SOURCE) \
1177 AccessLogEntry.cc \
1178 AccessLogEntry.h \
1179 tests/stub_CacheDigest.cc \
1180 CacheDigest.h \
1181 tests/stub_CachePeer.cc \
1182 ClientInfo.h \
1183 tests/stub_CollapsedForwarding.cc \
1184 ConfigOption.cc \
1185 ConfigParser.cc \
1186 ETag.cc \
1187 EventLoop.cc \
1188 FadingCounter.cc \
1189 FileMap.h \
1190 tests/stub_HelperChildConfig.cc \
1191 HttpBody.cc \
1192 HttpBody.h \
1193 HttpHdrCc.cc \
1194 HttpHdrCc.h \
1195 HttpHdrContRange.cc \
1196 HttpHdrRange.cc \
1197 HttpHdrSc.cc \
1198 HttpHdrScTarget.cc \
1199 HttpHeader.cc \
1200 HttpHeader.h \
1201 HttpHeaderFieldInfo.h \
1202 HttpHeaderFieldStat.h \
1203 HttpHeaderTools.cc \
1204 HttpHeaderTools.h \
1205 HttpReply.cc \
1206 tests/stub_HttpRequest.cc \
1207 LogTags.cc \
1208 MasterXaction.cc \
1209 MasterXaction.h \
1210 MemBuf.cc \
1211 MemObject.cc \
1212 MemStore.cc \
1213 Notes.cc \
1214 Notes.h \
1215 Parsing.cc \
1216 tests/stub_Port.cc \
1217 RemovalPolicy.cc \
1218 RequestFlags.cc \
1219 RequestFlags.h \
1220 StatCounters.cc \
1221 StatCounters.h \
1222 StatHist.cc \
1223 StatHist.h \
1224 StoreFileSystem.cc \
1225 StoreIOState.cc \
1226 tests/testStoreSupport.cc \
1227 tests/testStoreSupport.h \
1228 StoreSwapLogData.cc \
1229 StrList.cc \
1230 StrList.h \
1231 String.cc \
1232 Transients.cc \
1233 tests/stub_UdsOp.cc \
1234 tests/testUfs.cc \
1235 tests/stub_access_log.cc \
1236 tests/stub_cache_cf.cc \
1237 cache_cf.h \
1238 tests/stub_cache_manager.cc \
1239 cbdata.cc \
1240 tests/stub_client_db.cc \
1241 client_db.h \
1242 tests/stub_client_side.cc \
1243 tests/stub_client_side_request.cc \
1244 tests/stub_debug.cc \
1245 tests/stub_errorpage.cc \
1246 event.cc \
1247 tests/stub_fatal.cc \
1248 fatal.h \
1249 fd.cc \
1250 fd.h \
1251 fde.cc \
1252 fde.h \
1253 filemap.cc \
1254 tests/stub_fqdncache.cc \
1255 fs_io.cc \
1256 fs_io.h \
1257 tests/stub_helper.cc \
1258 tests/stub_http.cc \
1259 tests/stub_icp.cc \
1260 int.cc \
1261 int.h \
1262 tests/stub_internal.cc \
1263 internal.h \
1264 tests/stub_ipc.cc \
1265 tests/stub_ipcache.cc \
1266 tests/stub_libanyp.cc \
1267 tests/stub_libauth.cc \
1268 tests/stub_liberror.cc \
1269 tests/stub_libeui.cc \
1270 tests/stub_libformat.cc \
1271 tests/stub_libicmp.cc \
1272 tests/stub_libip.cc \
1273 tests/stub_liblog.cc \
1274 tests/stub_libsecurity.cc \
1275 log/access_log.h \
1276 mem_node.cc \
1277 tests/stub_mime.cc \
1278 mime.h \
1279 tests/stub_neighbors.cc \
1280 tests/stub_pconn.cc \
1281 refresh.cc \
1282 refresh.h \
1283 repl_modules.h \
1284 tests/stub_stat.cc \
1285 stmem.cc \
1286 store.cc \
1287 tests/stub_store_client.cc \
1288 store_io.cc \
1289 store_key_md5.cc \
1290 store_key_md5.h \
1291 tests/stub_store_rebuild.cc \
1292 store_rebuild.h \
1293 tests/stub_store_stats.cc \
1294 store_swapout.cc \
1295 tests/stub_tools.cc \
1296 tools.h \
1297 wordlist.cc \
1298 wordlist.h
1299 nodist_tests_testUfs_SOURCES = \
1300 $(TESTSOURCES) \
1301 SquidMath.cc \
1302 SquidMath.h \
1303 hier_code.cc \
1304 swap_log_op.cc
1305 tests_testUfs_LDADD = \
1306 http/libhttp.la \
1307 parser/libparser.la \
1308 CommCalls.o \
1309 ident/libident.la \
1310 acl/libacls.la \
1311 acl/libstate.la \
1312 acl/libapi.la \
1313 libsquid.la \
1314 fs/libfs.la \
1315 mgr/libmgr.la \
1316 $(REPL_OBJS) \
1317 acl/libacls.la \
1318 DiskIO/libdiskio.la \
1319 acl/libapi.la \
1320 anyp/libanyp.la \
1321 $(SSL_LIBS) \
1322 ipc/libipc.la \
1323 comm/libcomm.la \
1324 dns/libdns.la \
1325 base/libbase.la \
1326 mem/libmem.la \
1327 store/libstore.la \
1328 $(ADAPTATION_LIBS) \
1329 sbuf/libsbuf.la \
1330 time/libtime.la \
1331 $(top_builddir)/lib/libmisccontainers.la \
1332 $(top_builddir)/lib/libmiscencoding.la \
1333 $(top_builddir)/lib/libmiscutil.la \
1334 $(REGEXLIB) \
1335 $(SSLLIB) \
1336 $(LIBCPPUNIT_LIBS) \
1337 $(COMPAT_LIB) \
1338 $(LIBNETTLE_LIBS) \
1339 $(XTRA_LIBS)
1340 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1341 else
1342 EXTRA_DIST += \
1343 tests/testUfs.cc
1344 endif
1345
1346 ## Tests of store/* and Store objects
1347
1348 check_PROGRAMS += tests/testStore
1349 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1350 ## first line - what we are testing.
1351 tests_testStore_SOURCES = \
1352 $(DELAY_POOL_SOURCE) \
1353 tests/stub_CacheDigest.cc \
1354 CacheDigest.h \
1355 tests/stub_CachePeer.cc \
1356 ClientInfo.h \
1357 tests/stub_CollapsedForwarding.cc \
1358 ConfigOption.cc \
1359 ConfigParser.cc \
1360 ETag.cc \
1361 EventLoop.cc \
1362 FileMap.h \
1363 tests/stub_HelperChildConfig.cc \
1364 HttpBody.cc \
1365 HttpBody.h \
1366 HttpHdrCc.cc \
1367 HttpHdrCc.h \
1368 HttpHdrContRange.cc \
1369 HttpHdrRange.cc \
1370 HttpHdrSc.cc \
1371 HttpHdrScTarget.cc \
1372 HttpHeader.cc \
1373 HttpHeader.h \
1374 HttpHeaderFieldInfo.h \
1375 HttpHeaderFieldStat.h \
1376 HttpHeaderTools.cc \
1377 HttpHeaderTools.h \
1378 tests/stub_HttpReply.cc \
1379 tests/stub_HttpRequest.cc \
1380 MasterXaction.cc \
1381 MasterXaction.h \
1382 MemBuf.cc \
1383 MemObject.cc \
1384 MemStore.cc \
1385 Notes.cc \
1386 Notes.h \
1387 tests/testPackableStream.cc \
1388 Parsing.cc \
1389 tests/stub_Port.cc \
1390 RemovalPolicy.cc \
1391 RequestFlags.cc \
1392 RequestFlags.h \
1393 StatCounters.cc \
1394 StatCounters.h \
1395 StatHist.cc \
1396 StatHist.h \
1397 tests/testStore.cc \
1398 tests/testStore.h \
1399 tests/testStoreController.cc \
1400 StoreFileSystem.cc \
1401 tests/testStoreHashIndex.cc \
1402 StoreIOState.cc \
1403 tests/testStoreSupport.cc \
1404 tests/testStoreSupport.h \
1405 StoreSwapLogData.cc \
1406 StrList.cc \
1407 StrList.h \
1408 String.cc \
1409 Transients.cc \
1410 tests/stub_UdsOp.cc \
1411 tests/stub_access_log.cc \
1412 tests/stub_cache_cf.cc \
1413 cache_cf.h \
1414 tests/stub_cache_manager.cc \
1415 cbdata.cc \
1416 tests/stub_client_side.cc \
1417 tests/stub_client_side_request.cc \
1418 tests/stub_comm.cc \
1419 tests/stub_debug.cc \
1420 tests/stub_errorpage.cc \
1421 event.cc \
1422 tests/stub_fatal.cc \
1423 fatal.h \
1424 tests/stub_fd.cc \
1425 fd.h \
1426 fde.h \
1427 filemap.cc \
1428 fs_io.cc \
1429 fs_io.h \
1430 tests/stub_helper.cc \
1431 tests/stub_http.cc \
1432 int.cc \
1433 int.h \
1434 tests/stub_libanyp.cc \
1435 tests/stub_libauth.cc \
1436 tests/stub_libcomm.cc \
1437 tests/stub_libdiskio.cc \
1438 tests/stub_liberror.cc \
1439 tests/stub_libeui.cc \
1440 tests/stub_libformat.cc \
1441 tests/stub_libsecurity.cc \
1442 tests/stub_libsslsquid.cc \
1443 log/access_log.h \
1444 mem_node.cc \
1445 tests/stub_mime.cc \
1446 mime.h \
1447 tests/stub_neighbors.cc \
1448 refresh.cc \
1449 refresh.h \
1450 repl_modules.h \
1451 tests/stub_stat.cc \
1452 stmem.cc \
1453 store.cc \
1454 tests/stub_store_client.cc \
1455 store_io.cc \
1456 store_key_md5.cc \
1457 store_key_md5.h \
1458 tests/stub_store_rebuild.cc \
1459 store_rebuild.h \
1460 tests/stub_store_stats.cc \
1461 store_swapout.cc \
1462 tests/CapturingStoreEntry.h \
1463 tests/TestSwapDir.cc \
1464 tests/TestSwapDir.h \
1465 tests/stub_tools.cc \
1466 tools.h \
1467 wordlist.cc \
1468 wordlist.h
1469 nodist_tests_testStore_SOURCES = \
1470 $(TESTSOURCES) \
1471 SquidMath.cc \
1472 SquidMath.h \
1473 tests/stub_libtime.cc \
1474 swap_log_op.cc
1475 tests_testStore_LDADD= \
1476 libsquid.la \
1477 http/libhttp.la \
1478 parser/libparser.la \
1479 ident/libident.la \
1480 acl/libacls.la \
1481 acl/libstate.la \
1482 acl/libapi.la \
1483 dns/libdns.la \
1484 base/libbase.la \
1485 ip/libip.la \
1486 fs/libfs.la \
1487 mgr/libmgr.la \
1488 anyp/libanyp.la \
1489 mem/libmem.la \
1490 store/libstore.la \
1491 sbuf/libsbuf.la \
1492 DiskIO/libdiskio.la \
1493 ipc/libipc.la \
1494 $(top_builddir)/lib/libmisccontainers.la \
1495 $(top_builddir)/lib/libmiscencoding.la \
1496 $(top_builddir)/lib/libmiscutil.la \
1497 $(REGEXLIB) \
1498 $(SSLLIB) \
1499 CommCalls.o \
1500 $(LIBCPPUNIT_LIBS) \
1501 $(COMPAT_LIB) \
1502 $(LIBNETTLE_LIBS) \
1503 $(XTRA_LIBS)
1504 tests_testStore_LDFLAGS = $(LIBADD_DL)
1505
1506 ## Tests of DiskIO/*
1507
1508 check_PROGRAMS += tests/testDiskIO
1509 tests_testDiskIO_SOURCES = \
1510 $(DELAY_POOL_SOURCE) \
1511 $(UNLINKDSOURCE) \
1512 $(WIN32_SOURCE) \
1513 AccessLogEntry.cc \
1514 AccessLogEntry.h \
1515 tests/stub_CacheDigest.cc \
1516 CacheDigest.h \
1517 tests/stub_CachePeer.cc \
1518 ClientInfo.h \
1519 tests/stub_CollapsedForwarding.cc \
1520 ConfigOption.cc \
1521 ConfigParser.cc \
1522 tests/testDiskIO.cc \
1523 tests/stub_ETag.cc \
1524 EventLoop.cc \
1525 FadingCounter.cc \
1526 FileMap.h \
1527 tests/stub_HelperChildConfig.cc \
1528 HttpBody.cc \
1529 HttpBody.h \
1530 HttpHdrCc.cc \
1531 HttpHdrCc.h \
1532 HttpHdrContRange.cc \
1533 HttpHdrRange.cc \
1534 HttpHdrSc.cc \
1535 HttpHdrScTarget.cc \
1536 HttpHeader.cc \
1537 HttpHeader.h \
1538 HttpHeaderFieldInfo.h \
1539 HttpHeaderFieldStat.h \
1540 HttpHeaderTools.cc \
1541 HttpHeaderTools.h \
1542 HttpReply.cc \
1543 tests/stub_HttpRequest.cc \
1544 LogTags.cc \
1545 MasterXaction.cc \
1546 MasterXaction.h \
1547 MemBuf.cc \
1548 MemObject.cc \
1549 tests/stub_MemStore.cc \
1550 Notes.cc \
1551 Notes.h \
1552 Parsing.cc \
1553 tests/stub_Port.cc \
1554 RemovalPolicy.cc \
1555 RequestFlags.cc \
1556 RequestFlags.h \
1557 ResolvedPeers.cc \
1558 ResolvedPeers.h \
1559 StatCounters.cc \
1560 StatCounters.h \
1561 tests/stub_StatHist.cc \
1562 StatHist.h \
1563 StoreFileSystem.cc \
1564 StoreIOState.cc \
1565 tests/testStoreSupport.cc \
1566 tests/testStoreSupport.h \
1567 StoreSwapLogData.cc \
1568 StrList.cc \
1569 StrList.h \
1570 String.cc \
1571 Transients.cc \
1572 tests/stub_UdsOp.cc \
1573 tests/stub_access_log.cc \
1574 tests/stub_cache_cf.cc \
1575 cache_cf.h \
1576 tests/stub_cache_manager.cc \
1577 cbdata.cc \
1578 tests/stub_client_db.cc \
1579 client_db.h \
1580 tests/stub_client_side.cc \
1581 tests/stub_client_side_request.cc \
1582 client_side_request.h \
1583 tests/stub_debug.cc \
1584 tests/stub_errorpage.cc \
1585 event.cc \
1586 tests/stub_fatal.cc \
1587 fatal.h \
1588 fd.cc \
1589 fd.h \
1590 fde.cc \
1591 fde.h \
1592 filemap.cc \
1593 tests/stub_fqdncache.cc \
1594 fs_io.cc \
1595 fs_io.h \
1596 tests/stub_helper.cc \
1597 tests/stub_http.cc \
1598 tests/stub_icp.cc \
1599 int.cc \
1600 int.h \
1601 tests/stub_internal.cc \
1602 internal.h \
1603 tests/stub_ipc.cc \
1604 tests/stub_ipcache.cc \
1605 tests/stub_libanyp.cc \
1606 tests/stub_libauth.cc \
1607 tests/stub_libauth_acls.cc \
1608 tests/stub_liberror.cc \
1609 tests/stub_libeui.cc \
1610 tests/stub_libformat.cc \
1611 tests/stub_libicmp.cc \
1612 tests/stub_libip.cc \
1613 tests/stub_liblog.cc \
1614 tests/stub_libsecurity.cc \
1615 tests/stub_libstore.cc \
1616 log/access_log.h \
1617 mem_node.cc \
1618 tests/stub_mime.cc \
1619 mime.h \
1620 tests/stub_neighbors.cc \
1621 tests/stub_pconn.cc \
1622 refresh.cc \
1623 refresh.h \
1624 repl_modules.h \
1625 tests/stub_stat.cc \
1626 stmem.cc \
1627 store.cc \
1628 tests/stub_store_client.cc \
1629 store_io.cc \
1630 store_key_md5.cc \
1631 store_key_md5.h \
1632 tests/stub_store_rebuild.cc \
1633 store_rebuild.h \
1634 tests/stub_store_stats.cc \
1635 store_swapout.cc \
1636 tests/stub_tools.cc \
1637 tools.h \
1638 wordlist.cc \
1639 wordlist.h
1640 nodist_tests_testDiskIO_SOURCES = \
1641 $(TESTSOURCES) \
1642 SquidMath.cc \
1643 SquidMath.h \
1644 hier_code.cc \
1645 tests/stub_libtime.cc \
1646 swap_log_op.cc
1647 tests_testDiskIO_LDADD = \
1648 libsquid.la \
1649 http/libhttp.la \
1650 parser/libparser.la \
1651 SquidConfig.o \
1652 CommCalls.o \
1653 ident/libident.la \
1654 acl/libacls.la \
1655 acl/libstate.la \
1656 comm/libcomm.la \
1657 fs/libfs.la \
1658 ipc/libipc.la \
1659 $(REPL_OBJS) \
1660 $(ADAPTATION_LIBS) \
1661 DiskIO/libdiskio.la \
1662 acl/libapi.la \
1663 anyp/libanyp.la \
1664 mgr/libmgr.la \
1665 $(SSL_LIBS) \
1666 ipc/libipc.la \
1667 dns/libdns.la \
1668 base/libbase.la \
1669 mem/libmem.la \
1670 sbuf/libsbuf.la \
1671 $(top_builddir)/lib/libmisccontainers.la \
1672 $(top_builddir)/lib/libmiscencoding.la \
1673 $(top_builddir)/lib/libmiscutil.la \
1674 $(REGEXLIB) \
1675 $(SSLLIB) \
1676 $(LIBCPPUNIT_LIBS) \
1677 $(COMPAT_LIB) \
1678 $(LIBNETTLE_LIBS) \
1679 $(XTRA_LIBS)
1680 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1681
1682 ## Tests of auth/*
1683
1684 if ENABLE_AUTH
1685 check_PROGRAMS += tests/testACLMaxUserIP
1686 tests_testACLMaxUserIP_SOURCES = \
1687 tests/testACLMaxUserIP.cc
1688 nodist_tests_testACLMaxUserIP_SOURCES = \
1689 tests/stub_CachePeer.cc \
1690 ConfigParser.cc \
1691 tests/stub_HelperChildConfig.cc \
1692 tests/stub_HttpHeader.cc \
1693 tests/stub_HttpRequest.cc \
1694 tests/stub_MemBuf.cc \
1695 Parsing.cc \
1696 tests/stub_StatHist.cc \
1697 String.cc \
1698 tests/stub_access_log.cc \
1699 tests/stub_cache_cf.cc \
1700 tests/stub_cache_manager.cc \
1701 tests/stub_cbdata.cc \
1702 tests/stub_client_side.cc \
1703 tests/stub_debug.cc \
1704 dlink.cc \
1705 tests/stub_errorpage.cc \
1706 tests/stub_fatal.cc \
1707 globals.cc \
1708 tests/stub_libauth.cc \
1709 tests/stub_libcomm.cc \
1710 tests/stub_libhttp.cc \
1711 tests/stub_libmem.cc \
1712 tests/stub_libsecurity.cc \
1713 tests/stub_neighbors.cc
1714 tests_testACLMaxUserIP_LDADD = \
1715 $(AUTH_ACL_LIBS) \
1716 acl/libapi.la \
1717 acl/libstate.la \
1718 acl/libacls.la \
1719 SquidConfig.o \
1720 ip/libip.la \
1721 parser/libparser.la \
1722 sbuf/libsbuf.la \
1723 base/libbase.la \
1724 $(SSLLIB) \
1725 $(LIBCPPUNIT_LIBS) \
1726 $(COMPAT_LIB) \
1727 $(XTRA_LIBS)
1728 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1729 else
1730 EXTRA_DIST += \
1731 tests/testACLMaxUserIP.cc
1732 endif
1733
1734 ## Tests of http/* and HTTP Protocol objects
1735
1736 check_PROGRAMS += tests/test_http_range
1737 tests_test_http_range_SOURCES = \
1738 $(DELAY_POOL_SOURCE) \
1739 $(DNSSOURCE) \
1740 $(HTCPSOURCE) \
1741 $(IPC_SOURCE) \
1742 $(SNMP_SOURCE) \
1743 $(UNLINKDSOURCE) \
1744 $(WIN32_SOURCE) \
1745 AccessLogEntry.cc \
1746 AuthReg.h \
1747 BodyPipe.cc \
1748 tests/stub_CacheDigest.cc \
1749 CacheDigest.h \
1750 CachePeer.cc \
1751 CachePeer.h \
1752 CachePeers.cc \
1753 CachePeers.h \
1754 ClientInfo.h \
1755 tests/stub_CollapsedForwarding.cc \
1756 ConfigOption.cc \
1757 ConfigParser.cc \
1758 CpuAffinityMap.cc \
1759 CpuAffinityMap.h \
1760 CpuAffinitySet.cc \
1761 CpuAffinitySet.h \
1762 tests/stub_ETag.cc \
1763 tests/stub_EventLoop.cc \
1764 FadingCounter.cc \
1765 FileMap.h \
1766 FwdState.cc \
1767 FwdState.h \
1768 HappyConnOpener.cc \
1769 HappyConnOpener.h \
1770 HttpBody.cc \
1771 HttpBody.h \
1772 tests/stub_HttpControlMsg.cc \
1773 HttpHdrCc.cc \
1774 HttpHdrCc.h \
1775 HttpHdrContRange.cc \
1776 HttpHdrRange.cc \
1777 HttpHdrSc.cc \
1778 HttpHdrScTarget.cc \
1779 HttpHeader.cc \
1780 HttpHeader.h \
1781 HttpHeaderFieldInfo.h \
1782 HttpHeaderFieldStat.h \
1783 HttpHeaderTools.cc \
1784 HttpHeaderTools.h \
1785 HttpReply.cc \
1786 HttpRequest.cc \
1787 tests/stub_HttpUpgradeProtocolAccess.cc \
1788 IoStats.h \
1789 tests/stub_IpcIoFile.cc \
1790 LogTags.cc \
1791 MasterXaction.cc \
1792 MasterXaction.h \
1793 MemBuf.cc \
1794 MemObject.cc \
1795 tests/stub_MemStore.cc \
1796 Notes.cc \
1797 Notes.h \
1798 Parsing.cc \
1799 PeerPoolMgr.cc \
1800 PeerPoolMgr.h \
1801 Pipeline.cc \
1802 Pipeline.h \
1803 RefreshPattern.h \
1804 RemovalPolicy.cc \
1805 RequestFlags.cc \
1806 RequestFlags.h \
1807 ResolvedPeers.cc \
1808 ResolvedPeers.h \
1809 SquidMath.cc \
1810 SquidMath.h \
1811 StatCounters.cc \
1812 StatCounters.h \
1813 StatHist.cc \
1814 StatHist.h \
1815 StoreFileSystem.cc \
1816 StoreIOState.cc \
1817 StoreSwapLogData.cc \
1818 StrList.cc \
1819 StrList.h \
1820 String.cc \
1821 Transients.cc \
1822 tests/test_http_range.cc \
1823 tests/stub_cache_cf.cc \
1824 cache_cf.h \
1825 cache_manager.cc \
1826 tests/stub_carp.cc \
1827 carp.h \
1828 cbdata.cc \
1829 clientStream.cc \
1830 tests/stub_client_db.cc \
1831 client_side.cc \
1832 client_side.h \
1833 client_side_reply.cc \
1834 client_side_request.cc \
1835 dlink.cc \
1836 dlink.h \
1837 errorpage.cc \
1838 event.cc \
1839 tests/stub_external_acl.cc \
1840 tests/stub_fatal.cc \
1841 fatal.h \
1842 fd.cc \
1843 fd.h \
1844 fde.cc \
1845 filemap.cc \
1846 fqdncache.cc \
1847 fqdncache.h \
1848 fs_io.cc \
1849 fs_io.h \
1850 helper.cc \
1851 hier_code.h \
1852 http.cc \
1853 icp_v2.cc \
1854 icp_v3.cc \
1855 int.cc \
1856 int.h \
1857 internal.cc \
1858 internal.h \
1859 tests/stub_ipc_Forwarder.cc \
1860 ipcache.cc \
1861 tests/stub_libauth.cc \
1862 tests/stub_libdiskio.cc \
1863 tests/stub_liberror.cc \
1864 tests/stub_libeui.cc \
1865 tests/stub_libmem.cc \
1866 tests/stub_libsecurity.cc \
1867 tests/stub_libstore.cc \
1868 tests/stub_main_cc.cc \
1869 mem_node.cc \
1870 mime.cc \
1871 mime.h \
1872 mime_header.cc \
1873 mime_header.h \
1874 multicast.cc \
1875 multicast.h \
1876 neighbors.cc \
1877 neighbors.h \
1878 pconn.cc \
1879 peer_digest.cc \
1880 peer_proxy_negotiate_auth.cc \
1881 peer_proxy_negotiate_auth.h \
1882 peer_select.cc \
1883 peer_sourcehash.cc \
1884 peer_sourcehash.h \
1885 peer_userhash.cc \
1886 peer_userhash.h \
1887 tests/stub_redirect.cc \
1888 redirect.h \
1889 refresh.cc \
1890 refresh.h \
1891 repl_modules.h \
1892 stat.cc \
1893 stat.h \
1894 stmem.cc \
1895 store.cc \
1896 store_client.cc \
1897 tests/stub_store_digest.cc \
1898 store_digest.h \
1899 store_io.cc \
1900 store_key_md5.cc \
1901 store_key_md5.h \
1902 store_log.cc \
1903 store_log.h \
1904 store_rebuild.cc \
1905 store_rebuild.h \
1906 tests/stub_store_stats.cc \
1907 store_swapin.cc \
1908 store_swapin.h \
1909 store_swapout.cc \
1910 tools.cc \
1911 tools.h \
1912 tests/stub_tunnel.cc \
1913 tunnel.h \
1914 urn.cc \
1915 urn.h \
1916 tests/stub_wccp2.cc \
1917 wccp2.h \
1918 tests/stub_whois.cc \
1919 whois.h \
1920 wordlist.cc \
1921 wordlist.h
1922 nodist_tests_test_http_range_SOURCES = \
1923 $(BUILT_SOURCES) \
1924 tests/stub_libtime.cc
1925 tests_test_http_range_LDADD = \
1926 libsquid.la \
1927 clients/libclients.la \
1928 servers/libservers.la \
1929 ftp/libftp.la \
1930 helper/libhelper.la \
1931 http/libhttp.la \
1932 parser/libparser.la \
1933 ident/libident.la \
1934 acl/libacls.la \
1935 acl/libstate.la \
1936 acl/libapi.la \
1937 proxyp/libproxyp.la \
1938 parser/libparser.la \
1939 ip/libip.la \
1940 fs/libfs.la \
1941 anyp/libanyp.la \
1942 icmp/libicmp.la \
1943 comm/libcomm.la \
1944 log/liblog.la \
1945 format/libformat.la \
1946 $(REPL_OBJS) \
1947 $(ADAPTATION_LIBS) \
1948 $(ESI_LIBS) \
1949 $(SSL_LIBS) \
1950 ipc/libipc.la \
1951 dns/libdns.la \
1952 base/libbase.la \
1953 mgr/libmgr.la \
1954 sbuf/libsbuf.la \
1955 debug/libdebug.la \
1956 store/libstore.la \
1957 $(SNMP_LIBS) \
1958 $(top_builddir)/lib/libmisccontainers.la \
1959 $(top_builddir)/lib/libmiscencoding.la \
1960 $(top_builddir)/lib/libmiscutil.la \
1961 $(LIBCAP_LIBS) \
1962 $(REGEXLIB) \
1963 $(SSLLIB) \
1964 $(KRB5LIBS) \
1965 $(LIBCPPUNIT_LIBS) \
1966 $(LIBSYSTEMD_LIBS) \
1967 $(COMPAT_LIB) \
1968 $(LIBNETTLE_LIBS) \
1969 $(LIBPSAPI_LIBS) \
1970 $(XTRA_LIBS)
1971 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
1972
1973 check_PROGRAMS += tests/testHttp1Parser
1974 tests_testHttp1Parser_SOURCES = \
1975 tests/stub_HelperChildConfig.cc \
1976 tests/testHttp1Parser.cc \
1977 MemBuf.cc \
1978 MemBuf.h \
1979 tests/stub_MemObject.cc \
1980 String.cc \
1981 tests/stub_cache_cf.cc \
1982 cache_cf.h \
1983 tests/stub_cache_manager.cc \
1984 tests/stub_cbdata.cc \
1985 tests/stub_comm.cc \
1986 tests/stub_debug.cc \
1987 tests/stub_event.cc \
1988 tests/stub_libanyp.cc \
1989 tests/stub_libmem.cc \
1990 tests/stub_libsecurity.cc \
1991 mime_header.cc \
1992 mime_header.h \
1993 tests/stub_stmem.cc \
1994 tests/stub_store.cc \
1995 tests/stub_store_stats.cc \
1996 tests/stub_tools.cc \
1997 tools.h \
1998 wordlist.cc \
1999 wordlist.h
2000 nodist_tests_testHttp1Parser_SOURCES = \
2001 $(TESTSOURCES) \
2002 tests/stub_libtime.cc
2003 tests_testHttp1Parser_LDADD= \
2004 http/libhttp.la \
2005 parser/libparser.la \
2006 anyp/libanyp.la \
2007 SquidConfig.o \
2008 base/libbase.la \
2009 ip/libip.la \
2010 sbuf/libsbuf.la \
2011 $(top_builddir)/lib/libmiscutil.la \
2012 $(SSLLIB) \
2013 $(LIBCPPUNIT_LIBS) \
2014 $(COMPAT_LIB) \
2015 $(XTRA_LIBS)
2016 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2017
2018 check_PROGRAMS += tests/testHttpReply
2019 tests_testHttpReply_SOURCES = \
2020 tests/stub_CachePeer.cc \
2021 ConfigParser.cc \
2022 tests/stub_ETag.cc \
2023 tests/stub_HelperChildConfig.cc \
2024 HttpBody.cc \
2025 HttpBody.h \
2026 HttpControlMsg.cc \
2027 HttpControlMsg.h \
2028 HttpHdrCc.cc \
2029 HttpHdrCc.h \
2030 HttpHdrContRange.cc \
2031 HttpHdrContRange.h \
2032 HttpHdrRange.cc \
2033 HttpHdrSc.cc \
2034 HttpHdrSc.h \
2035 HttpHdrScTarget.cc \
2036 HttpHdrScTarget.h \
2037 HttpHeader.cc \
2038 HttpHeader.h \
2039 HttpHeaderFieldInfo.h \
2040 HttpHeaderFieldStat.h \
2041 HttpHeaderMask.h \
2042 HttpHeaderTools.cc \
2043 HttpHeaderTools.h \
2044 HttpReply.cc \
2045 tests/testHttpReply.cc \
2046 HttpReply.h \
2047 tests/stub_HttpRequest.cc \
2048 MasterXaction.cc \
2049 MasterXaction.h \
2050 MemBuf.cc \
2051 MemBuf.h \
2052 Notes.cc \
2053 Notes.h \
2054 SquidString.h \
2055 StatCounters.cc \
2056 StatCounters.h \
2057 tests/stub_StatHist.cc \
2058 StatHist.h \
2059 StrList.cc \
2060 StrList.h \
2061 String.cc \
2062 tests/stub_access_log.cc \
2063 tests/stub_cache_cf.cc \
2064 cache_cf.h \
2065 tests/stub_cache_manager.cc \
2066 cbdata.cc \
2067 cbdata.h \
2068 tests/stub_client_side.cc \
2069 tests/stub_comm.cc \
2070 tests/stub_debug.cc \
2071 tests/stub_errorpage.cc \
2072 tests/stub_event.cc \
2073 tests/stub_fatal.cc \
2074 fatal.h \
2075 tests/stub_fd.cc \
2076 tests/stub_libanyp.cc \
2077 tests/stub_libauth.cc \
2078 tests/stub_libcomm.cc \
2079 tests/stub_liberror.cc \
2080 tests/stub_libformat.cc \
2081 tests/stub_libmem.cc \
2082 tests/stub_libmgr.cc \
2083 tests/stub_libsecurity.cc \
2084 tests/stub_libsslsquid.cc \
2085 log/access_log.h \
2086 mime_header.cc \
2087 mime_header.h \
2088 tests/stub_neighbors.cc \
2089 repl_modules.h \
2090 tests/stub_store.cc \
2091 tests/stub_store_stats.cc \
2092 tests/stub_tools.cc \
2093 tools.h \
2094 wordlist.cc \
2095 wordlist.h
2096 nodist_tests_testHttpReply_SOURCES = \
2097 $(TESTSOURCES) \
2098 hier_code.cc \
2099 tests/stub_libtime.cc
2100 tests_testHttpReply_LDADD=\
2101 CommCalls.o \
2102 http/libhttp.la \
2103 parser/libparser.la \
2104 acl/libacls.la \
2105 acl/libapi.la \
2106 acl/libstate.la \
2107 anyp/libanyp.la \
2108 ip/libip.la \
2109 base/libbase.la \
2110 ipc/libipc.la \
2111 sbuf/libsbuf.la \
2112 $(top_builddir)/lib/libmisccontainers.la \
2113 $(top_builddir)/lib/libmiscencoding.la \
2114 $(top_builddir)/lib/libmiscutil.la \
2115 $(SSLLIB) \
2116 $(LIBCPPUNIT_LIBS) \
2117 $(COMPAT_LIB) \
2118 $(LIBNETTLE_LIBS) \
2119 $(XTRA_LIBS)
2120 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
2121
2122 check_PROGRAMS += tests/testHttpRequest
2123 tests_testHttpRequest_SOURCES = \
2124 $(DELAY_POOL_SOURCE) \
2125 $(DNSSOURCE) \
2126 $(HTCPSOURCE) \
2127 $(IPC_SOURCE) \
2128 $(SNMP_SOURCE) \
2129 $(WIN32_SOURCE) \
2130 AccessLogEntry.cc \
2131 AuthReg.h \
2132 BodyPipe.cc \
2133 tests/stub_CacheDigest.cc \
2134 CacheDigest.h \
2135 CachePeer.cc \
2136 CachePeer.h \
2137 CachePeers.cc \
2138 CachePeers.h \
2139 ClientInfo.h \
2140 tests/stub_CollapsedForwarding.cc \
2141 ConfigOption.cc \
2142 ConfigParser.cc \
2143 CpuAffinityMap.cc \
2144 CpuAffinityMap.h \
2145 CpuAffinitySet.cc \
2146 CpuAffinitySet.h \
2147 tests/stub_ETag.cc \
2148 tests/stub_EventLoop.cc \
2149 ExternalACLEntry.cc \
2150 FadingCounter.cc \
2151 FwdState.cc \
2152 FwdState.h \
2153 HappyConnOpener.cc \
2154 HappyConnOpener.h \
2155 HttpBody.cc \
2156 HttpBody.h \
2157 tests/stub_HttpControlMsg.cc \
2158 HttpHdrCc.cc \
2159 HttpHdrCc.h \
2160 HttpHdrContRange.cc \
2161 HttpHdrRange.cc \
2162 HttpHdrSc.cc \
2163 HttpHdrScTarget.cc \
2164 HttpHeader.cc \
2165 HttpHeader.h \
2166 HttpHeaderFieldInfo.h \
2167 HttpHeaderFieldStat.h \
2168 HttpHeaderTools.cc \
2169 HttpHeaderTools.h \
2170 HttpReply.cc \
2171 HttpRequest.cc \
2172 tests/testHttpRequest.cc \
2173 tests/testHttpRequestMethod.cc \
2174 tests/stub_HttpUpgradeProtocolAccess.cc \
2175 IoStats.h \
2176 tests/stub_IpcIoFile.cc \
2177 LogTags.cc \
2178 MasterXaction.cc \
2179 MasterXaction.h \
2180 MemBuf.cc \
2181 MemObject.cc \
2182 MemStore.cc \
2183 Notes.cc \
2184 Notes.h \
2185 Parsing.cc \
2186 PeerPoolMgr.cc \
2187 PeerPoolMgr.h \
2188 Pipeline.cc \
2189 Pipeline.h \
2190 RefreshPattern.h \
2191 RemovalPolicy.cc \
2192 RequestFlags.cc \
2193 RequestFlags.h \
2194 ResolvedPeers.cc \
2195 ResolvedPeers.h \
2196 SquidMath.cc \
2197 SquidMath.h \
2198 StatCounters.cc \
2199 StatCounters.h \
2200 StatHist.cc \
2201 StatHist.h \
2202 StoreFileSystem.cc \
2203 StoreIOState.cc \
2204 StoreSwapLogData.cc \
2205 StrList.cc \
2206 StrList.h \
2207 String.cc \
2208 Transients.cc \
2209 tests/stub_cache_cf.cc \
2210 cache_cf.h \
2211 cache_manager.cc \
2212 tests/stub_carp.cc \
2213 carp.h \
2214 cbdata.cc \
2215 clientStream.cc \
2216 tests/stub_client_db.cc \
2217 client_side.cc \
2218 client_side.h \
2219 client_side_reply.cc \
2220 client_side_request.cc \
2221 dlink.cc \
2222 dlink.h \
2223 errorpage.cc \
2224 event.cc \
2225 external_acl.cc \
2226 tests/stub_fatal.cc \
2227 fatal.h \
2228 fd.cc \
2229 fd.h \
2230 fde.cc \
2231 fqdncache.cc \
2232 fqdncache.h \
2233 fs_io.cc \
2234 fs_io.h \
2235 helper.cc \
2236 hier_code.h \
2237 http.cc \
2238 icp_v2.cc \
2239 icp_v3.cc \
2240 int.cc \
2241 int.h \
2242 internal.cc \
2243 internal.h \
2244 tests/stub_ipc_Forwarder.cc \
2245 ipcache.cc \
2246 tests/stub_libauth.cc \
2247 tests/stub_libauth_acls.cc \
2248 tests/stub_libdiskio.cc \
2249 tests/stub_liberror.cc \
2250 tests/stub_libeui.cc \
2251 tests/stub_libmem.cc \
2252 tests/stub_libsecurity.cc \
2253 tests/stub_libstore.cc \
2254 tests/stub_main_cc.cc \
2255 mem_node.cc \
2256 mime.cc \
2257 mime.h \
2258 mime_header.cc \
2259 mime_header.h \
2260 multicast.cc \
2261 multicast.h \
2262 neighbors.cc \
2263 neighbors.h \
2264 pconn.cc \
2265 peer_digest.cc \
2266 peer_proxy_negotiate_auth.cc \
2267 peer_proxy_negotiate_auth.h \
2268 peer_select.cc \
2269 peer_sourcehash.cc \
2270 peer_sourcehash.h \
2271 peer_userhash.cc \
2272 peer_userhash.h \
2273 tests/stub_redirect.cc \
2274 redirect.h \
2275 refresh.cc \
2276 refresh.h \
2277 repl_modules.h \
2278 stat.cc \
2279 stat.h \
2280 stmem.cc \
2281 store.cc \
2282 store_client.cc \
2283 tests/stub_store_digest.cc \
2284 store_digest.h \
2285 store_io.cc \
2286 store_key_md5.cc \
2287 store_key_md5.h \
2288 store_log.cc \
2289 store_log.h \
2290 store_rebuild.cc \
2291 store_rebuild.h \
2292 tests/stub_store_stats.cc \
2293 store_swapin.cc \
2294 store_swapin.h \
2295 store_swapout.cc \
2296 tools.cc \
2297 tools.h \
2298 tests/stub_tunnel.cc \
2299 tunnel.h \
2300 urn.cc \
2301 urn.h \
2302 tests/stub_wccp2.cc \
2303 wccp2.h \
2304 tests/stub_whois.cc \
2305 whois.h \
2306 wordlist.cc \
2307 wordlist.h
2308 nodist_tests_testHttpRequest_SOURCES = \
2309 $(BUILT_SOURCES) \
2310 tests/stub_libtime.cc
2311 tests_testHttpRequest_LDADD = \
2312 libsquid.la \
2313 clients/libclients.la \
2314 servers/libservers.la \
2315 helper/libhelper.la \
2316 ftp/libftp.la \
2317 http/libhttp.la \
2318 ident/libident.la \
2319 acl/libacls.la \
2320 acl/libstate.la \
2321 acl/libapi.la \
2322 parser/libparser.la \
2323 ip/libip.la \
2324 fs/libfs.la \
2325 $(SSL_LIBS) \
2326 ipc/libipc.la \
2327 proxyp/libproxyp.la \
2328 parser/libparser.la \
2329 dns/libdns.la \
2330 base/libbase.la \
2331 mgr/libmgr.la \
2332 anyp/libanyp.la \
2333 $(SNMP_LIBS) \
2334 icmp/libicmp.la \
2335 comm/libcomm.la \
2336 log/liblog.la \
2337 format/libformat.la \
2338 store/libstore.la \
2339 sbuf/libsbuf.la \
2340 debug/libdebug.la \
2341 $(REPL_OBJS) \
2342 $(ADAPTATION_LIBS) \
2343 $(ESI_LIBS) \
2344 $(top_builddir)/lib/libmisccontainers.la \
2345 $(top_builddir)/lib/libmiscencoding.la \
2346 $(top_builddir)/lib/libmiscutil.la \
2347 $(LIBCAP_LIBS) \
2348 $(REGEXLIB) \
2349 $(SSLLIB) \
2350 $(KRB5LIBS) \
2351 $(LIBCPPUNIT_LIBS) \
2352 $(LIBSYSTEMD_LIBS) \
2353 $(COMPAT_LIB) \
2354 $(LIBNETTLE_LIBS) \
2355 $(LIBPSAPI_LIBS) \
2356 $(XTRA_LIBS)
2357 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2358
2359 ## Tests of ip/*
2360
2361 check_PROGRAMS += tests/testIpAddress
2362 tests_testIpAddress_SOURCES = \
2363 tests/testIpAddress.cc
2364 nodist_tests_testIpAddress_SOURCES = \
2365 tests/stub_SBuf.cc \
2366 tests/stub_debug.cc \
2367 tests/stub_libmem.cc \
2368 tests/stub_tools.cc
2369 tests_testIpAddress_LDADD = \
2370 ip/libip.la \
2371 base/libbase.la \
2372 $(LIBCPPUNIT_LIBS) \
2373 $(COMPAT_LIB) \
2374 $(XTRA_LIBS)
2375 tests_testIpAddress_LDFLAGS = $(LIBADD_DL)
2376
2377 ## Tests of icmp/*
2378
2379 check_PROGRAMS += tests/testIcmp
2380 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2381 tests_testIcmp_SOURCES = \
2382 tests/testIcmp.cc
2383 nodist_tests_testIcmp_SOURCES = \
2384 tests/stub_SBuf.cc \
2385 tests/stub_debug.cc \
2386 icmp/Icmp.h \
2387 tests/stub_libmem.cc \
2388 tests/stub_libtime.cc
2389 tests_testIcmp_LDADD=\
2390 icmp/libicmpcore.la \
2391 ip/libip.la \
2392 base/libbase.la \
2393 $(LIBCPPUNIT_LIBS) \
2394 $(COMPAT_LIB) \
2395 $(XTRA_LIBS)
2396 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2397
2398 check_PROGRAMS += tests/testNetDb
2399 tests_testNetDb_SOURCES = \
2400 tests/testNetDb.cc
2401 nodist_tests_testNetDb_SOURCES = \
2402 tests/stub_SBuf.cc \
2403 tests/stub_debug.cc \
2404 tests/stub_libmem.cc \
2405 tests/stub_libtime.cc
2406 tests_testNetDb_LDADD = \
2407 icmp/libicmp.la \
2408 ip/libip.la \
2409 base/libbase.la \
2410 $(top_builddir)/lib/libmisccontainers.la \
2411 $(LIBCPPUNIT_LIBS) \
2412 $(COMPAT_LIB) \
2413 $(XTRA_LIBS)
2414 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2415
2416 ## Tests of mgr/* and CacheManager objects
2417
2418 check_PROGRAMS += tests/testCacheManager
2419 tests_testCacheManager_SOURCES = \
2420 $(DELAY_POOL_SOURCE) \
2421 $(DNSSOURCE) \
2422 $(HTCPSOURCE) \
2423 $(IPC_SOURCE) \
2424 $(SNMP_SOURCE) \
2425 $(UNLINKDSOURCE) \
2426 $(WIN32_SOURCE) \
2427 AccessLogEntry.cc \
2428 AuthReg.h \
2429 BodyPipe.cc \
2430 tests/stub_CacheDigest.cc \
2431 CacheDigest.h \
2432 tests/testCacheManager.cc \
2433 CachePeer.cc \
2434 CachePeer.h \
2435 CachePeers.cc \
2436 CachePeers.h \
2437 ClientInfo.h \
2438 tests/stub_CollapsedForwarding.cc \
2439 ConfigOption.cc \
2440 ConfigParser.cc \
2441 CpuAffinityMap.cc \
2442 CpuAffinityMap.h \
2443 CpuAffinitySet.cc \
2444 CpuAffinitySet.h \
2445 tests/stub_ETag.cc \
2446 tests/stub_EventLoop.cc \
2447 ExternalACLEntry.cc \
2448 FadingCounter.cc \
2449 FileMap.h \
2450 FwdState.cc \
2451 FwdState.h \
2452 HappyConnOpener.cc \
2453 HappyConnOpener.h \
2454 HttpBody.cc \
2455 HttpBody.h \
2456 tests/stub_HttpControlMsg.cc \
2457 HttpHdrCc.cc \
2458 HttpHdrCc.h \
2459 HttpHdrContRange.cc \
2460 HttpHdrRange.cc \
2461 HttpHdrSc.cc \
2462 HttpHdrScTarget.cc \
2463 HttpHeader.cc \
2464 HttpHeader.h \
2465 HttpHeaderFieldInfo.h \
2466 HttpHeaderFieldStat.h \
2467 HttpHeaderTools.cc \
2468 HttpHeaderTools.h \
2469 HttpReply.cc \
2470 HttpRequest.cc \
2471 tests/stub_HttpUpgradeProtocolAccess.cc \
2472 IoStats.h \
2473 tests/stub_IpcIoFile.cc \
2474 LogTags.cc \
2475 MasterXaction.cc \
2476 MasterXaction.h \
2477 MemBuf.cc \
2478 MemObject.cc \
2479 MemStore.cc \
2480 Notes.cc \
2481 Notes.h \
2482 Parsing.cc \
2483 PeerPoolMgr.cc \
2484 PeerPoolMgr.h \
2485 Pipeline.cc \
2486 Pipeline.h \
2487 RefreshPattern.h \
2488 RemovalPolicy.cc \
2489 RequestFlags.cc \
2490 RequestFlags.h \
2491 ResolvedPeers.cc \
2492 ResolvedPeers.h \
2493 SquidMath.cc \
2494 SquidMath.h \
2495 StatCounters.cc \
2496 StatCounters.h \
2497 tests/stub_StatHist.cc \
2498 StatHist.h \
2499 StoreFileSystem.cc \
2500 StoreIOState.cc \
2501 StoreSwapLogData.cc \
2502 StrList.cc \
2503 StrList.h \
2504 String.cc \
2505 Transients.cc \
2506 tests/stub_cache_cf.cc \
2507 cache_cf.h \
2508 cache_manager.cc \
2509 tests/stub_carp.cc \
2510 carp.h \
2511 cbdata.cc \
2512 clientStream.cc \
2513 tests/stub_client_db.cc \
2514 client_side.cc \
2515 client_side.h \
2516 client_side_reply.cc \
2517 client_side_request.cc \
2518 dlink.cc \
2519 dlink.h \
2520 errorpage.cc \
2521 event.cc \
2522 external_acl.cc \
2523 tests/stub_fatal.cc \
2524 fatal.h \
2525 fd.cc \
2526 fd.h \
2527 fde.cc \
2528 filemap.cc \
2529 fqdncache.cc \
2530 fqdncache.h \
2531 fs_io.cc \
2532 fs_io.h \
2533 helper.cc \
2534 hier_code.h \
2535 http.cc \
2536 icp_v2.cc \
2537 icp_v3.cc \
2538 int.cc \
2539 int.h \
2540 internal.cc \
2541 internal.h \
2542 tests/stub_ipc_Forwarder.cc \
2543 ipcache.cc \
2544 tests/stub_libauth.cc \
2545 tests/stub_libauth_acls.cc \
2546 tests/stub_libdiskio.cc \
2547 tests/stub_liberror.cc \
2548 tests/stub_libsecurity.cc \
2549 tests/stub_libstore.cc \
2550 tests/stub_main_cc.cc \
2551 mem_node.cc \
2552 mime.cc \
2553 mime.h \
2554 mime_header.cc \
2555 mime_header.h \
2556 multicast.cc \
2557 multicast.h \
2558 neighbors.cc \
2559 neighbors.h \
2560 pconn.cc \
2561 peer_digest.cc \
2562 peer_proxy_negotiate_auth.cc \
2563 peer_proxy_negotiate_auth.h \
2564 peer_select.cc \
2565 peer_sourcehash.cc \
2566 peer_sourcehash.h \
2567 peer_userhash.cc \
2568 peer_userhash.h \
2569 tests/stub_redirect.cc \
2570 redirect.h \
2571 refresh.cc \
2572 refresh.h \
2573 repl_modules.h \
2574 stat.cc \
2575 stat.h \
2576 stmem.cc \
2577 store.cc \
2578 store_client.cc \
2579 tests/stub_store_digest.cc \
2580 store_digest.h \
2581 store_io.cc \
2582 store_key_md5.cc \
2583 store_key_md5.h \
2584 store_log.cc \
2585 store_log.h \
2586 store_rebuild.cc \
2587 store_rebuild.h \
2588 tests/stub_store_stats.cc \
2589 store_swapin.cc \
2590 store_swapin.h \
2591 store_swapout.cc \
2592 tools.cc \
2593 tools.h \
2594 tests/stub_tunnel.cc \
2595 tunnel.h \
2596 urn.cc \
2597 urn.h \
2598 tests/stub_wccp2.cc \
2599 wccp2.h \
2600 tests/stub_whois.cc \
2601 whois.h \
2602 wordlist.cc \
2603 wordlist.h
2604 nodist_tests_testCacheManager_SOURCES = \
2605 $(BUILT_SOURCES)
2606 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
2607 tests_testCacheManager_LDADD = \
2608 libsquid.la \
2609 clients/libclients.la \
2610 servers/libservers.la \
2611 ftp/libftp.la \
2612 helper/libhelper.la \
2613 http/libhttp.la \
2614 proxyp/libproxyp.la \
2615 parser/libparser.la \
2616 ident/libident.la \
2617 acl/libacls.la \
2618 acl/libstate.la \
2619 acl/libapi.la \
2620 dns/libdns.la \
2621 base/libbase.la \
2622 ip/libip.la \
2623 fs/libfs.la \
2624 comm/libcomm.la \
2625 eui/libeui.la \
2626 icmp/libicmp.la \
2627 log/liblog.la \
2628 format/libformat.la \
2629 $(REPL_OBJS) \
2630 $(ADAPTATION_LIBS) \
2631 $(ESI_LIBS) \
2632 $(SSL_LIBS) \
2633 anyp/libanyp.la \
2634 ipc/libipc.la \
2635 mgr/libmgr.la \
2636 $(SNMP_LIBS) \
2637 mem/libmem.la \
2638 store/libstore.la \
2639 sbuf/libsbuf.la \
2640 time/libtime.la \
2641 debug/libdebug.la \
2642 $(top_builddir)/lib/libmisccontainers.la \
2643 $(top_builddir)/lib/libmiscencoding.la \
2644 $(top_builddir)/lib/libmiscutil.la \
2645 $(LIBCAP_LIBS) \
2646 $(REGEXLIB) \
2647 $(SSLLIB) \
2648 $(KRB5LIBS) \
2649 $(LIBCPPUNIT_LIBS) \
2650 $(LIBSYSTEMD_LIBS) \
2651 $(COMPAT_LIB) \
2652 $(LIBNETTLE_LIBS) \
2653 $(LIBPSAPI_LIBS) \
2654 $(XTRA_LIBS)
2655 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
2656
2657 check_PROGRAMS += tests/testStatHist
2658 tests_testStatHist_SOURCES = \
2659 tests/stub_DelayId.cc \
2660 tests/stub_HelperChildConfig.cc \
2661 tests/stub_MemBuf.cc \
2662 tests/stub_MemObject.cc \
2663 StatHist.cc \
2664 tests/testStatHist.cc \
2665 StatHist.h \
2666 String.cc \
2667 tests/stub_cache_manager.cc \
2668 tests/stub_cbdata.cc \
2669 tests/stub_comm.cc \
2670 tests/stub_debug.cc \
2671 tests/stub_fatal.cc \
2672 fatal.h \
2673 tests/stub_libmem.cc \
2674 tests/stub_mime.cc \
2675 mime.h \
2676 tests/stub_pconn.cc \
2677 repl_modules.h \
2678 tests/stub_stmem.cc \
2679 tests/stub_store.cc \
2680 tests/stub_store_stats.cc \
2681 tests/stub_tools.cc \
2682 tools.h
2683 nodist_tests_testStatHist_SOURCES = \
2684 $(TESTSOURCES) \
2685 tests/stub_libtime.cc
2686 tests_testStatHist_LDADD = \
2687 sbuf/libsbuf.la \
2688 base/libbase.la \
2689 $(top_builddir)/lib/libmiscutil.la \
2690 $(top_builddir)/lib/libmisccontainers.la \
2691 $(LIBCPPUNIT_LIBS) \
2692 $(COMPAT_LIB)
2693 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2694
2695 ## Tests of ConfigParser
2696
2697 check_PROGRAMS += tests/testConfigParser
2698 tests_testConfigParser_SOURCES = \
2699 tests/testConfigParser.cc
2700 nodist_tests_testConfigParser_SOURCES = \
2701 ConfigParser.cc \
2702 tests/stub_SBuf.cc \
2703 String.cc \
2704 tests/stub_acl.cc \
2705 tests/stub_cache_cf.cc \
2706 tests/stub_debug.cc \
2707 tests/stub_fatal.cc \
2708 tests/stub_libmem.cc \
2709 tests/stub_neighbors.cc
2710 tests_testConfigParser_LDADD = \
2711 base/libbase.la \
2712 $(LIBCPPUNIT_LIBS) \
2713 $(COMPAT_LIB) \
2714 $(XTRA_LIBS)
2715 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
2716
2717 ## Tests of Event handling
2718
2719 check_PROGRAMS += tests/testEvent
2720 tests_testEvent_SOURCES = \
2721 tests/testEvent.cc
2722 nodist_tests_testEvent_SOURCES = \
2723 MemBuf.cc \
2724 tests/stub_SBuf.cc \
2725 tests/stub_cache_manager.cc \
2726 tests/stub_cbdata.cc \
2727 tests/stub_debug.cc \
2728 event.cc \
2729 tests/stub_libmem.cc \
2730 tests/stub_libtime.cc \
2731 tests/stub_tools.cc
2732 tests_testEvent_LDADD = \
2733 base/libbase.la \
2734 $(LIBCPPUNIT_LIBS) \
2735 $(COMPAT_LIB) \
2736 $(XTRA_LIBS)
2737 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2738
2739 check_PROGRAMS += tests/testEventLoop
2740 tests_testEventLoop_SOURCES = \
2741 tests/testEventLoop.cc
2742 nodist_tests_testEventLoop_SOURCES = \
2743 EventLoop.cc \
2744 tests/stub_SBuf.cc \
2745 tests/stub_debug.cc \
2746 tests/stub_fatal.cc \
2747 tests/stub_libtime.cc
2748 tests_testEventLoop_LDADD = \
2749 base/libbase.la \
2750 $(LIBCPPUNIT_LIBS) \
2751 $(COMPAT_LIB) \
2752 $(XTRA_LIBS)
2753 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)