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