]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Makefile.am
Fix linker errors "relocation R_X86_64_32 against .rodata"
[thirdparty/squid.git] / src / Makefile.am
1 #
2 # Makefile for the Squid Object Cache server
3 #
4 # Uncomment and customize the following to suit your needs:
5 #
6
7 include $(top_srcdir)/src/Common.am
8
9 AUTOMAKE_OPTIONS = subdir-objects
10
11 DNSSOURCE = \
12 dns_internal.cc \
13 SquidDns.h \
14 DnsLookupDetails.h \
15 DnsLookupDetails.cc
16
17 SBUF_SOURCE= \
18 base/InstanceId.h \
19 MemBlob.h \
20 MemBlob.cc \
21 OutOfBoundsException.h \
22 SBuf.h \
23 SBuf.cc \
24 SBufExceptions.h \
25 SBufExceptions.cc
26
27 STOREMETA_SOURCE = \
28 StoreMeta.cc \
29 StoreMeta.h \
30 StoreMetaMD5.cc \
31 StoreMetaMD5.h \
32 StoreMetaSTD.cc \
33 StoreMetaSTD.h \
34 StoreMetaSTDLFS.cc \
35 StoreMetaSTDLFS.h \
36 StoreMetaObjSize.h \
37 StoreMetaURL.cc \
38 StoreMetaURL.h \
39 StoreMetaVary.cc \
40 StoreMetaVary.h
41
42 LOADABLE_MODULES_SOURCES = \
43 LoadableModule.h \
44 LoadableModule.cc \
45 LoadableModules.h \
46 LoadableModules.cc
47
48 SUBDIRS = base anyp comm eui acl format fs repl
49 DIST_SUBDIRS = base anyp comm eui acl format fs repl
50
51 if ENABLE_AUTH
52 SUBDIRS += auth
53 AUTH_LIBS= auth/libauth.la
54 AUTH_ACL_LIBS= auth/libacls.la
55 check_PROGRAMS+= tests/testACLMaxUserIP
56 endif
57 DIST_SUBDIRS += auth
58
59 SUBDIRS += http ip icmp ident log ipc mgr
60 DIST_SUBDIRS += http ip icmp ident log ipc mgr
61
62 if ENABLE_SSL
63 SUBDIRS += ssl
64 SSL_LIBS = \
65 ssl/libsslsquid.la \
66 ssl/libsslutil.la
67 else
68 SSL_LOCAL_LIBS =
69 endif
70 DIST_SUBDIRS += ssl
71
72 SNMP_ALL_SOURCE = \
73 SnmpRequest.h \
74 snmp_core.h \
75 snmp_core.cc \
76 snmp_agent.h \
77 snmp_agent.cc
78 if ENABLE_SNMP
79 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
80 SUBDIRS += snmp
81 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
82 else
83 SNMP_SOURCE =
84 endif
85 DIST_SUBDIRS += snmp
86
87 if USE_ADAPTATION
88 SUBDIRS += adaptation
89 endif
90 DIST_SUBDIRS += adaptation
91
92 if USE_ESI
93 SUBDIRS += esi
94 ESI_LOCAL_LIBS = \
95 esi/libesi.la \
96 $(top_builddir)/lib/libTrie/libTrie.a
97 ESI_LIBS = $(ESI_LOCAL_LIBS) \
98 $(XMLLIB) \
99 $(EXPATLIB)
100 else
101 ESI_LIBS =
102 endif
103 DIST_SUBDIRS += esi
104
105 DELAY_POOL_ALL_SOURCE = \
106 CommonPool.h \
107 CompositePoolNode.h \
108 delay_pools.cc \
109 DelayId.cc \
110 DelayId.h \
111 DelayIdComposite.h \
112 DelayBucket.cc \
113 DelayBucket.h \
114 DelayConfig.cc \
115 DelayConfig.h \
116 DelayPool.cc \
117 DelayPool.h \
118 DelayPools.h \
119 DelaySpec.cc \
120 DelaySpec.h \
121 DelayTagged.cc \
122 DelayTagged.h \
123 DelayUser.cc \
124 DelayUser.h \
125 DelayVector.cc \
126 DelayVector.h \
127 NullDelayId.cc \
128 NullDelayId.h \
129 ClientDelayConfig.cc \
130 ClientDelayConfig.h
131
132 if ENABLE_DELAY_POOLS
133 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
134 else
135 DELAY_POOL_SOURCE =
136 endif
137
138 if ENABLE_XPROF_STATS
139 XPROF_STATS_SOURCE = ProfStats.cc
140 else
141 XPROF_STATS_SOURCE =
142 endif
143
144 if ENABLE_HTCP
145 HTCPSOURCE = htcp.cc htcp.h
146 endif
147
148 if MAKE_LEAKFINDER
149 LEAKFINDERSOURCE = LeakFinder.cc
150 else
151 LEAKFINDERSOURCE =
152 endif
153
154 if ENABLE_UNLINKD
155 UNLINKDSOURCE = unlinkd.h unlinkd.cc
156 UNLINKD = unlinkd
157 else
158 UNLINKDSOURCE = unlinkd.h
159 UNLINKD =
160 endif
161
162 WIN32_ALL_SOURCE = \
163 win32.h \
164 win32.cc \
165 WinSvc.h \
166 WinSvc.cc
167 if ENABLE_WIN32SPECIFIC
168 WIN32_SOURCE = win32.cc
169 WINSVC_SOURCE = WinSvc.cc
170 else
171 WIN32_SOURCE =
172 WINSVC_SOURCE =
173 endif
174
175 if USE_IPC_WIN32
176 IPC_SOURCE = SquidIpc.h ipc_win32.cc
177 else
178 IPC_SOURCE = SquidIpc.h ipc.cc
179 endif
180
181 AIO_WIN32_ALL_SOURCES = \
182 DiskIO/AIO/aio_win32.cc \
183 DiskIO/AIO/aio_win32.h
184 if USE_AIO_WIN32
185 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
186 else
187 AIO_WIN32_SOURCES =
188 endif
189
190 if USE_AIOPS_WIN32
191 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
192 DiskIO/DiskThreads/CommIO.cc \
193 DiskIO/DiskThreads/CommIO.h
194 else
195 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
196 DiskIO/DiskThreads/CommIO.cc \
197 DiskIO/DiskThreads/CommIO.h
198 endif
199
200 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
201 libMmapped.a libIpcIo.a
202 noinst_LIBRARIES = $(DISK_LIBS)
203 noinst_LTLIBRARIES = libsquid.la
204
205 EXTRA_PROGRAMS = \
206 DiskIO/DiskDaemon/diskd \
207 unlinkd \
208 recv-announce \
209 tests/testUfs \
210 tests/testRock \
211 ufsdump
212
213 ## cfgen is used when building squid
214 ## ufsdump is a debug utility, it is possibly useful for end users with cache
215 ## corruption, but at this point we do not install it.
216 noinst_PROGRAMS = \
217 cf_gen
218
219 sbin_PROGRAMS = \
220 squid
221
222 bin_PROGRAMS =
223
224
225 libexec_PROGRAMS = \
226 $(DISK_PROGRAMS) \
227 $(UNLINKD)
228
229 cf_gen_SOURCES = cf_gen.cc
230 nodist_cf_gen_HEADER = cf_gen_defines.cci
231 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
232 cf_gen_LDADD=
233 cf_gen.$(OBJEXT): cf_gen_defines.cci
234
235 ## cf_gen.cc needs src/cf_gen_defines.cci
236 INCLUDES += -I$(top_builddir)/src
237
238
239 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
240
241 DISKIO_SOURCE = \
242 DiskIO/DiskIOModule.cc \
243 DiskIO/ReadRequest.cc \
244 DiskIO/ReadRequest.h \
245 DiskIO/WriteRequest.cc \
246 DiskIO/WriteRequest.h \
247 DiskIO/DiskFile.h \
248 DiskIO/DiskIOStrategy.h \
249 DiskIO/IORequestor.h \
250 DiskIO/DiskIOModule.h \
251 DiskIO/ReadRequest.h
252
253 DISKIO_GEN_SOURCE = \
254 DiskIO/DiskIOModules_gen.cc
255
256 DiskIO/DiskIOModules_gen.cc: Makefile
257 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
258
259
260 # common library for all the binaries and tests. This is kindof a catch all
261 # and smaller libraries split from this are encouraged. Using lt convenience
262 # libraries, dependencies should not be a problem either.
263 libsquid_la_SOURCES = \
264 comm.cc \
265 comm.h \
266 comm_err_t.h \
267 CommCalls.cc \
268 CommCalls.h \
269 DescriptorSet.cc \
270 DescriptorSet.h \
271 SquidConfig.h \
272 SquidConfig.cc
273
274 squid_SOURCES = \
275 $(ACL_REGISTRATION_SOURCES) \
276 AccessLogEntry.cc \
277 AccessLogEntry.h \
278 AsyncEngine.cc \
279 AsyncEngine.h \
280 cache_cf.h \
281 AuthReg.h \
282 YesNoNone.h \
283 YesNoNone.cc \
284 RefreshPattern.h \
285 cache_cf.cc \
286 CacheDigest.h \
287 CacheDigest.cc \
288 cache_manager.cc \
289 NeighborTypeDomainList.h \
290 CachePeerDomainList.h \
291 CachePeer.h \
292 CacheManager.h \
293 carp.h \
294 carp.cc \
295 cbdata.cc \
296 cbdata.h \
297 ChunkedCodingParser.cc \
298 ChunkedCodingParser.h \
299 client_db.h \
300 client_db.cc \
301 client_side.h \
302 client_side.cc \
303 client_side.h \
304 client_side_reply.cc \
305 client_side_reply.h \
306 client_side_request.cc \
307 client_side_request.h \
308 ClientInfo.h \
309 BodyPipe.cc \
310 BodyPipe.h \
311 ClientInfo.h \
312 ClientRequestContext.h \
313 clientStream.cc \
314 clientStream.h \
315 CompletionDispatcher.cc \
316 CompletionDispatcher.h \
317 CommRead.h \
318 ConfigOption.cc \
319 ConfigParser.cc \
320 ConfigParser.h \
321 CpuAffinity.cc \
322 CpuAffinity.h \
323 CpuAffinityMap.cc \
324 CpuAffinityMap.h \
325 CpuAffinitySet.cc \
326 CpuAffinitySet.h \
327 debug.cc \
328 Debug.h \
329 defines.h \
330 $(DELAY_POOL_SOURCE) \
331 disk.h \
332 disk.cc \
333 $(DISKIO_SOURCE) \
334 dlink.h \
335 dlink.cc \
336 $(DNSSOURCE) \
337 enums.h \
338 err_type.h \
339 err_detail_type.h \
340 errorpage.cc \
341 errorpage.h \
342 ETag.cc \
343 ETag.h \
344 event.cc \
345 event.h \
346 EventLoop.h \
347 EventLoop.cc \
348 external_acl.cc \
349 ExternalACL.h \
350 ExternalACLEntry.cc \
351 ExternalACLEntry.h \
352 FadingCounter.h \
353 FadingCounter.cc \
354 fatal.h \
355 fatal.cc \
356 fd.h \
357 fd.cc \
358 fde.cc \
359 fde.h \
360 FileMap.h \
361 filemap.cc \
362 fqdncache.h \
363 fqdncache.cc \
364 ftp.h \
365 ftp.cc \
366 FwdState.cc \
367 FwdState.h \
368 Generic.h \
369 globals.h \
370 gopher.h \
371 gopher.cc \
372 helper.cc \
373 helper.h \
374 HelperChildConfig.h \
375 HelperChildConfig.cc \
376 HelperReply.cc \
377 HelperReply.h \
378 hier_code.h \
379 HierarchyLogEntry.h \
380 $(HTCPSOURCE) \
381 HttpStateFlags.h \
382 http.cc \
383 http.h \
384 HttpHeaderFieldStat.h \
385 HttpHdrCc.h \
386 HttpHdrCc.cc \
387 HttpHdrCc.cci \
388 HttpHdrRange.cc \
389 HttpHdrSc.cc \
390 HttpHdrSc.h \
391 HttpHdrScTarget.cc \
392 HttpHdrScTarget.h \
393 HttpHdrContRange.cc \
394 HttpHdrContRange.h \
395 HttpHeaderStat.h \
396 HttpHeader.h \
397 HttpHeader.cc \
398 HttpHeaderMask.h \
399 HttpHeaderRange.h \
400 HttpHeaderFieldInfo.h \
401 HttpHeaderTools.h \
402 HttpHeaderTools.cc \
403 HttpBody.h \
404 HttpBody.cc \
405 HttpControlMsg.h \
406 HttpMsg.cc \
407 HttpMsg.h \
408 HttpParser.cc \
409 HttpParser.h \
410 HttpReply.cc \
411 HttpReply.h \
412 RequestFlags.h \
413 RequestFlags.cc \
414 HttpRequest.cc \
415 HttpRequest.h \
416 HttpRequestMethod.cc \
417 HttpRequestMethod.h \
418 ICP.h \
419 icp_opcode.h \
420 icp_v2.cc \
421 icp_v3.cc \
422 int.h \
423 int.cc \
424 internal.h \
425 internal.cc \
426 $(IPC_SOURCE) \
427 ipcache.cc \
428 ipcache.h \
429 $(LEAKFINDERSOURCE) \
430 SquidList.h \
431 SquidList.cc \
432 LogTags.h \
433 lookup_t.h \
434 main.cc \
435 MasterXaction.cc \
436 MasterXaction.h \
437 Mem.h \
438 mem.cc \
439 mem_node.cc \
440 mem_node.h \
441 Mem.h \
442 MemBuf.cc \
443 MemObject.cc \
444 MemObject.h \
445 MessageSizes.h \
446 mime.h \
447 mime.cc \
448 mime_header.h \
449 mime_header.cc \
450 multicast.h \
451 multicast.cc \
452 neighbors.h \
453 neighbors.cc \
454 Notes.h \
455 Notes.cc \
456 Packer.cc \
457 Packer.h \
458 Parsing.cc \
459 Parsing.h \
460 $(XPROF_STATS_SOURCE) \
461 pconn.cc \
462 pconn.h \
463 PeerDigest.h \
464 peer_digest.cc \
465 peer_proxy_negotiate_auth.h \
466 peer_proxy_negotiate_auth.cc \
467 peer_select.cc \
468 peer_sourcehash.h \
469 peer_sourcehash.cc \
470 peer_userhash.h \
471 peer_userhash.cc \
472 PeerSelectState.h \
473 PingData.h \
474 protos.h \
475 redirect.h \
476 redirect.cc \
477 refresh.h \
478 refresh.cc \
479 RemovalPolicy.cc \
480 RemovalPolicy.h \
481 send-announce.h \
482 send-announce.cc \
483 $(SBUF_SOURCE) \
484 SBufDetailedStats.h \
485 SBufDetailedStats.cc \
486 SBufStatsAction.h \
487 SBufStatsAction.cc \
488 $(SNMP_SOURCE) \
489 SquidMath.h \
490 SquidMath.cc \
491 SquidNew.cc \
492 IoStats.h \
493 stat.h \
494 stat.cc \
495 StatCounters.h \
496 StatCounters.cc \
497 StatHist.h \
498 StatHist.cc \
499 String.cc \
500 StrList.h \
501 StrList.cc \
502 stmem.cc \
503 stmem.h \
504 repl_modules.h \
505 store.cc \
506 Store.h \
507 StoreFileSystem.cc \
508 StoreFileSystem.h \
509 StoreHashIndex.h \
510 store_io.cc \
511 StoreIOBuffer.h \
512 StoreIOState.cc \
513 StoreIOState.h \
514 store_client.cc \
515 StoreClient.h \
516 store_digest.h \
517 store_digest.cc \
518 store_dir.cc \
519 store_key_md5.h \
520 store_key_md5.cc \
521 store_log.h \
522 store_log.cc \
523 store_rebuild.h \
524 store_rebuild.cc \
525 store_swapin.h \
526 store_swapin.cc \
527 store_swapmeta.cc \
528 store_swapout.cc \
529 StoreMetaUnpacker.cc \
530 StoreMetaUnpacker.h \
531 $(STOREMETA_SOURCE) \
532 StoreSearch.h \
533 StoreStats.cc \
534 StoreStats.h \
535 StoreSwapLogData.cc \
536 StoreSwapLogData.h \
537 Server.cc \
538 Server.h \
539 swap_log_op.h \
540 SwapDir.cc \
541 SwapDir.h \
542 MemStore.cc \
543 MemStore.h \
544 time.cc \
545 TimeOrTag.h \
546 tools.h \
547 tools.cc \
548 tunnel.cc \
549 typedefs.h \
550 $(UNLINKDSOURCE) \
551 url.cc \
552 URL.h \
553 URLScheme.cc \
554 URLScheme.h \
555 urn.h \
556 urn.cc \
557 wccp.h \
558 wccp.cc \
559 wccp2.h \
560 wccp2.cc \
561 whois.h \
562 whois.cc \
563 wordlist.h \
564 wordlist.cc \
565 $(WIN32_SOURCE) \
566 $(WINSVC_SOURCE)
567
568 EXTRA_squid_SOURCES = \
569 $(AIO_WIN32_ALL_SOURCES) \
570 $(all_AUTHMODULES) \
571 ConfigOption.h \
572 $(DELAY_POOL_ALL_SOURCE) \
573 htcp.cc \
574 htcp.h \
575 ipc.cc \
576 ipc_win32.cc \
577 ProfStats.cc \
578 LeakFinder.cc \
579 LeakFinder.h \
580 $(SNMP_ALL_SOURCE) \
581 $(UNLINKDSOURCE) \
582 $(WIN32_ALL_SOURCE) \
583 $(LOADABLE_MODULES_SOURCES)
584
585 noinst_HEADERS = \
586 client_side_request.cci \
587 MemBuf.cci \
588 MemBuf.h \
589 Store.cci \
590 StoreEntryStream.h \
591 String.cci \
592 SquidString.h \
593 SquidTime.h
594
595 BUILT_SOURCES = \
596 cf_gen_defines.cci \
597 cf_parser.cci \
598 err_type.cc \
599 err_detail_type.cc \
600 globals.cc \
601 hier_code.cc \
602 icp_opcode.cc \
603 LogTags.cc \
604 lookup_t.cc \
605 repl_modules.cc \
606 swap_log_op.cc
607
608 CLEANFILES += $(BUILT_SOURCES)
609
610 nodist_squid_SOURCES = \
611 $(DISKIO_GEN_SOURCE) \
612 $(BUILT_SOURCES)
613
614 squid_LDADD = \
615 $(AUTH_ACL_LIBS) \
616 ident/libident.la \
617 acl/libacls.la \
618 acl/libstate.la \
619 $(AUTH_LIBS) \
620 $(DISK_LIBS) \
621 acl/libapi.la \
622 base/libbase.la \
623 libsquid.la \
624 ip/libip.la \
625 fs/libfs.la \
626 ipc/libipc.la \
627 mgr/libmgr.la \
628 anyp/libanyp.la \
629 comm/libcomm.la \
630 eui/libeui.la \
631 http/libsquid-http.la \
632 icmp/libicmp.la icmp/libicmp-core.la \
633 log/liblog.la \
634 format/libformat.la \
635 $(XTRA_OBJS) \
636 $(DISK_LINKOBJS) \
637 $(REPL_OBJS) \
638 $(DISK_OS_LIBS) \
639 $(CRYPTLIB) \
640 $(REGEXLIB) \
641 $(ADAPTATION_LIBS) \
642 $(ESI_LIBS) \
643 $(SSL_LIBS) \
644 $(SNMP_LIBS) \
645 $(top_builddir)/lib/libmisccontainers.la \
646 $(top_builddir)/lib/libmiscencoding.la \
647 $(top_builddir)/lib/libmiscutil.la \
648 $(SSLLIB) \
649 $(EPOLL_LIBS) \
650 $(MINGW_LIBS) \
651 $(KRB5LIBS) \
652 $(COMPAT_LIB) \
653 $(XTRA_LIBS)
654 squid_DEPENDENCIES = \
655 $(DISK_LIBS) \
656 $(DISK_LINKOBJS) \
657 $(REPL_OBJS) \
658 $(ADAPTATION_LIBS) \
659 $(ESI_LOCAL_LIBS) \
660 $(SSL_LIBS) \
661 $(AUTH_ACL_LIBS) \
662 ident/libident.la \
663 acl/libacls.la \
664 eui/libeui.la \
665 acl/libstate.la \
666 $(AUTH_LIBS) \
667 acl/libapi.la \
668 base/libbase.la \
669 libsquid.la \
670 ip/libip.la \
671 fs/libfs.la \
672 format/libformat.la \
673 ipc/libipc.la \
674 mgr/libmgr.la
675
676 if USE_LOADABLE_MODULES
677 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
678 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
679 squid_LDFLAGS = -export-dynamic -dlopen force
680 ## when static module linking is supported and enabled:
681 ## squid_LDFLAGS = -all-static -dlopen self
682 ##
683 ## LTDL headers require their local include path...
684 INCLUDES += $(INCLTDL)
685 endif
686
687 ## Kerberos libraries require their include path...
688 INCLUDES += $(KRB5INCS)
689
690
691 unlinkd_SOURCES = unlinkd_daemon.cc
692 unlinkd_LDADD = \
693 $(COMPAT_LIB) \
694 $(XTRA_LIBS)
695
696 recv_announce_SOURCES = recv-announce.cc
697
698 ## What requires what..
699 ## many things want ACLChecklist.cc
700 ## ACLChecklist.cc wants AuthUserRequest.cc
701 ## ACLChecklist.cc wants AuthScheme.cc
702 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
703 ## ACLProxyAuth.cc wants ACLUserData
704 ## ACLProxyAuth.cc wants ACLRegexData
705 ## cache_cf.cc wants $(AUTH_LIBS)
706 ## cache_cf.cc wants Swapdir
707 ## cache_cf.cc wants AnyP::PortCfg
708 ## client_side wants client_db
709 ## client_db wants SNMP_SOURCE
710 ## snmp_core wants ACLStringData
711 ## SwapDir wants ConfigOption
712 ## tools.cc wants ip/libip.la
713 ## client_side.cc wants ip/libip.la
714 ## mem.cc wants ClientInfo.h
715 ## libbase.la wants cbdata.*
716 ## libbase.la wants MemBuf.*
717 ufsdump_SOURCES = \
718 ClientInfo.h \
719 cbdata.h \
720 cbdata.cc \
721 debug.cc \
722 int.h \
723 int.cc \
724 Mem.h \
725 mem.cc \
726 MemBuf.cc \
727 MemBuf.cci \
728 MemBuf.h \
729 Parsing.h \
730 store_key_md5.h \
731 store_key_md5.cc \
732 tests/stub_StoreMeta.cc \
733 StoreMetaUnpacker.cc \
734 String.cc \
735 SquidNew.cc \
736 tests/stub_time.cc \
737 ufsdump.cc \
738 dlink.h \
739 dlink.cc \
740 HelperChildConfig.h \
741 tests/stub_HelperChildConfig.cc \
742 HttpRequestMethod.cc \
743 RemovalPolicy.cc \
744 $(WIN32_SOURCE) \
745 fd.h \
746 tests/stub_fd.cc
747 ufsdump_LDADD = \
748 ident/libident.la \
749 acl/libacls.la \
750 eui/libeui.la \
751 acl/libstate.la \
752 acl/libapi.la \
753 base/libbase.la \
754 libsquid.la \
755 ip/libip.la \
756 fs/libfs.la \
757 ipc/libipc.la \
758 mgr/libmgr.la \
759 $(XTRA_OBJS) \
760 $(REPL_OBJS) \
761 $(CRYPTLIB) \
762 $(REGEXLIB) \
763 $(SSLLIB) \
764 $(COMPAT_LIB) \
765 $(EPOLL_LIBS) \
766 $(MINGW_LIBS) \
767 $(XTRA_LIBS)
768 ufsdump_DEPENDENCIES = \
769 ident/libident.la \
770 acl/libacls.la \
771 eui/libeui.la \
772 acl/libstate.la \
773 acl/libapi.la \
774 base/libbase.la \
775 libsquid.la \
776 ip/libip.la \
777 fs/libfs.la \
778 ipc/libipc.la \
779 mgr/libmgr.la \
780 $(DISK_LIBS) \
781 $(DISK_LINKOBJS) \
782 $(REPL_OBJS)
783
784 nodist_ufsdump_SOURCES = \
785 globals.cc
786
787 sysconf_DATA = \
788 squid.conf.default \
789 squid.conf.documented \
790 mime.conf.default
791
792 data_DATA = \
793 mib.txt
794
795 LDADD = \
796 $(AUTH_ACL_LIBS) \
797 ident/libident.la \
798 acl/libacls.la \
799 eui/libeui.la \
800 acl/libstate.la \
801 $(AUTH_LIBS) \
802 acl/libapi.la \
803 base/libbase.la \
804 libsquid.la \
805 ip/libip.la \
806 fs/libfs.la \
807 ipc/libipc.la \
808 mgr/libmgr.la \
809 $(EPOLL_LIBS) \
810 $(MINGW_LIBS) \
811 $(COMPAT_LIB) \
812 $(XTRA_LIBS)
813
814 include $(srcdir)/tests/Stub.list
815
816 EXTRA_DIST = \
817 cf_gen_defines \
818 cf.data.pre \
819 cf.data.depend \
820 DiskIO/modules.sh \
821 mk-globals-c.pl \
822 mk-globals-c.awk \
823 mk-string-arrays.pl \
824 mk-string-arrays.awk \
825 repl_modules.sh \
826 $(STUB_SOURCE) \
827 mib.txt \
828 mime.conf.default
829
830 libAIO_a_SOURCES = \
831 $(AIO_WIN32_SOURCES) \
832 DiskIO/AIO/async_io.h \
833 DiskIO/AIO/AIODiskFile.cc \
834 DiskIO/AIO/AIODiskFile.h \
835 DiskIO/AIO/AIODiskIOStrategy.cc \
836 DiskIO/AIO/AIODiskIOStrategy.h \
837 DiskIO/AIO/AIODiskIOModule.cc \
838 DiskIO/AIO/AIODiskIOModule.h
839
840 libBlocking_a_SOURCES = \
841 DiskIO/Blocking/BlockingFile.cc \
842 DiskIO/Blocking/BlockingFile.h \
843 DiskIO/Blocking/BlockingIOStrategy.cc \
844 DiskIO/Blocking/BlockingIOStrategy.h \
845 DiskIO/Blocking/BlockingDiskIOModule.cc \
846 DiskIO/Blocking/BlockingDiskIOModule.h
847
848 libMmapped_a_SOURCES = \
849 DiskIO/Mmapped/MmappedFile.cc \
850 DiskIO/Mmapped/MmappedFile.h \
851 DiskIO/Mmapped/MmappedIOStrategy.cc \
852 DiskIO/Mmapped/MmappedIOStrategy.h \
853 DiskIO/Mmapped/MmappedDiskIOModule.cc \
854 DiskIO/Mmapped/MmappedDiskIOModule.h
855
856 libIpcIo_a_SOURCES = \
857 DiskIO/IpcIo/IpcIoFile.cc \
858 DiskIO/IpcIo/IpcIoFile.h \
859 DiskIO/IpcIo/IpcIoIOStrategy.cc \
860 DiskIO/IpcIo/IpcIoIOStrategy.h \
861 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
862 DiskIO/IpcIo/IpcIoDiskIOModule.h
863
864 libDiskDaemon_a_SOURCES = \
865 DiskIO/DiskDaemon/DiskdFile.cc \
866 DiskIO/DiskDaemon/DiskdFile.h \
867 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
868 DiskIO/DiskDaemon/DiskdIOStrategy.h \
869 DiskIO/DiskDaemon/diomsg.h \
870 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
871 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
872 DiskIO/DiskDaemon/DiskdAction.cc \
873 DiskIO/DiskDaemon/DiskdAction.h
874
875 libDiskThreads_a_SOURCES = \
876 $(AIOPS_SOURCE) \
877 DiskIO/DiskThreads/async_io.cc \
878 DiskIO/DiskThreads/DiskThreads.h \
879 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
880 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
881 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
882 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
883 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
884 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
885
886 EXTRA_libDiskThreads_a_SOURCES = \
887 DiskIO/DiskThreads/aiops.cc \
888 DiskIO/DiskThreads/aiops_win32.cc \
889 DiskIO/DiskThreads/CommIO.cc \
890 DiskIO/DiskThreads/CommIO.h
891
892 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
893 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
894 DiskIO_DiskDaemon_diskd_LDADD = \
895 $(top_builddir)/lib/libmisccontainers.la \
896 $(top_builddir)/lib/libmiscencoding.la \
897 $(top_builddir)/lib/libmiscutil.la \
898 $(COMPAT_LIB) \
899 $(XTRA_LIBS)
900
901
902 DEFAULT_HTTP_PORT = 3128
903 DEFAULT_ICP_PORT = 3130
904 DEFAULT_PREFIX = $(prefix)
905 DEFAULT_CONFIG_DIR = $(sysconfdir)
906 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
907 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
908 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
909 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
910 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
911 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
912 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
913 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
914 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
915 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_ICON_DIR = $(datadir)/icons
920 DEFAULT_ERROR_DIR = $(datadir)/errors
921
922 # Make location configure settings available to the code
923 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
924
925 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
926
927 globals.cc: globals.h mk-globals-c.awk
928 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
929
930 ## Generate files containing string arrays for various enums....
931 hier_code.cc: hier_code.h mk-string-arrays.awk
932 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
933
934 err_type.cc: err_type.h mk-string-arrays.awk
935 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
936
937 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
938 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
939
940 LogTags.cc: LogTags.h mk-string-arrays.awk
941 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
942
943 lookup_t.cc: lookup_t.h mk-string-arrays.awk
944 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
945
946 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
947 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
948
949 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
950 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
951
952
953 ## other generated files...
954
955 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
956 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
957
958 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
959 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
960
961 ## If autodependency works well this is not needed anymore
962 cache_cf.o: cf_parser.cci
963
964 # cf_gen builds the configuration files.
965 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
966 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
967
968 # squid.conf.default is built by cf_gen when making cf_parser.cci
969 squid.conf.default squid.conf.documented: cf_parser.cci
970 true
971
972 cf_parser.cci: cf.data cf_gen$(EXEEXT)
973 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
974
975 # The cf_gen_defines.cci is auto-generated and does not exist when the
976 # dependencies computed. We need to add its include files (autoconf.h) here
977 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
978 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
979
980
981 ## FIXME: generate a sed command file from configure. Then this doesn't
982 ## depend on the Makefile.
983 cf.data: cf.data.pre Makefile
984 sed \
985 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
986 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
987 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
988 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
989 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
990 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
991 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
992 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
993 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
994 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
995 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
996 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
997 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
998 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
999 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1000 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1001 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1002 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1003 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1004 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1005 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1006 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1007 < $(srcdir)/cf.data.pre >$@
1008
1009 repl_modules.cc: repl_modules.sh Makefile
1010 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1011
1012 include $(top_srcdir)/doc/manuals/Substitute.am
1013
1014 squid.8: $(srcdir)/squid.8.in Makefile
1015 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1016
1017 man_MANS = squid.8
1018 EXTRA_DIST += squid.8.in
1019 CLEANFILES += squid.8
1020
1021 install-data-local: install-sysconfDATA install-dataDATA
1022 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1023 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1024 else \
1025 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1026 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1027 fi
1028 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1029 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1030 else \
1031 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1032 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1033 fi
1034 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1035 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1036 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1037 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1038 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1039 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1040 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1041
1042 uninstall-local: squid.conf.default
1043 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1044 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1045
1046 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1047 DiskIO/DiskIOModules_gen.cc \
1048 test_tools.cc *.a
1049
1050 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1051 cp $(top_srcdir)/test-suite/test_tools.cc .
1052
1053 # stock tools for unit tests - library independent versions of dlink_list
1054 # etc.
1055 # globals.cc is needed by test_tools.cc.
1056 # Neither of these should be disted from here.
1057 TESTSOURCES= \
1058 tests/STUB.h \
1059 test_tools.cc \
1060 globals.cc
1061
1062 check_PROGRAMS+=\
1063 tests/testBoilerplate \
1064 tests/testCacheManager \
1065 tests/testDiskIO \
1066 tests/testEvent \
1067 tests/testEventLoop \
1068 tests/test_http_range \
1069 tests/testHttpParser \
1070 tests/testHttpReply \
1071 tests/testHttpRequest \
1072 tests/testStore \
1073 tests/testString \
1074 tests/testURL \
1075 tests/testSBuf \
1076 tests/testSBufList \
1077 tests/testConfigParser \
1078 tests/testStatHist \
1079 tests/testVector
1080
1081 if HAVE_FS_ROCK
1082 check_PROGRAMS += tests/testRock
1083 endif
1084 if HAVE_FS_UFS
1085 check_PROGRAMS += tests/testUfs
1086 endif
1087
1088 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1089 TESTS += $(check_PROGRAMS)
1090
1091 ### Template for new Unit Test Program
1092 ## - add tests/testX to check_PROGRAMS above.
1093 ## - copy template below and substitue X for class name
1094 ## - add other component .(h|cc) files needed to link and run tests
1095 ##
1096 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1097 ##
1098 #tests_testX_SOURCES=\
1099 # tests/testX.h \
1100 # tests/testX.cc \
1101 # tests/testMain.cc \
1102 # X.h \
1103 # X.cc
1104 #nodist_tests_testX_SOURCES=\
1105 # $(TESTSOURCES)
1106 #tests_testX_LDFLAGS = $(LIBADD_DL)
1107 #tests_testX_LDADD=\
1108 # $(SQUID_CPPUNIT_LIBS) \
1109 # $(SQUID_CPPUNIT_LA) \
1110 # $(COMPAT_LIB) \
1111 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1112
1113
1114 # - add other component .(h|cc) files needed to link and run tests
1115 tests_testHttpReply_SOURCES=\
1116 cbdata.cc \
1117 cbdata.h \
1118 ConfigParser.cc \
1119 tests/stub_ETag.cc \
1120 fatal.h \
1121 tests/stub_fatal.cc \
1122 HttpBody.h \
1123 HttpBody.cc \
1124 HttpHeaderFieldStat.h \
1125 HttpHdrCc.h \
1126 HttpHdrCc.cc \
1127 HttpHdrCc.cci \
1128 HttpHdrContRange.cc \
1129 HttpHdrContRange.h \
1130 HttpHdrRange.cc \
1131 HttpHdrSc.cc \
1132 HttpHdrSc.h \
1133 HttpHdrScTarget.cc \
1134 HttpHdrScTarget.h \
1135 HttpHeader.h \
1136 HttpHeader.cc \
1137 HttpHeaderMask.h \
1138 HttpHeaderFieldInfo.h \
1139 HttpHeaderTools.h \
1140 HttpHeaderTools.cc \
1141 HttpControlMsg.h \
1142 HttpMsg.cc \
1143 HttpMsg.h \
1144 HttpReply.cc \
1145 HttpReply.h \
1146 Mem.h \
1147 tests/stub_mem.cc \
1148 RegexList.h \
1149 RegexList.cc \
1150 MemBuf.cc \
1151 MemBuf.h \
1152 mime_header.h \
1153 mime_header.cc \
1154 Notes.h \
1155 Notes.cc \
1156 Packer.cc \
1157 Packer.h \
1158 SquidString.h \
1159 SquidTime.h \
1160 $(SBUF_SOURCE) \
1161 SBufDetailedStats.h \
1162 tests/stub_SBufDetailedStats.cc \
1163 String.cc \
1164 StrList.h \
1165 StrList.cc \
1166 log/access_log.h \
1167 tests/stub_access_log.cc \
1168 cache_cf.h \
1169 YesNoNone.h \
1170 tests/stub_cache_cf.cc \
1171 tests/stub_cache_manager.cc \
1172 tests/stub_debug.cc \
1173 tests/stub_errorpage.cc \
1174 tests/stub_HelperChildConfig.cc \
1175 tests/stub_libformat.cc \
1176 tests/stub_libauth.cc \
1177 StatCounters.h \
1178 StatCounters.cc \
1179 StatHist.h \
1180 tests/stub_StatHist.cc \
1181 repl_modules.h \
1182 tests/stub_store.cc \
1183 tests/stub_store_stats.cc \
1184 tools.h \
1185 tests/stub_tools.cc \
1186 tests/stub_HttpRequest.cc \
1187 tests/testHttpReply.cc \
1188 tests/testHttpReply.h \
1189 tests/testMain.cc \
1190 tests/stub_time.cc \
1191 url.cc \
1192 URLScheme.cc \
1193 wordlist.h \
1194 wordlist.cc
1195 nodist_tests_testHttpReply_SOURCES=\
1196 $(TESTSOURCES)
1197 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1198 tests_testHttpReply_LDADD=\
1199 http/libsquid-http.la \
1200 acl/libacls.la \
1201 acl/libapi.la \
1202 acl/libstate.la \
1203 anyp/libanyp.la \
1204 ip/libip.la \
1205 base/libbase.la \
1206 $(SSL_LIBS) \
1207 $(top_builddir)/lib/libmisccontainers.la \
1208 $(top_builddir)/lib/libmiscencoding.la \
1209 $(top_builddir)/lib/libmiscutil.la \
1210 $(SQUID_CPPUNIT_LIBS) \
1211 $(SQUID_CPPUNIT_LA) \
1212 $(SSLLIB) \
1213 $(COMPAT_LIB) \
1214 $(XTRA_LIBS)
1215 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1216
1217 tests_testACLMaxUserIP_SOURCES= \
1218 cbdata.cc \
1219 ClientInfo.h \
1220 ConfigOption.cc \
1221 ConfigParser.cc \
1222 DiskIO/ReadRequest.cc \
1223 DiskIO/WriteRequest.cc \
1224 tests/stub_ETag.cc \
1225 event.cc \
1226 fatal.h \
1227 tests/stub_fatal.cc \
1228 FileMap.h \
1229 filemap.cc \
1230 HelperChildConfig.h \
1231 HelperChildConfig.cc \
1232 HttpBody.cc \
1233 HttpHeader.h \
1234 HttpHeader.cc \
1235 HttpHeaderFieldInfo.h \
1236 HttpHeaderTools.h \
1237 HttpHeaderTools.cc \
1238 HttpHdrContRange.cc \
1239 HttpHdrRange.cc \
1240 HttpHeaderFieldStat.h \
1241 HttpHdrCc.h \
1242 HttpHdrCc.cc \
1243 HttpHdrCc.cci \
1244 HttpHdrSc.cc \
1245 HttpHdrScTarget.cc \
1246 HttpMsg.cc \
1247 HttpRequestMethod.cc \
1248 int.h \
1249 int.cc \
1250 MasterXaction.cc \
1251 MasterXaction.h \
1252 Notes.cc \
1253 Notes.h \
1254 SquidList.h \
1255 SquidList.cc \
1256 mem_node.cc \
1257 Packer.cc \
1258 Parsing.cc \
1259 SquidMath.cc \
1260 StatCounters.cc \
1261 StatCounters.h \
1262 StatHist.h \
1263 StrList.h \
1264 StrList.cc \
1265 tests/stub_StatHist.cc \
1266 stmem.cc \
1267 $(SBUF_SOURCE) \
1268 SBufDetailedStats.h \
1269 tests/stub_SBufDetailedStats.cc \
1270 String.cc \
1271 store_dir.cc \
1272 StoreIOState.cc \
1273 tests/stub_StoreMeta.cc \
1274 StoreMetaUnpacker.cc \
1275 StoreSwapLogData.cc \
1276 store_key_md5.h \
1277 store_key_md5.cc \
1278 swap_log_op.cc \
1279 swap_log_op.h \
1280 tests/stub_SwapDir.cc \
1281 SwapDir.h \
1282 log/access_log.h \
1283 tests/stub_access_log.cc \
1284 cache_cf.h \
1285 YesNoNone.h \
1286 tests/stub_cache_cf.cc \
1287 tests/stub_client_side.cc \
1288 tests/stub_debug.cc \
1289 tests/stub_DelayId.cc \
1290 tests/stub_DiskIOModule.cc \
1291 tests/stub_errorpage.cc \
1292 fd.h \
1293 tests/stub_fd.cc \
1294 tests/stub_HttpRequest.cc \
1295 tests/stub_HttpReply.cc \
1296 tests/stub_ipc_TypedMsgHdr.cc \
1297 tests/stub_libauth.cc \
1298 tests/stub_libcomm.cc \
1299 tests/stub_libformat.cc \
1300 tests/stub_libsslsquid.cc \
1301 tests/stub_MemObject.cc \
1302 tests/stub_MemStore.cc \
1303 mime.h \
1304 tests/stub_mime.cc \
1305 tests/stub_pconn.cc \
1306 tests/stub_Port.cc \
1307 repl_modules.h \
1308 tests/stub_store.cc \
1309 store_rebuild.h \
1310 tests/stub_store_rebuild.cc \
1311 tests/stub_store_stats.cc \
1312 tests/stub_store_swapout.cc \
1313 tools.h \
1314 tests/stub_tools.cc \
1315 tests/stub_cache_manager.cc \
1316 tests/stub_UdsOp.cc \
1317 tests/testACLMaxUserIP.cc \
1318 tests/testACLMaxUserIP.h \
1319 tests/testMain.cc \
1320 tests/stub_time.cc \
1321 url.cc \
1322 URL.h \
1323 URLScheme.cc \
1324 URLScheme.h \
1325 Mem.h \
1326 tests/stub_mem.cc \
1327 MemBuf.cc \
1328 wordlist.h \
1329 wordlist.cc
1330 nodist_tests_testACLMaxUserIP_SOURCES= \
1331 $(TESTSOURCES)
1332 tests_testACLMaxUserIP_LDADD= \
1333 http/libsquid-http.la \
1334 $(AUTH_ACL_LIBS) \
1335 ident/libident.la \
1336 acl/libacls.la \
1337 eui/libeui.la \
1338 acl/libstate.la \
1339 acl/libapi.la \
1340 anyp/libanyp.la \
1341 base/libbase.la \
1342 libsquid.la \
1343 ip/libip.la \
1344 ipc/libipc.la \
1345 mgr/libmgr.la \
1346 $(top_builddir)/lib/libmisccontainers.la \
1347 $(top_builddir)/lib/libmiscencoding.la \
1348 $(top_builddir)/lib/libmiscutil.la \
1349 $(DISK_OS_LIBS) \
1350 $(REGEXLIB) \
1351 $(SQUID_CPPUNIT_LIBS) \
1352 $(SSLLIB) \
1353 $(COMPAT_LIB) \
1354 $(XTRA_LIBS)
1355 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1356 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1357 ## $(SQUID_CPPUNIT_LA)
1358
1359 ## a demonstration test that does nothing but shows the salient points
1360 ## involved in writing tests.
1361 tests_testBoilerplate_SOURCES = \
1362 tests/testBoilerplate.cc \
1363 tests/testMain.cc \
1364 tests/testBoilerplate.h \
1365 tests/stub_time.cc
1366 nodist_tests_testBoilerplate_SOURCES = \
1367 $(TESTSOURCES)
1368 tests_testBoilerplate_LDADD= \
1369 $(SQUID_CPPUNIT_LIBS) \
1370 $(SSLLIB) \
1371 $(COMPAT_LIB) \
1372 $(XTRA_LIBS)
1373 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1374 tests_testBoilerplate_DEPENDENCIES = \
1375 $(SQUID_CPPUNIT_LA)
1376
1377 ## Tests of the CacheManager module.
1378 tests_testCacheManager_SOURCES = \
1379 AccessLogEntry.cc \
1380 debug.cc \
1381 HttpParser.cc \
1382 HttpParser.h \
1383 RequestFlags.h \
1384 RequestFlags.cc \
1385 HttpRequest.cc \
1386 HttpRequestMethod.cc \
1387 Mem.h \
1388 tests/stub_mem.cc \
1389 String.cc \
1390 tests/testCacheManager.cc \
1391 tests/testCacheManager.h \
1392 tests/testMain.cc \
1393 tests/stub_main_cc.cc \
1394 tests/stub_ipc_Forwarder.cc \
1395 tests/stub_store_stats.cc \
1396 tests/stub_EventLoop.cc \
1397 time.cc \
1398 BodyPipe.cc \
1399 cache_manager.cc \
1400 cache_cf.h \
1401 AuthReg.h \
1402 YesNoNone.h \
1403 YesNoNone.cc \
1404 RefreshPattern.h \
1405 cache_cf.cc \
1406 CacheDigest.h \
1407 tests/stub_CacheDigest.cc \
1408 carp.h \
1409 tests/stub_carp.cc \
1410 cbdata.cc \
1411 ChunkedCodingParser.cc \
1412 client_db.h \
1413 client_db.cc \
1414 client_side.h \
1415 client_side.cc \
1416 client_side_reply.cc \
1417 client_side_request.cc \
1418 ClientInfo.h \
1419 clientStream.cc \
1420 ConfigOption.cc \
1421 ConfigParser.cc \
1422 CpuAffinityMap.cc \
1423 CpuAffinityMap.h \
1424 CpuAffinitySet.cc \
1425 CpuAffinitySet.h \
1426 $(DELAY_POOL_SOURCE) \
1427 $(DISKIO_SOURCE) \
1428 disk.h \
1429 disk.cc \
1430 dlink.h \
1431 dlink.cc \
1432 $(DNSSOURCE) \
1433 errorpage.cc \
1434 tests/stub_ETag.cc \
1435 event.cc \
1436 external_acl.cc \
1437 ExternalACLEntry.cc \
1438 fatal.h \
1439 tests/stub_fatal.cc \
1440 fd.h \
1441 fd.cc \
1442 fde.cc \
1443 FileMap.h \
1444 filemap.cc \
1445 fqdncache.h \
1446 fqdncache.cc \
1447 ftp.h \
1448 ftp.cc \
1449 FwdState.cc \
1450 FwdState.h \
1451 gopher.h \
1452 gopher.cc \
1453 hier_code.h \
1454 helper.cc \
1455 HelperChildConfig.h \
1456 HelperChildConfig.cc \
1457 HelperReply.cc \
1458 HelperReply.h \
1459 $(HTCPSOURCE) \
1460 HttpStateFlags.h \
1461 http.cc \
1462 HttpBody.h \
1463 HttpBody.cc \
1464 HttpHeader.h \
1465 HttpHeader.cc \
1466 HttpHeaderFieldInfo.h \
1467 HttpHeaderTools.h \
1468 HttpHeaderTools.cc \
1469 HttpHeaderFieldStat.h \
1470 HttpHdrCc.h \
1471 HttpHdrCc.cc \
1472 HttpHdrCc.cci \
1473 HttpHdrContRange.cc \
1474 HttpHdrRange.cc \
1475 HttpHdrSc.cc \
1476 HttpHdrScTarget.cc \
1477 HttpMsg.cc \
1478 HttpReply.cc \
1479 icp_v2.cc \
1480 icp_v3.cc \
1481 $(IPC_SOURCE) \
1482 ipcache.cc \
1483 int.h \
1484 int.cc \
1485 internal.h \
1486 internal.cc \
1487 SquidList.h \
1488 SquidList.cc \
1489 MasterXaction.cc \
1490 MasterXaction.h \
1491 multicast.h \
1492 multicast.cc \
1493 mem_node.cc \
1494 MemBuf.cc \
1495 MemObject.cc \
1496 mime.h \
1497 mime.cc \
1498 mime_header.h \
1499 mime_header.cc \
1500 neighbors.h \
1501 neighbors.cc \
1502 Notes.cc \
1503 Notes.h \
1504 Packer.cc \
1505 Parsing.cc \
1506 pconn.cc \
1507 peer_digest.cc \
1508 peer_proxy_negotiate_auth.h \
1509 peer_proxy_negotiate_auth.cc \
1510 peer_select.cc \
1511 peer_sourcehash.h \
1512 peer_sourcehash.cc \
1513 peer_userhash.h \
1514 peer_userhash.cc \
1515 redirect.h \
1516 tests/stub_redirect.cc \
1517 refresh.h \
1518 refresh.cc \
1519 RemovalPolicy.cc \
1520 Server.cc \
1521 $(SBUF_SOURCE) \
1522 SBufDetailedStats.h \
1523 tests/stub_SBufDetailedStats.cc \
1524 $(SNMP_SOURCE) \
1525 SquidMath.h \
1526 SquidMath.cc \
1527 IoStats.h \
1528 stat.h \
1529 stat.cc \
1530 StatCounters.h \
1531 StatCounters.cc \
1532 StatHist.h \
1533 StrList.h \
1534 StrList.cc \
1535 tests/stub_libauth_acls.cc \
1536 tests/stub_libauth.cc \
1537 tests/stub_StatHist.cc \
1538 stmem.cc \
1539 repl_modules.h \
1540 store.cc \
1541 store_client.cc \
1542 store_digest.h \
1543 tests/stub_store_digest.cc \
1544 store_dir.cc \
1545 store_io.cc \
1546 store_key_md5.h \
1547 store_key_md5.cc \
1548 store_log.h \
1549 store_log.cc \
1550 store_rebuild.h \
1551 store_rebuild.cc \
1552 store_swapin.h \
1553 store_swapin.cc \
1554 store_swapmeta.cc \
1555 store_swapout.cc \
1556 StoreFileSystem.cc \
1557 StoreIOState.cc \
1558 tests/stub_StoreMeta.cc \
1559 StoreMetaUnpacker.cc \
1560 StoreSwapLogData.cc \
1561 tools.h \
1562 tools.cc \
1563 tests/stub_tunnel.cc \
1564 tests/stub_SwapDir.cc \
1565 MemStore.cc \
1566 $(UNLINKDSOURCE) \
1567 url.cc \
1568 URLScheme.cc \
1569 urn.h \
1570 urn.cc \
1571 wccp2.h \
1572 tests/stub_wccp2.cc \
1573 whois.h \
1574 tests/stub_whois.cc \
1575 FadingCounter.cc \
1576 $(WIN32_SOURCE) \
1577 wordlist.h \
1578 wordlist.cc
1579 nodist_tests_testCacheManager_SOURCES = \
1580 $(BUILT_SOURCES) \
1581 $(DISKIO_GEN_SOURCE)
1582 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1583 tests_testCacheManager_LDADD = \
1584 http/libsquid-http.la \
1585 ident/libident.la \
1586 acl/libacls.la \
1587 acl/libstate.la \
1588 acl/libapi.la \
1589 base/libbase.la \
1590 libsquid.la \
1591 ip/libip.la \
1592 fs/libfs.la \
1593 comm/libcomm.la \
1594 eui/libeui.la \
1595 icmp/libicmp.la icmp/libicmp-core.la \
1596 log/liblog.la \
1597 format/libformat.la \
1598 $(REPL_OBJS) \
1599 $(DISK_LIBS) \
1600 $(DISK_OS_LIBS) \
1601 $(ADAPTATION_LIBS) \
1602 $(ESI_LIBS) \
1603 $(SSL_LIBS) \
1604 anyp/libanyp.la \
1605 ipc/libipc.la \
1606 mgr/libmgr.la \
1607 $(SNMP_LIBS) \
1608 $(top_builddir)/lib/libmisccontainers.la \
1609 $(top_builddir)/lib/libmiscencoding.la \
1610 $(top_builddir)/lib/libmiscutil.la \
1611 $(REGEXLIB) \
1612 $(SQUID_CPPUNIT_LIBS) \
1613 $(SQUID_CPPUNIT_LA) \
1614 $(SSLLIB) \
1615 $(KRB5LIBS) \
1616 $(COMPAT_LIB) \
1617 $(XTRA_LIBS)
1618 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1619 tests_testCacheManager_DEPENDENCIES = \
1620 $(REPL_OBJS) \
1621 $(SQUID_CPPUNIT_LA)
1622
1623 tests_testDiskIO_SOURCES = \
1624 CacheDigest.h \
1625 tests/stub_CacheDigest.cc \
1626 cbdata.cc \
1627 client_db.h \
1628 ClientInfo.h \
1629 ConfigOption.cc \
1630 ConfigParser.cc \
1631 $(DELAY_POOL_SOURCE) \
1632 $(DISKIO_SOURCE) \
1633 disk.h \
1634 disk.cc \
1635 tests/stub_ETag.cc \
1636 EventLoop.cc \
1637 event.cc \
1638 fatal.h \
1639 tests/stub_fatal.cc \
1640 fd.h \
1641 fd.cc \
1642 fde.h \
1643 fde.cc \
1644 FileMap.h \
1645 filemap.cc \
1646 HttpBody.h \
1647 HttpBody.cc \
1648 HttpHeaderFieldStat.h \
1649 HttpHdrCc.h \
1650 HttpHdrCc.cc \
1651 HttpHdrCc.cci \
1652 HttpHdrContRange.cc \
1653 HttpHdrSc.cc \
1654 HttpHdrScTarget.cc \
1655 HttpHdrRange.cc \
1656 HttpHeaderFieldInfo.h \
1657 HttpHeaderTools.h \
1658 HttpHeaderTools.cc \
1659 HttpHeader.h \
1660 HttpHeader.cc \
1661 HttpMsg.cc \
1662 HttpReply.cc \
1663 HttpRequestMethod.cc \
1664 int.h \
1665 int.cc \
1666 SquidList.h \
1667 SquidList.cc \
1668 MasterXaction.cc \
1669 MasterXaction.h \
1670 MemBuf.cc \
1671 MemObject.cc \
1672 mem_node.cc \
1673 Mem.h \
1674 tests/stub_mem.cc \
1675 Notes.h \
1676 Notes.cc \
1677 Packer.cc \
1678 Parsing.cc \
1679 refresh.h \
1680 refresh.cc \
1681 RemovalPolicy.cc \
1682 RequestFlags.h \
1683 RequestFlags.cc \
1684 StatCounters.h \
1685 StatCounters.cc \
1686 StatHist.h \
1687 tests/stub_StatHist.cc \
1688 stmem.cc \
1689 $(SBUF_SOURCE) \
1690 SBufDetailedStats.h \
1691 tests/stub_SBufDetailedStats.cc \
1692 StoreFileSystem.cc \
1693 StoreIOState.cc \
1694 tests/stub_StoreMeta.cc \
1695 StoreMetaUnpacker.cc \
1696 StoreSwapLogData.cc \
1697 store_dir.cc \
1698 store_io.cc \
1699 store_key_md5.h \
1700 store_key_md5.cc \
1701 store_swapout.cc \
1702 store_swapmeta.cc \
1703 repl_modules.h \
1704 store.cc \
1705 String.cc \
1706 StrList.h \
1707 StrList.cc \
1708 tests/stub_SwapDir.cc \
1709 log/access_log.h \
1710 tests/stub_access_log.cc \
1711 tests/stub_acl.cc \
1712 cache_cf.h \
1713 YesNoNone.h \
1714 tests/stub_cache_cf.cc \
1715 tests/stub_cache_manager.cc \
1716 tests/stub_client_db.cc \
1717 client_side_request.h \
1718 tests/stub_client_side_request.cc \
1719 tests/stub_debug.cc \
1720 tests/stub_errorpage.cc \
1721 tests/stub_helper.cc \
1722 tests/stub_HelperChildConfig.cc \
1723 tests/stub_HttpRequest.cc \
1724 tests/stub_http.cc \
1725 tests/stub_icp.cc \
1726 internal.h \
1727 tests/stub_internal.cc \
1728 tests/stub_ipc.cc \
1729 tests/stub_ipcache.cc \
1730 tests/stub_libauth_acls.cc \
1731 tests/stub_libauth.cc \
1732 tests/stub_libeui.cc \
1733 tests/stub_libformat.cc \
1734 tests/stub_libicmp.cc \
1735 tests/stub_MemStore.cc \
1736 mime.h \
1737 tests/stub_mime.cc \
1738 tests/stub_pconn.cc \
1739 tests/stub_Port.cc \
1740 tests/stub_store_client.cc \
1741 tests/stub_store_stats.cc \
1742 store_rebuild.h \
1743 tests/stub_store_rebuild.cc \
1744 tests/stub_UdsOp.cc \
1745 tests/testDiskIO.cc \
1746 tests/testDiskIO.h \
1747 tests/testMain.cc \
1748 tests/testStoreSupport.cc \
1749 tests/testStoreSupport.h \
1750 tests/stub_time.cc \
1751 $(UNLINKDSOURCE) \
1752 url.cc \
1753 URLScheme.cc \
1754 $(WIN32_SOURCE) \
1755 wordlist.h \
1756 wordlist.cc \
1757 tools.h \
1758 tests/stub_tools.cc
1759 nodist_tests_testDiskIO_SOURCES= \
1760 $(TESTSOURCES) \
1761 $(DISKIO_GEN_SOURCE) \
1762 SquidMath.cc \
1763 SquidMath.h \
1764 swap_log_op.cc
1765 tests_testDiskIO_LDADD = \
1766 http/libsquid-http.la \
1767 SquidConfig.o \
1768 CommCalls.o \
1769 DnsLookupDetails.o \
1770 ident/libident.la \
1771 acl/libacls.la \
1772 acl/libstate.la \
1773 libsquid.la \
1774 comm/libcomm.la \
1775 anyp/libanyp.la \
1776 ip/libip.la \
1777 fs/libfs.la \
1778 ipc/libipc.la \
1779 $(REPL_OBJS) \
1780 $(DISK_LIBS) \
1781 $(DISK_OS_LIBS) \
1782 acl/libapi.la \
1783 mgr/libmgr.la \
1784 ipc/libipc.la \
1785 base/libbase.la \
1786 $(SSL_LIBS) \
1787 $(top_builddir)/lib/libmisccontainers.la \
1788 $(top_builddir)/lib/libmiscencoding.la \
1789 $(top_builddir)/lib/libmiscutil.la \
1790 $(REGEXLIB) \
1791 $(SQUID_CPPUNIT_LIBS) \
1792 $(SSLLIB) \
1793 $(COMPAT_LIB) \
1794 $(XTRA_LIBS)
1795
1796 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1797 tests_testDiskIO_DEPENDENCIES = \
1798 $(DISK_LIBS) \
1799 $(SWAP_TEST_DS) \
1800 $(SQUID_CPPUNIT_LA)
1801
1802 ## Tests of the Even module.
1803 tests_testEvent_SOURCES = \
1804 AccessLogEntry.cc \
1805 BodyPipe.cc \
1806 CacheDigest.h \
1807 tests/stub_CacheDigest.cc \
1808 cache_cf.h \
1809 AuthReg.h \
1810 YesNoNone.h \
1811 YesNoNone.cc \
1812 RefreshPattern.h \
1813 cache_cf.cc \
1814 cache_manager.cc \
1815 carp.h \
1816 tests/stub_carp.cc \
1817 cbdata.cc \
1818 ChunkedCodingParser.cc \
1819 client_db.h \
1820 client_db.cc \
1821 client_side.h \
1822 client_side.cc \
1823 client_side_reply.cc \
1824 client_side_request.cc \
1825 ClientInfo.h \
1826 clientStream.cc \
1827 ConfigOption.cc \
1828 ConfigParser.cc \
1829 CpuAffinityMap.cc \
1830 CpuAffinityMap.h \
1831 CpuAffinitySet.cc \
1832 CpuAffinitySet.h \
1833 debug.cc \
1834 $(DELAY_POOL_SOURCE) \
1835 $(DISKIO_SOURCE) \
1836 disk.h \
1837 disk.cc \
1838 dlink.h \
1839 dlink.cc \
1840 $(DNSSOURCE) \
1841 errorpage.cc \
1842 tests/stub_ETag.cc \
1843 event.cc \
1844 EventLoop.h \
1845 EventLoop.cc \
1846 external_acl.cc \
1847 ExternalACLEntry.cc \
1848 FadingCounter.cc \
1849 fatal.h \
1850 tests/stub_fatal.cc \
1851 fd.h \
1852 fd.cc \
1853 fde.cc \
1854 FileMap.h \
1855 filemap.cc \
1856 fqdncache.h \
1857 fqdncache.cc \
1858 ftp.h \
1859 ftp.cc \
1860 FwdState.cc \
1861 FwdState.h \
1862 gopher.h \
1863 gopher.cc \
1864 helper.cc \
1865 HelperChildConfig.h \
1866 HelperChildConfig.cc \
1867 HelperReply.cc \
1868 HelperReply.h \
1869 hier_code.h \
1870 $(HTCPSOURCE) \
1871 http.cc \
1872 HttpBody.h \
1873 HttpBody.cc \
1874 HttpHeader.h \
1875 HttpHeader.cc \
1876 HttpHeaderFieldInfo.h \
1877 HttpHeaderTools.h \
1878 HttpHeaderTools.cc \
1879 HttpHeaderFieldStat.h \
1880 HttpHdrCc.h \
1881 HttpHdrCc.cc \
1882 HttpHdrCc.cci \
1883 HttpHdrContRange.cc \
1884 HttpHdrRange.cc \
1885 HttpHdrSc.cc \
1886 HttpHdrScTarget.cc \
1887 HttpMsg.cc \
1888 HttpParser.cc \
1889 HttpParser.h \
1890 HttpReply.cc \
1891 RequestFlags.h \
1892 RequestFlags.cc \
1893 HttpRequest.cc \
1894 HttpRequestMethod.cc \
1895 icp_v2.cc \
1896 icp_v3.cc \
1897 $(IPC_SOURCE) \
1898 ipcache.cc \
1899 int.h \
1900 int.cc \
1901 internal.h \
1902 internal.cc \
1903 SquidList.h \
1904 SquidList.cc \
1905 MasterXaction.cc \
1906 MasterXaction.h \
1907 Mem.h \
1908 tests/stub_mem.cc \
1909 mem_node.cc \
1910 MemBuf.cc \
1911 MemObject.cc \
1912 mime.h \
1913 mime.cc \
1914 mime_header.h \
1915 mime_header.cc \
1916 multicast.h \
1917 multicast.cc \
1918 neighbors.h \
1919 neighbors.cc \
1920 Notes.cc \
1921 Notes.h \
1922 Packer.cc \
1923 Parsing.cc \
1924 pconn.cc \
1925 peer_digest.cc \
1926 peer_proxy_negotiate_auth.h \
1927 peer_proxy_negotiate_auth.cc \
1928 peer_select.cc \
1929 peer_sourcehash.h \
1930 peer_sourcehash.cc \
1931 peer_userhash.h \
1932 peer_userhash.cc \
1933 redirect.h \
1934 tests/stub_redirect.cc \
1935 refresh.h \
1936 refresh.cc \
1937 RemovalPolicy.cc \
1938 Server.cc \
1939 StrList.h \
1940 StrList.cc \
1941 $(SBUF_SOURCE) \
1942 SBufDetailedStats.h \
1943 tests/stub_SBufDetailedStats.cc \
1944 $(SNMP_SOURCE) \
1945 SquidMath.cc \
1946 SquidMath.h \
1947 IoStats.h \
1948 stat.h \
1949 stat.cc \
1950 StatCounters.h \
1951 StatCounters.cc \
1952 StatHist.h \
1953 StatHist.cc \
1954 stmem.cc \
1955 repl_modules.h \
1956 store.cc \
1957 store_client.cc \
1958 store_digest.h \
1959 tests/stub_store_digest.cc \
1960 store_dir.cc \
1961 store_io.cc \
1962 store_key_md5.h \
1963 store_key_md5.cc \
1964 store_log.h \
1965 store_log.cc \
1966 store_rebuild.h \
1967 store_rebuild.cc \
1968 store_swapin.h \
1969 store_swapin.cc \
1970 store_swapmeta.cc \
1971 store_swapout.cc \
1972 StoreFileSystem.cc \
1973 StoreIOState.cc \
1974 tests/stub_StoreMeta.cc \
1975 StoreMetaUnpacker.cc \
1976 StoreSwapLogData.cc \
1977 String.cc \
1978 tests/stub_SwapDir.cc \
1979 tests/CapturingStoreEntry.h \
1980 tests/testEvent.cc \
1981 tests/testEvent.h \
1982 tests/testMain.cc \
1983 tests/stub_main_cc.cc \
1984 tests/stub_ipc_Forwarder.cc \
1985 tests/stub_libauth_acls.cc \
1986 tests/stub_libauth.cc \
1987 tests/stub_libeui.cc \
1988 tests/stub_store_stats.cc \
1989 time.cc \
1990 tools.h \
1991 tools.cc \
1992 tests/stub_tunnel.cc \
1993 MemStore.cc \
1994 $(UNLINKDSOURCE) \
1995 url.cc \
1996 URLScheme.cc \
1997 urn.h \
1998 urn.cc \
1999 wccp2.h \
2000 tests/stub_wccp2.cc \
2001 whois.h \
2002 tests/stub_whois.cc \
2003 $(WIN32_SOURCE) \
2004 wordlist.h \
2005 wordlist.cc
2006 nodist_tests_testEvent_SOURCES = \
2007 $(BUILT_SOURCES) \
2008 $(DISKIO_GEN_SOURCE)
2009 tests_testEvent_LDADD = \
2010 http/libsquid-http.la \
2011 ident/libident.la \
2012 acl/libacls.la \
2013 acl/libstate.la \
2014 acl/libapi.la \
2015 base/libbase.la \
2016 libsquid.la \
2017 ip/libip.la \
2018 fs/libfs.la \
2019 anyp/libanyp.la \
2020 icmp/libicmp.la icmp/libicmp-core.la \
2021 comm/libcomm.la \
2022 log/liblog.la \
2023 format/libformat.la \
2024 $(REPL_OBJS) \
2025 $(ADAPTATION_LIBS) \
2026 $(ESI_LIBS) \
2027 $(SSL_LIBS) \
2028 $(top_builddir)/lib/libmisccontainers.la \
2029 $(top_builddir)/lib/libmiscencoding.la \
2030 $(top_builddir)/lib/libmiscutil.la \
2031 $(DISK_LIBS) \
2032 $(DISK_OS_LIBS) \
2033 ipc/libipc.la \
2034 mgr/libmgr.la \
2035 $(SNMP_LIBS) \
2036 $(REGEXLIB) \
2037 $(SQUID_CPPUNIT_LIBS) \
2038 $(SQUID_CPPUNIT_LA) \
2039 $(SSLLIB) \
2040 $(KRB5LIBS) \
2041 $(COMPAT_LIB) \
2042 $(XTRA_LIBS)
2043 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2044 tests_testEvent_DEPENDENCIES = \
2045 $(REPL_OBJS) \
2046 $(SQUID_CPPUNIT_LA)
2047
2048 ## Tests of the EventLoop module.
2049 tests_testEventLoop_SOURCES = \
2050 AccessLogEntry.cc \
2051 BodyPipe.cc \
2052 CacheDigest.h \
2053 tests/stub_CacheDigest.cc \
2054 cache_manager.cc \
2055 cache_cf.h \
2056 AuthReg.h \
2057 YesNoNone.h \
2058 YesNoNone.cc \
2059 RefreshPattern.h \
2060 cache_cf.cc \
2061 carp.h \
2062 tests/stub_carp.cc \
2063 cbdata.cc \
2064 ChunkedCodingParser.cc \
2065 client_db.h \
2066 client_db.cc \
2067 client_side.h \
2068 client_side.cc \
2069 client_side_reply.cc \
2070 client_side_request.cc \
2071 ClientInfo.h \
2072 clientStream.cc \
2073 ConfigOption.cc \
2074 ConfigParser.cc \
2075 CpuAffinityMap.cc \
2076 CpuAffinityMap.h \
2077 CpuAffinitySet.cc \
2078 CpuAffinitySet.h \
2079 debug.cc \
2080 $(DELAY_POOL_SOURCE) \
2081 $(DISKIO_SOURCE) \
2082 disk.h \
2083 disk.cc \
2084 dlink.h \
2085 dlink.cc \
2086 $(DNSSOURCE) \
2087 errorpage.cc \
2088 tests/stub_ETag.cc \
2089 EventLoop.h \
2090 EventLoop.cc \
2091 event.cc \
2092 external_acl.cc \
2093 ExternalACLEntry.cc \
2094 FadingCounter.cc \
2095 fatal.h \
2096 tests/stub_fatal.cc \
2097 fd.h \
2098 fd.cc \
2099 fde.cc \
2100 FileMap.h \
2101 filemap.cc \
2102 fqdncache.h \
2103 fqdncache.cc \
2104 ftp.h \
2105 ftp.cc \
2106 FwdState.cc \
2107 FwdState.h \
2108 gopher.h \
2109 gopher.cc \
2110 helper.cc \
2111 HelperChildConfig.h \
2112 HelperChildConfig.cc \
2113 HelperReply.cc \
2114 HelperReply.h \
2115 hier_code.h \
2116 $(HTCPSOURCE) \
2117 http.cc \
2118 HttpBody.h \
2119 HttpBody.cc \
2120 HttpHeader.h \
2121 HttpHeader.cc \
2122 HttpHeaderFieldInfo.h \
2123 HttpHeaderTools.h \
2124 HttpHeaderTools.cc \
2125 HttpHeaderFieldStat.h \
2126 HttpHdrCc.h \
2127 HttpHdrCc.cc \
2128 HttpHdrCc.cci \
2129 HttpHdrContRange.cc \
2130 HttpHdrRange.cc \
2131 HttpHdrSc.cc \
2132 HttpHdrScTarget.cc \
2133 HttpMsg.cc \
2134 HttpParser.cc \
2135 HttpParser.h \
2136 HttpReply.cc \
2137 RequestFlags.h \
2138 RequestFlags.cc \
2139 HttpRequest.cc \
2140 HttpRequestMethod.cc \
2141 icp_v2.cc \
2142 icp_v3.cc \
2143 $(IPC_SOURCE) \
2144 ipcache.cc \
2145 int.h \
2146 int.cc \
2147 internal.h \
2148 internal.cc \
2149 SquidList.h \
2150 SquidList.cc \
2151 MasterXaction.cc \
2152 MasterXaction.h \
2153 MemBuf.cc \
2154 MemObject.cc \
2155 Mem.h \
2156 tests/stub_mem.cc \
2157 mem_node.cc \
2158 mime.h \
2159 mime.cc \
2160 mime_header.h \
2161 mime_header.cc \
2162 multicast.h \
2163 multicast.cc \
2164 neighbors.h \
2165 neighbors.cc \
2166 Notes.cc \
2167 Notes.h \
2168 Packer.cc \
2169 Parsing.cc \
2170 pconn.cc \
2171 peer_digest.cc \
2172 peer_proxy_negotiate_auth.h \
2173 peer_proxy_negotiate_auth.cc \
2174 peer_select.cc \
2175 peer_sourcehash.h \
2176 peer_sourcehash.cc \
2177 peer_userhash.h \
2178 peer_userhash.cc \
2179 RemovalPolicy.cc \
2180 redirect.h \
2181 tests/stub_redirect.cc \
2182 refresh.h \
2183 refresh.cc \
2184 Server.cc \
2185 $(SBUF_SOURCE) \
2186 SBufDetailedStats.h \
2187 tests/stub_SBufDetailedStats.cc \
2188 $(SNMP_SOURCE) \
2189 SquidMath.h \
2190 SquidMath.cc \
2191 IoStats.h \
2192 stat.h \
2193 stat.cc \
2194 StatCounters.h \
2195 StatCounters.cc \
2196 StatHist.h \
2197 StatHist.cc \
2198 Mem.h \
2199 stmem.cc \
2200 repl_modules.h \
2201 store.cc \
2202 store_client.cc \
2203 store_digest.h \
2204 tests/stub_store_digest.cc \
2205 store_dir.cc \
2206 store_io.cc \
2207 store_key_md5.h \
2208 store_key_md5.cc \
2209 store_log.h \
2210 store_log.cc \
2211 store_rebuild.h \
2212 store_rebuild.cc \
2213 store_swapin.h \
2214 store_swapin.cc \
2215 store_swapmeta.cc \
2216 store_swapout.cc \
2217 StoreFileSystem.cc \
2218 StoreIOState.cc \
2219 tests/stub_StoreMeta.cc \
2220 StoreMetaUnpacker.cc \
2221 StoreSwapLogData.cc \
2222 String.cc \
2223 StrList.h \
2224 StrList.cc \
2225 tests/stub_SwapDir.cc \
2226 tests/testEventLoop.cc \
2227 tests/testEventLoop.h \
2228 tests/testMain.cc \
2229 tests/stub_main_cc.cc \
2230 tests/stub_ipc_Forwarder.cc \
2231 tests/stub_libauth_acls.cc \
2232 tests/stub_libauth.cc \
2233 tests/stub_libeui.cc \
2234 tests/stub_store_stats.cc \
2235 time.cc \
2236 tools.h \
2237 tools.cc \
2238 tests/stub_tunnel.cc \
2239 MemStore.cc \
2240 $(UNLINKDSOURCE) \
2241 url.cc \
2242 URLScheme.cc \
2243 urn.h \
2244 urn.cc \
2245 wccp2.h \
2246 tests/stub_wccp2.cc \
2247 whois.h \
2248 tests/stub_whois.cc \
2249 $(WIN32_SOURCE) \
2250 wordlist.h \
2251 wordlist.cc
2252 nodist_tests_testEventLoop_SOURCES = \
2253 $(BUILT_SOURCES) \
2254 $(DISKIO_GEN_SOURCE)
2255 tests_testEventLoop_LDADD = \
2256 http/libsquid-http.la \
2257 ident/libident.la \
2258 acl/libacls.la \
2259 acl/libstate.la \
2260 acl/libapi.la \
2261 base/libbase.la \
2262 libsquid.la \
2263 ip/libip.la \
2264 fs/libfs.la \
2265 anyp/libanyp.la \
2266 icmp/libicmp.la icmp/libicmp-core.la \
2267 comm/libcomm.la \
2268 log/liblog.la \
2269 format/libformat.la \
2270 $(REPL_OBJS) \
2271 $(ADAPTATION_LIBS) \
2272 $(ESI_LIBS) \
2273 $(SSL_LIBS) \
2274 $(top_builddir)/lib/libmisccontainers.la \
2275 $(top_builddir)/lib/libmiscencoding.la \
2276 $(top_builddir)/lib/libmiscutil.la \
2277 $(DISK_LIBS) \
2278 $(DISK_OS_LIBS) \
2279 ipc/libipc.la \
2280 mgr/libmgr.la \
2281 $(SNMP_LIBS) \
2282 $(REGEXLIB) \
2283 $(SQUID_CPPUNIT_LIBS) \
2284 $(SQUID_CPPUNIT_LA) \
2285 $(SSLLIB) \
2286 $(KRB5LIBS) \
2287 $(COMPAT_LIB) \
2288 $(XTRA_LIBS)
2289 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2290 tests_testEventLoop_DEPENDENCIES = \
2291 $(REPL_OBJS) \
2292 $(SQUID_CPPUNIT_LA)
2293
2294 tests_test_http_range_SOURCES = \
2295 AccessLogEntry.cc \
2296 BodyPipe.cc \
2297 cache_cf.h \
2298 AuthReg.h \
2299 YesNoNone.h \
2300 YesNoNone.cc \
2301 RefreshPattern.h \
2302 cache_cf.cc \
2303 cache_manager.cc \
2304 CacheDigest.h \
2305 tests/stub_CacheDigest.cc \
2306 carp.h \
2307 tests/stub_carp.cc \
2308 cbdata.cc \
2309 ChunkedCodingParser.cc \
2310 client_db.h \
2311 client_db.cc \
2312 client_side.h \
2313 client_side.cc \
2314 client_side_reply.cc \
2315 client_side_request.cc \
2316 ClientInfo.h \
2317 clientStream.cc \
2318 ConfigOption.cc \
2319 ConfigParser.cc \
2320 CpuAffinityMap.cc \
2321 CpuAffinityMap.h \
2322 CpuAffinitySet.cc \
2323 CpuAffinitySet.h \
2324 debug.cc \
2325 $(DELAY_POOL_SOURCE) \
2326 $(DISKIO_SOURCE) \
2327 disk.h \
2328 disk.cc \
2329 dlink.h \
2330 dlink.cc \
2331 $(DNSSOURCE) \
2332 errorpage.cc \
2333 tests/stub_ETag.cc \
2334 event.cc \
2335 FadingCounter.cc \
2336 fatal.h \
2337 tests/stub_libauth.cc \
2338 tests/stub_fatal.cc \
2339 fd.h \
2340 fd.cc \
2341 fde.cc \
2342 FileMap.h \
2343 filemap.cc \
2344 fqdncache.h \
2345 fqdncache.cc \
2346 ftp.h \
2347 ftp.cc \
2348 FwdState.cc \
2349 FwdState.h \
2350 gopher.h \
2351 gopher.cc \
2352 helper.cc \
2353 HelperChildConfig.h \
2354 HelperChildConfig.cc \
2355 HelperReply.cc \
2356 HelperReply.h \
2357 hier_code.h \
2358 $(HTCPSOURCE) \
2359 http.cc \
2360 HttpBody.h \
2361 HttpBody.cc \
2362 HttpHeaderFieldStat.h \
2363 HttpHdrCc.h \
2364 HttpHdrCc.cc \
2365 HttpHdrCc.cci \
2366 HttpHdrContRange.cc \
2367 HttpHdrRange.cc \
2368 HttpHdrSc.cc \
2369 HttpHdrScTarget.cc \
2370 HttpHeader.h \
2371 HttpHeader.cc \
2372 HttpHeaderFieldInfo.h \
2373 HttpHeaderTools.h \
2374 HttpHeaderTools.cc \
2375 HttpMsg.cc \
2376 HttpParser.cc \
2377 HttpParser.h \
2378 HttpReply.cc \
2379 RequestFlags.h \
2380 RequestFlags.cc \
2381 HttpRequest.cc \
2382 HttpRequestMethod.cc \
2383 icp_v2.cc \
2384 icp_v3.cc \
2385 int.h \
2386 int.cc \
2387 internal.h \
2388 internal.cc \
2389 $(IPC_SOURCE) \
2390 ipcache.cc \
2391 SquidList.h \
2392 SquidList.cc \
2393 MasterXaction.cc \
2394 MasterXaction.h \
2395 MemBuf.cc \
2396 MemObject.cc \
2397 Mem.h \
2398 tests/stub_mem.cc \
2399 mem_node.cc \
2400 mime.h \
2401 mime.cc \
2402 mime_header.h \
2403 mime_header.cc \
2404 multicast.h \
2405 multicast.cc \
2406 neighbors.h \
2407 neighbors.cc \
2408 Notes.cc \
2409 Notes.h \
2410 Packer.cc \
2411 Parsing.cc \
2412 peer_digest.cc \
2413 peer_proxy_negotiate_auth.h \
2414 peer_proxy_negotiate_auth.cc \
2415 peer_select.cc \
2416 peer_sourcehash.h \
2417 peer_sourcehash.cc \
2418 peer_userhash.h \
2419 peer_userhash.cc \
2420 pconn.cc \
2421 redirect.h \
2422 tests/stub_redirect.cc \
2423 refresh.h \
2424 refresh.cc \
2425 RemovalPolicy.cc \
2426 Server.cc \
2427 $(SBUF_SOURCE) \
2428 SBufDetailedStats.h \
2429 tests/stub_SBufDetailedStats.cc \
2430 $(SNMP_SOURCE) \
2431 SquidMath.h \
2432 SquidMath.cc \
2433 IoStats.h \
2434 stat.h \
2435 stat.cc \
2436 StatCounters.h \
2437 StatCounters.cc \
2438 StatHist.h \
2439 StatHist.cc \
2440 stmem.cc \
2441 repl_modules.h \
2442 store.cc \
2443 store_client.cc \
2444 store_digest.h \
2445 tests/stub_store_digest.cc \
2446 store_dir.cc \
2447 store_key_md5.h \
2448 store_key_md5.cc \
2449 store_io.cc \
2450 store_log.h \
2451 store_log.cc \
2452 store_rebuild.h \
2453 store_rebuild.cc \
2454 store_swapin.h \
2455 store_swapin.cc \
2456 store_swapmeta.cc \
2457 store_swapout.cc \
2458 StoreFileSystem.cc \
2459 StoreIOState.cc \
2460 tests/stub_StoreMeta.cc \
2461 StoreMetaUnpacker.cc \
2462 StoreSwapLogData.cc \
2463 String.cc \
2464 StrList.h \
2465 StrList.cc \
2466 tests/stub_SwapDir.cc \
2467 tests/test_http_range.cc \
2468 tests/stub_external_acl.cc \
2469 tests/stub_ipc_Forwarder.cc \
2470 tests/stub_libeui.cc \
2471 tests/stub_main_cc.cc \
2472 tests/stub_MemStore.cc \
2473 tests/stub_store_stats.cc \
2474 tests/stub_EventLoop.cc \
2475 time.cc \
2476 tools.h \
2477 tools.cc \
2478 tests/stub_tunnel.cc \
2479 $(UNLINKDSOURCE) \
2480 url.cc \
2481 URLScheme.cc \
2482 urn.h \
2483 urn.cc \
2484 wccp2.h \
2485 tests/stub_wccp2.cc \
2486 whois.h \
2487 tests/stub_whois.cc \
2488 $(WIN32_SOURCE) \
2489 wordlist.h \
2490 wordlist.cc
2491 nodist_tests_test_http_range_SOURCES = \
2492 $(BUILT_SOURCES) \
2493 $(DISKIO_GEN_SOURCE)
2494 tests_test_http_range_LDADD = \
2495 http/libsquid-http.la \
2496 ident/libident.la \
2497 acl/libacls.la \
2498 acl/libstate.la \
2499 acl/libapi.la \
2500 libsquid.la \
2501 ip/libip.la \
2502 fs/libfs.la \
2503 anyp/libanyp.la \
2504 icmp/libicmp.la icmp/libicmp-core.la \
2505 comm/libcomm.la \
2506 log/liblog.la \
2507 format/libformat.la \
2508 $(REPL_OBJS) \
2509 $(DISK_LIBS) \
2510 $(DISK_OS_LIBS) \
2511 $(ADAPTATION_LIBS) \
2512 $(ESI_LIBS) \
2513 $(SSL_LIBS) \
2514 ipc/libipc.la \
2515 base/libbase.la \
2516 mgr/libmgr.la \
2517 $(SNMP_LIBS) \
2518 $(top_builddir)/lib/libmisccontainers.la \
2519 $(top_builddir)/lib/libmiscencoding.la \
2520 $(top_builddir)/lib/libmiscutil.la \
2521 $(REGEXLIB) \
2522 $(SQUID_CPPUNIT_LIBS) \
2523 $(SQUID_CPPUNIT_LA) \
2524 $(SSLLIB) \
2525 $(KRB5LIBS) \
2526 $(COMPAT_LIB) \
2527 $(XTRA_LIBS)
2528 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2529 tests_test_http_range_DEPENDENCIES = \
2530 $(SQUID_CPPUNIT_LA)
2531
2532 tests_testHttpParser_SOURCES = \
2533 Debug.h \
2534 HttpParser.cc \
2535 HttpParser.h \
2536 MemBuf.cc \
2537 MemBuf.h \
2538 Mem.h \
2539 tests/stub_mem.cc \
2540 String.cc \
2541 cache_cf.h \
2542 YesNoNone.h \
2543 $(SBUF_SOURCE) \
2544 tests/stub_SBufDetailedStats.cc \
2545 tests/stub_cache_cf.cc \
2546 tests/stub_cache_manager.cc \
2547 tests/stub_debug.cc \
2548 tests/stub_event.cc \
2549 tests/stub_HelperChildConfig.cc \
2550 tools.h \
2551 tests/stub_tools.cc \
2552 tests/testHttpParser.cc \
2553 tests/testHttpParser.h \
2554 tests/testMain.cc \
2555 tests/stub_time.cc \
2556 wordlist.h \
2557 wordlist.cc
2558 nodist_tests_testHttpParser_SOURCES = \
2559 $(TESTSOURCES)
2560 tests_testHttpParser_LDADD= \
2561 http/libsquid-http.la \
2562 SquidConfig.o \
2563 base/libbase.la \
2564 ip/libip.la \
2565 $(top_builddir)/lib/libmiscutil.la \
2566 $(SQUID_CPPUNIT_LIBS) \
2567 $(COMPAT_LIB) \
2568 $(XTRA_LIBS)
2569 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2570 tests_testHttpParser_DEPENDENCIES = \
2571 $(SQUID_CPPUNIT_LA)
2572
2573 ## Tests of the HttpRequest module.
2574 tests_testHttpRequest_SOURCES = \
2575 AccessLogEntry.cc \
2576 HttpParser.cc \
2577 HttpParser.h \
2578 RequestFlags.h \
2579 RequestFlags.cc \
2580 HttpRequest.cc \
2581 HttpRequestMethod.cc \
2582 Mem.h \
2583 tests/stub_mem.cc \
2584 String.cc \
2585 tests/testHttpRequest.h \
2586 tests/testHttpRequest.cc \
2587 tests/testHttpRequestMethod.h \
2588 tests/testHttpRequestMethod.cc \
2589 tests/testMain.cc \
2590 tests/stub_DiskIOModule.cc \
2591 tests/stub_libauth.cc \
2592 tests/stub_main_cc.cc \
2593 tests/stub_ipc_Forwarder.cc \
2594 tests/stub_libeui.cc \
2595 tests/stub_store_stats.cc \
2596 tests/stub_EventLoop.cc \
2597 time.cc \
2598 BodyPipe.cc \
2599 cache_manager.cc \
2600 cache_cf.h \
2601 AuthReg.h \
2602 YesNoNone.h \
2603 YesNoNone.cc \
2604 RefreshPattern.h \
2605 cache_cf.cc \
2606 debug.cc \
2607 CacheDigest.h \
2608 tests/stub_CacheDigest.cc \
2609 carp.h \
2610 tests/stub_carp.cc \
2611 cbdata.cc \
2612 ChunkedCodingParser.cc \
2613 client_db.h \
2614 client_db.cc \
2615 client_side.h \
2616 client_side.cc \
2617 client_side_reply.cc \
2618 client_side_request.cc \
2619 ClientInfo.h \
2620 clientStream.cc \
2621 ConfigOption.cc \
2622 ConfigParser.cc \
2623 CpuAffinityMap.cc \
2624 CpuAffinityMap.h \
2625 CpuAffinitySet.cc \
2626 CpuAffinitySet.h \
2627 $(DELAY_POOL_SOURCE) \
2628 disk.h \
2629 disk.cc \
2630 dlink.h \
2631 dlink.cc \
2632 $(DNSSOURCE) \
2633 errorpage.cc \
2634 tests/stub_ETag.cc \
2635 external_acl.cc \
2636 ExternalACLEntry.cc \
2637 fatal.h \
2638 tests/stub_fatal.cc \
2639 fd.h \
2640 fd.cc \
2641 fde.cc \
2642 fqdncache.h \
2643 fqdncache.cc \
2644 ftp.h \
2645 ftp.cc \
2646 FwdState.cc \
2647 FwdState.h \
2648 gopher.h \
2649 gopher.cc \
2650 helper.cc \
2651 HelperChildConfig.h \
2652 HelperChildConfig.cc \
2653 HelperReply.cc \
2654 HelperReply.h \
2655 hier_code.h \
2656 $(HTCPSOURCE) \
2657 http.cc \
2658 HttpBody.h \
2659 HttpBody.cc \
2660 HttpHeader.h \
2661 HttpHeader.cc \
2662 HttpHeaderFieldInfo.h \
2663 HttpHeaderTools.h \
2664 HttpHeaderTools.cc \
2665 HttpHeaderFieldStat.h \
2666 HttpHdrCc.h \
2667 HttpHdrCc.cc \
2668 HttpHdrCc.cci \
2669 HttpHdrContRange.cc \
2670 HttpHdrRange.cc \
2671 HttpHdrSc.cc \
2672 HttpHdrScTarget.cc \
2673 HttpMsg.cc \
2674 HttpReply.cc \
2675 icp_v2.cc \
2676 icp_v3.cc \
2677 $(IPC_SOURCE) \
2678 ipcache.cc \
2679 int.h \
2680 int.cc \
2681 internal.h \
2682 internal.cc \
2683 SquidList.h \
2684 SquidList.cc \
2685 MasterXaction.cc \
2686 MasterXaction.h \
2687 multicast.h \
2688 multicast.cc \
2689 mem_node.cc \
2690 MemBuf.cc \
2691 MemObject.cc \
2692 mime.h \
2693 mime.cc \
2694 mime_header.h \
2695 mime_header.cc \
2696 neighbors.h \
2697 neighbors.cc \
2698 Notes.cc \
2699 Notes.h \
2700 Packer.cc \
2701 Parsing.cc \
2702 pconn.cc \
2703 peer_digest.cc \
2704 peer_proxy_negotiate_auth.h \
2705 peer_proxy_negotiate_auth.cc \
2706 peer_select.cc \
2707 peer_sourcehash.h \
2708 peer_sourcehash.cc \
2709 peer_userhash.h \
2710 peer_userhash.cc \
2711 redirect.h \
2712 tests/stub_libauth_acls.cc \
2713 tests/stub_redirect.cc \
2714 refresh.h \
2715 refresh.cc \
2716 RemovalPolicy.cc \
2717 Server.cc \
2718 $(SBUF_SOURCE) \
2719 SBufDetailedStats.h \
2720 tests/stub_SBufDetailedStats.cc \
2721 $(SNMP_SOURCE) \
2722 SquidMath.h \
2723 SquidMath.cc \
2724 IoStats.h \
2725 stat.h \
2726 stat.cc \
2727 StatCounters.h \
2728 StatCounters.cc \
2729 StatHist.h \
2730 StatHist.cc \
2731 stmem.cc \
2732 repl_modules.h \
2733 store.cc \
2734 store_client.cc \
2735 store_digest.h \
2736 tests/stub_store_digest.cc \
2737 store_dir.cc \
2738 store_io.cc \
2739 store_key_md5.h \
2740 store_key_md5.cc \
2741 store_log.h \
2742 store_log.cc \
2743 store_rebuild.h \
2744 store_rebuild.cc \
2745 store_swapin.h \
2746 store_swapin.cc \
2747 store_swapmeta.cc \
2748 store_swapout.cc \
2749 StoreFileSystem.cc \
2750 StoreIOState.cc \
2751 tests/stub_StoreMeta.cc \
2752 StoreMetaUnpacker.cc \
2753 StoreSwapLogData.cc \
2754 StrList.h \
2755 StrList.cc \
2756 event.cc \
2757 tools.h \
2758 tools.cc \
2759 tests/stub_tunnel.cc \
2760 tests/stub_SwapDir.cc \
2761 MemStore.cc \
2762 url.cc \
2763 URLScheme.cc \
2764 urn.h \
2765 urn.cc \
2766 wccp2.h \
2767 tests/stub_wccp2.cc \
2768 whois.h \
2769 tests/stub_whois.cc \
2770 FadingCounter.cc \
2771 $(WIN32_SOURCE) \
2772 wordlist.h \
2773 wordlist.cc
2774 nodist_tests_testHttpRequest_SOURCES = \
2775 $(BUILT_SOURCES)
2776 tests_testHttpRequest_LDADD = \
2777 ident/libident.la \
2778 acl/libacls.la \
2779 acl/libstate.la \
2780 acl/libapi.la \
2781 libsquid.la \
2782 ip/libip.la \
2783 fs/libfs.la \
2784 ipc/libipc.la \
2785 base/libbase.la \
2786 mgr/libmgr.la \
2787 anyp/libanyp.la \
2788 $(SNMP_LIBS) \
2789 icmp/libicmp.la icmp/libicmp-core.la \
2790 comm/libcomm.la \
2791 log/liblog.la \
2792 format/libformat.la \
2793 http/libsquid-http.la \
2794 $(REPL_OBJS) \
2795 $(ADAPTATION_LIBS) \
2796 $(ESI_LIBS) \
2797 $(SSL_LIBS) \
2798 $(top_builddir)/lib/libmisccontainers.la \
2799 $(top_builddir)/lib/libmiscencoding.la \
2800 $(top_builddir)/lib/libmiscutil.la \
2801 $(DISK_OS_LIBS) \
2802 $(REGEXLIB) \
2803 $(SQUID_CPPUNIT_LIBS) \
2804 $(SQUID_CPPUNIT_LA) \
2805 $(SSLLIB) \
2806 $(KRB5LIBS) \
2807 $(COMPAT_LIB) \
2808 $(XTRA_LIBS)
2809 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2810 tests_testHttpRequest_DEPENDENCIES = \
2811 $(REPL_OBJS) \
2812 $(SQUID_CPPUNIT_LA)
2813
2814 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2815 ## first line - what we are testing.
2816 tests_testStore_SOURCES= \
2817 CacheDigest.h \
2818 tests/stub_CacheDigest.cc \
2819 cbdata.cc \
2820 ClientInfo.h \
2821 ConfigOption.cc \
2822 ConfigParser.cc \
2823 $(DELAY_POOL_SOURCE) \
2824 disk.h \
2825 disk.cc \
2826 DiskIO/ReadRequest.cc \
2827 DiskIO/WriteRequest.cc \
2828 ETag.cc \
2829 event.cc \
2830 EventLoop.cc \
2831 fatal.h \
2832 tests/stub_fatal.cc \
2833 FileMap.h \
2834 filemap.cc \
2835 HttpHeaderFieldStat.h \
2836 HttpHdrCc.h \
2837 HttpHdrCc.cc \
2838 HttpHdrCc.cci \
2839 HttpHdrContRange.cc \
2840 HttpHdrRange.cc \
2841 HttpHdrSc.cc \
2842 HttpHdrScTarget.cc \
2843 HttpHeaderFieldInfo.h \
2844 HttpHeaderTools.h \
2845 HttpHeaderTools.cc \
2846 HttpHeader.h \
2847 HttpHeader.cc \
2848 HttpMsg.cc \
2849 HttpRequestMethod.cc \
2850 RequestFlags.cc \
2851 RequestFlags.h \
2852 int.h \
2853 int.cc \
2854 SquidList.h \
2855 SquidList.cc \
2856 MasterXaction.cc \
2857 MasterXaction.h \
2858 Mem.h \
2859 tests/stub_mem.cc \
2860 mem_node.cc \
2861 MemBuf.cc \
2862 MemObject.cc \
2863 Notes.h \
2864 Notes.cc \
2865 Packer.cc \
2866 Parsing.cc \
2867 RemovalPolicy.cc \
2868 refresh.h \
2869 refresh.cc \
2870 StatCounters.h \
2871 StatCounters.cc \
2872 StatHist.h \
2873 StatHist.cc \
2874 stmem.cc \
2875 repl_modules.h \
2876 store.cc \
2877 store_dir.cc \
2878 store_io.cc \
2879 store_swapout.cc \
2880 StoreIOState.cc \
2881 tests/stub_StoreMeta.cc \
2882 StoreMetaUnpacker.cc \
2883 StoreSwapLogData.cc \
2884 store_key_md5.h \
2885 store_key_md5.cc \
2886 $(SBUF_SOURCE) \
2887 SBufDetailedStats.h \
2888 tests/stub_SBufDetailedStats.cc \
2889 String.cc \
2890 StrList.h \
2891 StrList.cc \
2892 SwapDir.cc \
2893 tests/CapturingStoreEntry.h \
2894 log/access_log.h \
2895 tests/stub_access_log.cc \
2896 tests/stub_acl.cc \
2897 cache_cf.h \
2898 YesNoNone.h \
2899 tests/stub_cache_cf.cc \
2900 tests/stub_cache_manager.cc \
2901 tests/stub_client_side_request.cc \
2902 tests/stub_comm.cc \
2903 tests/stub_debug.cc \
2904 tests/stub_DiskIOModule.cc \
2905 tests/stub_errorpage.cc \
2906 fd.h \
2907 fde.h \
2908 tests/stub_fd.cc \
2909 tests/stub_helper.cc \
2910 tests/stub_HelperChildConfig.cc \
2911 tests/stub_http.cc \
2912 tests/stub_libauth.cc \
2913 tests/stub_libeui.cc \
2914 tests/stub_libformat.cc \
2915 HttpBody.h \
2916 HttpBody.cc \
2917 tests/stub_HttpReply.cc \
2918 tests/stub_HttpRequest.cc \
2919 tests/stub_libcomm.cc \
2920 tests/stub_MemStore.cc \
2921 mime.h \
2922 tests/stub_mime.cc \
2923 tests/stub_Port.cc \
2924 tests/stub_store_client.cc \
2925 tests/stub_store_stats.cc \
2926 store_rebuild.h \
2927 tests/stub_store_rebuild.cc \
2928 tests/stub_store_swapout.cc \
2929 tools.h \
2930 tests/stub_tools.cc \
2931 tests/stub_UdsOp.cc \
2932 tests/testMain.cc \
2933 tests/testStore.cc \
2934 tests/testStore.h \
2935 tests/testStoreEntryStream.cc \
2936 tests/testStoreEntryStream.h \
2937 tests/testStoreController.cc \
2938 tests/testStoreController.h \
2939 tests/testStoreHashIndex.cc \
2940 tests/testStoreHashIndex.h \
2941 tests/testStoreSupport.cc \
2942 tests/testStoreSupport.h \
2943 tests/TestSwapDir.cc \
2944 tests/TestSwapDir.h \
2945 tests/stub_time.cc \
2946 url.cc \
2947 URLScheme.cc \
2948 wordlist.h \
2949 wordlist.cc
2950
2951 nodist_tests_testStore_SOURCES= \
2952 $(TESTSOURCES) \
2953 SquidMath.cc \
2954 SquidMath.h \
2955 swap_log_op.cc
2956
2957 tests_testStore_LDADD= \
2958 http/libsquid-http.la \
2959 ident/libident.la \
2960 acl/libacls.la \
2961 acl/libstate.la \
2962 acl/libapi.la \
2963 base/libbase.la \
2964 libsquid.la \
2965 ip/libip.la \
2966 fs/libfs.la \
2967 mgr/libmgr.la \
2968 ipc/libipc.la \
2969 anyp/libanyp.la \
2970 $(SSL_LIBS) \
2971 $(top_builddir)/lib/libmisccontainers.la \
2972 $(top_builddir)/lib/libmiscencoding.la \
2973 $(top_builddir)/lib/libmiscutil.la \
2974 $(REGEXLIB) \
2975 $(SQUID_CPPUNIT_LIBS) \
2976 $(SSLLIB) \
2977 CommCalls.o \
2978 DnsLookupDetails.o \
2979 $(COMPAT_LIB) \
2980 $(XTRA_LIBS)
2981 tests_testStore_LDFLAGS = $(LIBADD_DL)
2982 tests_testStore_DEPENDENCIES = \
2983 $(SQUID_CPPUNIT_LA)
2984
2985 ## string needs mem.cc.
2986 ## mem.cc needs ClientInfo.h
2987 ## libsquid pulls in SquidConfig and children. stub them.
2988 tests_testString_SOURCES = \
2989 ClientInfo.h \
2990 Mem.h \
2991 tests/stub_mem.cc \
2992 MemBuf.cc \
2993 String.cc \
2994 $(SBUF_SOURCE) \
2995 SBufDetailedStats.h \
2996 tests/stub_SBufDetailedStats.cc \
2997 tests/testMain.cc \
2998 tests/testString.cc \
2999 tests/testString.h \
3000 cache_cf.h \
3001 YesNoNone.h \
3002 tests/stub_cache_cf.cc \
3003 tests/stub_cache_manager.cc \
3004 tests/stub_debug.cc \
3005 tests/stub_HelperChildConfig.cc \
3006 tools.h \
3007 tests/stub_tools.cc \
3008 tests/stub_time.cc \
3009 wordlist.h \
3010 wordlist.cc
3011 nodist_tests_testString_SOURCES = \
3012 $(TESTSOURCES)
3013 tests_testString_LDADD = \
3014 base/libbase.la \
3015 libsquid.la \
3016 ip/libip.la \
3017 $(top_builddir)/lib/libmiscutil.la \
3018 $(REGEXLIB) \
3019 $(SQUID_CPPUNIT_LIBS) \
3020 $(SSLLIB) \
3021 $(COMPAT_LIB) \
3022 $(XTRA_LIBS)
3023 tests_testString_LDFLAGS = $(LIBADD_DL)
3024 tests_testString_DEPENDENCIES = \
3025 $(SQUID_CPPUNIT_LA)
3026
3027 SWAP_TEST_DS =\
3028 repl_modules.o \
3029 $(DISK_LIBS) \
3030 ident/libident.la \
3031 acl/libacls.la \
3032 acl/libstate.la \
3033 acl/libapi.la \
3034 base/libbase.la \
3035 libsquid.la \
3036 ip/libip.la \
3037 fs/libfs.la \
3038 ipc/libipc.la \
3039 mgr/libmgr.la \
3040 $(REPL_OBJS) \
3041 $(SQUID_CPPUNIT_LA)
3042
3043 tests_testUfs_SOURCES = \
3044 tests/testUfs.cc \
3045 tests/testMain.cc \
3046 tests/testUfs.h \
3047 tests/stub_cache_manager.cc \
3048 tests/stub_client_db.cc \
3049 tests/stub_HelperChildConfig.cc \
3050 tests/stub_icp.cc \
3051 tests/stub_ipc.cc \
3052 tests/stub_ipcache.cc \
3053 tests/stub_libeui.cc \
3054 tests/stub_libicmp.cc \
3055 tests/stub_MemStore.cc \
3056 tests/stub_pconn.cc \
3057 tests/stub_Port.cc \
3058 tests/stub_UdsOp.cc \
3059 internal.h \
3060 tests/stub_internal.cc \
3061 tests/stub_libformat.cc \
3062 store_rebuild.h \
3063 tests/stub_store_rebuild.cc \
3064 tests/stub_store_stats.cc \
3065 fatal.h \
3066 tests/stub_fatal.cc \
3067 fd.h \
3068 fd.cc \
3069 fde.h \
3070 fde.cc \
3071 client_db.h \
3072 disk.h \
3073 disk.cc \
3074 FileMap.h \
3075 filemap.cc \
3076 HttpBody.h \
3077 HttpBody.cc \
3078 HttpReply.cc \
3079 int.h \
3080 int.cc \
3081 RequestFlags.h \
3082 RequestFlags.cc \
3083 SquidList.h \
3084 SquidList.cc \
3085 MasterXaction.cc \
3086 MasterXaction.h \
3087 MemObject.cc \
3088 Notes.h \
3089 Notes.cc \
3090 StoreSwapLogData.cc \
3091 StoreIOState.cc \
3092 StoreMetaUnpacker.cc \
3093 $(STOREMETA_SOURCE) \
3094 StoreFileSystem.cc \
3095 store_io.cc \
3096 store_swapout.cc \
3097 store_swapmeta.cc \
3098 $(UNLINKDSOURCE) \
3099 $(WIN32_SOURCE) \
3100 event.cc \
3101 $(DELAY_POOL_SOURCE) \
3102 CacheDigest.h \
3103 tests/stub_CacheDigest.cc \
3104 ConfigParser.cc \
3105 EventLoop.cc \
3106 HttpMsg.cc \
3107 RemovalPolicy.cc \
3108 store_dir.cc \
3109 repl_modules.h \
3110 store.cc \
3111 HttpRequestMethod.cc \
3112 store_key_md5.h \
3113 store_key_md5.cc \
3114 Parsing.cc \
3115 ConfigOption.cc \
3116 SwapDir.cc \
3117 tests/stub_acl.cc \
3118 cache_cf.h \
3119 YesNoNone.h \
3120 tests/stub_cache_cf.cc \
3121 tests/stub_helper.cc \
3122 cbdata.cc \
3123 $(SBUF_SOURCE) \
3124 SBufDetailedStats.h \
3125 tests/stub_SBufDetailedStats.cc \
3126 String.cc \
3127 tests/stub_debug.cc \
3128 tests/stub_client_side_request.cc \
3129 tests/stub_http.cc \
3130 tests/stub_libauth.cc \
3131 mem_node.cc \
3132 stmem.cc \
3133 mime.h \
3134 tests/stub_mime.cc \
3135 HttpHeaderFieldInfo.h \
3136 HttpHeaderTools.h \
3137 HttpHeaderTools.cc \
3138 HttpHeader.h \
3139 HttpHeader.cc \
3140 Mem.h \
3141 mem.cc \
3142 ClientInfo.h \
3143 MemBuf.cc \
3144 HttpHdrContRange.cc \
3145 Packer.cc \
3146 HttpHeaderFieldStat.h \
3147 HttpHdrCc.h \
3148 HttpHdrCc.cc \
3149 HttpHdrCc.cci \
3150 HttpHdrSc.cc \
3151 HttpHdrScTarget.cc \
3152 url.cc \
3153 StatCounters.h \
3154 StatCounters.cc \
3155 StatHist.h \
3156 StatHist.cc \
3157 StrList.h \
3158 StrList.cc \
3159 HttpHdrRange.cc \
3160 ETag.cc \
3161 tests/stub_errorpage.cc \
3162 tests/stub_HttpRequest.cc \
3163 log/access_log.h \
3164 tests/stub_access_log.cc \
3165 refresh.h \
3166 refresh.cc \
3167 tests/stub_store_client.cc \
3168 tools.h \
3169 tests/stub_tools.cc \
3170 tests/testStoreSupport.cc \
3171 tests/testStoreSupport.h \
3172 time.cc \
3173 URLScheme.cc \
3174 wordlist.h \
3175 wordlist.cc \
3176 $(DISKIO_SOURCE)
3177
3178 nodist_tests_testUfs_SOURCES = \
3179 $(TESTSOURCES) \
3180 $(DISKIO_GEN_SOURCE) \
3181 SquidMath.cc \
3182 SquidMath.h \
3183 swap_log_op.cc
3184 tests_testUfs_LDADD = \
3185 http/libsquid-http.la \
3186 CommCalls.o \
3187 DnsLookupDetails.o \
3188 ident/libident.la \
3189 acl/libacls.la \
3190 acl/libstate.la \
3191 acl/libapi.la \
3192 libsquid.la \
3193 ip/libip.la \
3194 fs/libfs.la \
3195 mgr/libmgr.la \
3196 $(REPL_OBJS) \
3197 acl/libacls.la \
3198 $(DISK_LIBS) \
3199 $(DISK_OS_LIBS) \
3200 acl/libapi.la \
3201 ipc/libipc.la \
3202 $(SSL_LIBS) \
3203 comm/libcomm.la \
3204 anyp/libanyp.la \
3205 base/libbase.la \
3206 ip/libip.la \
3207 $(top_builddir)/lib/libmisccontainers.la \
3208 $(top_builddir)/lib/libmiscencoding.la \
3209 $(top_builddir)/lib/libmiscutil.la \
3210 $(REGEXLIB) \
3211 $(SQUID_CPPUNIT_LIBS) \
3212 $(SSLLIB) \
3213 $(COMPAT_LIB) \
3214 $(XTRA_LIBS)
3215 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3216 tests_testUfs_DEPENDENCIES = \
3217 $(SWAP_TEST_DS)
3218
3219 check_PROGRAMS += testRefCount
3220 testRefCount_SOURCES= \
3221 base/Lock.h \
3222 base/RefCount.h \
3223 tests/stub_cbdata.cc \
3224 tests/stub_debug.cc \
3225 tests/stub_MemBuf.cc \
3226 tests/testRefCount.cc
3227 testRefCount_LDADD = \
3228 base/libbase.la \
3229 $(top_builddir)/lib/libmiscutil.la \
3230 $(COMPAT_LIB) \
3231 $(XTRA_LIBS)
3232
3233 tests_testRock_SOURCES = \
3234 cbdata.cc \
3235 CacheDigest.h \
3236 tests/stub_CacheDigest.cc \
3237 ConfigOption.cc \
3238 ConfigParser.cc \
3239 disk.h \
3240 disk.cc \
3241 ETag.cc \
3242 EventLoop.cc \
3243 event.cc \
3244 fatal.h \
3245 tests/stub_fatal.cc \
3246 fd.h \
3247 fd.cc \
3248 fde.h \
3249 fde.cc \
3250 FileMap.h \
3251 filemap.cc \
3252 HttpHeaderFieldStat.h \
3253 HttpBody.h \
3254 HttpBody.cc \
3255 HttpHdrCc.cc \
3256 HttpHdrContRange.cc \
3257 HttpHdrRange.cc \
3258 HttpHdrSc.cc \
3259 HttpHdrScTarget.cc \
3260 HttpHeader.h \
3261 HttpHeader.cc \
3262 HttpHeaderFieldInfo.h \
3263 HttpHeaderTools.h \
3264 HttpHeaderTools.cc \
3265 HttpMsg.cc \
3266 HttpReply.cc \
3267 HttpRequestMethod.cc \
3268 int.h \
3269 int.cc \
3270 SquidList.h \
3271 SquidList.cc \
3272 MasterXaction.cc \
3273 MasterXaction.h \
3274 Mem.h \
3275 mem.cc \
3276 MemBuf.cc \
3277 MemObject.cc \
3278 mem_node.cc \
3279 Notes.h \
3280 Notes.cc \
3281 Packer.cc \
3282 Parsing.cc \
3283 RemovalPolicy.cc \
3284 RequestFlags.cc \
3285 RequestFlags.h \
3286 StatCounters.h \
3287 StatCounters.cc \
3288 StatHist.h \
3289 tests/stub_StatHist.cc \
3290 stmem.cc \
3291 repl_modules.h \
3292 store.cc \
3293 StoreFileSystem.cc \
3294 StoreIOState.cc \
3295 StoreMetaUnpacker.cc \
3296 $(STOREMETA_SOURCE) \
3297 StoreSwapLogData.cc \
3298 store_dir.cc \
3299 store_io.cc \
3300 store_key_md5.h \
3301 store_key_md5.cc \
3302 store_swapmeta.cc \
3303 store_swapout.cc \
3304 $(SBUF_SOURCE) \
3305 SBufDetailedStats.h \
3306 tests/stub_SBufDetailedStats.cc \
3307 String.cc \
3308 StrList.h \
3309 StrList.cc \
3310 SwapDir.cc \
3311 tests/testRock.cc \
3312 tests/testMain.cc \
3313 tests/testRock.h \
3314 tests/testStoreSupport.cc \
3315 tests/testStoreSupport.h \
3316 log/access_log.h \
3317 tests/stub_access_log.cc \
3318 cache_cf.h \
3319 YesNoNone.h \
3320 tests/stub_cache_cf.cc \
3321 client_db.h \
3322 tests/stub_cache_manager.cc \
3323 tests/stub_client_db.cc \
3324 tests/stub_client_side_request.cc \
3325 tests/stub_debug.cc \
3326 tests/stub_errorpage.cc \
3327 tests/stub_HelperChildConfig.cc \
3328 tests/stub_http.cc \
3329 tests/stub_HttpRequest.cc \
3330 tests/stub_libauth.cc \
3331 tests/stub_icp.cc \
3332 tests/stub_ipc.cc \
3333 tests/stub_ipcache.cc \
3334 tests/stub_libeui.cc \
3335 tests/stub_libformat.cc \
3336 tests/stub_libicmp.cc \
3337 tests/stub_libmgr.cc \
3338 tests/stub_MemStore.cc \
3339 mime.h \
3340 tests/stub_mime.cc \
3341 tests/stub_Port.cc \
3342 tests/stub_pconn.cc \
3343 tests/stub_store_client.cc \
3344 store_rebuild.h \
3345 tests/stub_store_rebuild.cc \
3346 tests/stub_store_stats.cc \
3347 tools.h \
3348 tests/stub_tools.cc \
3349 time.cc \
3350 url.cc \
3351 URLScheme.cc \
3352 wordlist.h \
3353 wordlist.cc \
3354 $(DELAY_POOL_SOURCE) \
3355 $(DISKIO_SOURCE) \
3356 $(UNLINKDSOURCE)
3357 nodist_tests_testRock_SOURCES = \
3358 $(DISKIO_GEN_SOURCE) \
3359 swap_log_op.cc \
3360 SquidMath.cc \
3361 SquidMath.h \
3362 $(TESTSOURCES)
3363 tests_testRock_LDADD = \
3364 http/libsquid-http.la \
3365 libsquid.la \
3366 comm/libcomm.la \
3367 anyp/libanyp.la \
3368 ip/libip.la \
3369 fs/libfs.la \
3370 $(COMMON_LIBS) \
3371 $(REPL_OBJS) \
3372 $(DISK_LIBS) \
3373 $(DISK_OS_LIBS) \
3374 acl/libacls.la \
3375 acl/libapi.la \
3376 acl/libstate.la \
3377 ipc/libipc.la \
3378 base/libbase.la \
3379 $(SSL_LIBS) \
3380 $(top_builddir)/lib/libmisccontainers.la \
3381 $(top_builddir)/lib/libmiscencoding.la \
3382 $(top_builddir)/lib/libmiscutil.la \
3383 $(REGEXLIB) \
3384 $(SQUID_CPPUNIT_LIBS) \
3385 $(SSLLIB) \
3386 $(COMPAT_LIB) \
3387 $(XTRA_LIBS)
3388 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3389 tests_testRock_DEPENDENCIES = \
3390 $(SWAP_TEST_DS)
3391
3392 ## Tests of the URL module.
3393 ## TODO: Trim this down once the insanity is over.
3394 tests_testURL_SOURCES = \
3395 AccessLogEntry.cc \
3396 BodyPipe.cc \
3397 cache_cf.h \
3398 AuthReg.h \
3399 YesNoNone.h \
3400 YesNoNone.cc \
3401 RefreshPattern.h \
3402 cache_cf.cc \
3403 tests/stub_cache_manager.cc \
3404 CacheDigest.h \
3405 tests/stub_CacheDigest.cc \
3406 carp.h \
3407 tests/stub_carp.cc \
3408 cbdata.cc \
3409 ChunkedCodingParser.cc \
3410 client_db.h \
3411 client_db.cc \
3412 client_side.h \
3413 client_side.cc \
3414 client_side_reply.cc \
3415 client_side_request.cc \
3416 ClientInfo.h \
3417 clientStream.cc \
3418 ConfigOption.cc \
3419 ConfigParser.cc \
3420 CpuAffinityMap.cc \
3421 CpuAffinityMap.h \
3422 CpuAffinitySet.cc \
3423 CpuAffinitySet.h \
3424 $(DELAY_POOL_SOURCE) \
3425 disk.h \
3426 disk.cc \
3427 DiskIO/ReadRequest.cc \
3428 DiskIO/WriteRequest.cc \
3429 dlink.h \
3430 dlink.cc \
3431 $(DNSSOURCE) \
3432 errorpage.cc \
3433 ETag.cc \
3434 event.cc \
3435 external_acl.cc \
3436 ExternalACLEntry.cc \
3437 fatal.h \
3438 tests/stub_fatal.cc \
3439 fd.h \
3440 fd.cc \
3441 fde.cc \
3442 FileMap.h \
3443 filemap.cc \
3444 fqdncache.h \
3445 fqdncache.cc \
3446 ftp.h \
3447 ftp.cc \
3448 FwdState.cc \
3449 FwdState.h \
3450 gopher.h \
3451 gopher.cc \
3452 helper.cc \
3453 HelperChildConfig.h \
3454 HelperChildConfig.cc \
3455 HelperReply.cc \
3456 HelperReply.h \
3457 hier_code.h \
3458 $(HTCPSOURCE) \
3459 http.cc \
3460 HttpBody.h \
3461 HttpBody.cc \
3462 HttpHeaderFieldStat.h \
3463 HttpHdrCc.h \
3464 HttpHdrCc.cc \
3465 HttpHdrCc.cci \
3466 HttpHdrContRange.cc \
3467 HttpHdrRange.cc \
3468 HttpHdrSc.cc \
3469 HttpHdrScTarget.cc \
3470 HttpHeader.h \
3471 HttpHeader.cc \
3472 HttpHeaderFieldInfo.h \
3473 HttpHeaderTools.h \
3474 HttpHeaderTools.cc \
3475 HttpMsg.cc \
3476 HttpParser.cc \
3477 HttpParser.h \
3478 HttpReply.cc \
3479 RequestFlags.h \
3480 RequestFlags.cc \
3481 HttpRequest.cc \
3482 HttpRequestMethod.cc \
3483 icp_v2.cc \
3484 icp_v3.cc \
3485 $(IPC_SOURCE) \
3486 ipcache.cc \
3487 int.h \
3488 int.cc \
3489 internal.h \
3490 internal.cc \
3491 SquidList.h \
3492 SquidList.cc \
3493 MasterXaction.cc \
3494 MasterXaction.h \
3495 multicast.h \
3496 multicast.cc \
3497 Mem.h \
3498 tests/stub_mem.cc \
3499 mem_node.cc \
3500 MemBuf.cc \
3501 MemObject.cc \
3502 mime.h \
3503 mime.cc \
3504 mime_header.h \
3505 mime_header.cc \
3506 neighbors.h \
3507 neighbors.cc \
3508 Notes.h \
3509 Notes.cc \
3510 Packer.cc \
3511 Parsing.cc \
3512 pconn.cc \
3513 peer_digest.cc \
3514 peer_proxy_negotiate_auth.h \
3515 peer_proxy_negotiate_auth.cc \
3516 peer_select.cc \
3517 peer_sourcehash.h \
3518 peer_sourcehash.cc \
3519 peer_userhash.h \
3520 peer_userhash.cc \
3521 redirect.h \
3522 tests/stub_redirect.cc \
3523 refresh.h \
3524 refresh.cc \
3525 RemovalPolicy.cc \
3526 Server.cc \
3527 $(SBUF_SOURCE) \
3528 SBufDetailedStats.h \
3529 tests/stub_SBufDetailedStats.cc \
3530 $(SNMP_SOURCE) \
3531 SquidMath.h \
3532 SquidMath.cc \
3533 IoStats.h \
3534 stat.h \
3535 stat.cc \
3536 StatCounters.h \
3537 StatCounters.cc \
3538 StatHist.h \
3539 tests/stub_StatHist.cc \
3540 stmem.cc \
3541 repl_modules.h \
3542 store.cc \
3543 store_client.cc \
3544 store_digest.h \
3545 tests/stub_store_digest.cc \
3546 store_dir.cc \
3547 store_io.cc \
3548 store_key_md5.h \
3549 store_key_md5.cc \
3550 store_log.h \
3551 store_log.cc \
3552 store_rebuild.h \
3553 store_rebuild.cc \
3554 store_swapin.h \
3555 store_swapin.cc \
3556 store_swapmeta.cc \
3557 store_swapout.cc \
3558 StoreFileSystem.cc \
3559 StoreIOState.cc \
3560 tests/stub_StoreMeta.cc \
3561 StoreMetaUnpacker.cc \
3562 StoreSwapLogData.cc \
3563 String.cc \
3564 StrList.h \
3565 StrList.cc \
3566 tests/stub_SwapDir.cc \
3567 MemStore.cc \
3568 tests/stub_debug.cc \
3569 tests/stub_DiskIOModule.cc \
3570 tests/stub_libauth_acls.cc \
3571 tests/stub_libauth.cc \
3572 tests/stub_main_cc.cc \
3573 tests/stub_ipc_Forwarder.cc \
3574 tests/stub_store_stats.cc \
3575 tests/testURL.cc \
3576 tests/testURL.h \
3577 tests/testURLScheme.cc \
3578 tests/testURLScheme.h \
3579 tests/testMain.cc \
3580 tests/stub_time.cc \
3581 tests/stub_EventLoop.cc \
3582 tools.h \
3583 tools.cc \
3584 tests/stub_tunnel.cc \
3585 url.cc \
3586 URLScheme.cc \
3587 urn.h \
3588 urn.cc \
3589 wccp2.h \
3590 tests/stub_wccp2.cc \
3591 whois.h \
3592 tests/stub_whois.cc \
3593 FadingCounter.cc \
3594 $(WIN32_SOURCE) \
3595 wordlist.h \
3596 wordlist.cc
3597 nodist_tests_testURL_SOURCES = \
3598 $(BUILT_SOURCES)
3599 tests_testURL_LDADD = \
3600 http/libsquid-http.la \
3601 anyp/libanyp.la \
3602 ident/libident.la \
3603 acl/libacls.la \
3604 eui/libeui.la \
3605 acl/libstate.la \
3606 acl/libapi.la \
3607 base/libbase.la \
3608 libsquid.la \
3609 ip/libip.la \
3610 fs/libfs.la \
3611 ipc/libipc.la \
3612 mgr/libmgr.la \
3613 $(SNMP_LIBS) \
3614 icmp/libicmp.la icmp/libicmp-core.la \
3615 comm/libcomm.la \
3616 log/liblog.la \
3617 $(DISK_OS_LIBS) \
3618 format/libformat.la \
3619 $(REGEXLIB) \
3620 $(REPL_OBJS) \
3621 $(ADAPTATION_LIBS) \
3622 $(ESI_LIBS) \
3623 $(SSL_LIBS) \
3624 $(top_builddir)/lib/libmisccontainers.la \
3625 $(top_builddir)/lib/libmiscencoding.la \
3626 $(top_builddir)/lib/libmiscutil.la \
3627 $(COMPAT_LIB) \
3628 $(SQUID_CPPUNIT_LIBS) \
3629 $(SQUID_CPPUNIT_LA) \
3630 $(SSLLIB) \
3631 $(KRB5LIBS) \
3632 $(COMPAT_LIB) \
3633 $(XTRA_LIBS)
3634 tests_testURL_LDFLAGS = $(LIBADD_DL)
3635 tests_testURL_DEPENDENCIES = \
3636 $(REPL_OBJS) \
3637 $(SQUID_CPPUNIT_LA)
3638
3639 tests_testSBuf_SOURCES= \
3640 tests/testSBuf.h \
3641 tests/testSBuf.cc \
3642 tests/testMain.cc \
3643 tests/SBufFindTest.h \
3644 tests/SBufFindTest.cc \
3645 $(SBUF_SOURCE) \
3646 SBufDetailedStats.h \
3647 tests/stub_SBufDetailedStats.cc \
3648 SBufStream.h \
3649 tests/stub_time.cc \
3650 mem.cc \
3651 tests/stub_debug.cc \
3652 tests/stub_fatal.cc \
3653 tests/stub_HelperChildConfig.cc \
3654 tests/stub_cache_cf.cc \
3655 tests/stub_cache_manager.cc \
3656 tests/stub_store.cc \
3657 tests/stub_store_stats.cc \
3658 tests/stub_tools.cc \
3659 SquidString.h \
3660 String.cc \
3661 tests/stub_wordlist.cc \
3662 tests/stub_MemBuf.cc
3663 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3664 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3665 tests_testSBuf_LDADD=\
3666 $(SQUID_CPPUNIT_LIBS) \
3667 $(SQUID_CPPUNIT_LA) \
3668 $(COMPAT_LIB) \
3669 libsquid.la \
3670 ip/libip.la \
3671 mgr/libmgr.la \
3672 base/libbase.la \
3673 $(top_builddir)/lib/libmiscutil.la \
3674 $(COMMON_LIBS)
3675 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3676
3677 tests_testSBufList_SOURCES= \
3678 tests/testSBufList.h \
3679 tests/testSBufList.cc \
3680 tests/testMain.cc \
3681 $(SBUF_SOURCE) \
3682 SBufList.h \
3683 SBufList.cc \
3684 SBufAlgos.h \
3685 SBufDetailedStats.h \
3686 tests/stub_SBufDetailedStats.cc \
3687 SBufStream.h \
3688 tests/stub_time.cc \
3689 mem.cc \
3690 tests/stub_debug.cc \
3691 tests/stub_event.cc \
3692 tests/stub_fatal.cc \
3693 tests/stub_HelperChildConfig.cc \
3694 tests/stub_cache_cf.cc \
3695 tests/stub_cache_manager.cc \
3696 tests/stub_store_stats.cc \
3697 tests/stub_tools.cc \
3698 SquidString.h \
3699 String.cc \
3700 tests/stub_wordlist.cc \
3701 tests/stub_MemBuf.cc
3702 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3703 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3704 tests_testSBufList_LDADD=\
3705 $(SQUID_CPPUNIT_LIBS) \
3706 $(SQUID_CPPUNIT_LA) \
3707 $(COMPAT_LIB) \
3708 libsquid.la \
3709 ip/libip.la \
3710 mgr/libmgr.la \
3711 base/libbase.la \
3712 $(top_builddir)/lib/libmiscutil.la \
3713 $(COMMON_LIBS)
3714 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3715
3716 tests_testConfigParser_SOURCES = \
3717 ClientInfo.h \
3718 Mem.h \
3719 tests/stub_mem.cc \
3720 tests/stub_MemBuf.cc \
3721 tests/stub_time.cc \
3722 $(SBUF_SOURCE) \
3723 SBufDetailedStats.h \
3724 tests/stub_SBufDetailedStats.cc \
3725 String.cc \
3726 ConfigParser.cc \
3727 fatal.h \
3728 tests/stub_fatal.cc \
3729 tests/testMain.cc \
3730 tests/testConfigParser.cc \
3731 tests/testConfigParser.h \
3732 cache_cf.h \
3733 YesNoNone.h \
3734 tests/stub_cache_cf.cc \
3735 tests/stub_cache_manager.cc \
3736 tests/stub_debug.cc \
3737 tests/stub_HelperChildConfig.cc \
3738 tools.h \
3739 tests/stub_tools.cc \
3740 wordlist.h \
3741 wordlist.cc
3742 nodist_tests_testConfigParser_SOURCES = \
3743 $(TESTSOURCES)
3744 tests_testConfigParser_LDADD = \
3745 base/libbase.la \
3746 libsquid.la \
3747 ip/libip.la \
3748 $(top_builddir)/lib/libmiscutil.la \
3749 $(REGEXLIB) \
3750 $(SQUID_CPPUNIT_LIBS) \
3751 $(SSLLIB) \
3752 $(COMPAT_LIB) \
3753 $(XTRA_LIBS)
3754 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3755 tests_testConfigParser_DEPENDENCIES = \
3756 $(SQUID_CPPUNIT_LA)
3757
3758 tests_testStatHist_SOURCES = \
3759 tests/stub_cbdata.cc \
3760 fatal.h \
3761 tests/stub_fatal.cc \
3762 tests/stub_MemBuf.cc \
3763 StatHist.cc \
3764 StatHist.h \
3765 String.cc \
3766 tests/stub_cache_manager.cc \
3767 tests/stub_comm.cc \
3768 tests/stub_debug.cc \
3769 tests/stub_DelayId.cc \
3770 tests/stub_HelperChildConfig.cc \
3771 Mem.h \
3772 tests/stub_mem.cc \
3773 tests/stub_MemObject.cc \
3774 mime.h \
3775 tests/stub_mime.cc \
3776 tests/stub_pconn.cc \
3777 tests/stub_stmem.cc \
3778 repl_modules.h \
3779 tests/stub_store.cc \
3780 tests/stub_store_stats.cc \
3781 tools.h \
3782 tests/stub_tools.cc \
3783 tests/testMain.cc \
3784 tests/testStatHist.cc \
3785 tests/testStatHist.h
3786 nodist_tests_testStatHist_SOURCES = \
3787 $(TESTSOURCES)
3788 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3789 tests_testStatHist_LDADD = \
3790 base/libbase.la \
3791 $(top_builddir)/lib/libmiscutil.la \
3792 $(top_builddir)/lib/libmisccontainers.la \
3793 $(SQUID_CPPUNIT_LIBS) \
3794 $(SQUID_CPPUNIT_LA) \
3795 $(COMPAT_LIB)
3796 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3797
3798 tests_testVector_SOURCES = \
3799 tests/testVector.cc \
3800 tests/testMain.cc \
3801 tests/testVector.h
3802 nodist_tests_testVector_SOURCES = \
3803 $(TESTSOURCES)
3804 tests_testVector_LDADD= \
3805 $(SQUID_CPPUNIT_LIBS) \
3806 $(COMPAT_LIB) \
3807 $(XTRA_LIBS)
3808 tests_testVector_LDFLAGS = $(LIBADD_DL)
3809 tests_testVector_DEPENDENCIES = \
3810 $(SQUID_CPPUNIT_LA)
3811
3812
3813 TESTS += testHeaders
3814
3815 ## Special Universal .h dependency test script
3816 ## aborts if error encountered
3817 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3818 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3819 ## src/repl/ has no .h files and its own makefile.
3820
3821 CLEANFILES += testHeaders
3822 .PHONY: testHeaders
3823