]> git.ipfire.org Git - thirdparty/squid.git/blame - src/Makefile.am
Preserve caller context across (and improve) deferred reads (#1025)
[thirdparty/squid.git] / src / Makefile.am
CommitLineData
bf95c10a 1## Copyright (C) 1996-2022 The Squid Software Foundation and contributors
bbc27441
AJ
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##
a2794549 7
189f1e66 8include $(top_srcdir)/src/Common.am
a46d2c0e 9
17852883 10DNSSOURCE = \
4a3b98d7 11 dns_internal.cc
3ff65596 12
bc83af5b
FC
13STOREMETA_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
43d1bbe4 27
57afc994 28LOADABLE_MODULES_SOURCES = \
57afc994 29 LoadableModule.cc \
aa5639dc 30 LoadableModule.h \
31 LoadableModules.cc \
32 LoadableModules.h
57afc994 33
98cacedb
AJ
34SUBDIRS = mem time debug base anyp helper dns ftp parser comm error eui acl format clients sbuf servers fs repl store DiskIO proxyp
35DIST_SUBDIRS = mem time debug base anyp helper dns ftp parser comm error eui acl format clients sbuf servers fs repl store DiskIO proxyp
2f1431ea
AJ
36
37if ENABLE_AUTH
38SUBDIRS += auth
39AUTH_LIBS= auth/libauth.la
40AUTH_ACL_LIBS= auth/libacls.la
2f1431ea
AJ
41endif
42DIST_SUBDIRS += auth
43
cb0b3d63
AJ
44SUBDIRS += http ip icmp ident log ipc mgr
45DIST_SUBDIRS += http ip icmp ident log ipc mgr
20f4520e 46
cdfb670c 47SSL_LIBS=
95d2589c
CT
48if ENABLE_SSL
49SUBDIRS += ssl
cdfb670c 50SSL_LIBS += \
1b76e6c1
AJ
51 ssl/libsslsquid.la \
52 ssl/libsslutil.la
95d2589c 53endif
cb0b3d63
AJ
54DIST_SUBDIRS += ssl security
55SUBDIRS += security
2f1431ea 56
d6e3ad20 57SNMP_ALL_SOURCE = \
df6c653b 58 SnmpRequest.h \
d6e3ad20
CT
59 snmp_core.h \
60 snmp_core.cc \
9c0a2256 61 snmp_agent.h \
d6e3ad20 62 snmp_agent.cc
f738d783 63if ENABLE_SNMP
d6e3ad20
CT
64SNMP_SOURCE = $(SNMP_ALL_SOURCE)
65SUBDIRS += snmp
65f92818 66SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
d6e3ad20 67else
8aafbbc1 68SNMP_SOURCE =
51ea0904 69endif
a7e1b6c9 70DIST_SUBDIRS += snmp
95d2589c 71
8aafbbc1 72if ENABLE_ADAPTATION
51a7ff6e
AR
73SUBDIRS += adaptation
74endif
2f1431ea 75DIST_SUBDIRS += adaptation
51a7ff6e 76
8aafbbc1 77if ENABLE_ESI
f99c2cfe 78SUBDIRS += esi
632ae9d3 79ESI_LIBS = \
c41d7e69 80 esi/libesi.la \
632ae9d3 81 $(top_builddir)/lib/libTrie/libTrie.a \
3ae8895c
A
82 $(XMLLIB) \
83 $(EXPATLIB)
f99c2cfe 84else
632ae9d3 85ESI_LIBS =
f99c2cfe 86endif
2f1431ea 87DIST_SUBDIRS += esi
f99c2cfe 88
852a0ce1 89DELAY_POOL_ALL_SOURCE = \
b27668ec
EB
90 BandwidthBucket.cc \
91 BandwidthBucket.h \
852a0ce1 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 \
b27668ec
EB
113 MessageBucket.cc \
114 MessageBucket.h \
115 MessageDelayPools.h \
116 MessageDelayPools.cc \
b4cd430a
CT
117 NullDelayId.h \
118 ClientDelayConfig.cc \
119 ClientDelayConfig.h
8aafbbc1 120
9a0a18de 121if ENABLE_DELAY_POOLS
852a0ce1 122DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
123else
8aafbbc1 124DELAY_POOL_SOURCE =
852a0ce1 125endif
126
852a0ce1 127if ENABLE_HTCP
128HTCPSOURCE = htcp.cc htcp.h
129endif
130
852a0ce1 131if ENABLE_UNLINKD
b6b42084 132UNLINKDSOURCE = unlinkd.h unlinkd.cc
852a0ce1 133UNLINKD = unlinkd
134else
b6b42084 135UNLINKDSOURCE = unlinkd.h
8aafbbc1 136UNLINKD =
852a0ce1 137endif
138
9c8434f6 139WIN32_ALL_SOURCE = \
93bdc610 140 win32.h \
9c8434f6 141 win32.cc \
cf3edd6f 142 WinSvc.h \
9c8434f6 143 WinSvc.cc
852a0ce1 144if ENABLE_WIN32SPECIFIC
9c8434f6 145WIN32_SOURCE = win32.cc
146WINSVC_SOURCE = WinSvc.cc
852a0ce1 147else
9c8434f6 148WIN32_SOURCE =
149WINSVC_SOURCE =
852a0ce1 150endif
151
daf2ddfa 152if ENABLE_WIN32_IPC
96097880 153IPC_SOURCE = SquidIpc.h ipc_win32.cc
b5d712b5 154else
96097880 155IPC_SOURCE = SquidIpc.h ipc.cc
b5d712b5 156endif
157
2d2b0bb7 158noinst_LTLIBRARIES = libsquid.la
b9ae18aa 159
852a0ce1 160EXTRA_PROGRAMS = \
b706999c 161 unlinkd
852a0ce1 162
596d3ba7 163## cfgen is used when building squid
852a0ce1 164noinst_PROGRAMS = \
2d94e2d6 165 cf_gen
852a0ce1 166
167sbin_PROGRAMS = \
168 squid
169
8aafbbc1 170bin_PROGRAMS =
852a0ce1 171
172libexec_PROGRAMS = \
94ab55b0 173 $(UNLINKD)
852a0ce1 174
7d6fa4d4 175cf_gen_SOURCES = cf_gen.cc
cca8ba0d 176nodist_cf_gen_HEADER = cf_gen_defines.cci
c1f8bbd0
AJ
177## cf_gen must be stand-alone executable. It is a purely build-time executable.
178cf_gen_LDADD=
cca8ba0d 179cf_gen.$(OBJEXT): cf_gen_defines.cci
852a0ce1 180
cca8ba0d 181## cf_gen.cc needs src/cf_gen_defines.cci
01a1acbc 182AM_CPPFLAGS += -I$(top_builddir)/src
189f1e66 183
2d46f579 184
aa5639dc 185ACL_REGISTRATION_SOURCES = \
186 AclRegs.cc \
187 AuthReg.cc
2d46f579 188
f24583c1 189# common library for all the binaries and tests. This is kindof a catch all
190# and smaller libraries split from this are encouraged. Using lt convenience
191# libraries, dependencies should not be a problem either.
192libsquid_la_SOURCES = \
b0469965 193 CommCalls.cc \
194 CommCalls.h \
877ce944
AR
195 DescriptorSet.cc \
196 DescriptorSet.h \
aa5639dc 197 SquidConfig.cc \
a7f68355 198 SquidConfig.h \
aa5639dc 199 comm.cc \
200 comm.h
f24583c1 201
852a0ce1 202squid_SOURCES = \
2d46f579 203 $(ACL_REGISTRATION_SOURCES) \
aa5639dc 204 $(DELAY_POOL_SOURCE) \
205 $(DNSSOURCE) \
206 $(HTCPSOURCE) \
207 $(IPC_SOURCE) \
208 $(SNMP_SOURCE) \
209 $(STOREMETA_SOURCE) \
210 $(UNLINKDSOURCE) \
211 $(WIN32_SOURCE) \
212 $(WINSVC_SOURCE) \
d4204018 213 AccessLogEntry.cc \
450e0c10 214 AccessLogEntry.h \
8ff3fa2e 215 AsyncEngine.cc \
216 AsyncEngine.h \
89736861 217 AuthReg.h \
aa5639dc 218 BodyPipe.cc \
219 BodyPipe.h \
852a0ce1 220 CacheDigest.cc \
aa5639dc 221 CacheDigest.h \
222 CacheManager.h \
719815a0 223 CachePeer.cc \
09e9d943 224 CachePeer.h \
281422f8 225 ClientInfo.h \
cd397896 226 ClientRequestContext.h \
807feb1d
DK
227 CollapsedForwarding.cc \
228 CollapsedForwarding.h \
d2a6dcba 229 CollapsingHistory.h \
28bca1f7
EB
230 CommandLine.cc \
231 CommandLine.h \
b9ae18aa 232 ConfigOption.cc \
d295d770 233 ConfigParser.cc \
852a0ce1 234 ConfigParser.h \
96c2bb61
AR
235 CpuAffinity.cc \
236 CpuAffinity.h \
237 CpuAffinityMap.cc \
238 CpuAffinityMap.h \
239 CpuAffinitySet.cc \
240 CpuAffinitySet.h \
55369ae6 241 Downloader.cc \
4b5ea8a6 242 Downloader.h \
852a0ce1 243 ETag.cc \
81a94152 244 ETag.h \
a553a5a3 245 EventLoop.cc \
aa5639dc 246 EventLoop.h \
852a0ce1 247 ExternalACL.h \
248 ExternalACLEntry.cc \
249 ExternalACLEntry.h \
8277060a 250 FadingCounter.cc \
aa5639dc 251 FadingCounter.h \
75f8f9a2 252 FileMap.h \
eb13c21e
AJ
253 FwdState.cc \
254 FwdState.h \
852a0ce1 255 Generic.h \
55622953
CT
256 HappyConnOpener.cc \
257 HappyConnOpener.h \
b24880fe 258 HierarchyLogEntry.h \
aa5639dc 259 HttpBody.cc \
260 HttpBody.h \
261 HttpControlMsg.cc \
262 HttpControlMsg.h \
ce394734 263 HttpHdrCc.cc \
aa5639dc 264 HttpHdrCc.h \
265 HttpHdrContRange.cc \
266 HttpHdrContRange.h \
852a0ce1 267 HttpHdrRange.cc \
268 HttpHdrSc.cc \
25b6a907 269 HttpHdrSc.h \
852a0ce1 270 HttpHdrScTarget.cc \
25b6a907 271 HttpHdrScTarget.h \
437cae05 272 HttpHeader.cc \
aa5639dc 273 HttpHeader.h \
274 HttpHeaderFieldInfo.h \
275 HttpHeaderFieldStat.h \
25b6a907 276 HttpHeaderMask.h \
852a0ce1 277 HttpHeaderRange.h \
aa5639dc 278 HttpHeaderStat.h \
852a0ce1 279 HttpHeaderTools.cc \
aa5639dc 280 HttpHeaderTools.h \
852a0ce1 281 HttpReply.cc \
282 HttpReply.h \
283 HttpRequest.cc \
284 HttpRequest.h \
aa5639dc 285 HttpUpgradeProtocolAccess.cc \
286 HttpUpgradeProtocolAccess.h \
852a0ce1 287 ICP.h \
e99fa721 288 Instance.cc \
aa5639dc 289 Instance.h \
290 IoStats.h \
53f5404d 291 LogTags.cc \
02c8dde5 292 LogTags.h \
94bfd31f
AJ
293 MasterXaction.cc \
294 MasterXaction.h \
852a0ce1 295 MemBuf.cc \
296 MemObject.cc \
297 MemObject.h \
aa5639dc 298 MemStore.cc \
299 MemStore.h \
cc0ca3b9 300 MessageSizes.h \
aa5639dc 301 NeighborTypeDomainList.h \
efc9a0c6 302 Notes.cc \
aa5639dc 303 Notes.h \
c8f4eac4 304 Parsing.cc \
305 Parsing.h \
37c84c0b 306 PeerDigest.h \
e8dca475 307 PeerPoolMgr.cc \
aa5639dc 308 PeerPoolMgr.h \
b24880fe 309 PeerSelectState.h \
310 PingData.h \
c6ae1627
AJ
311 Pipeline.cc \
312 Pipeline.h \
aa5639dc 313 RefreshPattern.h \
aa839030 314 RemovalPolicy.cc \
315 RemovalPolicy.h \
aa5639dc 316 RequestFlags.cc \
317 RequestFlags.h \
55622953
CT
318 ResolvedPeers.cc \
319 ResolvedPeers.h \
9b74279f 320 SBufStatsAction.cc \
aa5639dc 321 SBufStatsAction.h \
a98bcbee 322 SquidMath.cc \
aa5639dc 323 SquidMath.h \
e4f1fdae 324 StatCounters.cc \
aa5639dc 325 StatCounters.h \
852a0ce1 326 StatHist.cc \
aa5639dc 327 StatHist.h \
852a0ce1 328 Store.h \
aa5639dc 329 StoreClient.h \
59b2d47f 330 StoreFileSystem.cc \
331 StoreFileSystem.h \
852a0ce1 332 StoreIOBuffer.h \
333 StoreIOState.cc \
334 StoreIOState.h \
852a0ce1 335 StoreMetaUnpacker.cc \
336 StoreMetaUnpacker.h \
c8f4eac4 337 StoreSearch.h \
93bc1434
AR
338 StoreStats.cc \
339 StoreStats.h \
852a0ce1 340 StoreSwapLogData.cc \
341 StoreSwapLogData.h \
aa5639dc 342 StrList.cc \
343 StrList.h \
344 String.cc \
345 TimeOrTag.h \
9a9954ba
AR
346 Transients.cc \
347 Transients.h \
5ceaee75 348 XactionInitiator.cc \
aa5639dc 349 XactionInitiator.h \
090f1d3c 350 XactionStep.h \
aa5639dc 351 cache_cf.cc \
352 cache_cf.h \
353 cache_manager.cc \
354 carp.cc \
355 carp.h \
356 cbdata.cc \
357 cbdata.h \
358 clientStream.cc \
359 clientStream.h \
360 clientStreamForward.h \
361 client_db.cc \
362 client_db.h \
363 client_side.cc \
364 client_side.h \
365 client_side_reply.cc \
366 client_side_reply.h \
367 client_side_request.cc \
368 client_side_request.h \
aa5639dc 369 defines.h \
370 dlink.cc \
371 dlink.h \
372 enums.h \
aa5639dc 373 errorpage.cc \
374 errorpage.h \
375 event.cc \
376 event.h \
377 external_acl.cc \
378 fatal.cc \
379 fatal.h \
380 fd.cc \
381 fd.h \
382 fde.cc \
383 fde.h \
384 filemap.cc \
385 fqdncache.cc \
386 fqdncache.h \
387 fs_io.cc \
388 fs_io.h \
389 globals.h \
390 gopher.cc \
391 gopher.h \
392 helper.cc \
393 helper.h \
394 hier_code.h \
395 http.cc \
396 http.h \
397 icp_opcode.h \
398 icp_v2.cc \
399 icp_v3.cc \
400 int.cc \
401 int.h \
402 internal.cc \
403 internal.h \
404 ipcache.cc \
405 ipcache.h \
406 lookup_t.h \
407 main.cc \
408 mem_node.cc \
409 mem_node.h \
410 mime.cc \
411 mime.h \
412 mime_header.cc \
413 mime_header.h \
414 multicast.cc \
415 multicast.h \
416 neighbors.cc \
417 neighbors.h \
418 pconn.cc \
419 pconn.h \
420 peer_digest.cc \
421 peer_proxy_negotiate_auth.cc \
422 peer_proxy_negotiate_auth.h \
423 peer_select.cc \
424 peer_sourcehash.cc \
425 peer_sourcehash.h \
426 peer_userhash.cc \
427 peer_userhash.h \
428 protos.h \
429 redirect.cc \
430 redirect.h \
431 refresh.cc \
432 refresh.h \
433 repl_modules.h \
434 sbuf/StringConvert.h \
435 send-announce.cc \
436 send-announce.h \
437 stat.cc \
438 stat.h \
439 stmem.cc \
440 stmem.h \
441 store.cc \
442 store_client.cc \
443 store_digest.cc \
444 store_digest.h \
445 store_io.cc \
446 store_key_md5.cc \
447 store_key_md5.h \
448 store_log.cc \
449 store_log.h \
450 store_rebuild.cc \
451 store_rebuild.h \
452 store_swapin.cc \
453 store_swapin.h \
454 store_swapmeta.cc \
455 store_swapout.cc \
456 swap_log_op.h \
aa5639dc 457 tools.cc \
458 tools.h \
459 tunnel.cc \
8b082ed9 460 tunnel.h \
aa5639dc 461 typedefs.h \
462 urn.cc \
463 urn.h \
464 wccp.cc \
465 wccp.h \
466 wccp2.cc \
467 wccp2.h \
468 whois.cc \
469 whois.h \
470 wordlist.cc \
471 wordlist.h
472
473EXTRA_squid_SOURCES = \
474 $(DELAY_POOL_ALL_SOURCE) \
475 $(LOADABLE_MODULES_SOURCES) \
476 $(SNMP_ALL_SOURCE) \
477 $(UNLINKDSOURCE) \
478 $(WIN32_ALL_SOURCE) \
479 $(all_AUTHMODULES) \
480 ConfigOption.h \
aa5639dc 481 htcp.cc \
482 htcp.h \
483 ipc.cc \
484 ipc_win32.cc
485
486noinst_HEADERS = \
487 MemBuf.h \
98cacedb 488 SquidString.h
aa5639dc 489
490BUILT_SOURCES = \
491 cf_gen_defines.cci \
492 cf_parser.cci \
aa5639dc 493 globals.cc \
494 hier_code.cc \
495 icp_opcode.cc \
496 lookup_t.cc \
4b981814
AJ
497 repl_modules.cc \
498 swap_log_op.cc
499
500CLEANFILES += $(BUILT_SOURCES)
501
502nodist_squid_SOURCES = \
4b981814 503 $(BUILT_SOURCES)
852a0ce1 504
505squid_LDADD = \
62a0ef44
AJ
506 $(AUTH_ACL_LIBS) \
507 ident/libident.la \
508 acl/libacls.la \
62a0ef44
AJ
509 acl/libstate.la \
510 $(AUTH_LIBS) \
511 acl/libapi.la \
9bafa70d
AJ
512 clients/libclients.la \
513 servers/libservers.la \
514 ftp/libftp.la \
309bd365 515 helper/libhelper.la \
ca3a08e2 516 http/libhttp.la \
4a3b98d7 517 dns/libdns.la \
62a0ef44
AJ
518 base/libbase.la \
519 libsquid.la \
520 ip/libip.la \
521 fs/libfs.la \
13d8c08c 522 DiskIO/libdiskio.la \
0166128b 523 comm/libcomm.la \
a45f2153 524 anyp/libanyp.la \
0166128b 525 security/libsecurity.la \
5d9a65df 526 $(SSL_LIBS) \
83b053a0 527 error/liberror.la \
62a0ef44
AJ
528 ipc/libipc.la \
529 mgr/libmgr.la \
36c774f7 530 proxyp/libproxyp.la \
7c8ee688 531 parser/libparser.la \
a98c2da5 532 eui/libeui.la \
ca3a08e2 533 icmp/libicmp.la \
82b7abe3 534 log/liblog.la \
38e16f92 535 format/libformat.la \
65e41a45 536 sbuf/libsbuf.la \
675b8408 537 debug/libdebug.la \
3ae8895c 538 $(XTRA_OBJS) \
3ae8895c 539 $(REPL_OBJS) \
09cd7204 540 $(NETTLELIB) \
3ae8895c 541 $(CRYPTLIB) \
c2afddd8 542 $(REGEXLIB) \
65f92818 543 $(ADAPTATION_LIBS) \
88bfe098 544 $(ESI_LIBS) \
65f92818 545 $(SNMP_LIBS) \
ed6e9fb9 546 mem/libmem.la \
2745fea5 547 store/libstore.la \
98cacedb 548 time/libtime.la \
25f98340
AJ
549 $(top_builddir)/lib/libmisccontainers.la \
550 $(top_builddir)/lib/libmiscencoding.la \
551 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
552 $(SSLLIB) \
553 $(EPOLL_LIBS) \
554 $(MINGW_LIBS) \
555 $(KRB5LIBS) \
6fa8c664 556 $(SYSTEMD_LIBS) \
25f98340 557 $(COMPAT_LIB) \
3ae8895c 558 $(XTRA_LIBS)
c21ad0f5 559
cb5569cd 560if ENABLE_LOADABLE_MODULES
57afc994 561squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
95954721 562squid_LDADD += -L$(top_builddir) $(LIBLTDL)
62059234
AJ
563squid_LDFLAGS = -export-dynamic -dlopen force
564## when static module linking is supported and enabled:
565## squid_LDFLAGS = -all-static -dlopen self
566##
567## LTDL headers require their local include path...
01a1acbc 568AM_CPPFLAGS += $(INCLTDL)
3e7b6055
AR
569endif
570
9ca29d23 571## Kerberos libraries require their include path...
01a1acbc 572AM_CPPFLAGS += $(KRB5INCS)
9ca29d23 573
3e7b6055 574
25f98340 575unlinkd_SOURCES = unlinkd_daemon.cc
40d34a62 576unlinkd_LDADD = \
40d34a62
AJ
577 $(COMPAT_LIB) \
578 $(XTRA_LIBS)
579
852a0ce1 580sysconf_DATA = \
581 squid.conf.default \
1446a5fd 582 squid.conf.documented \
852a0ce1 583 mime.conf.default
584
585data_DATA = \
586 mib.txt
587
62a0ef44
AJ
588LDADD = \
589 $(AUTH_ACL_LIBS) \
590 ident/libident.la \
591 acl/libacls.la \
592 eui/libeui.la \
593 acl/libstate.la \
594 $(AUTH_LIBS) \
595 acl/libapi.la \
596 base/libbase.la \
597 libsquid.la \
598 ip/libip.la \
599 fs/libfs.la \
600 ipc/libipc.la \
601 mgr/libmgr.la \
3ae8895c
A
602 $(EPOLL_LIBS) \
603 $(MINGW_LIBS) \
0f1173d4 604 $(COMPAT_LIB) \
3ae8895c 605 $(XTRA_LIBS)
852a0ce1 606
2b5ebbe3 607include $(srcdir)/tests/Stub.am
ee4478ed 608
852a0ce1 609EXTRA_DIST = \
610 cf_gen_defines \
611 cf.data.pre \
93c07e16 612 cf.data.depend \
2f36643c 613 cf.data.sed \
e1007e14 614 mk-globals-c.awk \
e1007e14 615 mk-string-arrays.awk \
852a0ce1 616 repl_modules.sh \
ee4478ed 617 $(STUB_SOURCE) \
9ba9313a 618 tests/STUB.h \
852a0ce1 619 mib.txt \
c8f4eac4 620 mime.conf.default
b9ae18aa 621
4de1e2da 622snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
852a0ce1 623
4b981814 624globals.cc: globals.h mk-globals-c.awk
d64c1498 625 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
852a0ce1 626
56a49fda 627## Generate files containing string arrays for various enums....
4b981814 628hier_code.cc: hier_code.h mk-string-arrays.awk
d64c1498 629 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
4b981814 630
4b981814 631lookup_t.cc: lookup_t.h mk-string-arrays.awk
d64c1498 632 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
633
634icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
d64c1498 635 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
636
637swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
d64c1498 638 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
639
640
641## other generated files...
852a0ce1 642
852a0ce1 643test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
644 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
a2794549 645
646## If autodependency works well this is not needed anymore
cca8ba0d 647cache_cf.o: cf_parser.cci
a2794549 648
de051d9d 649# cf_gen builds the configuration files.
eb0f8afd 650cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
b2f0a375 651 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
de051d9d 652
cca8ba0d
HN
653# squid.conf.default is built by cf_gen when making cf_parser.cci
654squid.conf.default squid.conf.documented: cf_parser.cci
34af43e2 655 true
a2794549 656
cca8ba0d 657cf_parser.cci: cf.data cf_gen$(EXEEXT)
02a24b76 658 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
a2794549 659
9603207d 660# The cf_gen_defines.cci is auto-generated and does not exist when the
eb0f8afd 661# dependencies computed. We need to add its include files (autoconf.h) here
5e924d97 662cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
d64c1498 663 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
a2794549 664
665
9837567d 666## TODO: generate a sed command file from configure. Then this doesn't
43000484 667## depend on the Makefile.
852a0ce1 668cf.data: cf.data.pre Makefile
9c2cec78
HN
669 sed \
670 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
671 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
65f92818 672 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
9c2cec78 673 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
95d2589c 674 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
9c2cec78
HN
675 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
676 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
677 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
82b7abe3 678 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
9c2cec78
HN
679 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
680 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
681 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
682 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
683 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
684 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
95d2589c 685 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
9c2cec78
HN
686 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
687 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
cf1c09f6 688 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
9c2cec78
HN
689 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
690 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
9c2cec78 691 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
2f36643c 692 -f $(srcdir)/cf.data.sed \
852a0ce1 693 < $(srcdir)/cf.data.pre >$@
694
852a0ce1 695repl_modules.cc: repl_modules.sh Makefile
696 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
697
83915266
AJ
698include $(top_srcdir)/doc/manuals/Substitute.am
699
700squid.8: $(srcdir)/squid.8.in Makefile
466ae9bc 701 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
83915266
AJ
702
703man_MANS = squid.8
704EXTRA_DIST += squid.8.in
705CLEANFILES += squid.8
706
852a0ce1 707install-data-local: install-sysconfDATA install-dataDATA
708 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
84daf9b0 709 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
852a0ce1 710 else \
84daf9b0
AJ
711 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
712 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
852a0ce1 713 fi
714 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
84daf9b0 715 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
852a0ce1 716 else \
84daf9b0
AJ
717 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
718 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
852a0ce1 719 fi
1446a5fd
AJ
720 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
721 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
722 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
723 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
dc094bdd 724 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
3ff816ee 725 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
27b1dd70 726 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
a2794549 727
5b218ff4
HN
728uninstall-local: squid.conf.default
729 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
730 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
a2794549 731
4b981814 732CLEANFILES += cf.data squid.conf.default squid.conf.documented \
95329c22
HN
733 test_tools.cc *.a
734
735test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
736 cp $(top_srcdir)/test-suite/test_tools.cc .
a2794549 737
9603207d 738# stock tools for unit tests - library independent versions of dlink_list
25b6a907 739# etc.
95329c22
HN
740# globals.cc is needed by test_tools.cc.
741# Neither of these should be disted from here.
25b6a907 742TESTSOURCES= \
7c8931a1 743 tests/STUB.h \
95329c22 744 test_tools.cc \
25b6a907 745 globals.cc
746
e1a88700 747### Template for new Unit Test Program
f1263147
AJ
748## - copy template below and substitute X for class name
749## - place code being tested in _SOURCES
750## - place stubs etc. requiredd to link in nodist_*_SOURCES
e1a88700 751## - add other component .(h|cc) files needed to link and run tests
752##
f1263147
AJ
753#check_PROGRAMS += tests/testX
754#tests_testX_SOURCES= \
e1a88700 755# tests/testX.cc \
c1a2df00 756# tests/testX.h
f1263147 757#nodist_tests_testX_SOURCES= \
c1a2df00
AJ
758# X.cc \
759# tests/stubs_as_needed.cc
e1a88700 760#tests_testX_LDADD=\
d93bf055
AJ
761# $(LIBCPPUNIT_LIBS) \
762# $(COMPAT_LIB) \
763# $(XTRA_LIBS)
f1263147 764#tests_testX_LDFLAGS = $(LIBADD_DL)
0f9db2d6 765
f1263147
AJ
766## A demonstration test that does nothing but shows the salient points
767## involved in writing tests.
768check_PROGRAMS += tests/testBoilerplate
769tests_testBoilerplate_SOURCES = \
770 tests/testBoilerplate.cc \
771 tests/testBoilerplate.h
772nodist_tests_testBoilerplate_SOURCES = \
773 $(TESTSOURCES)
774tests_testBoilerplate_LDADD= \
775 $(LIBCPPUNIT_LIBS) \
776 $(COMPAT_LIB) \
777 $(XTRA_LIBS)
778tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
779
780# Unit Tests are listed below by sub-directory with order matching the SUBDIRS
781# dependency-based list so that simpler code is tested before more complex code
782# which uses it.
783
b308d7e2
AR
784## Tests of SquidMath.h
785check_PROGRAMS += tests/testMath
786tests_testMath_SOURCES = \
787 tests/testMath.cc
788nodist_tests_testMath_SOURCES = \
789 SquidMath.h
790tests_testMath_LDADD = \
791 $(LIBCPPUNIT_LIBS) \
792 $(COMPAT_LIB) \
793 $(XTRA_LIBS)
794tests_testMath_LDFLAGS = $(LIBADD_DL)
795
f1263147
AJ
796## Tests of mem/*
797
798check_PROGRAMS += tests/testMem
799tests_testMem_SOURCES = \
800 tests/testMem.cc \
801 tests/testMem.h
802nodist_tests_testMem_SOURCES = \
98cacedb 803 tests/stub_libtime.cc
c1a2df00 804tests_testMem_LDADD = \
ed6e9fb9 805 mem/libmem.la \
25f98340 806 $(top_builddir)/lib/libmiscutil.la \
d93bf055 807 $(LIBCPPUNIT_LIBS) \
3d93a84d 808 $(COMPAT_LIB) \
3ae8895c 809 $(XTRA_LIBS)
f1263147 810tests_testMem_LDFLAGS = $(LIBADD_DL)
0f9db2d6 811
f1263147
AJ
812## Tests of base/*
813
814check_PROGRAMS += tests/testCharacterSet
815tests_testCharacterSet_SOURCES = \
816 tests/testCharacterSet.cc \
817 tests/testCharacterSet.h
818nodist_tests_testCharacterSet_SOURCES = \
c1a2df00
AJ
819 base/CharacterSet.h
820tests_testCharacterSet_LDADD = \
65f92818 821 base/libbase.la \
f1263147
AJ
822 $(LIBCPPUNIT_LIBS) \
823 $(COMPAT_LIB) \
824 $(XTRA_LIBS)
825tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
826
827check_PROGRAMS += tests/testEnumIterator
828tests_testEnumIterator_SOURCES = \
c1a2df00
AJ
829 tests/testEnumIterator.cc \
830 tests/testEnumIterator.h
f1263147 831nodist_tests_testEnumIterator_SOURCES = \
c1a2df00 832 base/EnumIterator.h
f1263147 833tests_testEnumIterator_LDADD = \
f1263147
AJ
834 $(LIBCPPUNIT_LIBS) \
835 $(COMPAT_LIB) \
836 $(XTRA_LIBS)
837tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
838
839check_PROGRAMS += tests/testLookupTable
840tests_testLookupTable_SOURCES = \
f1263147 841 tests/testLookupTable.cc \
c1a2df00
AJ
842 tests/testLookupTable.h
843nodist_tests_testLookupTable_SOURCES = \
844 base/LookupTable.h \
f1263147 845 tests/stub_debug.cc \
aa5639dc 846 tests/stub_libmem.cc
f1263147 847tests_testLookupTable_LDADD = \
65e41a45 848 sbuf/libsbuf.la \
f1263147 849 base/libbase.la \
d93bf055 850 $(LIBCPPUNIT_LIBS) \
0f1173d4 851 $(COMPAT_LIB) \
3ae8895c 852 $(XTRA_LIBS)
f1263147 853tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
d295d770 854
c1a2df00 855check_PROGRAMS += tests/testRefCount
c1a2df00 856tests_testRefCount_SOURCES = \
50921dfc 857 tests/testRefCount.cc \
858 tests/testRefCount.h
c1a2df00
AJ
859nodist_tests_testRefCount_SOURCES = \
860 base/RefCount.h
861tests_testRefCount_LDADD = \
50921dfc 862 $(LIBCPPUNIT_LIBS) \
0f1173d4 863 $(COMPAT_LIB) \
3ae8895c 864 $(XTRA_LIBS)
f1263147 865tests_testRefCount_LDFLAGS = $(LIBADD_DL)
25b6a907 866
f1263147
AJ
867check_PROGRAMS += tests/testYesNoNone
868tests_testYesNoNone_SOURCES = \
869 tests/testYesNoNone.cc \
870 tests/testYesNoNone.h
871nodist_tests_testYesNoNone_SOURCES = \
aa5639dc 872 tests/stub_SBuf.cc \
c1a2df00 873 base/YesNoNone.h \
aa5639dc 874 tests/stub_debug.cc
c1a2df00 875tests_testYesNoNone_LDADD = \
37122e21 876 base/libbase.la \
d93bf055 877 $(LIBCPPUNIT_LIBS) \
37122e21 878 $(COMPAT_LIB) \
37122e21 879 $(XTRA_LIBS)
f1263147 880tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
37122e21 881
f1263147
AJ
882## Tests of anyp/*
883
884check_PROGRAMS += tests/testURL
f1263147 885tests_testURL_SOURCES = \
f1263147
AJ
886 tests/testURL.cc \
887 tests/testURL.h \
888 tests/testUriScheme.cc \
c1a2df00 889 tests/testUriScheme.h
f1263147 890nodist_tests_testURL_SOURCES = \
aa5639dc 891 tests/stub_HelperChildConfig.cc \
892 tests/stub_HttpHeader.cc \
893 tests/stub_HttpRequest.cc \
894 tests/stub_StatHist.cc \
c1a2df00
AJ
895 String.cc \
896 tests/stub_access_log.cc \
aa5639dc 897 anyp/Uri.h \
898 anyp/UriScheme.h \
c1a2df00
AJ
899 tests/stub_cbdata.cc \
900 tests/stub_debug.cc \
c1a2df00 901 tests/stub_libhttp.cc \
aa5639dc 902 tests/stub_libmem.cc
f1263147 903tests_testURL_LDADD = \
f49e4f7b 904 libsquid.la \
f1263147 905 anyp/libanyp.la \
6c880a16 906 parser/libparser.la \
65f92818 907 base/libbase.la \
65f92818 908 ip/libip.la \
f1263147 909 sbuf/libsbuf.la \
f1263147 910 $(top_builddir)/lib/libmiscencoding.la \
f1263147
AJ
911 $(LIBCPPUNIT_LIBS) \
912 $(COMPAT_LIB) \
913 $(XTRA_LIBS)
914tests_testURL_LDFLAGS = $(LIBADD_DL)
915
916## Tests of dns/*
917
918check_PROGRAMS += tests/testDns
c1a2df00 919tests_testDns_SOURCES = \
f1263147
AJ
920 tests/testRFC1035.cc \
921 tests/testRFC1035.h
c1a2df00
AJ
922nodist_tests_testDns_SOURCES=
923tests_testDns_LDADD = \
f1263147 924 dns/libdns.la \
f1263147
AJ
925 $(LIBCPPUNIT_LIBS) \
926 $(COMPAT_LIB) \
927 $(XTRA_LIBS)
c1a2df00 928tests_testDns_LDFLAGS = $(LIBADD_DL)
f1263147
AJ
929
930## Tests of parser/*
931
932check_PROGRAMS += tests/testTokenizer
933tests_testTokenizer_SOURCES = \
c1a2df00
AJ
934 tests/testTokenizer.cc \
935 tests/testTokenizer.h
f1263147 936nodist_tests_testTokenizer_SOURCES = \
aa5639dc 937 tests/stub_StatHist.cc \
f1263147
AJ
938 tests/stub_debug.cc \
939 tests/stub_libmem.cc \
aa5639dc 940 parser/Tokenizer.h
f1263147
AJ
941tests_testTokenizer_LDADD = \
942 parser/libparser.la \
f1263147 943 sbuf/libsbuf.la \
c1a2df00 944 base/libbase.la \
f1263147
AJ
945 $(LIBCPPUNIT_LIBS) \
946 $(COMPAT_LIB) \
947 $(XTRA_LIBS)
948tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
949
950## Tests of sbuf/* and String handling objects
951
952check_PROGRAMS += tests/testSBuf
c1a2df00 953tests_testSBuf_SOURCES = \
c1a2df00 954 tests/testSBuf.cc \
aa5639dc 955 tests/testSBuf.h \
956 tests/SBufFindTest.cc \
957 tests/SBufFindTest.h
c1a2df00 958nodist_tests_testSBuf_SOURCES = \
aa5639dc 959 tests/stub_StatHist.cc \
f1263147 960 tests/stub_debug.cc \
aa5639dc 961 tests/stub_libmem.cc
c1a2df00 962tests_testSBuf_LDADD = \
f1263147
AJ
963 sbuf/libsbuf.la \
964 base/libbase.la \
965 $(LIBCPPUNIT_LIBS) \
966 $(COMPAT_LIB) \
967 $(XTRA_LIBS)
968tests_testSBuf_LDFLAGS = $(LIBADD_DL)
969
970check_PROGRAMS += tests/testSBufList
c1a2df00 971tests_testSBufList_SOURCES = \
f1263147 972 tests/testSBufList.cc \
c1a2df00
AJ
973 tests/testSBufList.h
974nodist_tests_testSBufList_SOURCES = \
aa5639dc 975 tests/stub_StatHist.cc \
f1263147 976 tests/stub_debug.cc \
aa5639dc 977 tests/stub_libmem.cc
c1a2df00 978tests_testSBufList_LDADD = \
f1263147
AJ
979 sbuf/libsbuf.la \
980 base/libbase.la \
981 $(LIBCPPUNIT_LIBS) \
982 $(COMPAT_LIB) \
983 $(XTRA_LIBS)
984tests_testSBufList_LDFLAGS = $(LIBADD_DL)
985
986check_PROGRAMS += tests/testString
f1263147 987tests_testString_SOURCES = \
f1263147 988 tests/testString.cc \
c1a2df00 989 tests/testString.h
f1263147 990nodist_tests_testString_SOURCES = \
c1a2df00 991 tests/stub_SBuf.cc \
aa5639dc 992 String.cc \
c1a2df00 993 tests/stub_debug.cc \
8b082ed9 994 tests/stub_event.cc \
c1a2df00 995 tests/stub_libmem.cc
f1263147
AJ
996tests_testString_LDADD = \
997 base/libbase.la \
d93bf055 998 $(LIBCPPUNIT_LIBS) \
0f1173d4 999 $(COMPAT_LIB) \
3ae8895c 1000 $(XTRA_LIBS)
f1263147 1001tests_testString_LDFLAGS = $(LIBADD_DL)
62ee09ca 1002
f1263147
AJ
1003## Tests of fs/*
1004
1005if ENABLE_FS_ROCK
1006check_PROGRAMS += tests/testRock
1007tests_testRock_SOURCES = \
aa5639dc 1008 $(DELAY_POOL_SOURCE) \
1009 $(STOREMETA_SOURCE) \
1010 $(UNLINKDSOURCE) \
da6dbcd1
EB
1011 AccessLogEntry.cc \
1012 AccessLogEntry.h \
aa5639dc 1013 tests/stub_CacheDigest.cc \
b814e8d4 1014 CacheDigest.h \
aa5639dc 1015 tests/stub_CachePeer.cc \
f1263147 1016 CollapsedForwarding.cc \
aa5639dc 1017 CollapsedForwarding.h \
62a0ef44
AJ
1018 ConfigOption.cc \
1019 ConfigParser.cc \
f1263147 1020 ETag.cc \
62a0ef44 1021 EventLoop.cc \
f1263147 1022 FadingCounter.cc \
75f8f9a2 1023 FileMap.h \
aa5639dc 1024 tests/stub_HelperChildConfig.cc \
62a0ef44 1025 HttpBody.cc \
aa5639dc 1026 HttpBody.h \
ce394734 1027 HttpHdrCc.cc \
62a0ef44 1028 HttpHdrContRange.cc \
f1263147 1029 HttpHdrRange.cc \
62a0ef44
AJ
1030 HttpHdrSc.cc \
1031 HttpHdrScTarget.cc \
f1263147 1032 HttpHeader.cc \
aa5639dc 1033 HttpHeader.h \
79cb238d 1034 HttpHeaderFieldInfo.h \
aa5639dc 1035 HttpHeaderFieldStat.h \
62a0ef44 1036 HttpHeaderTools.cc \
aa5639dc 1037 HttpHeaderTools.h \
62a0ef44 1038 HttpReply.cc \
aa5639dc 1039 tests/stub_HttpRequest.cc \
d2a6dcba 1040 LogTags.cc \
94bfd31f
AJ
1041 MasterXaction.cc \
1042 MasterXaction.h \
62a0ef44
AJ
1043 MemBuf.cc \
1044 MemObject.cc \
f1263147 1045 MemStore.cc \
efc9a0c6 1046 Notes.cc \
aa5639dc 1047 Notes.h \
62a0ef44 1048 Parsing.cc \
aa5639dc 1049 tests/stub_Port.cc \
62a0ef44 1050 RemovalPolicy.cc \
f206b652 1051 RequestFlags.cc \
f1263147 1052 RequestFlags.h \
55622953
CT
1053 ResolvedPeers.cc \
1054 ResolvedPeers.h \
aa5639dc 1055 tests/testRock.cc \
1056 tests/testRock.h \
e4f1fdae 1057 StatCounters.cc \
aa5639dc 1058 StatCounters.h \
4541d989 1059 tests/stub_StatHist.cc \
aa5639dc 1060 StatHist.h \
62a0ef44
AJ
1061 StoreFileSystem.cc \
1062 StoreIOState.cc \
62a0ef44 1063 StoreMetaUnpacker.cc \
aa5639dc 1064 tests/testStoreSupport.cc \
1065 tests/testStoreSupport.h \
62a0ef44 1066 StoreSwapLogData.cc \
0a59b726 1067 StrList.cc \
aa5639dc 1068 StrList.h \
1069 String.cc \
cb868059 1070 Transients.cc \
aa5639dc 1071 Transients.h \
62a0ef44 1072 tests/stub_access_log.cc \
62a0ef44 1073 tests/stub_cache_cf.cc \
aa5639dc 1074 cache_cf.h \
48d54e4d 1075 tests/stub_cache_manager.cc \
aa5639dc 1076 cbdata.cc \
1b76e6c1 1077 tests/stub_client_db.cc \
e227da8d 1078 tests/stub_client_side.cc \
62a0ef44 1079 tests/stub_client_side_request.cc \
62a0ef44
AJ
1080 tests/stub_debug.cc \
1081 tests/stub_errorpage.cc \
aa5639dc 1082 event.cc \
1083 fatal.cc \
1084 fatal.h \
1085 fd.cc \
1086 fd.h \
1087 fde.cc \
1088 fde.h \
1089 filemap.cc \
bf95c10a 1090 tests/stub_fqdncache.cc \
aa5639dc 1091 fs_io.cc \
1092 fs_io.h \
62a0ef44 1093 tests/stub_http.cc \
3e00a374 1094 tests/stub_icp.cc \
aa5639dc 1095 int.cc \
1096 int.h \
1b76e6c1 1097 tests/stub_ipc.cc \
3e00a374 1098 tests/stub_ipcache.cc \
aa5639dc 1099 tests/stub_libanyp.cc \
1100 tests/stub_libauth.cc \
83b053a0 1101 tests/stub_liberror.cc \
83b62d3f 1102 tests/stub_libeui.cc \
f4698e0b 1103 tests/stub_libformat.cc \
98a6543e 1104 tests/stub_libicmp.cc \
da6dbcd1 1105 tests/stub_liblog.cc \
f1263147
AJ
1106 tests/stub_libmgr.cc \
1107 tests/stub_libsecurity.cc \
aa5639dc 1108 log/access_log.h \
1109 mem_node.cc \
62a0ef44 1110 tests/stub_mime.cc \
aa5639dc 1111 mime.h \
e8dca475 1112 tests/stub_neighbors.cc \
f1263147 1113 tests/stub_pconn.cc \
aa5639dc 1114 repl_modules.h \
1115 tests/stub_stat.cc \
1116 stmem.cc \
1117 store.cc \
62a0ef44 1118 tests/stub_store_client.cc \
aa5639dc 1119 store_io.cc \
1120 store_key_md5.cc \
1121 store_key_md5.h \
62a0ef44 1122 tests/stub_store_rebuild.cc \
aa5639dc 1123 store_rebuild.h \
f1263147 1124 tests/stub_store_stats.cc \
aa5639dc 1125 store_swapmeta.cc \
1126 store_swapout.cc \
aa5639dc 1127 tests/stub_tools.cc \
1128 tools.h \
f1263147 1129 wordlist.cc \
aa5639dc 1130 wordlist.h
f1263147
AJ
1131nodist_tests_testRock_SOURCES = \
1132 $(TESTSOURCES) \
f1263147
AJ
1133 SquidMath.cc \
1134 SquidMath.h \
aa5639dc 1135 hier_code.cc \
f1263147
AJ
1136 swap_log_op.cc
1137tests_testRock_LDADD = \
1138 http/libhttp.la \
1139 parser/libparser.la \
1140 libsquid.la \
1141 comm/libcomm.la \
1142 ip/libip.la \
1143 fs/libfs.la \
1144 $(COMMON_LIBS) \
1145 $(REPL_OBJS) \
1146 DiskIO/libdiskio.la \
1147 acl/libacls.la \
1148 acl/libapi.la \
1149 acl/libstate.la \
1150 anyp/libanyp.la \
1151 eui/libeui.la \
1152 $(SSL_LIBS) \
1153 ipc/libipc.la \
1154 base/libbase.la \
1155 mem/libmem.la \
1156 store/libstore.la \
1157 $(ADAPTATION_LIBS) \
1158 sbuf/libsbuf.la \
98cacedb 1159 time/libtime.la \
f1263147
AJ
1160 $(top_builddir)/lib/libmisccontainers.la \
1161 $(top_builddir)/lib/libmiscencoding.la \
1162 $(top_builddir)/lib/libmiscutil.la \
1163 $(NETTLELIB) \
1164 $(REGEXLIB) \
1165 $(SSLLIB) \
1166 $(LIBCPPUNIT_LIBS) \
1167 $(COMPAT_LIB) \
1168 $(XTRA_LIBS)
1169tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1170else
1171EXTRA_DIST += \
1172 tests/testRock.cc \
1173 tests/testRock.h \
1174 tests/testStoreSupport.cc \
1175 tests/testStoreSupport.h
1176endif
1177
1178if ENABLE_FS_UFS
1179check_PROGRAMS += tests/testUfs
1180tests_testUfs_SOURCES = \
aa5639dc 1181 $(DELAY_POOL_SOURCE) \
1182 $(STOREMETA_SOURCE) \
1183 $(UNLINKDSOURCE) \
1184 $(WIN32_SOURCE) \
f1263147
AJ
1185 AccessLogEntry.cc \
1186 AccessLogEntry.h \
aa5639dc 1187 tests/stub_CacheDigest.cc \
1188 CacheDigest.h \
5f5d319e 1189 tests/stub_CachePeer.cc \
aa5639dc 1190 ClientInfo.h \
f1263147 1191 tests/stub_CollapsedForwarding.cc \
aa5639dc 1192 ConfigOption.cc \
1193 ConfigParser.cc \
1194 ETag.cc \
1195 EventLoop.cc \
f1263147 1196 FadingCounter.cc \
f1263147 1197 FileMap.h \
aa5639dc 1198 tests/stub_HelperChildConfig.cc \
f1263147 1199 HttpBody.cc \
aa5639dc 1200 HttpBody.h \
1201 HttpHdrCc.cc \
1202 HttpHdrCc.h \
1203 HttpHdrContRange.cc \
1204 HttpHdrRange.cc \
1205 HttpHdrSc.cc \
1206 HttpHdrScTarget.cc \
1207 HttpHeader.cc \
1208 HttpHeader.h \
1209 HttpHeaderFieldInfo.h \
1210 HttpHeaderFieldStat.h \
1211 HttpHeaderTools.cc \
1212 HttpHeaderTools.h \
f1263147 1213 HttpReply.cc \
aa5639dc 1214 tests/stub_HttpRequest.cc \
f1263147 1215 LogTags.cc \
f1263147
AJ
1216 MasterXaction.cc \
1217 MasterXaction.h \
aa5639dc 1218 MemBuf.cc \
f1263147
AJ
1219 MemObject.cc \
1220 MemStore.cc \
f1263147 1221 Notes.cc \
aa5639dc 1222 Notes.h \
1223 Parsing.cc \
1224 tests/stub_Port.cc \
1225 RemovalPolicy.cc \
1226 RequestFlags.cc \
1227 RequestFlags.h \
aa5639dc 1228 StatCounters.cc \
1229 StatCounters.h \
1230 StatHist.cc \
1231 StatHist.h \
1232 StoreFileSystem.cc \
f1263147
AJ
1233 StoreIOState.cc \
1234 StoreMetaUnpacker.cc \
aa5639dc 1235 tests/testStoreSupport.cc \
1236 tests/testStoreSupport.h \
1237 StoreSwapLogData.cc \
1238 StrList.cc \
1239 StrList.h \
1240 String.cc \
1241 Transients.cc \
1242 tests/stub_UdsOp.cc \
1243 tests/testUfs.cc \
1244 tests/testUfs.h \
1245 tests/stub_access_log.cc \
f1263147 1246 tests/stub_cache_cf.cc \
aa5639dc 1247 cache_cf.h \
1248 tests/stub_cache_manager.cc \
f1263147 1249 cbdata.cc \
aa5639dc 1250 tests/stub_client_db.cc \
1251 client_db.h \
e227da8d 1252 tests/stub_client_side.cc \
f1263147 1253 tests/stub_client_side_request.cc \
aa5639dc 1254 tests/stub_debug.cc \
1255 tests/stub_errorpage.cc \
1256 event.cc \
1257 tests/stub_fatal.cc \
1258 fatal.h \
1259 fd.cc \
1260 fd.h \
1261 fde.cc \
1262 fde.h \
1263 filemap.cc \
bf95c10a 1264 tests/stub_fqdncache.cc \
aa5639dc 1265 fs_io.cc \
1266 fs_io.h \
1267 tests/stub_helper.cc \
f1263147 1268 tests/stub_http.cc \
aa5639dc 1269 tests/stub_icp.cc \
1270 int.cc \
1271 int.h \
1272 tests/stub_internal.cc \
1273 internal.h \
1274 tests/stub_ipc.cc \
1275 tests/stub_ipcache.cc \
1276 tests/stub_libanyp.cc \
f1263147 1277 tests/stub_libauth.cc \
83b053a0 1278 tests/stub_liberror.cc \
aa5639dc 1279 tests/stub_libeui.cc \
1280 tests/stub_libformat.cc \
1281 tests/stub_libicmp.cc \
1282 tests/stub_liblog.cc \
1283 tests/stub_libsecurity.cc \
1284 log/access_log.h \
f1263147 1285 mem_node.cc \
f1263147 1286 tests/stub_mime.cc \
aa5639dc 1287 mime.h \
1288 tests/stub_neighbors.cc \
1289 tests/stub_pconn.cc \
f1263147 1290 refresh.cc \
aa5639dc 1291 refresh.h \
1292 repl_modules.h \
1293 tests/stub_stat.cc \
1294 stmem.cc \
1295 store.cc \
f1263147 1296 tests/stub_store_client.cc \
aa5639dc 1297 store_io.cc \
1298 store_key_md5.cc \
1299 store_key_md5.h \
1300 tests/stub_store_rebuild.cc \
1301 store_rebuild.h \
1302 tests/stub_store_stats.cc \
1303 store_swapmeta.cc \
1304 store_swapout.cc \
aa5639dc 1305 tests/stub_tools.cc \
1306 tools.h \
1307 wordlist.cc \
1308 wordlist.h
f1263147 1309nodist_tests_testUfs_SOURCES = \
62a0ef44 1310 $(TESTSOURCES) \
a98bcbee
AJ
1311 SquidMath.cc \
1312 SquidMath.h \
aa5639dc 1313 hier_code.cc \
4b981814 1314 swap_log_op.cc
f1263147 1315tests_testUfs_LDADD = \
ca3a08e2
AJ
1316 http/libhttp.la \
1317 parser/libparser.la \
8822ebee 1318 CommCalls.o \
65f92818
AJ
1319 ident/libident.la \
1320 acl/libacls.la \
65f92818 1321 acl/libstate.la \
f1263147
AJ
1322 acl/libapi.la \
1323 libsquid.la \
65f92818
AJ
1324 ip/libip.la \
1325 fs/libfs.la \
f1263147 1326 mgr/libmgr.la \
25f98340 1327 $(REPL_OBJS) \
f1263147 1328 acl/libacls.la \
13d8c08c 1329 DiskIO/libdiskio.la \
25f98340 1330 acl/libapi.la \
fa720bfb 1331 anyp/libanyp.la \
10a69fc0 1332 $(SSL_LIBS) \
d5d5493b 1333 ipc/libipc.la \
f1263147 1334 comm/libcomm.la \
4a3b98d7 1335 dns/libdns.la \
d5d5493b 1336 base/libbase.la \
f1263147 1337 ip/libip.la \
ed6e9fb9 1338 mem/libmem.la \
2745fea5 1339 store/libstore.la \
f1263147 1340 $(ADAPTATION_LIBS) \
65e41a45 1341 sbuf/libsbuf.la \
98cacedb 1342 time/libtime.la \
25f98340
AJ
1343 $(top_builddir)/lib/libmisccontainers.la \
1344 $(top_builddir)/lib/libmiscencoding.la \
1345 $(top_builddir)/lib/libmiscutil.la \
09cd7204 1346 $(NETTLELIB) \
c2afddd8 1347 $(REGEXLIB) \
25f98340 1348 $(SSLLIB) \
d93bf055 1349 $(LIBCPPUNIT_LIBS) \
25f98340 1350 $(COMPAT_LIB) \
3ae8895c 1351 $(XTRA_LIBS)
f1263147
AJ
1352tests_testUfs_LDFLAGS = $(LIBADD_DL)
1353else
1354EXTRA_DIST += \
1355 tests/testUfs.cc \
1356 tests/testUfs.h
1357endif
b7717b61 1358
f1263147 1359## Tests of store/* and Store objects
4a3b98d7 1360
f1263147
AJ
1361check_PROGRAMS += tests/testStore
1362## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1363## first line - what we are testing.
aa5639dc 1364tests_testStore_SOURCES = \
1365 $(DELAY_POOL_SOURCE) \
b030f3e1 1366 tests/stub_CacheDigest.cc \
aa5639dc 1367 CacheDigest.h \
281422f8 1368 ClientInfo.h \
cb868059 1369 tests/stub_CollapsedForwarding.cc \
a553a5a3 1370 ConfigOption.cc \
1371 ConfigParser.cc \
f1263147 1372 ETag.cc \
62a0ef44 1373 EventLoop.cc \
75f8f9a2 1374 FileMap.h \
aa5639dc 1375 tests/stub_HelperChildConfig.cc \
1376 HttpBody.cc \
1377 HttpBody.h \
ce394734 1378 HttpHdrCc.cc \
aa5639dc 1379 HttpHdrCc.h \
a553a5a3 1380 HttpHdrContRange.cc \
1381 HttpHdrRange.cc \
1382 HttpHdrSc.cc \
1383 HttpHdrScTarget.cc \
aa5639dc 1384 HttpHeader.cc \
1385 HttpHeader.h \
f1263147 1386 HttpHeaderFieldInfo.h \
aa5639dc 1387 HttpHeaderFieldStat.h \
f1263147 1388 HttpHeaderTools.cc \
aa5639dc 1389 HttpHeaderTools.h \
1390 tests/stub_HttpReply.cc \
1391 tests/stub_HttpRequest.cc \
94bfd31f
AJ
1392 MasterXaction.cc \
1393 MasterXaction.h \
a553a5a3 1394 MemBuf.cc \
1395 MemObject.cc \
f1263147 1396 MemStore.cc \
f1263147 1397 Notes.cc \
aa5639dc 1398 Notes.h \
1399 tests/testPackableStream.cc \
1400 tests/testPackableStream.h \
a553a5a3 1401 Parsing.cc \
aa5639dc 1402 tests/stub_Port.cc \
f1263147 1403 RemovalPolicy.cc \
aa5639dc 1404 RequestFlags.cc \
1405 RequestFlags.h \
e4f1fdae 1406 StatCounters.cc \
aa5639dc 1407 StatCounters.h \
a553a5a3 1408 StatHist.cc \
aa5639dc 1409 StatHist.h \
1410 tests/testStore.cc \
1411 tests/testStore.h \
1412 tests/testStoreController.cc \
1413 tests/testStoreController.h \
70ac5b29 1414 StoreFileSystem.cc \
aa5639dc 1415 tests/testStoreHashIndex.cc \
1416 tests/testStoreHashIndex.h \
a553a5a3 1417 StoreIOState.cc \
2e878f54 1418 tests/stub_StoreMeta.cc \
a553a5a3 1419 StoreMetaUnpacker.cc \
aa5639dc 1420 tests/testStoreSupport.cc \
1421 tests/testStoreSupport.h \
a553a5a3 1422 StoreSwapLogData.cc \
f1263147 1423 StrList.cc \
aa5639dc 1424 StrList.h \
1425 String.cc \
1426 Transients.cc \
1427 tests/stub_UdsOp.cc \
f1263147 1428 tests/stub_access_log.cc \
f1263147 1429 tests/stub_cache_cf.cc \
aa5639dc 1430 cache_cf.h \
f1263147 1431 tests/stub_cache_manager.cc \
aa5639dc 1432 cbdata.cc \
e227da8d 1433 tests/stub_client_side.cc \
f1263147
AJ
1434 tests/stub_client_side_request.cc \
1435 tests/stub_comm.cc \
1436 tests/stub_debug.cc \
1437 tests/stub_errorpage.cc \
aa5639dc 1438 event.cc \
1439 tests/stub_fatal.cc \
1440 fatal.h \
1441 tests/stub_fd.cc \
f1263147
AJ
1442 fd.h \
1443 fde.h \
aa5639dc 1444 filemap.cc \
1445 fs_io.cc \
1446 fs_io.h \
f1263147 1447 tests/stub_helper.cc \
f1263147 1448 tests/stub_http.cc \
aa5639dc 1449 int.cc \
1450 int.h \
1451 tests/stub_libanyp.cc \
1dffcf05 1452 tests/stub_libauth.cc \
aa5639dc 1453 tests/stub_libcomm.cc \
f1263147 1454 tests/stub_libdiskio.cc \
83b053a0 1455 tests/stub_liberror.cc \
aa5639dc 1456 tests/stub_libeui.cc \
f1263147
AJ
1457 tests/stub_libformat.cc \
1458 tests/stub_libsecurity.cc \
1459 tests/stub_libsslsquid.cc \
aa5639dc 1460 log/access_log.h \
1461 mem_node.cc \
f1263147 1462 tests/stub_mime.cc \
aa5639dc 1463 mime.h \
1464 refresh.cc \
1465 refresh.h \
1466 repl_modules.h \
f1263147 1467 tests/stub_stat.cc \
aa5639dc 1468 stmem.cc \
1469 store.cc \
f1263147 1470 tests/stub_store_client.cc \
aa5639dc 1471 store_io.cc \
1472 store_key_md5.cc \
1473 store_key_md5.h \
f1263147 1474 tests/stub_store_rebuild.cc \
aa5639dc 1475 store_rebuild.h \
1476 tests/stub_store_stats.cc \
1477 store_swapout.cc \
f1263147 1478 tests/stub_store_swapout.cc \
aa5639dc 1479 tests/CapturingStoreEntry.h \
f1263147
AJ
1480 tests/TestSwapDir.cc \
1481 tests/TestSwapDir.h \
aa5639dc 1482 tests/stub_tools.cc \
1483 tools.h \
1484 wordlist.cc \
1485 wordlist.h
1486nodist_tests_testStore_SOURCES = \
1487 $(TESTSOURCES) \
f1263147
AJ
1488 SquidMath.cc \
1489 SquidMath.h \
98cacedb 1490 tests/stub_libtime.cc \
aa5639dc 1491 swap_log_op.cc
f1263147 1492tests_testStore_LDADD= \
f49e4f7b 1493 libsquid.la \
ca3a08e2
AJ
1494 http/libhttp.la \
1495 parser/libparser.la \
62a0ef44
AJ
1496 ident/libident.la \
1497 acl/libacls.la \
62a0ef44 1498 acl/libstate.la \
62a0ef44 1499 acl/libapi.la \
4a3b98d7 1500 dns/libdns.la \
62a0ef44 1501 base/libbase.la \
62a0ef44
AJ
1502 ip/libip.la \
1503 fs/libfs.la \
f1263147 1504 mgr/libmgr.la \
0c3d3f65 1505 anyp/libanyp.la \
f1263147
AJ
1506 mem/libmem.la \
1507 store/libstore.la \
1508 sbuf/libsbuf.la \
1509 DiskIO/libdiskio.la \
d8ee9e8d 1510 ipc/libipc.la \
25f98340
AJ
1511 $(top_builddir)/lib/libmisccontainers.la \
1512 $(top_builddir)/lib/libmiscencoding.la \
1513 $(top_builddir)/lib/libmiscutil.la \
09cd7204 1514 $(NETTLELIB) \
c2afddd8 1515 $(REGEXLIB) \
3ae8895c 1516 $(SSLLIB) \
f1263147 1517 CommCalls.o \
d93bf055 1518 $(LIBCPPUNIT_LIBS) \
0f1173d4 1519 $(COMPAT_LIB) \
3ae8895c 1520 $(XTRA_LIBS)
f1263147 1521tests_testStore_LDFLAGS = $(LIBADD_DL)
a553a5a3 1522
f1263147
AJ
1523## Tests of DiskIO/*
1524
1525check_PROGRAMS += tests/testDiskIO
1526tests_testDiskIO_SOURCES = \
aa5639dc 1527 $(DELAY_POOL_SOURCE) \
1528 $(UNLINKDSOURCE) \
1529 $(WIN32_SOURCE) \
d4204018 1530 AccessLogEntry.cc \
f1263147 1531 AccessLogEntry.h \
b030f3e1 1532 tests/stub_CacheDigest.cc \
aa5639dc 1533 CacheDigest.h \
5f5d319e 1534 tests/stub_CachePeer.cc \
281422f8 1535 ClientInfo.h \
cb868059 1536 tests/stub_CollapsedForwarding.cc \
a553a5a3 1537 ConfigOption.cc \
1538 ConfigParser.cc \
aa5639dc 1539 tests/testDiskIO.cc \
1540 tests/testDiskIO.h \
71b07460 1541 tests/stub_ETag.cc \
62a0ef44 1542 EventLoop.cc \
aa5639dc 1543 FadingCounter.cc \
75f8f9a2 1544 FileMap.h \
aa5639dc 1545 tests/stub_HelperChildConfig.cc \
a553a5a3 1546 HttpBody.cc \
aa5639dc 1547 HttpBody.h \
ce394734 1548 HttpHdrCc.cc \
aa5639dc 1549 HttpHdrCc.h \
a553a5a3 1550 HttpHdrContRange.cc \
aa5639dc 1551 HttpHdrRange.cc \
a553a5a3 1552 HttpHdrSc.cc \
1553 HttpHdrScTarget.cc \
aa5639dc 1554 HttpHeader.cc \
1555 HttpHeader.h \
f1263147 1556 HttpHeaderFieldInfo.h \
aa5639dc 1557 HttpHeaderFieldStat.h \
f1263147 1558 HttpHeaderTools.cc \
aa5639dc 1559 HttpHeaderTools.h \
a553a5a3 1560 HttpReply.cc \
aa5639dc 1561 tests/stub_HttpRequest.cc \
53f5404d 1562 LogTags.cc \
94bfd31f
AJ
1563 MasterXaction.cc \
1564 MasterXaction.h \
a553a5a3 1565 MemBuf.cc \
1566 MemObject.cc \
aa5639dc 1567 tests/stub_MemStore.cc \
f1263147 1568 Notes.cc \
aa5639dc 1569 Notes.h \
a553a5a3 1570 Parsing.cc \
aa5639dc 1571 tests/stub_Port.cc \
f1263147 1572 RemovalPolicy.cc \
f1263147 1573 RequestFlags.cc \
aa5639dc 1574 RequestFlags.h \
55622953
CT
1575 ResolvedPeers.cc \
1576 ResolvedPeers.h \
f1263147 1577 StatCounters.cc \
aa5639dc 1578 StatCounters.h \
f1263147 1579 tests/stub_StatHist.cc \
aa5639dc 1580 StatHist.h \
f1263147
AJ
1581 StoreFileSystem.cc \
1582 StoreIOState.cc \
1583 tests/stub_StoreMeta.cc \
1584 StoreMetaUnpacker.cc \
aa5639dc 1585 tests/testStoreSupport.cc \
1586 tests/testStoreSupport.h \
f1263147 1587 StoreSwapLogData.cc \
f1263147 1588 StrList.cc \
aa5639dc 1589 StrList.h \
1590 String.cc \
f1263147 1591 Transients.cc \
aa5639dc 1592 tests/stub_UdsOp.cc \
f1263147 1593 tests/stub_access_log.cc \
f1263147 1594 tests/stub_cache_cf.cc \
aa5639dc 1595 cache_cf.h \
f1263147 1596 tests/stub_cache_manager.cc \
aa5639dc 1597 cbdata.cc \
f1263147 1598 tests/stub_client_db.cc \
aa5639dc 1599 client_db.h \
e227da8d 1600 tests/stub_client_side.cc \
f1263147 1601 tests/stub_client_side_request.cc \
aa5639dc 1602 client_side_request.h \
f1263147
AJ
1603 tests/stub_debug.cc \
1604 tests/stub_errorpage.cc \
aa5639dc 1605 event.cc \
1606 tests/stub_fatal.cc \
1607 fatal.h \
1608 fd.cc \
1609 fd.h \
1610 fde.cc \
1611 fde.h \
1612 filemap.cc \
bf95c10a 1613 tests/stub_fqdncache.cc \
aa5639dc 1614 fs_io.cc \
1615 fs_io.h \
f1263147 1616 tests/stub_helper.cc \
f1263147
AJ
1617 tests/stub_http.cc \
1618 tests/stub_icp.cc \
aa5639dc 1619 int.cc \
1620 int.h \
f1263147 1621 tests/stub_internal.cc \
aa5639dc 1622 internal.h \
f1263147
AJ
1623 tests/stub_ipc.cc \
1624 tests/stub_ipcache.cc \
aa5639dc 1625 tests/stub_libanyp.cc \
f1263147 1626 tests/stub_libauth.cc \
aa5639dc 1627 tests/stub_libauth_acls.cc \
83b053a0 1628 tests/stub_liberror.cc \
f1263147
AJ
1629 tests/stub_libeui.cc \
1630 tests/stub_libformat.cc \
1631 tests/stub_libicmp.cc \
1632 tests/stub_liblog.cc \
aa5639dc 1633 tests/stub_libsecurity.cc \
1634 tests/stub_libstore.cc \
1635 log/access_log.h \
1636 mem_node.cc \
f1263147 1637 tests/stub_mime.cc \
aa5639dc 1638 mime.h \
f1263147
AJ
1639 tests/stub_neighbors.cc \
1640 tests/stub_pconn.cc \
aa5639dc 1641 refresh.cc \
1642 refresh.h \
1643 repl_modules.h \
f1263147 1644 tests/stub_stat.cc \
aa5639dc 1645 stmem.cc \
1646 store.cc \
f1263147 1647 tests/stub_store_client.cc \
aa5639dc 1648 store_io.cc \
1649 store_key_md5.cc \
1650 store_key_md5.h \
f1263147 1651 tests/stub_store_rebuild.cc \
aa5639dc 1652 store_rebuild.h \
1653 tests/stub_store_stats.cc \
1654 store_swapmeta.cc \
1655 store_swapout.cc \
aa5639dc 1656 tests/stub_tools.cc \
f1263147 1657 tools.h \
aa5639dc 1658 wordlist.cc \
1659 wordlist.h
1660nodist_tests_testDiskIO_SOURCES = \
f1263147 1661 $(TESTSOURCES) \
f1263147 1662 SquidMath.cc \
a98bcbee 1663 SquidMath.h \
aa5639dc 1664 hier_code.cc \
98cacedb 1665 tests/stub_libtime.cc \
f1263147
AJ
1666 swap_log_op.cc
1667tests_testDiskIO_LDADD = \
1668 libsquid.la \
1669 http/libhttp.la \
1670 parser/libparser.la \
1671 SquidConfig.o \
1672 CommCalls.o \
1673 ident/libident.la \
1674 acl/libacls.la \
1675 acl/libstate.la \
1676 comm/libcomm.la \
1677 ip/libip.la \
1678 fs/libfs.la \
1679 ipc/libipc.la \
1680 $(REPL_OBJS) \
1681 $(ADAPTATION_LIBS) \
1682 DiskIO/libdiskio.la \
1683 acl/libapi.la \
1684 anyp/libanyp.la \
1685 mgr/libmgr.la \
1686 $(SSL_LIBS) \
1687 ipc/libipc.la \
1688 dns/libdns.la \
1689 base/libbase.la \
1690 mem/libmem.la \
f1263147
AJ
1691 sbuf/libsbuf.la \
1692 $(top_builddir)/lib/libmisccontainers.la \
1693 $(top_builddir)/lib/libmiscencoding.la \
1694 $(top_builddir)/lib/libmiscutil.la \
1695 $(NETTLELIB) \
1696 $(REGEXLIB) \
1697 $(SSLLIB) \
1698 $(LIBCPPUNIT_LIBS) \
1699 $(COMPAT_LIB) \
1700 $(XTRA_LIBS)
1701tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1702
1703## Tests of auth/*
1704
c1a2df00
AJ
1705if ENABLE_AUTH
1706check_PROGRAMS += tests/testACLMaxUserIP
1707tests_testACLMaxUserIP_SOURCES = \
1708 tests/testACLMaxUserIP.cc \
1709 tests/testACLMaxUserIP.h
1710nodist_tests_testACLMaxUserIP_SOURCES = \
f1263147 1711 ConfigParser.cc \
aa5639dc 1712 tests/stub_HelperChildConfig.cc \
1713 tests/stub_HttpHeader.cc \
1714 tests/stub_HttpRequest.cc \
1715 tests/stub_MemBuf.cc \
f1263147 1716 Parsing.cc \
aa5639dc 1717 tests/stub_StatHist.cc \
f1263147 1718 String.cc \
f1263147 1719 tests/stub_access_log.cc \
f1263147 1720 tests/stub_cache_cf.cc \
c1a2df00 1721 tests/stub_cbdata.cc \
f1263147
AJ
1722 tests/stub_client_side.cc \
1723 tests/stub_debug.cc \
aa5639dc 1724 dlink.cc \
f1263147 1725 tests/stub_errorpage.cc \
c1a2df00 1726 tests/stub_fatal.cc \
aa5639dc 1727 globals.cc \
f02539d9 1728 tests/stub_libauth.cc \
c1a2df00 1729 tests/stub_libhttp.cc \
f1263147 1730 tests/stub_libmem.cc \
aa5639dc 1731 tests/stub_libsecurity.cc
c1a2df00 1732tests_testACLMaxUserIP_LDADD = \
f1263147 1733 $(AUTH_ACL_LIBS) \
62a0ef44 1734 acl/libapi.la \
c1a2df00
AJ
1735 acl/libstate.la \
1736 acl/libacls.la \
1737 SquidConfig.o \
62a0ef44 1738 ip/libip.la \
c1a2df00 1739 parser/libparser.la \
65e41a45 1740 sbuf/libsbuf.la \
c1a2df00 1741 base/libbase.la \
3ae8895c 1742 $(SSLLIB) \
d93bf055 1743 $(LIBCPPUNIT_LIBS) \
0f1173d4 1744 $(COMPAT_LIB) \
3ae8895c 1745 $(XTRA_LIBS)
f1263147 1746tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
c1a2df00
AJ
1747else
1748EXTRA_DIST += \
1749 tests/testACLMaxUserIP.cc \
1750 tests/testACLMaxUserIP.h
1751endif
62ee09ca 1752
f1263147
AJ
1753## Tests of http/* and HTTP Protocol objects
1754
1755check_PROGRAMS += tests/test_http_range
f24583c1 1756tests_test_http_range_SOURCES = \
aa5639dc 1757 $(DELAY_POOL_SOURCE) \
1758 $(DNSSOURCE) \
1759 $(HTCPSOURCE) \
1760 $(IPC_SOURCE) \
1761 $(SNMP_SOURCE) \
1762 $(UNLINKDSOURCE) \
1763 $(WIN32_SOURCE) \
d4204018 1764 AccessLogEntry.cc \
89736861 1765 AuthReg.h \
aa5639dc 1766 BodyPipe.cc \
1767 tests/stub_CacheDigest.cc \
1768 CacheDigest.h \
719815a0
AJ
1769 CachePeer.cc \
1770 CachePeer.h \
281422f8 1771 ClientInfo.h \
cb868059 1772 tests/stub_CollapsedForwarding.cc \
f24583c1 1773 ConfigOption.cc \
1774 ConfigParser.cc \
96c2bb61
AR
1775 CpuAffinityMap.cc \
1776 CpuAffinityMap.h \
1777 CpuAffinitySet.cc \
1778 CpuAffinitySet.h \
aa5639dc 1779 tests/stub_ETag.cc \
1780 tests/stub_EventLoop.cc \
1781 FadingCounter.cc \
1782 FileMap.h \
1783 FwdState.cc \
1784 FwdState.h \
1785 HappyConnOpener.cc \
1786 HappyConnOpener.h \
1787 HttpBody.cc \
1788 HttpBody.h \
1789 tests/stub_HttpControlMsg.cc \
1790 HttpHdrCc.cc \
1791 HttpHdrCc.h \
1792 HttpHdrContRange.cc \
1793 HttpHdrRange.cc \
1794 HttpHdrSc.cc \
1795 HttpHdrScTarget.cc \
1796 HttpHeader.cc \
1797 HttpHeader.h \
1798 HttpHeaderFieldInfo.h \
1799 HttpHeaderFieldStat.h \
1800 HttpHeaderTools.cc \
1801 HttpHeaderTools.h \
1802 HttpReply.cc \
1803 HttpRequest.cc \
1804 tests/stub_HttpUpgradeProtocolAccess.cc \
1805 IoStats.h \
70ac5b29 1806 tests/stub_IpcIoFile.cc \
aa5639dc 1807 LogTags.cc \
1808 MasterXaction.cc \
1809 MasterXaction.h \
1810 MemBuf.cc \
1811 MemObject.cc \
1812 tests/stub_MemStore.cc \
1813 Notes.cc \
1814 Notes.h \
1815 Parsing.cc \
1816 PeerPoolMgr.cc \
1817 PeerPoolMgr.h \
1818 Pipeline.cc \
1819 Pipeline.h \
1820 RefreshPattern.h \
1821 RemovalPolicy.cc \
1822 RequestFlags.cc \
1823 RequestFlags.h \
1824 ResolvedPeers.cc \
1825 ResolvedPeers.h \
aa5639dc 1826 SquidMath.cc \
1827 SquidMath.h \
1828 StatCounters.cc \
1829 StatCounters.h \
1830 StatHist.cc \
1831 StatHist.h \
1832 StoreFileSystem.cc \
1833 StoreIOState.cc \
1834 tests/stub_StoreMeta.cc \
1835 StoreMetaUnpacker.cc \
1836 StoreSwapLogData.cc \
1837 StrList.cc \
1838 StrList.h \
1839 String.cc \
1840 Transients.cc \
1841 tests/test_http_range.cc \
1842 tests/stub_cache_cf.cc \
1843 cache_cf.h \
1844 cache_manager.cc \
1845 tests/stub_carp.cc \
1846 carp.h \
1847 cbdata.cc \
1848 clientStream.cc \
1849 tests/stub_client_db.cc \
1850 client_side.cc \
1851 client_side.h \
1852 client_side_reply.cc \
1853 client_side_request.cc \
e1f7507e 1854 dlink.cc \
aa5639dc 1855 dlink.h \
f24583c1 1856 errorpage.cc \
aa5639dc 1857 event.cc \
1858 tests/stub_external_acl.cc \
1f0a1fe7 1859 tests/stub_fatal.cc \
aa5639dc 1860 fatal.h \
f24583c1 1861 fd.cc \
aa5639dc 1862 fd.h \
f24583c1 1863 fde.cc \
c7d88a0b 1864 filemap.cc \
f24583c1 1865 fqdncache.cc \
aa5639dc 1866 fqdncache.h \
1867 fs_io.cc \
1868 fs_io.h \
c1a2df00 1869 tests/stub_gopher.cc \
aa5639dc 1870 gopher.h \
f24583c1 1871 helper.cc \
bbaf2685 1872 hier_code.h \
f24583c1 1873 http.cc \
f24583c1 1874 icp_v2.cc \
1875 icp_v3.cc \
f24583c1 1876 int.cc \
aa5639dc 1877 int.h \
f24583c1 1878 internal.cc \
aa5639dc 1879 internal.h \
1880 tests/stub_ipc_Forwarder.cc \
f24583c1 1881 ipcache.cc \
aa5639dc 1882 tests/stub_libauth.cc \
1883 tests/stub_libdiskio.cc \
83b053a0 1884 tests/stub_liberror.cc \
aa5639dc 1885 tests/stub_libeui.cc \
ed6e9fb9 1886 tests/stub_libmem.cc \
aa5639dc 1887 tests/stub_libsecurity.cc \
1888 tests/stub_libstore.cc \
1889 tests/stub_main_cc.cc \
f24583c1 1890 mem_node.cc \
f24583c1 1891 mime.cc \
aa5639dc 1892 mime.h \
0f9db2d6 1893 mime_header.cc \
aa5639dc 1894 mime_header.h \
f24583c1 1895 multicast.cc \
aa5639dc 1896 multicast.h \
f24583c1 1897 neighbors.cc \
aa5639dc 1898 neighbors.h \
1899 pconn.cc \
f24583c1 1900 peer_digest.cc \
9ca29d23 1901 peer_proxy_negotiate_auth.cc \
aa5639dc 1902 peer_proxy_negotiate_auth.h \
f24583c1 1903 peer_select.cc \
f4a21650 1904 peer_sourcehash.cc \
aa5639dc 1905 peer_sourcehash.h \
f4a21650 1906 peer_userhash.cc \
aa5639dc 1907 peer_userhash.h \
dd1efef8 1908 tests/stub_redirect.cc \
aa5639dc 1909 redirect.h \
f24583c1 1910 refresh.cc \
aa5639dc 1911 refresh.h \
1912 repl_modules.h \
f24583c1 1913 stat.cc \
aa5639dc 1914 stat.h \
f24583c1 1915 stmem.cc \
1916 store.cc \
1917 store_client.cc \
1d4896fb 1918 tests/stub_store_digest.cc \
aa5639dc 1919 store_digest.h \
f24583c1 1920 store_io.cc \
aa5639dc 1921 store_key_md5.cc \
1922 store_key_md5.h \
f24583c1 1923 store_log.cc \
aa5639dc 1924 store_log.h \
f24583c1 1925 store_rebuild.cc \
aa5639dc 1926 store_rebuild.h \
1927 tests/stub_store_stats.cc \
f24583c1 1928 store_swapin.cc \
aa5639dc 1929 store_swapin.h \
f24583c1 1930 store_swapmeta.cc \
1931 store_swapout.cc \
f24583c1 1932 tools.cc \
aa5639dc 1933 tools.h \
2e878f54 1934 tests/stub_tunnel.cc \
8b082ed9 1935 tunnel.h \
f24583c1 1936 urn.cc \
aa5639dc 1937 urn.h \
5c681e77 1938 tests/stub_wccp2.cc \
aa5639dc 1939 wccp2.h \
1e7c380b 1940 tests/stub_whois.cc \
aa5639dc 1941 whois.h \
1942 wordlist.cc \
1943 wordlist.h
f24583c1 1944nodist_tests_test_http_range_SOURCES = \
98cacedb
AJ
1945 $(BUILT_SOURCES) \
1946 tests/stub_libtime.cc
f24583c1 1947tests_test_http_range_LDADD = \
f49e4f7b 1948 libsquid.la \
92ae4c86
AR
1949 clients/libclients.la \
1950 servers/libservers.la \
92ae4c86 1951 ftp/libftp.la \
24438ec5 1952 helper/libhelper.la \
ca3a08e2
AJ
1953 http/libhttp.la \
1954 parser/libparser.la \
62a0ef44
AJ
1955 ident/libident.la \
1956 acl/libacls.la \
62a0ef44 1957 acl/libstate.la \
62a0ef44 1958 acl/libapi.la \
36c774f7 1959 proxyp/libproxyp.la \
ca3a08e2 1960 parser/libparser.la \
62a0ef44
AJ
1961 ip/libip.la \
1962 fs/libfs.la \
0c3d3f65 1963 anyp/libanyp.la \
ca3a08e2 1964 icmp/libicmp.la \
cfd66529 1965 comm/libcomm.la \
82b7abe3 1966 log/liblog.la \
38e16f92 1967 format/libformat.la \
3ae8895c 1968 $(REPL_OBJS) \
65f92818 1969 $(ADAPTATION_LIBS) \
88bfe098 1970 $(ESI_LIBS) \
95d2589c 1971 $(SSL_LIBS) \
c7d88a0b 1972 ipc/libipc.la \
4a3b98d7 1973 dns/libdns.la \
c7d88a0b
DK
1974 base/libbase.la \
1975 mgr/libmgr.la \
65e41a45 1976 sbuf/libsbuf.la \
675b8408 1977 debug/libdebug.la \
2745fea5 1978 store/libstore.la \
c7d88a0b 1979 $(SNMP_LIBS) \
25f98340
AJ
1980 $(top_builddir)/lib/libmisccontainers.la \
1981 $(top_builddir)/lib/libmiscencoding.la \
1982 $(top_builddir)/lib/libmiscutil.la \
09cd7204 1983 $(NETTLELIB) \
c2afddd8 1984 $(REGEXLIB) \
3ae8895c
A
1985 $(SSLLIB) \
1986 $(KRB5LIBS) \
d93bf055 1987 $(LIBCPPUNIT_LIBS) \
1f8b5f0e 1988 $(SYSTEMD_LIBS) \
0f1173d4 1989 $(COMPAT_LIB) \
3ae8895c 1990 $(XTRA_LIBS)
36dca327 1991tests_test_http_range_LDFLAGS = $(LIBADD_DL)
f24583c1 1992
f1263147
AJ
1993check_PROGRAMS += tests/testHttp1Parser
1994tests_testHttp1Parser_SOURCES = \
aa5639dc 1995 tests/stub_HelperChildConfig.cc \
1996 tests/testHttp1Parser.cc \
1997 tests/testHttp1Parser.h \
f1263147
AJ
1998 MemBuf.cc \
1999 MemBuf.h \
2000 tests/stub_MemObject.cc \
aa5639dc 2001 String.cc \
f1263147 2002 tests/stub_cache_cf.cc \
aa5639dc 2003 cache_cf.h \
f1263147 2004 tests/stub_cache_manager.cc \
f1263147 2005 tests/stub_cbdata.cc \
aa5639dc 2006 tests/stub_comm.cc \
37122e21 2007 tests/stub_debug.cc \
f1263147 2008 tests/stub_event.cc \
aa5639dc 2009 tests/stub_libanyp.cc \
37122e21 2010 tests/stub_libmem.cc \
f1263147 2011 tests/stub_libsecurity.cc \
aa5639dc 2012 mime_header.cc \
2013 mime_header.h \
f1263147
AJ
2014 tests/stub_stmem.cc \
2015 tests/stub_store.cc \
2016 tests/stub_store_stats.cc \
aa5639dc 2017 tests/stub_tools.cc \
2018 tools.h \
2019 wordlist.cc \
2020 wordlist.h
f1263147 2021nodist_tests_testHttp1Parser_SOURCES = \
98cacedb
AJ
2022 $(TESTSOURCES) \
2023 tests/stub_libtime.cc
f1263147
AJ
2024tests_testHttp1Parser_LDADD= \
2025 http/libhttp.la \
ca3a08e2 2026 parser/libparser.la \
f1263147
AJ
2027 anyp/libanyp.la \
2028 SquidConfig.o \
37122e21 2029 base/libbase.la \
f1263147 2030 ip/libip.la \
65e41a45 2031 sbuf/libsbuf.la \
37122e21 2032 $(top_builddir)/lib/libmiscutil.la \
f1263147 2033 $(SSLLIB) \
d93bf055 2034 $(LIBCPPUNIT_LIBS) \
37122e21 2035 $(COMPAT_LIB) \
37122e21 2036 $(XTRA_LIBS)
f1263147 2037tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
37122e21 2038
f1263147 2039check_PROGRAMS += tests/testHttpReply
aa5639dc 2040tests_testHttpReply_SOURCES = \
f1263147
AJ
2041 ConfigParser.cc \
2042 tests/stub_ETag.cc \
aa5639dc 2043 tests/stub_HelperChildConfig.cc \
f1263147 2044 HttpBody.cc \
aa5639dc 2045 HttpBody.h \
2046 HttpControlMsg.cc \
2047 HttpControlMsg.h \
f1263147 2048 HttpHdrCc.cc \
aa5639dc 2049 HttpHdrCc.h \
f1263147
AJ
2050 HttpHdrContRange.cc \
2051 HttpHdrContRange.h \
2052 HttpHdrRange.cc \
2053 HttpHdrSc.cc \
2054 HttpHdrSc.h \
2055 HttpHdrScTarget.cc \
2056 HttpHdrScTarget.h \
f1263147 2057 HttpHeader.cc \
aa5639dc 2058 HttpHeader.h \
f1263147 2059 HttpHeaderFieldInfo.h \
aa5639dc 2060 HttpHeaderFieldStat.h \
2061 HttpHeaderMask.h \
f1263147 2062 HttpHeaderTools.cc \
aa5639dc 2063 HttpHeaderTools.h \
f1263147 2064 HttpReply.cc \
aa5639dc 2065 tests/testHttpReply.cc \
f1263147 2066 HttpReply.h \
aa5639dc 2067 tests/testHttpReply.h \
2068 tests/stub_HttpRequest.cc \
f1263147
AJ
2069 MasterXaction.cc \
2070 MasterXaction.h \
4c14658e
AJ
2071 MemBuf.cc \
2072 MemBuf.h \
f1263147 2073 Notes.cc \
aa5639dc 2074 Notes.h \
f1263147 2075 SquidString.h \
aa5639dc 2076 StatCounters.cc \
2077 StatCounters.h \
2078 tests/stub_StatHist.cc \
2079 StatHist.h \
f1263147 2080 StrList.cc \
aa5639dc 2081 StrList.h \
2082 String.cc \
f1263147 2083 tests/stub_access_log.cc \
ba465675 2084 tests/stub_cache_cf.cc \
aa5639dc 2085 cache_cf.h \
4c14658e 2086 tests/stub_cache_manager.cc \
aa5639dc 2087 cbdata.cc \
2088 cbdata.h \
4106be3f 2089 tests/stub_client_side.cc \
cb868059 2090 tests/stub_comm.cc \
4c14658e 2091 tests/stub_debug.cc \
f1263147 2092 tests/stub_errorpage.cc \
4c14658e 2093 tests/stub_event.cc \
aa5639dc 2094 tests/stub_fatal.cc \
2095 fatal.h \
f1263147 2096 tests/stub_fd.cc \
aa5639dc 2097 tests/stub_libanyp.cc \
f1263147
AJ
2098 tests/stub_libauth.cc \
2099 tests/stub_libcomm.cc \
83b053a0 2100 tests/stub_liberror.cc \
aa5639dc 2101 tests/stub_libformat.cc \
f1263147 2102 tests/stub_libmgr.cc \
a465e144 2103 tests/stub_libsecurity.cc \
f1263147 2104 tests/stub_libsslsquid.cc \
aa5639dc 2105 log/access_log.h \
2106 mime_header.cc \
2107 mime_header.h \
f1263147 2108 repl_modules.h \
93278786 2109 tests/stub_store.cc \
cb868059 2110 tests/stub_store_stats.cc \
aa5639dc 2111 tests/stub_tools.cc \
2112 tools.h \
2113 wordlist.cc \
2114 wordlist.h
2115nodist_tests_testHttpReply_SOURCES = \
f1263147 2116 $(TESTSOURCES) \
98cacedb
AJ
2117 hier_code.cc \
2118 tests/stub_libtime.cc
f1263147
AJ
2119tests_testHttpReply_LDADD=\
2120 CommCalls.o \
ca3a08e2
AJ
2121 http/libhttp.la \
2122 parser/libparser.la \
f1263147
AJ
2123 acl/libacls.la \
2124 acl/libapi.la \
2125 acl/libstate.la \
5aedd08d 2126 anyp/libanyp.la \
4c14658e 2127 ip/libip.la \
f1263147
AJ
2128 base/libbase.la \
2129 ipc/libipc.la \
2130 mem/libmem.la \
65e41a45 2131 sbuf/libsbuf.la \
f1263147
AJ
2132 $(top_builddir)/lib/libmisccontainers.la \
2133 $(top_builddir)/lib/libmiscencoding.la \
4c14658e 2134 $(top_builddir)/lib/libmiscutil.la \
f1263147 2135 $(NETTLELIB) \
6b19d1f9 2136 $(SSLLIB) \
d93bf055 2137 $(LIBCPPUNIT_LIBS) \
4c14658e 2138 $(COMPAT_LIB) \
aa5639dc 2139 $(XTRA_LIBS)
2140tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
2141
2142check_PROGRAMS += tests/testHttpRequest
2143tests_testHttpRequest_SOURCES = \
2144 $(DELAY_POOL_SOURCE) \
2145 $(DNSSOURCE) \
2146 $(HTCPSOURCE) \
2147 $(IPC_SOURCE) \
2148 $(SNMP_SOURCE) \
2149 $(WIN32_SOURCE) \
2150 AccessLogEntry.cc \
89736861 2151 AuthReg.h \
aa5639dc 2152 BodyPipe.cc \
b030f3e1 2153 tests/stub_CacheDigest.cc \
aa5639dc 2154 CacheDigest.h \
719815a0
AJ
2155 CachePeer.cc \
2156 CachePeer.h \
281422f8 2157 ClientInfo.h \
cb868059 2158 tests/stub_CollapsedForwarding.cc \
c21ad0f5 2159 ConfigOption.cc \
2160 ConfigParser.cc \
96c2bb61
AR
2161 CpuAffinityMap.cc \
2162 CpuAffinityMap.h \
2163 CpuAffinitySet.cc \
2164 CpuAffinitySet.h \
71b07460 2165 tests/stub_ETag.cc \
aa5639dc 2166 tests/stub_EventLoop.cc \
c21ad0f5 2167 ExternalACLEntry.cc \
aa5639dc 2168 FadingCounter.cc \
eb13c21e
AJ
2169 FwdState.cc \
2170 FwdState.h \
55622953
CT
2171 HappyConnOpener.cc \
2172 HappyConnOpener.h \
c21ad0f5 2173 HttpBody.cc \
aa5639dc 2174 HttpBody.h \
84540b47 2175 tests/stub_HttpControlMsg.cc \
ce394734 2176 HttpHdrCc.cc \
aa5639dc 2177 HttpHdrCc.h \
c21ad0f5 2178 HttpHdrContRange.cc \
2179 HttpHdrRange.cc \
2180 HttpHdrSc.cc \
2181 HttpHdrScTarget.cc \
aa5639dc 2182 HttpHeader.cc \
2183 HttpHeader.h \
2184 HttpHeaderFieldInfo.h \
2185 HttpHeaderFieldStat.h \
2186 HttpHeaderTools.cc \
2187 HttpHeaderTools.h \
c21ad0f5 2188 HttpReply.cc \
aa5639dc 2189 HttpRequest.cc \
2190 tests/testHttpRequest.cc \
2191 tests/testHttpRequest.h \
2192 tests/testHttpRequestMethod.cc \
2193 tests/testHttpRequestMethod.h \
2194 tests/stub_HttpUpgradeProtocolAccess.cc \
2195 IoStats.h \
70ac5b29 2196 tests/stub_IpcIoFile.cc \
53f5404d 2197 LogTags.cc \
94bfd31f
AJ
2198 MasterXaction.cc \
2199 MasterXaction.h \
c21ad0f5 2200 MemBuf.cc \
2201 MemObject.cc \
aa5639dc 2202 MemStore.cc \
d7f4a0b7
CT
2203 Notes.cc \
2204 Notes.h \
c21ad0f5 2205 Parsing.cc \
e8dca475 2206 PeerPoolMgr.cc \
aa5639dc 2207 PeerPoolMgr.h \
c6ae1627
AJ
2208 Pipeline.cc \
2209 Pipeline.h \
aa5639dc 2210 RefreshPattern.h \
aa839030 2211 RemovalPolicy.cc \
aa5639dc 2212 RequestFlags.cc \
2213 RequestFlags.h \
55622953
CT
2214 ResolvedPeers.cc \
2215 ResolvedPeers.h \
a98bcbee 2216 SquidMath.cc \
aa5639dc 2217 SquidMath.h \
e4f1fdae 2218 StatCounters.cc \
aa5639dc 2219 StatCounters.h \
c21ad0f5 2220 StatHist.cc \
aa5639dc 2221 StatHist.h \
2222 StoreFileSystem.cc \
2223 StoreIOState.cc \
2224 tests/stub_StoreMeta.cc \
2225 StoreMetaUnpacker.cc \
2226 StoreSwapLogData.cc \
2227 StrList.cc \
2228 StrList.h \
2229 String.cc \
2230 Transients.cc \
2231 tests/stub_cache_cf.cc \
2232 cache_cf.h \
2233 cache_manager.cc \
2234 tests/stub_carp.cc \
2235 carp.h \
2236 cbdata.cc \
2237 clientStream.cc \
2238 tests/stub_client_db.cc \
2239 client_side.cc \
2240 client_side.h \
2241 client_side_reply.cc \
2242 client_side_request.cc \
aa5639dc 2243 dlink.cc \
2244 dlink.h \
2245 errorpage.cc \
2246 event.cc \
2247 external_acl.cc \
2248 tests/stub_fatal.cc \
2249 fatal.h \
2250 fd.cc \
2251 fd.h \
2252 fde.cc \
2253 fqdncache.cc \
2254 fqdncache.h \
2255 fs_io.cc \
2256 fs_io.h \
2257 tests/stub_gopher.cc \
2258 gopher.h \
2259 helper.cc \
2260 hier_code.h \
2261 http.cc \
2262 icp_v2.cc \
2263 icp_v3.cc \
2264 int.cc \
2265 int.h \
2266 internal.cc \
2267 internal.h \
2268 tests/stub_ipc_Forwarder.cc \
2269 ipcache.cc \
2270 tests/stub_libauth.cc \
2271 tests/stub_libauth_acls.cc \
2272 tests/stub_libdiskio.cc \
83b053a0 2273 tests/stub_liberror.cc \
aa5639dc 2274 tests/stub_libeui.cc \
2275 tests/stub_libmem.cc \
2276 tests/stub_libsecurity.cc \
2277 tests/stub_libstore.cc \
2278 tests/stub_main_cc.cc \
2279 mem_node.cc \
2280 mime.cc \
2281 mime.h \
2282 mime_header.cc \
2283 mime_header.h \
2284 multicast.cc \
2285 multicast.h \
2286 neighbors.cc \
2287 neighbors.h \
2288 pconn.cc \
2289 peer_digest.cc \
2290 peer_proxy_negotiate_auth.cc \
2291 peer_proxy_negotiate_auth.h \
2292 peer_select.cc \
2293 peer_sourcehash.cc \
2294 peer_sourcehash.h \
2295 peer_userhash.cc \
2296 peer_userhash.h \
2297 tests/stub_redirect.cc \
2298 redirect.h \
2299 refresh.cc \
2300 refresh.h \
e452f48d 2301 repl_modules.h \
aa5639dc 2302 stat.cc \
2303 stat.h \
2304 stmem.cc \
c21ad0f5 2305 store.cc \
2306 store_client.cc \
1d4896fb 2307 tests/stub_store_digest.cc \
aa5639dc 2308 store_digest.h \
c21ad0f5 2309 store_io.cc \
2310 store_key_md5.cc \
aa5639dc 2311 store_key_md5.h \
c21ad0f5 2312 store_log.cc \
aa5639dc 2313 store_log.h \
c21ad0f5 2314 store_rebuild.cc \
aa5639dc 2315 store_rebuild.h \
2316 tests/stub_store_stats.cc \
c21ad0f5 2317 store_swapin.cc \
aa5639dc 2318 store_swapin.h \
c21ad0f5 2319 store_swapmeta.cc \
2320 store_swapout.cc \
c21ad0f5 2321 tools.cc \
aa5639dc 2322 tools.h \
2e878f54 2323 tests/stub_tunnel.cc \
8b082ed9 2324 tunnel.h \
c21ad0f5 2325 urn.cc \
aa5639dc 2326 urn.h \
5c681e77 2327 tests/stub_wccp2.cc \
aa5639dc 2328 wccp2.h \
1e7c380b 2329 tests/stub_whois.cc \
aa5639dc 2330 whois.h \
2331 wordlist.cc \
2332 wordlist.h
c21ad0f5 2333nodist_tests_testHttpRequest_SOURCES = \
98cacedb
AJ
2334 $(BUILT_SOURCES) \
2335 tests/stub_libtime.cc
c21ad0f5 2336tests_testHttpRequest_LDADD = \
f49e4f7b 2337 libsquid.la \
f1263147
AJ
2338 clients/libclients.la \
2339 servers/libservers.la \
2340 helper/libhelper.la \
2341 ftp/libftp.la \
ca3a08e2 2342 http/libhttp.la \
62a0ef44
AJ
2343 ident/libident.la \
2344 acl/libacls.la \
62a0ef44 2345 acl/libstate.la \
62a0ef44 2346 acl/libapi.la \
f1263147 2347 parser/libparser.la \
62a0ef44
AJ
2348 ip/libip.la \
2349 fs/libfs.la \
f1263147 2350 $(SSL_LIBS) \
d5d5493b 2351 ipc/libipc.la \
36c774f7 2352 proxyp/libproxyp.la \
f1263147
AJ
2353 parser/libparser.la \
2354 dns/libdns.la \
2355 base/libbase.la \
2356 mgr/libmgr.la \
0c3d3f65 2357 anyp/libanyp.la \
f1263147
AJ
2358 $(SNMP_LIBS) \
2359 icmp/libicmp.la \
2360 comm/libcomm.la \
2361 log/liblog.la \
2362 format/libformat.la \
2745fea5 2363 store/libstore.la \
65e41a45 2364 sbuf/libsbuf.la \
675b8408 2365 debug/libdebug.la \
f1263147
AJ
2366 $(REPL_OBJS) \
2367 $(ADAPTATION_LIBS) \
2368 $(ESI_LIBS) \
25f98340
AJ
2369 $(top_builddir)/lib/libmisccontainers.la \
2370 $(top_builddir)/lib/libmiscencoding.la \
2371 $(top_builddir)/lib/libmiscutil.la \
09cd7204 2372 $(NETTLELIB) \
c2afddd8 2373 $(REGEXLIB) \
3ae8895c 2374 $(SSLLIB) \
f1263147 2375 $(KRB5LIBS) \
d93bf055 2376 $(LIBCPPUNIT_LIBS) \
1f8b5f0e 2377 $(SYSTEMD_LIBS) \
0f1173d4 2378 $(COMPAT_LIB) \
3ae8895c 2379 $(XTRA_LIBS)
f1263147 2380tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
30abd221 2381
f1263147
AJ
2382## Tests of ip/*
2383
2384check_PROGRAMS += tests/testIpAddress
c1a2df00
AJ
2385tests_testIpAddress_SOURCES = \
2386 tests/testIpAddress.cc \
2387 tests/testIpAddress.h
2388nodist_tests_testIpAddress_SOURCES = \
aa5639dc 2389 tests/stub_SBuf.cc \
25f98340 2390 tests/stub_debug.cc \
ae72213d 2391 tests/stub_libmem.cc \
f1263147 2392 tests/stub_tools.cc
c1a2df00 2393tests_testIpAddress_LDADD = \
65f92818 2394 ip/libip.la \
f1263147 2395 base/libbase.la \
d93bf055 2396 $(LIBCPPUNIT_LIBS) \
0f1173d4 2397 $(COMPAT_LIB) \
3ae8895c 2398 $(XTRA_LIBS)
c1a2df00 2399tests_testIpAddress_LDFLAGS = $(LIBADD_DL)
c21ad0f5 2400
f1263147
AJ
2401## Tests of icmp/*
2402
2403check_PROGRAMS += tests/testIcmp
2404# icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2405tests_testIcmp_SOURCES = \
aa5639dc 2406 tests/testIcmp.cc \
2407 tests/testIcmp.h
f1263147 2408nodist_tests_testIcmp_SOURCES = \
aa5639dc 2409 tests/stub_SBuf.cc \
f1263147 2410 tests/stub_debug.cc \
aa5639dc 2411 icmp/Icmp.h \
f1263147 2412 tests/stub_libmem.cc \
98cacedb 2413 tests/stub_libtime.cc
f1263147
AJ
2414tests_testIcmp_LDADD=\
2415 icmp/libicmpcore.la \
2416 ip/libip.la \
62a0ef44 2417 base/libbase.la \
f1263147
AJ
2418 $(LIBCPPUNIT_LIBS) \
2419 $(COMPAT_LIB) \
2420 $(XTRA_LIBS)
2421tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2422
2423check_PROGRAMS += tests/testNetDb
2424tests_testNetDb_SOURCES = \
2425 tests/testNetDb.cc \
2426 tests/testNetDb.h
2427nodist_tests_testNetDb_SOURCES = \
aa5639dc 2428 tests/stub_SBuf.cc \
f1263147
AJ
2429 tests/stub_debug.cc \
2430 tests/stub_libmem.cc \
98cacedb 2431 tests/stub_libtime.cc
f1263147
AJ
2432tests_testNetDb_LDADD = \
2433 icmp/libicmp.la \
62a0ef44 2434 ip/libip.la \
f1263147
AJ
2435 base/libbase.la \
2436 $(top_builddir)/lib/libmisccontainers.la \
2437 $(LIBCPPUNIT_LIBS) \
2438 $(COMPAT_LIB) \
2439 $(XTRA_LIBS)
2440tests_testNetDb_LDFLAGS = $(LIBADD_DL)
62a0ef44 2441
f1263147
AJ
2442## Tests of mgr/* and CacheManager objects
2443
2444check_PROGRAMS += tests/testCacheManager
2445tests_testCacheManager_SOURCES = \
aa5639dc 2446 $(DELAY_POOL_SOURCE) \
2447 $(DNSSOURCE) \
2448 $(HTCPSOURCE) \
2449 $(IPC_SOURCE) \
2450 $(SNMP_SOURCE) \
2451 $(UNLINKDSOURCE) \
2452 $(WIN32_SOURCE) \
da6dbcd1 2453 AccessLogEntry.cc \
aa5639dc 2454 AuthReg.h \
2455 BodyPipe.cc \
2456 tests/stub_CacheDigest.cc \
2457 CacheDigest.h \
f1263147
AJ
2458 tests/testCacheManager.cc \
2459 tests/testCacheManager.h \
f1263147
AJ
2460 CachePeer.cc \
2461 CachePeer.h \
f1263147 2462 ClientInfo.h \
f1263147
AJ
2463 tests/stub_CollapsedForwarding.cc \
2464 ConfigOption.cc \
2465 ConfigParser.cc \
2466 CpuAffinityMap.cc \
2467 CpuAffinityMap.h \
2468 CpuAffinitySet.cc \
2469 CpuAffinitySet.h \
f1263147 2470 tests/stub_ETag.cc \
aa5639dc 2471 tests/stub_EventLoop.cc \
f1263147 2472 ExternalACLEntry.cc \
aa5639dc 2473 FadingCounter.cc \
75f8f9a2 2474 FileMap.h \
f1263147
AJ
2475 FwdState.cc \
2476 FwdState.h \
55622953
CT
2477 HappyConnOpener.cc \
2478 HappyConnOpener.h \
f1263147 2479 HttpBody.cc \
aa5639dc 2480 HttpBody.h \
2481 tests/stub_HttpControlMsg.cc \
ce394734 2482 HttpHdrCc.cc \
aa5639dc 2483 HttpHdrCc.h \
f1263147
AJ
2484 HttpHdrContRange.cc \
2485 HttpHdrRange.cc \
62a0ef44
AJ
2486 HttpHdrSc.cc \
2487 HttpHdrScTarget.cc \
aa5639dc 2488 HttpHeader.cc \
2489 HttpHeader.h \
2490 HttpHeaderFieldInfo.h \
2491 HttpHeaderFieldStat.h \
2492 HttpHeaderTools.cc \
2493 HttpHeaderTools.h \
f1263147 2494 HttpReply.cc \
aa5639dc 2495 HttpRequest.cc \
2496 tests/stub_HttpUpgradeProtocolAccess.cc \
2497 IoStats.h \
70ac5b29 2498 tests/stub_IpcIoFile.cc \
f1263147 2499 LogTags.cc \
f1263147
AJ
2500 MasterXaction.cc \
2501 MasterXaction.h \
f1263147
AJ
2502 MemBuf.cc \
2503 MemObject.cc \
aa5639dc 2504 MemStore.cc \
f1263147
AJ
2505 Notes.cc \
2506 Notes.h \
2507 Parsing.cc \
f1263147 2508 PeerPoolMgr.cc \
aa5639dc 2509 PeerPoolMgr.h \
f1263147
AJ
2510 Pipeline.cc \
2511 Pipeline.h \
aa5639dc 2512 RefreshPattern.h \
f1263147 2513 RemovalPolicy.cc \
aa5639dc 2514 RequestFlags.cc \
2515 RequestFlags.h \
55622953 2516 ResolvedPeers.cc \
aa5639dc 2517 ResolvedPeers.h \
f1263147 2518 SquidMath.cc \
aa5639dc 2519 SquidMath.h \
e4f1fdae 2520 StatCounters.cc \
aa5639dc 2521 StatCounters.h \
2522 tests/stub_StatHist.cc \
00a7574e 2523 StatHist.h \
aa5639dc 2524 StoreFileSystem.cc \
2525 StoreIOState.cc \
2526 tests/stub_StoreMeta.cc \
2527 StoreMetaUnpacker.cc \
2528 StoreSwapLogData.cc \
0a59b726 2529 StrList.cc \
aa5639dc 2530 StrList.h \
2531 String.cc \
2532 Transients.cc \
2533 tests/stub_cache_cf.cc \
2534 cache_cf.h \
2535 cache_manager.cc \
2536 tests/stub_carp.cc \
2537 carp.h \
2538 cbdata.cc \
2539 clientStream.cc \
2540 tests/stub_client_db.cc \
2541 client_side.cc \
2542 client_side.h \
2543 client_side_reply.cc \
2544 client_side_request.cc \
aa5639dc 2545 dlink.cc \
2546 dlink.h \
2547 errorpage.cc \
2548 event.cc \
2549 external_acl.cc \
2550 tests/stub_fatal.cc \
2551 fatal.h \
2552 fd.cc \
2553 fd.h \
2554 fde.cc \
2555 filemap.cc \
2556 fqdncache.cc \
2557 fqdncache.h \
2558 fs_io.cc \
2559 fs_io.h \
2560 tests/stub_gopher.cc \
2561 gopher.h \
2562 helper.cc \
2563 hier_code.h \
2564 http.cc \
2565 icp_v2.cc \
2566 icp_v3.cc \
2567 int.cc \
2568 int.h \
2569 internal.cc \
2570 internal.h \
2571 tests/stub_ipc_Forwarder.cc \
2572 ipcache.cc \
f1263147 2573 tests/stub_libauth.cc \
aa5639dc 2574 tests/stub_libauth_acls.cc \
f1263147 2575 tests/stub_libdiskio.cc \
83b053a0 2576 tests/stub_liberror.cc \
aa5639dc 2577 tests/stub_libsecurity.cc \
2578 tests/stub_libstore.cc \
2579 tests/stub_main_cc.cc \
2580 mem_node.cc \
2581 mime.cc \
2582 mime.h \
2583 mime_header.cc \
2584 mime_header.h \
2585 multicast.cc \
2586 multicast.h \
2587 neighbors.cc \
2588 neighbors.h \
2589 pconn.cc \
2590 peer_digest.cc \
2591 peer_proxy_negotiate_auth.cc \
2592 peer_proxy_negotiate_auth.h \
2593 peer_select.cc \
2594 peer_sourcehash.cc \
2595 peer_sourcehash.h \
2596 peer_userhash.cc \
2597 peer_userhash.h \
2598 tests/stub_redirect.cc \
2599 redirect.h \
2600 refresh.cc \
2601 refresh.h \
f1263147 2602 repl_modules.h \
aa5639dc 2603 stat.cc \
2604 stat.h \
2605 stmem.cc \
f1263147
AJ
2606 store.cc \
2607 store_client.cc \
f1263147 2608 tests/stub_store_digest.cc \
aa5639dc 2609 store_digest.h \
f1263147 2610 store_io.cc \
f1263147 2611 store_key_md5.cc \
aa5639dc 2612 store_key_md5.h \
f1263147 2613 store_log.cc \
aa5639dc 2614 store_log.h \
f1263147 2615 store_rebuild.cc \
aa5639dc 2616 store_rebuild.h \
2617 tests/stub_store_stats.cc \
f1263147 2618 store_swapin.cc \
aa5639dc 2619 store_swapin.h \
f1263147
AJ
2620 store_swapmeta.cc \
2621 store_swapout.cc \
f1263147 2622 tools.cc \
aa5639dc 2623 tools.h \
f1263147 2624 tests/stub_tunnel.cc \
8b082ed9 2625 tunnel.h \
f1263147 2626 urn.cc \
aa5639dc 2627 urn.h \
f1263147 2628 tests/stub_wccp2.cc \
aa5639dc 2629 wccp2.h \
f1263147 2630 tests/stub_whois.cc \
aa5639dc 2631 whois.h \
2632 wordlist.cc \
2633 wordlist.h
f1263147 2634nodist_tests_testCacheManager_SOURCES = \
98cacedb
AJ
2635 $(BUILT_SOURCES) \
2636 tests/stub_libtime.cc
f1263147
AJ
2637# comm.cc only requires comm/libcomm.la until fdc_table is dead.
2638tests_testCacheManager_LDADD = \
2639 libsquid.la \
2640 clients/libclients.la \
2641 servers/libservers.la \
2642 ftp/libftp.la \
2643 helper/libhelper.la \
ca3a08e2 2644 http/libhttp.la \
36c774f7 2645 proxyp/libproxyp.la \
ca3a08e2 2646 parser/libparser.la \
62a0ef44
AJ
2647 ident/libident.la \
2648 acl/libacls.la \
62a0ef44 2649 acl/libstate.la \
62a0ef44 2650 acl/libapi.la \
f1263147
AJ
2651 dns/libdns.la \
2652 base/libbase.la \
62a0ef44
AJ
2653 ip/libip.la \
2654 fs/libfs.la \
f1263147
AJ
2655 comm/libcomm.la \
2656 eui/libeui.la \
2657 icmp/libicmp.la \
2658 log/liblog.la \
2659 format/libformat.la \
25f98340 2660 $(REPL_OBJS) \
f1263147
AJ
2661 $(ADAPTATION_LIBS) \
2662 $(ESI_LIBS) \
1b76e6c1 2663 $(SSL_LIBS) \
f1263147 2664 anyp/libanyp.la \
10a69fc0 2665 ipc/libipc.la \
f1263147
AJ
2666 mgr/libmgr.la \
2667 $(SNMP_LIBS) \
ed6e9fb9 2668 mem/libmem.la \
2745fea5 2669 store/libstore.la \
65e41a45 2670 sbuf/libsbuf.la \
675b8408 2671 debug/libdebug.la \
25f98340
AJ
2672 $(top_builddir)/lib/libmisccontainers.la \
2673 $(top_builddir)/lib/libmiscencoding.la \
2674 $(top_builddir)/lib/libmiscutil.la \
09cd7204 2675 $(NETTLELIB) \
c2afddd8 2676 $(REGEXLIB) \
3ae8895c 2677 $(SSLLIB) \
f1263147 2678 $(KRB5LIBS) \
d93bf055 2679 $(LIBCPPUNIT_LIBS) \
1f8b5f0e 2680 $(SYSTEMD_LIBS) \
25f98340 2681 $(COMPAT_LIB) \
3ae8895c 2682 $(XTRA_LIBS)
f1263147 2683tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
c8f4eac4 2684
f1263147
AJ
2685check_PROGRAMS += tests/testStatHist
2686tests_testStatHist_SOURCES = \
aa5639dc 2687 tests/stub_DelayId.cc \
2688 tests/stub_HelperChildConfig.cc \
f1263147 2689 tests/stub_MemBuf.cc \
aa5639dc 2690 tests/stub_MemObject.cc \
f1263147 2691 StatHist.cc \
aa5639dc 2692 tests/testStatHist.cc \
f1263147 2693 StatHist.h \
aa5639dc 2694 tests/testStatHist.h \
f1263147
AJ
2695 String.cc \
2696 tests/stub_cache_manager.cc \
aa5639dc 2697 tests/stub_cbdata.cc \
f1263147 2698 tests/stub_comm.cc \
e35d7a77 2699 tests/stub_debug.cc \
aa5639dc 2700 tests/stub_fatal.cc \
2701 fatal.h \
ae72213d 2702 tests/stub_libmem.cc \
f1263147 2703 tests/stub_mime.cc \
aa5639dc 2704 mime.h \
f1263147 2705 tests/stub_pconn.cc \
f1263147 2706 repl_modules.h \
aa5639dc 2707 tests/stub_stmem.cc \
f1263147
AJ
2708 tests/stub_store.cc \
2709 tests/stub_store_stats.cc \
f1263147 2710 tests/stub_tools.cc \
aa5639dc 2711 tools.h
f1263147 2712nodist_tests_testStatHist_SOURCES = \
98cacedb
AJ
2713 $(TESTSOURCES) \
2714 tests/stub_libtime.cc
f1263147
AJ
2715tests_testStatHist_LDADD = \
2716 sbuf/libsbuf.la \
2717 base/libbase.la \
2718 $(top_builddir)/lib/libmiscutil.la \
2719 $(top_builddir)/lib/libmisccontainers.la \
2720 $(LIBCPPUNIT_LIBS) \
2721 $(COMPAT_LIB)
2722tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2723
2724## Tests of ConfigParser
2725
2726check_PROGRAMS += tests/testConfigParser
2727tests_testConfigParser_SOURCES = \
f1263147 2728 tests/testConfigParser.cc \
aa3b39af
AJ
2729 tests/testConfigParser.h
2730nodist_tests_testConfigParser_SOURCES = \
2731 ConfigParser.cc \
bf95c10a 2732 tests/stub_SBuf.cc \
aa5639dc 2733 String.cc \
e227da8d 2734 tests/stub_acl.cc \
f1263147 2735 tests/stub_cache_cf.cc \
f1263147 2736 tests/stub_debug.cc \
aa5639dc 2737 tests/stub_fatal.cc \
bf95c10a 2738 tests/stub_libmem.cc
f1263147 2739tests_testConfigParser_LDADD = \
e35d7a77 2740 base/libbase.la \
f1263147 2741 $(LIBCPPUNIT_LIBS) \
e35d7a77
AJ
2742 $(COMPAT_LIB) \
2743 $(XTRA_LIBS)
f1263147 2744tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
e35d7a77 2745
f1263147
AJ
2746## Tests of Event handling
2747
2748check_PROGRAMS += tests/testEvent
2749tests_testEvent_SOURCES = \
aa5639dc 2750 tests/testEvent.cc \
1a51cf72
AJ
2751 tests/testEvent.h
2752nodist_tests_testEvent_SOURCES = \
1a51cf72 2753 MemBuf.cc \
bf95c10a 2754 tests/stub_SBuf.cc \
1a51cf72
AJ
2755 tests/stub_cache_manager.cc \
2756 tests/stub_cbdata.cc \
2757 tests/stub_debug.cc \
bf95c10a 2758 event.cc \
f1263147 2759 tests/stub_libmem.cc \
98cacedb 2760 tests/stub_libtime.cc \
1a51cf72 2761 tests/stub_tools.cc
f1263147 2762tests_testEvent_LDADD = \
9bb01611 2763 base/libbase.la \
d93bf055 2764 $(LIBCPPUNIT_LIBS) \
9bb01611
AR
2765 $(COMPAT_LIB) \
2766 $(XTRA_LIBS)
f1263147 2767tests_testEvent_LDFLAGS = $(LIBADD_DL)
9bb01611 2768
f1263147
AJ
2769check_PROGRAMS += tests/testEventLoop
2770tests_testEventLoop_SOURCES = \
aa5639dc 2771 tests/testEventLoop.cc \
c37b16eb 2772 tests/testEventLoop.h
f1263147 2773nodist_tests_testEventLoop_SOURCES = \
c37b16eb
AJ
2774 EventLoop.cc \
2775 tests/stub_debug.cc \
2776 tests/stub_fatal.cc \
a928fdfd
EB
2777 tests/stub_libtime.cc \
2778 tests/stub_SBuf.cc
f1263147 2779tests_testEventLoop_LDADD = \
62a0ef44 2780 base/libbase.la \
d93bf055 2781 $(LIBCPPUNIT_LIBS) \
71be37e0
CT
2782 $(COMPAT_LIB) \
2783 $(XTRA_LIBS)
f1263147 2784tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
11e14d63 2785
f1263147
AJ
2786## Run the unit tests. check_PROGRAMS only builds the binaries.
2787TESTS += $(check_PROGRAMS) testHeaders
ee342e0b
AJ
2788
2789## Special Universal .h dependency test script
2790## aborts if error encountered
508e9b20 2791testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
a0fdc9bf 2792 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
ee342e0b
AJ
2793## src/repl/ has no .h files and its own makefile.
2794
2795CLEANFILES += testHeaders
2796.PHONY: testHeaders
2797