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