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