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