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