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