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