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