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