]> git.ipfire.org Git - thirdparty/squid.git/blame - src/Makefile.am
Allow upgrading from HTTP/1.1 to other protocols (#481)
[thirdparty/squid.git] / src / Makefile.am
CommitLineData
77b1029d 1## Copyright (C) 1996-2020 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
AR
28LOADABLE_MODULES_SOURCES = \
29 LoadableModule.h \
30 LoadableModule.cc \
31 LoadableModules.h \
32 LoadableModules.cc
33
36c774f7
EB
34SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO proxyp
35DIST_SUBDIRS = mem base anyp helper dns ftp parser comm 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_XPROF_STATS
128XPROF_STATS_SOURCE = ProfStats.cc
129else
8aafbbc1 130XPROF_STATS_SOURCE =
852a0ce1 131endif
132
133if ENABLE_HTCP
134HTCPSOURCE = htcp.cc htcp.h
135endif
136
8aafbbc1 137if ENABLE_LEAKFINDER
ba126bee 138LEAKFINDERSOURCE = LeakFinder.cc
852a0ce1 139else
8aafbbc1 140LEAKFINDERSOURCE =
852a0ce1 141endif
142
143if ENABLE_UNLINKD
b6b42084 144UNLINKDSOURCE = unlinkd.h unlinkd.cc
852a0ce1 145UNLINKD = unlinkd
146else
b6b42084 147UNLINKDSOURCE = unlinkd.h
8aafbbc1 148UNLINKD =
852a0ce1 149endif
150
9c8434f6 151WIN32_ALL_SOURCE = \
93bdc610 152 win32.h \
9c8434f6 153 win32.cc \
cf3edd6f 154 WinSvc.h \
9c8434f6 155 WinSvc.cc
852a0ce1 156if ENABLE_WIN32SPECIFIC
9c8434f6 157WIN32_SOURCE = win32.cc
158WINSVC_SOURCE = WinSvc.cc
852a0ce1 159else
9c8434f6 160WIN32_SOURCE =
161WINSVC_SOURCE =
852a0ce1 162endif
163
daf2ddfa 164if ENABLE_WIN32_IPC
96097880 165IPC_SOURCE = SquidIpc.h ipc_win32.cc
b5d712b5 166else
96097880 167IPC_SOURCE = SquidIpc.h ipc.cc
b5d712b5 168endif
169
2d2b0bb7 170noinst_LTLIBRARIES = libsquid.la
b9ae18aa 171
852a0ce1 172EXTRA_PROGRAMS = \
173 unlinkd \
852a0ce1 174 recv-announce \
2d94e2d6 175 ufsdump
852a0ce1 176
596d3ba7 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.
852a0ce1 180noinst_PROGRAMS = \
2d94e2d6 181 cf_gen
852a0ce1 182
183sbin_PROGRAMS = \
184 squid
185
8aafbbc1 186bin_PROGRAMS =
852a0ce1 187
188libexec_PROGRAMS = \
94ab55b0 189 $(UNLINKD)
852a0ce1 190
7d6fa4d4 191cf_gen_SOURCES = cf_gen.cc
cca8ba0d 192nodist_cf_gen_HEADER = cf_gen_defines.cci
c1f8bbd0
AJ
193## cf_gen must be stand-alone executable. It is a purely build-time executable.
194cf_gen_LDADD=
cca8ba0d 195cf_gen.$(OBJEXT): cf_gen_defines.cci
852a0ce1 196
cca8ba0d 197## cf_gen.cc needs src/cf_gen_defines.cci
01a1acbc 198AM_CPPFLAGS += -I$(top_builddir)/src
189f1e66 199
2d46f579 200
f07e9e1f 201ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
2d46f579 202
f24583c1 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.
206libsquid_la_SOURCES = \
207 comm.cc \
208 comm.h \
b0469965 209 CommCalls.cc \
210 CommCalls.h \
877ce944
AR
211 DescriptorSet.cc \
212 DescriptorSet.h \
a7f68355 213 SquidConfig.h \
3d93a84d 214 SquidConfig.cc
f24583c1 215
852a0ce1 216squid_SOURCES = \
2d46f579 217 $(ACL_REGISTRATION_SOURCES) \
d4204018 218 AccessLogEntry.cc \
450e0c10 219 AccessLogEntry.h \
8ff3fa2e 220 AsyncEngine.cc \
221 AsyncEngine.h \
f07e1f9a 222 cache_cf.h \
89736861 223 AuthReg.h \
8d9a8184 224 RefreshPattern.h \
852a0ce1 225 cache_cf.cc \
b814e8d4 226 CacheDigest.h \
852a0ce1 227 CacheDigest.cc \
228 cache_manager.cc \
5844d003 229 NeighborTypeDomainList.h \
719815a0 230 CachePeer.cc \
09e9d943 231 CachePeer.h \
62ee09ca 232 CacheManager.h \
21c22f04 233 carp.h \
852a0ce1 234 carp.cc \
235 cbdata.cc \
aa839030 236 cbdata.h \
95e6d864 237 client_db.h \
852a0ce1 238 client_db.cc \
93da1f99 239 client_side.h \
852a0ce1 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 \
281422f8 246 ClientInfo.h \
5f8252d2 247 BodyPipe.cc \
248 BodyPipe.h \
281422f8 249 ClientInfo.h \
cd397896 250 ClientRequestContext.h \
852a0ce1 251 clientStream.cc \
252 clientStream.h \
92ae4c86 253 clientStreamForward.h \
807feb1d
DK
254 CollapsedForwarding.cc \
255 CollapsedForwarding.h \
d2a6dcba 256 CollapsingHistory.h \
28bca1f7
EB
257 CommandLine.cc \
258 CommandLine.h \
a553a5a3 259 CompletionDispatcher.cc \
260 CompletionDispatcher.h \
852a0ce1 261 CommRead.h \
b9ae18aa 262 ConfigOption.cc \
d295d770 263 ConfigParser.cc \
852a0ce1 264 ConfigParser.h \
96c2bb61
AR
265 CpuAffinity.cc \
266 CpuAffinity.h \
267 CpuAffinityMap.cc \
268 CpuAffinityMap.h \
269 CpuAffinitySet.cc \
270 CpuAffinitySet.h \
852a0ce1 271 debug.cc \
272 Debug.h \
273 defines.h \
274 $(DELAY_POOL_SOURCE) \
2745fea5
AR
275 fs_io.h \
276 fs_io.cc \
25b6a907 277 dlink.h \
e1f7507e 278 dlink.cc \
852a0ce1 279 $(DNSSOURCE) \
55369ae6 280 Downloader.cc \
4b5ea8a6 281 Downloader.h \
852a0ce1 282 enums.h \
4b981814 283 err_type.h \
f3ff3818 284 err_detail_type.h \
852a0ce1 285 errorpage.cc \
3ad63615 286 errorpage.h \
852a0ce1 287 ETag.cc \
81a94152 288 ETag.h \
852a0ce1 289 event.cc \
a553a5a3 290 event.h \
291 EventLoop.h \
292 EventLoop.cc \
852a0ce1 293 external_acl.cc \
294 ExternalACL.h \
295 ExternalACLEntry.cc \
296 ExternalACLEntry.h \
8277060a
CT
297 FadingCounter.h \
298 FadingCounter.cc \
1f0a1fe7
FC
299 fatal.h \
300 fatal.cc \
c4ad1349 301 fd.h \
852a0ce1 302 fd.cc \
303 fde.cc \
304 fde.h \
75f8f9a2 305 FileMap.h \
852a0ce1 306 filemap.cc \
437cae05 307 fqdncache.h \
852a0ce1 308 fqdncache.cc \
eb13c21e
AJ
309 FwdState.cc \
310 FwdState.h \
852a0ce1 311 Generic.h \
312 globals.h \
437cae05 313 gopher.h \
852a0ce1 314 gopher.cc \
55622953
CT
315 HappyConnOpener.cc \
316 HappyConnOpener.h \
852a0ce1 317 helper.cc \
318 helper.h \
bbaf2685 319 hier_code.h \
b24880fe 320 HierarchyLogEntry.h \
852a0ce1 321 $(HTCPSOURCE) \
1c2b4465
CT
322 HttpUpgradeProtocolAccess.cc \
323 HttpUpgradeProtocolAccess.h \
852a0ce1 324 http.cc \
325 http.h \
db2de30a 326 HttpHeaderFieldStat.h \
ce394734
FC
327 HttpHdrCc.h \
328 HttpHdrCc.cc \
852a0ce1 329 HttpHdrRange.cc \
330 HttpHdrSc.cc \
25b6a907 331 HttpHdrSc.h \
852a0ce1 332 HttpHdrScTarget.cc \
25b6a907 333 HttpHdrScTarget.h \
852a0ce1 334 HttpHdrContRange.cc \
335 HttpHdrContRange.h \
e1656dc4 336 HttpHeaderStat.h \
852a0ce1 337 HttpHeader.h \
437cae05 338 HttpHeader.cc \
25b6a907 339 HttpHeaderMask.h \
852a0ce1 340 HttpHeaderRange.h \
79cb238d 341 HttpHeaderFieldInfo.h \
3b07476b 342 HttpHeaderTools.h \
852a0ce1 343 HttpHeaderTools.cc \
0521f8be 344 HttpBody.h \
852a0ce1 345 HttpBody.cc \
84540b47 346 HttpControlMsg.cc \
1288ea72 347 HttpControlMsg.h \
852a0ce1 348 HttpReply.cc \
349 HttpReply.h \
f206b652
FC
350 RequestFlags.h \
351 RequestFlags.cc \
852a0ce1 352 HttpRequest.cc \
353 HttpRequest.h \
852a0ce1 354 ICP.h \
4b981814 355 icp_opcode.h \
852a0ce1 356 icp_v2.cc \
357 icp_v3.cc \
e99fa721
EB
358 Instance.h \
359 Instance.cc \
f9b6ff6e 360 int.h \
852a0ce1 361 int.cc \
308e60be 362 internal.h \
852a0ce1 363 internal.cc \
b5d712b5 364 $(IPC_SOURCE) \
852a0ce1 365 ipcache.cc \
714e68b7 366 ipcache.h \
852a0ce1 367 $(LEAKFINDERSOURCE) \
53f5404d 368 LogTags.cc \
02c8dde5 369 LogTags.h \
4b981814 370 lookup_t.h \
852a0ce1 371 main.cc \
94bfd31f
AJ
372 MasterXaction.cc \
373 MasterXaction.h \
852a0ce1 374 mem_node.cc \
375 mem_node.h \
852a0ce1 376 MemBuf.cc \
377 MemObject.cc \
378 MemObject.h \
cc0ca3b9 379 MessageSizes.h \
b65ce00c 380 mime.h \
852a0ce1 381 mime.cc \
b6149797 382 mime_header.h \
0f9db2d6 383 mime_header.cc \
afabcc13 384 multicast.h \
852a0ce1 385 multicast.cc \
437cae05 386 neighbors.h \
852a0ce1 387 neighbors.cc \
d7f4a0b7 388 Notes.h \
efc9a0c6 389 Notes.cc \
c8f4eac4 390 Parsing.cc \
391 Parsing.h \
852a0ce1 392 $(XPROF_STATS_SOURCE) \
393 pconn.cc \
2d3c24dc 394 pconn.h \
37c84c0b 395 PeerDigest.h \
852a0ce1 396 peer_digest.cc \
6ff204fc 397 peer_proxy_negotiate_auth.h \
9ca29d23 398 peer_proxy_negotiate_auth.cc \
852a0ce1 399 peer_select.cc \
f795b373 400 peer_sourcehash.h \
f4a21650 401 peer_sourcehash.cc \
37236ba1 402 peer_userhash.h \
f4a21650 403 peer_userhash.cc \
e8dca475
CT
404 PeerPoolMgr.h \
405 PeerPoolMgr.cc \
b24880fe 406 PeerSelectState.h \
407 PingData.h \
c6ae1627
AJ
408 Pipeline.cc \
409 Pipeline.h \
852a0ce1 410 protos.h \
c548327a 411 redirect.h \
852a0ce1 412 redirect.cc \
c6f15d40 413 refresh.h \
852a0ce1 414 refresh.cc \
aa839030 415 RemovalPolicy.cc \
416 RemovalPolicy.h \
55622953
CT
417 ResolvedPeers.cc \
418 ResolvedPeers.h \
bc94e5ca 419 send-announce.h \
852a0ce1 420 send-announce.cc \
9b74279f
FC
421 SBufStatsAction.h \
422 SBufStatsAction.cc \
ac38abee 423 sbuf/StringConvert.h \
2cdb6869 424 $(SNMP_SOURCE) \
a98bcbee
AJ
425 SquidMath.h \
426 SquidMath.cc \
852a0ce1 427 SquidNew.cc \
9ce629cf 428 IoStats.h \
6ea5959e 429 stat.h \
852a0ce1 430 stat.cc \
e1656dc4 431 StatCounters.h \
e4f1fdae 432 StatCounters.cc \
00a7574e 433 StatHist.h \
852a0ce1 434 StatHist.cc \
30abd221 435 String.cc \
28204b3b
FC
436 StrList.h \
437 StrList.cc \
852a0ce1 438 stmem.cc \
439 stmem.h \
e452f48d 440 repl_modules.h \
852a0ce1 441 store.cc \
442 Store.h \
59b2d47f 443 StoreFileSystem.cc \
444 StoreFileSystem.h \
852a0ce1 445 store_io.cc \
446 StoreIOBuffer.h \
447 StoreIOState.cc \
448 StoreIOState.h \
449 store_client.cc \
450 StoreClient.h \
35a28a37 451 store_digest.h \
852a0ce1 452 store_digest.cc \
fb548aaf 453 store_key_md5.h \
852a0ce1 454 store_key_md5.cc \
10818c0a 455 store_log.h \
852a0ce1 456 store_log.cc \
687f5275 457 store_rebuild.h \
852a0ce1 458 store_rebuild.cc \
f82b5c64 459 store_swapin.h \
852a0ce1 460 store_swapin.cc \
461 store_swapmeta.cc \
462 store_swapout.cc \
852a0ce1 463 StoreMetaUnpacker.cc \
464 StoreMetaUnpacker.h \
bc83af5b 465 $(STOREMETA_SOURCE) \
c8f4eac4 466 StoreSearch.h \
93bc1434
AR
467 StoreStats.cc \
468 StoreStats.h \
852a0ce1 469 StoreSwapLogData.cc \
470 StoreSwapLogData.h \
4b981814 471 swap_log_op.h \
9a9954ba
AR
472 Transients.cc \
473 Transients.h \
e557e9df
AR
474 MemStore.cc \
475 MemStore.h \
c21ad0f5 476 time.cc \
81a94152 477 TimeOrTag.h \
4e540555 478 tools.h \
852a0ce1 479 tools.cc \
aa839030 480 tunnel.cc \
852a0ce1 481 typedefs.h \
852a0ce1 482 $(UNLINKDSOURCE) \
5eb529cb 483 urn.h \
852a0ce1 484 urn.cc \
437cae05 485 wccp.h \
852a0ce1 486 wccp.cc \
437cae05 487 wccp2.h \
0b0cfcf2 488 wccp2.cc \
08066558 489 whois.h \
852a0ce1 490 whois.cc \
d295d770 491 wordlist.h \
437cae05 492 wordlist.cc \
5ceaee75
CT
493 XactionInitiator.h \
494 XactionInitiator.cc \
090f1d3c 495 XactionStep.h \
9c8434f6 496 $(WIN32_SOURCE) \
497 $(WINSVC_SOURCE)
852a0ce1 498
4b981814 499EXTRA_squid_SOURCES = \
4b981814
AJ
500 $(all_AUTHMODULES) \
501 ConfigOption.h \
502 $(DELAY_POOL_ALL_SOURCE) \
4b981814
AJ
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) \
4b981814 512 $(WIN32_ALL_SOURCE) \
1ff991dc 513 $(LOADABLE_MODULES_SOURCES)
4b981814 514
3ad63615 515noinst_HEADERS = \
852a0ce1 516 MemBuf.h \
1624365b 517 SquidString.h \
518 SquidTime.h
852a0ce1 519
4b981814 520BUILT_SOURCES = \
cca8ba0d
HN
521 cf_gen_defines.cci \
522 cf_parser.cci \
4b981814 523 err_type.cc \
64b66b76 524 err_detail_type.cc \
852a0ce1 525 globals.cc \
4b981814
AJ
526 hier_code.cc \
527 icp_opcode.cc \
528 lookup_t.cc \
529 repl_modules.cc \
530 swap_log_op.cc
531
532CLEANFILES += $(BUILT_SOURCES)
533
534nodist_squid_SOURCES = \
4b981814 535 $(BUILT_SOURCES)
852a0ce1 536
537squid_LDADD = \
62a0ef44
AJ
538 $(AUTH_ACL_LIBS) \
539 ident/libident.la \
540 acl/libacls.la \
62a0ef44
AJ
541 acl/libstate.la \
542 $(AUTH_LIBS) \
543 acl/libapi.la \
9bafa70d
AJ
544 clients/libclients.la \
545 servers/libservers.la \
546 ftp/libftp.la \
309bd365 547 helper/libhelper.la \
ca3a08e2 548 http/libhttp.la \
4a3b98d7 549 dns/libdns.la \
62a0ef44
AJ
550 base/libbase.la \
551 libsquid.la \
552 ip/libip.la \
553 fs/libfs.la \
13d8c08c 554 DiskIO/libdiskio.la \
0166128b 555 comm/libcomm.la \
a45f2153 556 anyp/libanyp.la \
0166128b 557 security/libsecurity.la \
5d9a65df 558 $(SSL_LIBS) \
62a0ef44
AJ
559 ipc/libipc.la \
560 mgr/libmgr.la \
36c774f7 561 proxyp/libproxyp.la \
7c8ee688 562 parser/libparser.la \
a98c2da5 563 eui/libeui.la \
ca3a08e2 564 icmp/libicmp.la \
82b7abe3 565 log/liblog.la \
38e16f92 566 format/libformat.la \
65e41a45 567 sbuf/libsbuf.la \
3ae8895c 568 $(XTRA_OBJS) \
3ae8895c 569 $(REPL_OBJS) \
09cd7204 570 $(NETTLELIB) \
3ae8895c 571 $(CRYPTLIB) \
c2afddd8 572 $(REGEXLIB) \
65f92818 573 $(ADAPTATION_LIBS) \
88bfe098 574 $(ESI_LIBS) \
65f92818 575 $(SNMP_LIBS) \
ed6e9fb9 576 mem/libmem.la \
2745fea5 577 store/libstore.la \
25f98340
AJ
578 $(top_builddir)/lib/libmisccontainers.la \
579 $(top_builddir)/lib/libmiscencoding.la \
580 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
581 $(SSLLIB) \
582 $(EPOLL_LIBS) \
583 $(MINGW_LIBS) \
584 $(KRB5LIBS) \
6fa8c664 585 $(SYSTEMD_LIBS) \
25f98340 586 $(COMPAT_LIB) \
3ae8895c 587 $(XTRA_LIBS)
c21ad0f5 588
cb5569cd 589if ENABLE_LOADABLE_MODULES
57afc994 590squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
95954721 591squid_LDADD += -L$(top_builddir) $(LIBLTDL)
62059234
AJ
592squid_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...
01a1acbc 597AM_CPPFLAGS += $(INCLTDL)
3e7b6055
AR
598endif
599
9ca29d23 600## Kerberos libraries require their include path...
01a1acbc 601AM_CPPFLAGS += $(KRB5INCS)
9ca29d23 602
3e7b6055 603
25f98340 604unlinkd_SOURCES = unlinkd_daemon.cc
40d34a62 605unlinkd_LDADD = \
40d34a62
AJ
606 $(COMPAT_LIB) \
607 $(XTRA_LIBS)
608
25f98340 609recv_announce_SOURCES = recv-announce.cc
852a0ce1 610
a97576f3 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
f3f71ee9 618## cache_cf.cc wants $(AUTH_LIBS)
2745fea5 619## cache_cf.cc wants store/libstore.la
65d448bc 620## cache_cf.cc wants AnyP::PortCfg
a97576f3 621## client_side wants client_db
622## client_db wants SNMP_SOURCE
623## snmp_core wants ACLStringData
9fb4efad
AJ
624## tools.cc wants ip/libip.la
625## client_side.cc wants ip/libip.la
b61a58df
AJ
626## libbase.la wants cbdata.*
627## libbase.la wants MemBuf.*
596d3ba7 628ufsdump_SOURCES = \
281422f8 629 ClientInfo.h \
b61a58df
AJ
630 cbdata.h \
631 cbdata.cc \
596d3ba7 632 debug.cc \
f9b6ff6e 633 int.h \
852a0ce1 634 int.cc \
ed6e9fb9 635 mem/forward.h \
b61a58df 636 MemBuf.cc \
b61a58df 637 MemBuf.h \
82b7abe3 638 Parsing.h \
fb548aaf 639 store_key_md5.h \
c21ad0f5 640 store_key_md5.cc \
2e878f54 641 tests/stub_StoreMeta.cc \
852a0ce1 642 StoreMetaUnpacker.cc \
30abd221 643 String.cc \
985f118d 644 SquidNew.cc \
27782a42 645 tests/stub_time.cc \
c21ad0f5 646 ufsdump.cc \
e1f7507e
AJ
647 dlink.h \
648 dlink.cc \
76d9b994 649 helper/ChildConfig.h \
48d54e4d 650 tests/stub_HelperChildConfig.cc \
aa839030 651 RemovalPolicy.cc \
b61a58df 652 $(WIN32_SOURCE) \
c4ad1349 653 fd.h \
b61a58df 654 tests/stub_fd.cc
852a0ce1 655ufsdump_LDADD = \
62a0ef44
AJ
656 ident/libident.la \
657 acl/libacls.la \
658 eui/libeui.la \
659 acl/libstate.la \
62a0ef44
AJ
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 \
3ae8895c
A
667 $(XTRA_OBJS) \
668 $(REPL_OBJS) \
09cd7204 669 $(NETTLELIB) \
3ae8895c 670 $(CRYPTLIB) \
c2afddd8 671 $(REGEXLIB) \
3ae8895c 672 $(SSLLIB) \
82b7abe3 673 $(COMPAT_LIB) \
3ae8895c
A
674 $(EPOLL_LIBS) \
675 $(MINGW_LIBS) \
676 $(XTRA_LIBS)
25f98340 677ufsdump_DEPENDENCIES = \
62a0ef44
AJ
678 ident/libident.la \
679 acl/libacls.la \
680 eui/libeui.la \
681 acl/libstate.la \
62a0ef44
AJ
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 \
13d8c08c 689 DiskIO/libdiskio.la \
3ae8895c 690 $(REPL_OBJS)
aab300be 691
852a0ce1 692nodist_ufsdump_SOURCES = \
3ad63615 693 globals.cc
852a0ce1 694
852a0ce1 695sysconf_DATA = \
696 squid.conf.default \
1446a5fd 697 squid.conf.documented \
852a0ce1 698 mime.conf.default
699
700data_DATA = \
701 mib.txt
702
62a0ef44
AJ
703LDADD = \
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 \
3ae8895c
A
717 $(EPOLL_LIBS) \
718 $(MINGW_LIBS) \
0f1173d4 719 $(COMPAT_LIB) \
3ae8895c 720 $(XTRA_LIBS)
852a0ce1 721
ee4478ed
AJ
722include $(srcdir)/tests/Stub.list
723
852a0ce1 724EXTRA_DIST = \
725 cf_gen_defines \
726 cf.data.pre \
93c07e16 727 cf.data.depend \
2f36643c 728 cf.data.sed \
e1007e14 729 mk-globals-c.awk \
e1007e14 730 mk-string-arrays.awk \
852a0ce1 731 repl_modules.sh \
ee4478ed 732 $(STUB_SOURCE) \
852a0ce1 733 mib.txt \
c8f4eac4 734 mime.conf.default
b9ae18aa 735
4de1e2da 736snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
852a0ce1 737
4b981814 738globals.cc: globals.h mk-globals-c.awk
d64c1498 739 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
852a0ce1 740
56a49fda 741## Generate files containing string arrays for various enums....
4b981814 742hier_code.cc: hier_code.h mk-string-arrays.awk
d64c1498 743 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
744
745err_type.cc: err_type.h mk-string-arrays.awk
d64c1498 746 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
4b981814 747
64b66b76
CT
748err_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
4b981814 751lookup_t.cc: lookup_t.h mk-string-arrays.awk
d64c1498 752 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
753
754icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
d64c1498 755 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
756
757swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
d64c1498 758 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
759
760
761## other generated files...
852a0ce1 762
852a0ce1 763test_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)
a2794549 765
766## If autodependency works well this is not needed anymore
cca8ba0d 767cache_cf.o: cf_parser.cci
a2794549 768
de051d9d 769# cf_gen builds the configuration files.
eb0f8afd 770cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
b2f0a375 771 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
de051d9d 772
cca8ba0d
HN
773# squid.conf.default is built by cf_gen when making cf_parser.cci
774squid.conf.default squid.conf.documented: cf_parser.cci
34af43e2 775 true
a2794549 776
cca8ba0d 777cf_parser.cci: cf.data cf_gen$(EXEEXT)
02a24b76 778 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
a2794549 779
eb0f8afd
CT
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
5e924d97 782cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
d64c1498 783 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
a2794549 784
785
786## FIXME: generate a sed command file from configure. Then this doesn't
43000484 787## depend on the Makefile.
852a0ce1 788cf.data: cf.data.pre Makefile
9c2cec78
HN
789 sed \
790 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
791 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
65f92818 792 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
9c2cec78 793 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
95d2589c 794 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
9c2cec78
HN
795 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
796 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
797 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
82b7abe3 798 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
9c2cec78
HN
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" \
95d2589c 805 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
9c2cec78
HN
806 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
807 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
cf1c09f6 808 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
9c2cec78
HN
809 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
810 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
9c2cec78 811 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
2f36643c 812 -f $(srcdir)/cf.data.sed \
852a0ce1 813 < $(srcdir)/cf.data.pre >$@
814
852a0ce1 815repl_modules.cc: repl_modules.sh Makefile
816 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
817
83915266
AJ
818include $(top_srcdir)/doc/manuals/Substitute.am
819
820squid.8: $(srcdir)/squid.8.in Makefile
466ae9bc 821 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
83915266
AJ
822
823man_MANS = squid.8
824EXTRA_DIST += squid.8.in
825CLEANFILES += squid.8
826
852a0ce1 827install-data-local: install-sysconfDATA install-dataDATA
828 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
84daf9b0 829 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
852a0ce1 830 else \
84daf9b0
AJ
831 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
832 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
852a0ce1 833 fi
834 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
84daf9b0 835 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
852a0ce1 836 else \
84daf9b0
AJ
837 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
838 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
852a0ce1 839 fi
1446a5fd
AJ
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; \
dc094bdd 844 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
3ff816ee 845 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
27b1dd70 846 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
a2794549 847
5b218ff4
HN
848uninstall-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
a2794549 851
4b981814 852CLEANFILES += cf.data squid.conf.default squid.conf.documented \
95329c22
HN
853 test_tools.cc *.a
854
855test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
856 cp $(top_srcdir)/test-suite/test_tools.cc .
a2794549 857
25b6a907 858# stock tools for unit tests - library independent versions of dlink_list
859# etc.
95329c22
HN
860# globals.cc is needed by test_tools.cc.
861# Neither of these should be disted from here.
25b6a907 862TESTSOURCES= \
7c8931a1 863 tests/STUB.h \
95329c22 864 test_tools.cc \
25b6a907 865 globals.cc
866
e1a88700 867### Template for new Unit Test Program
f1263147
AJ
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
e1a88700 871## - add other component .(h|cc) files needed to link and run tests
872##
f1263147
AJ
873#check_PROGRAMS += tests/testX
874#tests_testX_SOURCES= \
e1a88700 875# tests/testX.cc \
c1a2df00 876# tests/testX.h
f1263147 877#nodist_tests_testX_SOURCES= \
c1a2df00
AJ
878# X.cc \
879# tests/stubs_as_needed.cc
e1a88700 880#tests_testX_LDADD=\
d93bf055
AJ
881# $(LIBCPPUNIT_LIBS) \
882# $(COMPAT_LIB) \
883# $(XTRA_LIBS)
f1263147 884#tests_testX_LDFLAGS = $(LIBADD_DL)
0f9db2d6 885
f1263147
AJ
886## A demonstration test that does nothing but shows the salient points
887## involved in writing tests.
888check_PROGRAMS += tests/testBoilerplate
889tests_testBoilerplate_SOURCES = \
890 tests/testBoilerplate.cc \
891 tests/testBoilerplate.h
892nodist_tests_testBoilerplate_SOURCES = \
893 $(TESTSOURCES)
894tests_testBoilerplate_LDADD= \
895 $(LIBCPPUNIT_LIBS) \
896 $(COMPAT_LIB) \
897 $(XTRA_LIBS)
898tests_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
906check_PROGRAMS += tests/testMem
907tests_testMem_SOURCES = \
908 tests/testMem.cc \
909 tests/testMem.h
910nodist_tests_testMem_SOURCES = \
c1a2df00
AJ
911 tests/stub_time.cc
912tests_testMem_LDADD = \
ed6e9fb9 913 mem/libmem.la \
25f98340 914 $(top_builddir)/lib/libmiscutil.la \
d93bf055 915 $(LIBCPPUNIT_LIBS) \
3d93a84d 916 $(COMPAT_LIB) \
3ae8895c 917 $(XTRA_LIBS)
f1263147 918tests_testMem_LDFLAGS = $(LIBADD_DL)
0f9db2d6 919
f1263147
AJ
920## Tests of base/*
921
922check_PROGRAMS += tests/testCharacterSet
923tests_testCharacterSet_SOURCES = \
924 tests/testCharacterSet.cc \
925 tests/testCharacterSet.h
926nodist_tests_testCharacterSet_SOURCES = \
c1a2df00
AJ
927 base/CharacterSet.h
928tests_testCharacterSet_LDADD = \
65f92818 929 base/libbase.la \
f1263147
AJ
930 $(LIBCPPUNIT_LIBS) \
931 $(COMPAT_LIB) \
932 $(XTRA_LIBS)
933tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
934
935check_PROGRAMS += tests/testEnumIterator
936tests_testEnumIterator_SOURCES = \
c1a2df00
AJ
937 tests/testEnumIterator.cc \
938 tests/testEnumIterator.h
f1263147 939nodist_tests_testEnumIterator_SOURCES = \
c1a2df00 940 base/EnumIterator.h
f1263147 941tests_testEnumIterator_LDADD = \
f1263147
AJ
942 $(LIBCPPUNIT_LIBS) \
943 $(COMPAT_LIB) \
944 $(XTRA_LIBS)
945tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
946
947check_PROGRAMS += tests/testLookupTable
948tests_testLookupTable_SOURCES = \
f1263147 949 tests/testLookupTable.cc \
c1a2df00
AJ
950 tests/testLookupTable.h
951nodist_tests_testLookupTable_SOURCES = \
952 base/LookupTable.h \
f1263147
AJ
953 tests/stub_debug.cc \
954 tests/stub_libmem.cc \
c1a2df00 955 tests/stub_SBufDetailedStats.cc
f1263147 956tests_testLookupTable_LDADD = \
65e41a45 957 sbuf/libsbuf.la \
f1263147 958 base/libbase.la \
d93bf055 959 $(LIBCPPUNIT_LIBS) \
0f1173d4 960 $(COMPAT_LIB) \
3ae8895c 961 $(XTRA_LIBS)
f1263147 962tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
d295d770 963
c1a2df00 964check_PROGRAMS += tests/testRefCount
c1a2df00 965tests_testRefCount_SOURCES = \
50921dfc 966 tests/testRefCount.cc \
967 tests/testRefCount.h
c1a2df00
AJ
968nodist_tests_testRefCount_SOURCES = \
969 base/RefCount.h
970tests_testRefCount_LDADD = \
50921dfc 971 $(LIBCPPUNIT_LIBS) \
0f1173d4 972 $(COMPAT_LIB) \
3ae8895c 973 $(XTRA_LIBS)
f1263147 974tests_testRefCount_LDFLAGS = $(LIBADD_DL)
25b6a907 975
f1263147
AJ
976check_PROGRAMS += tests/testYesNoNone
977tests_testYesNoNone_SOURCES = \
978 tests/testYesNoNone.cc \
979 tests/testYesNoNone.h
980nodist_tests_testYesNoNone_SOURCES = \
c1a2df00 981 base/YesNoNone.h \
37122e21 982 tests/stub_debug.cc \
c1a2df00
AJ
983 tests/stub_SBuf.cc
984tests_testYesNoNone_LDADD = \
37122e21 985 base/libbase.la \
d93bf055 986 $(LIBCPPUNIT_LIBS) \
37122e21 987 $(COMPAT_LIB) \
37122e21 988 $(XTRA_LIBS)
f1263147 989tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
37122e21 990
f1263147
AJ
991## Tests of anyp/*
992
993check_PROGRAMS += tests/testURL
f1263147 994tests_testURL_SOURCES = \
f1263147
AJ
995 tests/testURL.cc \
996 tests/testURL.h \
997 tests/testUriScheme.cc \
c1a2df00 998 tests/testUriScheme.h
f1263147 999nodist_tests_testURL_SOURCES = \
c1a2df00
AJ
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
f1263147 1012tests_testURL_LDADD = \
f49e4f7b 1013 libsquid.la \
36c774f7 1014 proxyp/libproxyp.la \
f1263147 1015 anyp/libanyp.la \
6c880a16 1016 parser/libparser.la \
65f92818 1017 base/libbase.la \
65f92818 1018 ip/libip.la \
f1263147 1019 sbuf/libsbuf.la \
f1263147 1020 $(top_builddir)/lib/libmiscencoding.la \
f1263147
AJ
1021 $(LIBCPPUNIT_LIBS) \
1022 $(COMPAT_LIB) \
1023 $(XTRA_LIBS)
1024tests_testURL_LDFLAGS = $(LIBADD_DL)
1025
1026## Tests of dns/*
1027
1028check_PROGRAMS += tests/testDns
c1a2df00 1029tests_testDns_SOURCES = \
f1263147
AJ
1030 tests/testRFC1035.cc \
1031 tests/testRFC1035.h
c1a2df00
AJ
1032nodist_tests_testDns_SOURCES=
1033tests_testDns_LDADD = \
f1263147 1034 dns/libdns.la \
f1263147
AJ
1035 $(LIBCPPUNIT_LIBS) \
1036 $(COMPAT_LIB) \
1037 $(XTRA_LIBS)
c1a2df00 1038tests_testDns_LDFLAGS = $(LIBADD_DL)
f1263147
AJ
1039
1040## Tests of parser/*
1041
1042check_PROGRAMS += tests/testTokenizer
1043tests_testTokenizer_SOURCES = \
c1a2df00
AJ
1044 tests/testTokenizer.cc \
1045 tests/testTokenizer.h
f1263147
AJ
1046nodist_tests_testTokenizer_SOURCES = \
1047 parser/Tokenizer.h \
f1263147
AJ
1048 tests/stub_debug.cc \
1049 tests/stub_libmem.cc \
c1a2df00 1050 tests/stub_StatHist.cc
f1263147
AJ
1051tests_testTokenizer_LDADD = \
1052 parser/libparser.la \
f1263147 1053 sbuf/libsbuf.la \
c1a2df00 1054 base/libbase.la \
f1263147
AJ
1055 $(LIBCPPUNIT_LIBS) \
1056 $(COMPAT_LIB) \
1057 $(XTRA_LIBS)
1058tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
1059
1060## Tests of sbuf/* and String handling objects
1061
1062check_PROGRAMS += tests/testSBuf
c1a2df00 1063tests_testSBuf_SOURCES = \
f1263147 1064 tests/SBufFindTest.cc \
c1a2df00
AJ
1065 tests/SBufFindTest.h \
1066 tests/testSBuf.cc \
1067 tests/testSBuf.h
1068nodist_tests_testSBuf_SOURCES = \
f1263147 1069 tests/stub_debug.cc \
c1a2df00
AJ
1070 tests/stub_libmem.cc \
1071 tests/stub_StatHist.cc
1072tests_testSBuf_LDADD = \
f1263147
AJ
1073 sbuf/libsbuf.la \
1074 base/libbase.la \
1075 $(LIBCPPUNIT_LIBS) \
1076 $(COMPAT_LIB) \
1077 $(XTRA_LIBS)
1078tests_testSBuf_LDFLAGS = $(LIBADD_DL)
1079
1080check_PROGRAMS += tests/testSBufList
c1a2df00 1081tests_testSBufList_SOURCES = \
f1263147 1082 tests/testSBufList.cc \
c1a2df00
AJ
1083 tests/testSBufList.h
1084nodist_tests_testSBufList_SOURCES = \
f1263147 1085 tests/stub_debug.cc \
c1a2df00
AJ
1086 tests/stub_libmem.cc \
1087 tests/stub_StatHist.cc
1088tests_testSBufList_LDADD = \
f1263147
AJ
1089 sbuf/libsbuf.la \
1090 base/libbase.la \
1091 $(LIBCPPUNIT_LIBS) \
1092 $(COMPAT_LIB) \
1093 $(XTRA_LIBS)
1094tests_testSBufList_LDFLAGS = $(LIBADD_DL)
1095
1096check_PROGRAMS += tests/testString
f1263147 1097tests_testString_SOURCES = \
f1263147 1098 tests/testString.cc \
c1a2df00 1099 tests/testString.h
f1263147 1100nodist_tests_testString_SOURCES = \
c1a2df00
AJ
1101 String.cc \
1102 tests/stub_SBuf.cc \
1103 tests/stub_debug.cc \
1104 tests/stub_libmem.cc
f1263147
AJ
1105tests_testString_LDADD = \
1106 base/libbase.la \
d93bf055 1107 $(LIBCPPUNIT_LIBS) \
0f1173d4 1108 $(COMPAT_LIB) \
3ae8895c 1109 $(XTRA_LIBS)
f1263147 1110tests_testString_LDFLAGS = $(LIBADD_DL)
62ee09ca 1111
f1263147
AJ
1112## Tests of fs/*
1113
1114if ENABLE_FS_ROCK
1115check_PROGRAMS += tests/testRock
1116tests_testRock_SOURCES = \
da6dbcd1
EB
1117 AccessLogEntry.cc \
1118 AccessLogEntry.h \
f1263147 1119 cbdata.cc \
b814e8d4 1120 CacheDigest.h \
f1263147
AJ
1121 CollapsedForwarding.h \
1122 CollapsedForwarding.cc \
b030f3e1 1123 tests/stub_CacheDigest.cc \
62a0ef44
AJ
1124 ConfigOption.cc \
1125 ConfigParser.cc \
2745fea5
AR
1126 fs_io.h \
1127 fs_io.cc \
f1263147 1128 ETag.cc \
62a0ef44
AJ
1129 EventLoop.cc \
1130 event.cc \
f1263147 1131 FadingCounter.cc \
1f0a1fe7 1132 fatal.h \
f1263147 1133 fatal.cc \
c4ad1349 1134 fd.h \
62a0ef44 1135 fd.cc \
cdeeb88d
AJ
1136 fde.h \
1137 fde.cc \
75f8f9a2 1138 FileMap.h \
62a0ef44 1139 filemap.cc \
f1263147 1140 HttpHeaderFieldStat.h \
0521f8be 1141 HttpBody.h \
62a0ef44 1142 HttpBody.cc \
ce394734 1143 HttpHdrCc.cc \
62a0ef44 1144 HttpHdrContRange.cc \
f1263147 1145 HttpHdrRange.cc \
62a0ef44
AJ
1146 HttpHdrSc.cc \
1147 HttpHdrScTarget.cc \
f1263147
AJ
1148 HttpHeader.h \
1149 HttpHeader.cc \
79cb238d 1150 HttpHeaderFieldInfo.h \
a5bac1d2 1151 HttpHeaderTools.h \
62a0ef44 1152 HttpHeaderTools.cc \
62a0ef44 1153 HttpReply.cc \
f9b6ff6e 1154 int.h \
62a0ef44 1155 int.cc \
d2a6dcba 1156 LogTags.cc \
94bfd31f
AJ
1157 MasterXaction.cc \
1158 MasterXaction.h \
62a0ef44
AJ
1159 MemBuf.cc \
1160 MemObject.cc \
f1263147 1161 MemStore.cc \
62a0ef44 1162 mem_node.cc \
efc9a0c6
FC
1163 Notes.h \
1164 Notes.cc \
62a0ef44 1165 Parsing.cc \
62a0ef44 1166 RemovalPolicy.cc \
f206b652 1167 RequestFlags.cc \
f1263147 1168 RequestFlags.h \
55622953
CT
1169 ResolvedPeers.cc \
1170 ResolvedPeers.h \
e1656dc4 1171 StatCounters.h \
e4f1fdae 1172 StatCounters.cc \
00a7574e 1173 StatHist.h \
4541d989 1174 tests/stub_StatHist.cc \
62a0ef44 1175 stmem.cc \
f1263147
AJ
1176 repl_modules.h \
1177 tests/stub_stat.cc \
1178 store.cc \
62a0ef44
AJ
1179 StoreFileSystem.cc \
1180 StoreIOState.cc \
62a0ef44 1181 StoreMetaUnpacker.cc \
f1263147 1182 $(STOREMETA_SOURCE) \
62a0ef44 1183 StoreSwapLogData.cc \
62a0ef44 1184 store_io.cc \
fb548aaf 1185 store_key_md5.h \
62a0ef44 1186 store_key_md5.cc \
62a0ef44 1187 store_swapmeta.cc \
f1263147
AJ
1188 store_swapout.cc \
1189 tests/stub_SBufDetailedStats.cc \
62a0ef44 1190 String.cc \
0a59b726
FC
1191 StrList.h \
1192 StrList.cc \
f1263147 1193 Transients.h \
cb868059 1194 Transients.cc \
f1263147
AJ
1195 tests/testRock.cc \
1196 tests/testRock.h \
1197 tests/testStoreSupport.cc \
1198 tests/testStoreSupport.h \
1c7ae5ff 1199 log/access_log.h \
62a0ef44 1200 tests/stub_access_log.cc \
f07e1f9a 1201 cache_cf.h \
62a0ef44 1202 tests/stub_cache_cf.cc \
48d54e4d 1203 tests/stub_cache_manager.cc \
1b76e6c1 1204 tests/stub_client_db.cc \
62a0ef44 1205 tests/stub_client_side_request.cc \
62a0ef44
AJ
1206 tests/stub_debug.cc \
1207 tests/stub_errorpage.cc \
8822ebee 1208 tests/stub_HelperChildConfig.cc \
62a0ef44 1209 tests/stub_http.cc \
f1263147
AJ
1210 tests/stub_HttpRequest.cc \
1211 tests/stub_libauth.cc \
3e00a374 1212 tests/stub_icp.cc \
1b76e6c1 1213 tests/stub_ipc.cc \
3e00a374 1214 tests/stub_ipcache.cc \
83b62d3f 1215 tests/stub_libeui.cc \
f4698e0b 1216 tests/stub_libformat.cc \
98a6543e 1217 tests/stub_libicmp.cc \
da6dbcd1 1218 tests/stub_liblog.cc \
f1263147
AJ
1219 tests/stub_libmgr.cc \
1220 tests/stub_libsecurity.cc \
b65ce00c 1221 mime.h \
62a0ef44 1222 tests/stub_mime.cc \
e8dca475 1223 tests/stub_neighbors.cc \
8822ebee 1224 tests/stub_Port.cc \
f1263147 1225 tests/stub_pconn.cc \
62a0ef44 1226 tests/stub_store_client.cc \
687f5275 1227 store_rebuild.h \
62a0ef44 1228 tests/stub_store_rebuild.cc \
f1263147
AJ
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)
1238nodist_tests_testRock_SOURCES = \
1239 $(TESTSOURCES) \
1240 hier_code.cc \
1241 SquidMath.cc \
1242 SquidMath.h \
1243 swap_log_op.cc
1244tests_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)
1275tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1276else
1277EXTRA_DIST += \
1278 tests/testRock.cc \
1279 tests/testRock.h \
1280 tests/testStoreSupport.cc \
1281 tests/testStoreSupport.h
1282endif
1283
1284if ENABLE_FS_UFS
1285check_PROGRAMS += tests/testUfs
1286tests_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 \
62a0ef44 1304 tests/stub_UdsOp.cc \
f1263147
AJ
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 \
62a0ef44
AJ
1409 tests/testStoreSupport.cc \
1410 tests/testStoreSupport.h \
f1263147 1411 time.cc \
437cae05 1412 wordlist.h \
f1263147
AJ
1413 wordlist.cc
1414nodist_tests_testUfs_SOURCES = \
62a0ef44 1415 $(TESTSOURCES) \
6043e368 1416 hier_code.cc \
a98bcbee
AJ
1417 SquidMath.cc \
1418 SquidMath.h \
4b981814 1419 swap_log_op.cc
f1263147 1420tests_testUfs_LDADD = \
ca3a08e2
AJ
1421 http/libhttp.la \
1422 parser/libparser.la \
8822ebee 1423 CommCalls.o \
65f92818
AJ
1424 ident/libident.la \
1425 acl/libacls.la \
65f92818 1426 acl/libstate.la \
f1263147
AJ
1427 acl/libapi.la \
1428 libsquid.la \
65f92818
AJ
1429 ip/libip.la \
1430 fs/libfs.la \
f1263147 1431 mgr/libmgr.la \
25f98340 1432 $(REPL_OBJS) \
f1263147 1433 acl/libacls.la \
13d8c08c 1434 DiskIO/libdiskio.la \
25f98340 1435 acl/libapi.la \
fa720bfb 1436 anyp/libanyp.la \
10a69fc0 1437 $(SSL_LIBS) \
d5d5493b 1438 ipc/libipc.la \
f1263147 1439 comm/libcomm.la \
4a3b98d7 1440 dns/libdns.la \
d5d5493b 1441 base/libbase.la \
f1263147 1442 ip/libip.la \
ed6e9fb9 1443 mem/libmem.la \
2745fea5 1444 store/libstore.la \
f1263147 1445 $(ADAPTATION_LIBS) \
65e41a45 1446 sbuf/libsbuf.la \
25f98340
AJ
1447 $(top_builddir)/lib/libmisccontainers.la \
1448 $(top_builddir)/lib/libmiscencoding.la \
1449 $(top_builddir)/lib/libmiscutil.la \
09cd7204 1450 $(NETTLELIB) \
c2afddd8 1451 $(REGEXLIB) \
25f98340 1452 $(SSLLIB) \
d93bf055 1453 $(LIBCPPUNIT_LIBS) \
25f98340 1454 $(COMPAT_LIB) \
3ae8895c 1455 $(XTRA_LIBS)
f1263147
AJ
1456tests_testUfs_LDFLAGS = $(LIBADD_DL)
1457else
1458EXTRA_DIST += \
1459 tests/testUfs.cc \
1460 tests/testUfs.h
1461endif
b7717b61 1462
f1263147 1463## Tests of store/* and Store objects
4a3b98d7 1464
f1263147
AJ
1465check_PROGRAMS += tests/testStore
1466## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1467## first line - what we are testing.
1468tests_testStore_SOURCES= \
b814e8d4 1469 CacheDigest.h \
b030f3e1 1470 tests/stub_CacheDigest.cc \
a553a5a3 1471 cbdata.cc \
281422f8 1472 ClientInfo.h \
cb868059 1473 tests/stub_CollapsedForwarding.cc \
a553a5a3 1474 ConfigOption.cc \
1475 ConfigParser.cc \
1476 $(DELAY_POOL_SOURCE) \
2745fea5
AR
1477 fs_io.h \
1478 fs_io.cc \
f1263147 1479 ETag.cc \
62a0ef44 1480 event.cc \
62a0ef44 1481 EventLoop.cc \
1f0a1fe7
FC
1482 fatal.h \
1483 tests/stub_fatal.cc \
75f8f9a2 1484 FileMap.h \
c7d88a0b 1485 filemap.cc \
db2de30a 1486 HttpHeaderFieldStat.h \
ce394734
FC
1487 HttpHdrCc.h \
1488 HttpHdrCc.cc \
a553a5a3 1489 HttpHdrContRange.cc \
1490 HttpHdrRange.cc \
1491 HttpHdrSc.cc \
1492 HttpHdrScTarget.cc \
f1263147
AJ
1493 HttpHeaderFieldInfo.h \
1494 HttpHeaderTools.h \
1495 HttpHeaderTools.cc \
1496 HttpHeader.h \
1497 HttpHeader.cc \
f206b652 1498 RequestFlags.cc \
f1263147 1499 RequestFlags.h \
f9b6ff6e 1500 int.h \
a553a5a3 1501 int.cc \
94bfd31f
AJ
1502 MasterXaction.cc \
1503 MasterXaction.h \
a553a5a3 1504 mem_node.cc \
1505 MemBuf.cc \
1506 MemObject.cc \
f1263147 1507 MemStore.cc \
d7f4a0b7 1508 Notes.h \
f1263147 1509 Notes.cc \
a553a5a3 1510 Parsing.cc \
f1263147 1511 RemovalPolicy.cc \
c6f15d40 1512 refresh.h \
a553a5a3 1513 refresh.cc \
e1656dc4 1514 StatCounters.h \
e4f1fdae 1515 StatCounters.cc \
00a7574e 1516 StatHist.h \
a553a5a3 1517 StatHist.cc \
1518 stmem.cc \
e452f48d 1519 repl_modules.h \
a553a5a3 1520 store.cc \
a553a5a3 1521 store_io.cc \
a553a5a3 1522 store_swapout.cc \
a553a5a3 1523 StoreIOState.cc \
2e878f54 1524 tests/stub_StoreMeta.cc \
a553a5a3 1525 StoreMetaUnpacker.cc \
a553a5a3 1526 StoreSwapLogData.cc \
f1263147
AJ
1527 store_key_md5.h \
1528 store_key_md5.cc \
1529 tests/stub_SBufDetailedStats.cc \
62a0ef44 1530 String.cc \
f1263147
AJ
1531 StrList.h \
1532 StrList.cc \
62a0ef44 1533 tests/CapturingStoreEntry.h \
f1263147
AJ
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 \
1dffcf05 1550 tests/stub_libauth.cc \
83b62d3f 1551 tests/stub_libeui.cc \
f1263147
AJ
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 \
93bc1434 1566 tests/stub_store_stats.cc \
f1263147
AJ
1567 store_rebuild.h \
1568 tests/stub_store_rebuild.cc \
1569 tests/stub_store_swapout.cc \
4e540555 1570 tools.h \
9a9954ba 1571 Transients.cc \
f1263147
AJ
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 \
437cae05 1588 wordlist.h \
a553a5a3 1589 wordlist.cc
f1263147
AJ
1590nodist_tests_testStore_SOURCES= \
1591 SquidMath.cc \
1592 SquidMath.h \
1593 swap_log_op.cc \
1594 $(TESTSOURCES)
1595tests_testStore_LDADD= \
f49e4f7b 1596 libsquid.la \
ca3a08e2
AJ
1597 http/libhttp.la \
1598 parser/libparser.la \
62a0ef44
AJ
1599 ident/libident.la \
1600 acl/libacls.la \
62a0ef44 1601 acl/libstate.la \
62a0ef44 1602 acl/libapi.la \
4a3b98d7 1603 dns/libdns.la \
62a0ef44 1604 base/libbase.la \
62a0ef44
AJ
1605 ip/libip.la \
1606 fs/libfs.la \
f1263147
AJ
1607 mgr/libmgr.la \
1608 ipc/libipc.la \
0c3d3f65 1609 anyp/libanyp.la \
f1263147
AJ
1610 mem/libmem.la \
1611 store/libstore.la \
1612 sbuf/libsbuf.la \
1613 DiskIO/libdiskio.la \
25f98340
AJ
1614 $(top_builddir)/lib/libmisccontainers.la \
1615 $(top_builddir)/lib/libmiscencoding.la \
1616 $(top_builddir)/lib/libmiscutil.la \
09cd7204 1617 $(NETTLELIB) \
c2afddd8 1618 $(REGEXLIB) \
3ae8895c 1619 $(SSLLIB) \
f1263147 1620 CommCalls.o \
d93bf055 1621 $(LIBCPPUNIT_LIBS) \
0f1173d4 1622 $(COMPAT_LIB) \
3ae8895c 1623 $(XTRA_LIBS)
f1263147 1624tests_testStore_LDFLAGS = $(LIBADD_DL)
a553a5a3 1625
f1263147
AJ
1626## Tests of DiskIO/*
1627
1628check_PROGRAMS += tests/testDiskIO
1629tests_testDiskIO_SOURCES = \
d4204018 1630 AccessLogEntry.cc \
f1263147 1631 AccessLogEntry.h \
b814e8d4 1632 CacheDigest.h \
b030f3e1 1633 tests/stub_CacheDigest.cc \
a553a5a3 1634 cbdata.cc \
95e6d864 1635 client_db.h \
281422f8 1636 ClientInfo.h \
cb868059 1637 tests/stub_CollapsedForwarding.cc \
a553a5a3 1638 ConfigOption.cc \
1639 ConfigParser.cc \
1640 $(DELAY_POOL_SOURCE) \
f1263147 1641 FadingCounter.cc \
2745fea5
AR
1642 fs_io.h \
1643 fs_io.cc \
71b07460 1644 tests/stub_ETag.cc \
62a0ef44
AJ
1645 EventLoop.cc \
1646 event.cc \
1f0a1fe7
FC
1647 fatal.h \
1648 tests/stub_fatal.cc \
c4ad1349 1649 fd.h \
a553a5a3 1650 fd.cc \
f1263147 1651 fde.h \
a553a5a3 1652 fde.cc \
75f8f9a2 1653 FileMap.h \
c7d88a0b 1654 filemap.cc \
0521f8be 1655 HttpBody.h \
a553a5a3 1656 HttpBody.cc \
db2de30a 1657 HttpHeaderFieldStat.h \
ce394734
FC
1658 HttpHdrCc.h \
1659 HttpHdrCc.cc \
a553a5a3 1660 HttpHdrContRange.cc \
a553a5a3 1661 HttpHdrSc.cc \
1662 HttpHdrScTarget.cc \
f1263147
AJ
1663 HttpHdrRange.cc \
1664 HttpHeaderFieldInfo.h \
1665 HttpHeaderTools.h \
1666 HttpHeaderTools.cc \
1667 HttpHeader.h \
1668 HttpHeader.cc \
a553a5a3 1669 HttpReply.cc \
f9b6ff6e 1670 int.h \
a553a5a3 1671 int.cc \
53f5404d 1672 LogTags.cc \
94bfd31f
AJ
1673 MasterXaction.cc \
1674 MasterXaction.h \
a553a5a3 1675 MemBuf.cc \
1676 MemObject.cc \
62a0ef44 1677 mem_node.cc \
d7f4a0b7 1678 Notes.h \
f1263147 1679 Notes.cc \
a553a5a3 1680 Parsing.cc \
c6f15d40 1681 refresh.h \
a553a5a3 1682 refresh.cc \
f1263147
AJ
1683 RemovalPolicy.cc \
1684 RequestFlags.h \
1685 RequestFlags.cc \
55622953
CT
1686 ResolvedPeers.cc \
1687 ResolvedPeers.h \
f1263147
AJ
1688 tests/stub_libsecurity.cc \
1689 StatCounters.h \
1690 StatCounters.cc \
1691 StatHist.h \
1692 tests/stub_StatHist.cc \
1693 stmem.cc \
ff1eb053 1694 tests/stub_SBufDetailedStats.cc \
f1263147
AJ
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 \
c1a2df00 1710 tests/stub_libstore.cc \
f1263147
AJ
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
1762nodist_tests_testDiskIO_SOURCES= \
1763 $(TESTSOURCES) \
1764 hier_code.cc \
1765 SquidMath.cc \
a98bcbee 1766 SquidMath.h \
f1263147
AJ
1767 swap_log_op.cc
1768tests_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)
1803tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1804
1805## Tests of auth/*
1806
c1a2df00
AJ
1807if ENABLE_AUTH
1808check_PROGRAMS += tests/testACLMaxUserIP
1809tests_testACLMaxUserIP_SOURCES = \
1810 tests/testACLMaxUserIP.cc \
1811 tests/testACLMaxUserIP.h
1812nodist_tests_testACLMaxUserIP_SOURCES = \
f1263147 1813 ConfigParser.cc \
c1a2df00
AJ
1814 dlink.cc \
1815 globals.cc \
f1263147 1816 Parsing.cc \
f1263147 1817 String.cc \
f1263147 1818 tests/stub_access_log.cc \
f1263147 1819 tests/stub_cache_cf.cc \
c1a2df00 1820 tests/stub_cbdata.cc \
f1263147
AJ
1821 tests/stub_client_side.cc \
1822 tests/stub_debug.cc \
f1263147 1823 tests/stub_errorpage.cc \
c1a2df00
AJ
1824 tests/stub_fatal.cc \
1825 tests/stub_HelperChildConfig.cc \
1826 tests/stub_HttpHeader.cc \
f1263147 1827 tests/stub_HttpRequest.cc \
f02539d9 1828 tests/stub_libauth.cc \
c1a2df00 1829 tests/stub_libhttp.cc \
f1263147 1830 tests/stub_libmem.cc \
c1a2df00
AJ
1831 tests/stub_libsecurity.cc \
1832 tests/stub_MemBuf.cc \
1833 tests/stub_StatHist.cc
1834tests_testACLMaxUserIP_LDADD = \
f1263147 1835 $(AUTH_ACL_LIBS) \
62a0ef44 1836 acl/libapi.la \
c1a2df00
AJ
1837 acl/libstate.la \
1838 acl/libacls.la \
1839 SquidConfig.o \
62a0ef44 1840 ip/libip.la \
c1a2df00 1841 parser/libparser.la \
65e41a45 1842 sbuf/libsbuf.la \
c1a2df00 1843 base/libbase.la \
3ae8895c 1844 $(SSLLIB) \
d93bf055 1845 $(LIBCPPUNIT_LIBS) \
0f1173d4 1846 $(COMPAT_LIB) \
3ae8895c 1847 $(XTRA_LIBS)
f1263147 1848tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
c1a2df00
AJ
1849else
1850EXTRA_DIST += \
1851 tests/testACLMaxUserIP.cc \
1852 tests/testACLMaxUserIP.h
1853endif
62ee09ca 1854
f1263147
AJ
1855## Tests of http/* and HTTP Protocol objects
1856
1857check_PROGRAMS += tests/test_http_range
f24583c1 1858tests_test_http_range_SOURCES = \
d4204018 1859 AccessLogEntry.cc \
5f8252d2 1860 BodyPipe.cc \
f07e1f9a 1861 cache_cf.h \
89736861 1862 AuthReg.h \
8d9a8184 1863 RefreshPattern.h \
719815a0
AJ
1864 CachePeer.cc \
1865 CachePeer.h \
f24583c1 1866 cache_manager.cc \
b814e8d4 1867 CacheDigest.h \
b030f3e1 1868 tests/stub_CacheDigest.cc \
21c22f04 1869 carp.h \
34ddf789 1870 tests/stub_carp.cc \
f24583c1 1871 cbdata.cc \
c1a2df00 1872 tests/stub_client_db.cc \
93da1f99 1873 client_side.h \
f24583c1 1874 client_side.cc \
1875 client_side_reply.cc \
1876 client_side_request.cc \
281422f8 1877 ClientInfo.h \
f24583c1 1878 clientStream.cc \
cb868059 1879 tests/stub_CollapsedForwarding.cc \
f24583c1 1880 ConfigOption.cc \
1881 ConfigParser.cc \
96c2bb61
AR
1882 CpuAffinityMap.cc \
1883 CpuAffinityMap.h \
1884 CpuAffinitySet.cc \
1885 CpuAffinitySet.h \
f24583c1 1886 debug.cc \
1887 $(DELAY_POOL_SOURCE) \
2745fea5
AR
1888 fs_io.h \
1889 fs_io.cc \
e1f7507e
AJ
1890 dlink.h \
1891 dlink.cc \
f24583c1 1892 $(DNSSOURCE) \
f24583c1 1893 errorpage.cc \
71b07460 1894 tests/stub_ETag.cc \
62a0ef44 1895 event.cc \
62a0ef44 1896 FadingCounter.cc \
1f0a1fe7 1897 fatal.h \
f02539d9 1898 tests/stub_libauth.cc \
1f0a1fe7 1899 tests/stub_fatal.cc \
c4ad1349 1900 fd.h \
f24583c1 1901 fd.cc \
1902 fde.cc \
75f8f9a2 1903 FileMap.h \
c7d88a0b 1904 filemap.cc \
437cae05 1905 fqdncache.h \
f24583c1 1906 fqdncache.cc \
eb13c21e
AJ
1907 FwdState.cc \
1908 FwdState.h \
437cae05 1909 gopher.h \
c1a2df00 1910 tests/stub_gopher.cc \
55622953
CT
1911 HappyConnOpener.cc \
1912 HappyConnOpener.h \
f24583c1 1913 helper.cc \
bbaf2685 1914 hier_code.h \
f24583c1 1915 $(HTCPSOURCE) \
1916 http.cc \
0521f8be 1917 HttpBody.h \
f24583c1 1918 HttpBody.cc \
84540b47 1919 tests/stub_HttpControlMsg.cc \
db2de30a 1920 HttpHeaderFieldStat.h \
ce394734
FC
1921 HttpHdrCc.h \
1922 HttpHdrCc.cc \
f24583c1 1923 HttpHdrContRange.cc \
1924 HttpHdrRange.cc \
1925 HttpHdrSc.cc \
1926 HttpHdrScTarget.cc \
437cae05 1927 HttpHeader.h \
f24583c1 1928 HttpHeader.cc \
79cb238d 1929 HttpHeaderFieldInfo.h \
a5bac1d2 1930 HttpHeaderTools.h \
f24583c1 1931 HttpHeaderTools.cc \
f24583c1 1932 HttpReply.cc \
e8dca475
CT
1933 PeerPoolMgr.h \
1934 PeerPoolMgr.cc \
f206b652
FC
1935 RequestFlags.h \
1936 RequestFlags.cc \
f24583c1 1937 HttpRequest.cc \
f24583c1 1938 icp_v2.cc \
1939 icp_v3.cc \
f9b6ff6e 1940 int.h \
f24583c1 1941 int.cc \
308e60be 1942 internal.h \
f24583c1 1943 internal.cc \
b5d712b5 1944 $(IPC_SOURCE) \
f24583c1 1945 ipcache.cc \
53f5404d 1946 LogTags.cc \
94bfd31f
AJ
1947 MasterXaction.cc \
1948 MasterXaction.h \
62a0ef44
AJ
1949 MemBuf.cc \
1950 MemObject.cc \
ed6e9fb9 1951 tests/stub_libmem.cc \
f24583c1 1952 mem_node.cc \
b65ce00c 1953 mime.h \
f24583c1 1954 mime.cc \
b6149797 1955 mime_header.h \
0f9db2d6 1956 mime_header.cc \
afabcc13 1957 multicast.h \
f24583c1 1958 multicast.cc \
437cae05 1959 neighbors.h \
f24583c1 1960 neighbors.cc \
d7f4a0b7
CT
1961 Notes.cc \
1962 Notes.h \
f24583c1 1963 Parsing.cc \
1964 peer_digest.cc \
6ff204fc 1965 peer_proxy_negotiate_auth.h \
9ca29d23 1966 peer_proxy_negotiate_auth.cc \
f24583c1 1967 peer_select.cc \
f795b373 1968 peer_sourcehash.h \
f4a21650 1969 peer_sourcehash.cc \
37236ba1 1970 peer_userhash.h \
f4a21650 1971 peer_userhash.cc \
c6ae1627
AJ
1972 Pipeline.cc \
1973 Pipeline.h \
f24583c1 1974 pconn.cc \
c548327a 1975 redirect.h \
dd1efef8 1976 tests/stub_redirect.cc \
c6f15d40 1977 refresh.h \
f24583c1 1978 refresh.cc \
aa839030 1979 RemovalPolicy.cc \
55622953
CT
1980 ResolvedPeers.cc \
1981 ResolvedPeers.h \
ff1eb053 1982 tests/stub_SBufDetailedStats.cc \
f24583c1 1983 $(SNMP_SOURCE) \
a98bcbee
AJ
1984 SquidMath.h \
1985 SquidMath.cc \
9ce629cf 1986 IoStats.h \
6ea5959e 1987 stat.h \
f24583c1 1988 stat.cc \
e1656dc4 1989 StatCounters.h \
e4f1fdae 1990 StatCounters.cc \
00a7574e 1991 StatHist.h \
f24583c1 1992 StatHist.cc \
1993 stmem.cc \
e452f48d 1994 repl_modules.h \
f24583c1 1995 store.cc \
1996 store_client.cc \
35a28a37 1997 store_digest.h \
1d4896fb 1998 tests/stub_store_digest.cc \
fb548aaf 1999 store_key_md5.h \
f24583c1 2000 store_key_md5.cc \
2001 store_io.cc \
10818c0a 2002 store_log.h \
f24583c1 2003 store_log.cc \
687f5275 2004 store_rebuild.h \
f24583c1 2005 store_rebuild.cc \
f82b5c64 2006 store_swapin.h \
f24583c1 2007 store_swapin.cc \
2008 store_swapmeta.cc \
2009 store_swapout.cc \
2010 StoreFileSystem.cc \
2011 StoreIOState.cc \
2e878f54 2012 tests/stub_StoreMeta.cc \
f24583c1 2013 StoreMetaUnpacker.cc \
f24583c1 2014 StoreSwapLogData.cc \
30abd221 2015 String.cc \
0a59b726
FC
2016 StrList.h \
2017 StrList.cc \
c1a2df00 2018 tests/stub_libstore.cc \
cb868059 2019 Transients.cc \
62a0ef44 2020 tests/test_http_range.cc \
1c2b4465 2021 tests/stub_cache_cf.cc \
f02539d9 2022 tests/stub_external_acl.cc \
1c2b4465 2023 tests/stub_HttpUpgradeProtocolAccess.cc \
62a0ef44 2024 tests/stub_ipc_Forwarder.cc \
647071c0 2025 tests/stub_libdiskio.cc \
83b62d3f 2026 tests/stub_libeui.cc \
a465e144 2027 tests/stub_libsecurity.cc \
62a0ef44 2028 tests/stub_main_cc.cc \
d5d5493b 2029 tests/stub_MemStore.cc \
93bc1434 2030 tests/stub_store_stats.cc \
0a720258 2031 tests/stub_EventLoop.cc \
f24583c1 2032 time.cc \
4e540555 2033 tools.h \
f24583c1 2034 tools.cc \
2e878f54 2035 tests/stub_tunnel.cc \
c7d88a0b 2036 $(UNLINKDSOURCE) \
5eb529cb 2037 urn.h \
f24583c1 2038 urn.cc \
437cae05 2039 wccp2.h \
5c681e77 2040 tests/stub_wccp2.cc \
08066558 2041 whois.h \
1e7c380b 2042 tests/stub_whois.cc \
9c8434f6 2043 $(WIN32_SOURCE) \
437cae05 2044 wordlist.h \
62a0ef44 2045 wordlist.cc
f24583c1 2046nodist_tests_test_http_range_SOURCES = \
d9691f09 2047 $(BUILT_SOURCES)
f24583c1 2048tests_test_http_range_LDADD = \
f49e4f7b 2049 libsquid.la \
92ae4c86
AR
2050 clients/libclients.la \
2051 servers/libservers.la \
92ae4c86 2052 ftp/libftp.la \
24438ec5 2053 helper/libhelper.la \
ca3a08e2
AJ
2054 http/libhttp.la \
2055 parser/libparser.la \
62a0ef44
AJ
2056 ident/libident.la \
2057 acl/libacls.la \
62a0ef44 2058 acl/libstate.la \
62a0ef44 2059 acl/libapi.la \
36c774f7 2060 proxyp/libproxyp.la \
ca3a08e2 2061 parser/libparser.la \
62a0ef44
AJ
2062 ip/libip.la \
2063 fs/libfs.la \
0c3d3f65 2064 anyp/libanyp.la \
ca3a08e2 2065 icmp/libicmp.la \
cfd66529 2066 comm/libcomm.la \
82b7abe3 2067 log/liblog.la \
38e16f92 2068 format/libformat.la \
3ae8895c 2069 $(REPL_OBJS) \
65f92818 2070 $(ADAPTATION_LIBS) \
88bfe098 2071 $(ESI_LIBS) \
95d2589c 2072 $(SSL_LIBS) \
c7d88a0b 2073 ipc/libipc.la \
4a3b98d7 2074 dns/libdns.la \
c7d88a0b
DK
2075 base/libbase.la \
2076 mgr/libmgr.la \
65e41a45 2077 sbuf/libsbuf.la \
2745fea5 2078 store/libstore.la \
c7d88a0b 2079 $(SNMP_LIBS) \
25f98340
AJ
2080 $(top_builddir)/lib/libmisccontainers.la \
2081 $(top_builddir)/lib/libmiscencoding.la \
2082 $(top_builddir)/lib/libmiscutil.la \
09cd7204 2083 $(NETTLELIB) \
c2afddd8 2084 $(REGEXLIB) \
3ae8895c
A
2085 $(SSLLIB) \
2086 $(KRB5LIBS) \
d93bf055 2087 $(LIBCPPUNIT_LIBS) \
0f1173d4 2088 $(COMPAT_LIB) \
3ae8895c 2089 $(XTRA_LIBS)
36dca327 2090tests_test_http_range_LDFLAGS = $(LIBADD_DL)
f24583c1 2091
f1263147
AJ
2092check_PROGRAMS += tests/testHttp1Parser
2093tests_testHttp1Parser_SOURCES = \
2094 Debug.h \
2095 MemBuf.cc \
2096 MemBuf.h \
2097 tests/stub_MemObject.cc \
2098 mime_header.cc \
2099 mime_header.h \
37122e21 2100 String.cc \
f1263147
AJ
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 \
37122e21 2107 tests/stub_debug.cc \
f1263147
AJ
2108 tests/stub_event.cc \
2109 tests/stub_HelperChildConfig.cc \
37122e21 2110 tests/stub_libmem.cc \
f1263147
AJ
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 \
37122e21 2119 tests/stub_time.cc \
f1263147
AJ
2120 tests/stub_libanyp.cc \
2121 wordlist.h \
2122 wordlist.cc
2123nodist_tests_testHttp1Parser_SOURCES = \
2124 $(TESTSOURCES)
2125tests_testHttp1Parser_LDADD= \
2126 http/libhttp.la \
ca3a08e2 2127 parser/libparser.la \
f1263147
AJ
2128 anyp/libanyp.la \
2129 SquidConfig.o \
37122e21 2130 base/libbase.la \
f1263147 2131 ip/libip.la \
65e41a45 2132 sbuf/libsbuf.la \
37122e21 2133 $(top_builddir)/lib/libmiscutil.la \
f1263147 2134 $(SSLLIB) \
d93bf055 2135 $(LIBCPPUNIT_LIBS) \
37122e21 2136 $(COMPAT_LIB) \
37122e21 2137 $(XTRA_LIBS)
f1263147 2138tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
37122e21 2139
f1263147
AJ
2140check_PROGRAMS += tests/testHttpReply
2141tests_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 \
4c14658e
AJ
2172 MemBuf.cc \
2173 MemBuf.h \
f4880526 2174 mime_header.h \
f1263147
AJ
2175 mime_header.cc \
2176 Notes.h \
2177 Notes.cc \
2178 SquidString.h \
2179 SquidTime.h \
2180 tests/stub_SBufDetailedStats.cc \
ba465675 2181 String.cc \
f1263147
AJ
2182 StrList.h \
2183 StrList.cc \
2184 log/access_log.h \
2185 tests/stub_access_log.cc \
f07e1f9a 2186 cache_cf.h \
ba465675 2187 tests/stub_cache_cf.cc \
4c14658e 2188 tests/stub_cache_manager.cc \
cb868059 2189 tests/stub_comm.cc \
4c14658e 2190 tests/stub_debug.cc \
f1263147 2191 tests/stub_errorpage.cc \
4c14658e 2192 tests/stub_event.cc \
f1263147 2193 tests/stub_fd.cc \
4c14658e 2194 tests/stub_HelperChildConfig.cc \
f1263147
AJ
2195 tests/stub_libformat.cc \
2196 tests/stub_libauth.cc \
2197 tests/stub_libcomm.cc \
2198 tests/stub_libmgr.cc \
a465e144 2199 tests/stub_libsecurity.cc \
f1263147
AJ
2200 tests/stub_libsslsquid.cc \
2201 StatCounters.h \
2202 StatCounters.cc \
2203 StatHist.h \
2204 tests/stub_StatHist.cc \
2205 repl_modules.h \
93278786 2206 tests/stub_store.cc \
cb868059 2207 tests/stub_store_stats.cc \
4e540555 2208 tools.h \
f1263147
AJ
2209 tests/stub_tools.cc \
2210 tests/stub_HttpRequest.cc \
2211 tests/testHttpReply.cc \
2212 tests/testHttpReply.h \
27782a42 2213 tests/stub_time.cc \
c8ab5ec6 2214 tests/stub_libanyp.cc \
437cae05 2215 wordlist.h \
ba465675 2216 wordlist.cc
f1263147
AJ
2217nodist_tests_testHttpReply_SOURCES=\
2218 $(TESTSOURCES) \
2219 hier_code.cc
2220tests_testHttpReply_LDADD=\
2221 CommCalls.o \
ca3a08e2
AJ
2222 http/libhttp.la \
2223 parser/libparser.la \
f1263147
AJ
2224 acl/libacls.la \
2225 acl/libapi.la \
2226 acl/libstate.la \
5aedd08d 2227 anyp/libanyp.la \
4c14658e 2228 ip/libip.la \
f1263147
AJ
2229 base/libbase.la \
2230 ipc/libipc.la \
2231 mem/libmem.la \
65e41a45 2232 sbuf/libsbuf.la \
f1263147
AJ
2233 $(top_builddir)/lib/libmisccontainers.la \
2234 $(top_builddir)/lib/libmiscencoding.la \
4c14658e 2235 $(top_builddir)/lib/libmiscutil.la \
f1263147 2236 $(NETTLELIB) \
6b19d1f9 2237 $(SSLLIB) \
d93bf055 2238 $(LIBCPPUNIT_LIBS) \
4c14658e
AJ
2239 $(COMPAT_LIB) \
2240 $(XTRA_LIBS)
f1263147 2241tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
4c14658e 2242
f1263147 2243check_PROGRAMS += tests/testHttpRequest
c21ad0f5 2244tests_testHttpRequest_SOURCES = \
d4204018 2245 AccessLogEntry.cc \
f206b652
FC
2246 RequestFlags.h \
2247 RequestFlags.cc \
985c86bc 2248 HttpRequest.cc \
ed6e9fb9 2249 tests/stub_libmem.cc \
30abd221 2250 String.cc \
0e566514 2251 tests/testHttpRequest.h \
985c86bc 2252 tests/testHttpRequest.cc \
0e566514 2253 tests/testHttpRequestMethod.h \
985c86bc 2254 tests/testHttpRequestMethod.cc \
31079afd 2255 tests/stub_libauth.cc \
d3578172 2256 tests/stub_main_cc.cc \
d37e93a8 2257 tests/stub_ipc_Forwarder.cc \
647071c0 2258 tests/stub_libdiskio.cc \
83b62d3f 2259 tests/stub_libeui.cc \
93bc1434 2260 tests/stub_store_stats.cc \
0a720258 2261 tests/stub_EventLoop.cc \
985c86bc 2262 time.cc \
5f8252d2 2263 BodyPipe.cc \
c21ad0f5 2264 cache_manager.cc \
f07e1f9a 2265 cache_cf.h \
89736861 2266 AuthReg.h \
8d9a8184 2267 RefreshPattern.h \
25f98340 2268 debug.cc \
b814e8d4 2269 CacheDigest.h \
b030f3e1 2270 tests/stub_CacheDigest.cc \
719815a0
AJ
2271 CachePeer.cc \
2272 CachePeer.h \
21c22f04 2273 carp.h \
34ddf789 2274 tests/stub_carp.cc \
c21ad0f5 2275 cbdata.cc \
c1a2df00 2276 tests/stub_client_db.cc \
93da1f99 2277 client_side.h \
c21ad0f5 2278 client_side.cc \
2279 client_side_reply.cc \
2280 client_side_request.cc \
281422f8 2281 ClientInfo.h \
c21ad0f5 2282 clientStream.cc \
cb868059 2283 tests/stub_CollapsedForwarding.cc \
c21ad0f5 2284 ConfigOption.cc \
2285 ConfigParser.cc \
96c2bb61
AR
2286 CpuAffinityMap.cc \
2287 CpuAffinityMap.h \
2288 CpuAffinitySet.cc \
2289 CpuAffinitySet.h \
c21ad0f5 2290 $(DELAY_POOL_SOURCE) \
2745fea5
AR
2291 fs_io.h \
2292 fs_io.cc \
e1f7507e
AJ
2293 dlink.h \
2294 dlink.cc \
c21ad0f5 2295 $(DNSSOURCE) \
c21ad0f5 2296 errorpage.cc \
71b07460 2297 tests/stub_ETag.cc \
c21ad0f5 2298 external_acl.cc \
2299 ExternalACLEntry.cc \
1f0a1fe7
FC
2300 fatal.h \
2301 tests/stub_fatal.cc \
c4ad1349 2302 fd.h \
c21ad0f5 2303 fd.cc \
2304 fde.cc \
437cae05 2305 fqdncache.h \
c21ad0f5 2306 fqdncache.cc \
eb13c21e
AJ
2307 FwdState.cc \
2308 FwdState.h \
437cae05 2309 gopher.h \
c1a2df00 2310 tests/stub_gopher.cc \
55622953
CT
2311 HappyConnOpener.cc \
2312 HappyConnOpener.h \
c21ad0f5 2313 helper.cc \
bbaf2685 2314 hier_code.h \
1edbd3b6 2315 $(HTCPSOURCE) \
c21ad0f5 2316 http.cc \
0521f8be 2317 HttpBody.h \
c21ad0f5 2318 HttpBody.cc \
84540b47 2319 tests/stub_HttpControlMsg.cc \
437cae05 2320 HttpHeader.h \
c21ad0f5 2321 HttpHeader.cc \
79cb238d 2322 HttpHeaderFieldInfo.h \
a5bac1d2 2323 HttpHeaderTools.h \
c21ad0f5 2324 HttpHeaderTools.cc \
db2de30a 2325 HttpHeaderFieldStat.h \
ce394734
FC
2326 HttpHdrCc.h \
2327 HttpHdrCc.cc \
c21ad0f5 2328 HttpHdrContRange.cc \
2329 HttpHdrRange.cc \
2330 HttpHdrSc.cc \
2331 HttpHdrScTarget.cc \
c21ad0f5 2332 HttpReply.cc \
c21ad0f5 2333 icp_v2.cc \
2334 icp_v3.cc \
b5d712b5 2335 $(IPC_SOURCE) \
c21ad0f5 2336 ipcache.cc \
f9b6ff6e 2337 int.h \
c21ad0f5 2338 int.cc \
308e60be 2339 internal.h \
c21ad0f5 2340 internal.cc \
53f5404d 2341 LogTags.cc \
9a2f63e7 2342 tests/stub_libsecurity.cc \
94bfd31f
AJ
2343 MasterXaction.cc \
2344 MasterXaction.h \
afabcc13 2345 multicast.h \
c21ad0f5 2346 multicast.cc \
c21ad0f5 2347 mem_node.cc \
2348 MemBuf.cc \
2349 MemObject.cc \
b65ce00c 2350 mime.h \
c21ad0f5 2351 mime.cc \
b6149797 2352 mime_header.h \
0f9db2d6 2353 mime_header.cc \
437cae05 2354 neighbors.h \
c21ad0f5 2355 neighbors.cc \
d7f4a0b7
CT
2356 Notes.cc \
2357 Notes.h \
c21ad0f5 2358 Parsing.cc \
2359 pconn.cc \
2360 peer_digest.cc \
6ff204fc 2361 peer_proxy_negotiate_auth.h \
9ca29d23 2362 peer_proxy_negotiate_auth.cc \
c21ad0f5 2363 peer_select.cc \
f795b373 2364 peer_sourcehash.h \
f4a21650 2365 peer_sourcehash.cc \
37236ba1 2366 peer_userhash.h \
f4a21650 2367 peer_userhash.cc \
e8dca475
CT
2368 PeerPoolMgr.h \
2369 PeerPoolMgr.cc \
c6ae1627
AJ
2370 Pipeline.cc \
2371 Pipeline.h \
c548327a 2372 redirect.h \
41ae65af 2373 tests/stub_libauth_acls.cc \
dd1efef8 2374 tests/stub_redirect.cc \
c6f15d40 2375 refresh.h \
c21ad0f5 2376 refresh.cc \
aa839030 2377 RemovalPolicy.cc \
55622953
CT
2378 ResolvedPeers.cc \
2379 ResolvedPeers.h \
ff1eb053 2380 tests/stub_SBufDetailedStats.cc \
c21ad0f5 2381 $(SNMP_SOURCE) \
a98bcbee
AJ
2382 SquidMath.h \
2383 SquidMath.cc \
9ce629cf 2384 IoStats.h \
6ea5959e 2385 stat.h \
c21ad0f5 2386 stat.cc \
e1656dc4 2387 StatCounters.h \
e4f1fdae 2388 StatCounters.cc \
00a7574e 2389 StatHist.h \
c21ad0f5 2390 StatHist.cc \
2391 stmem.cc \
e452f48d 2392 repl_modules.h \
c21ad0f5 2393 store.cc \
2394 store_client.cc \
35a28a37 2395 store_digest.h \
1d4896fb 2396 tests/stub_store_digest.cc \
c21ad0f5 2397 store_io.cc \
fb548aaf 2398 store_key_md5.h \
c21ad0f5 2399 store_key_md5.cc \
10818c0a 2400 store_log.h \
c21ad0f5 2401 store_log.cc \
687f5275 2402 store_rebuild.h \
c21ad0f5 2403 store_rebuild.cc \
f82b5c64 2404 store_swapin.h \
c21ad0f5 2405 store_swapin.cc \
2406 store_swapmeta.cc \
2407 store_swapout.cc \
2408 StoreFileSystem.cc \
2409 StoreIOState.cc \
2e878f54 2410 tests/stub_StoreMeta.cc \
c21ad0f5 2411 StoreMetaUnpacker.cc \
c21ad0f5 2412 StoreSwapLogData.cc \
0a59b726
FC
2413 StrList.h \
2414 StrList.cc \
62a0ef44 2415 event.cc \
4e540555 2416 tools.h \
c21ad0f5 2417 tools.cc \
9a9954ba 2418 Transients.cc \
1c2b4465
CT
2419 tests/stub_cache_cf.cc \
2420 tests/stub_HttpUpgradeProtocolAccess.cc \
2e878f54 2421 tests/stub_tunnel.cc \
c1a2df00 2422 tests/stub_libstore.cc \
e557e9df 2423 MemStore.cc \
5eb529cb 2424 urn.h \
c21ad0f5 2425 urn.cc \
437cae05 2426 wccp2.h \
5c681e77 2427 tests/stub_wccp2.cc \
08066558 2428 whois.h \
1e7c380b 2429 tests/stub_whois.cc \
8277060a 2430 FadingCounter.cc \
9c8434f6 2431 $(WIN32_SOURCE) \
437cae05 2432 wordlist.h \
c21ad0f5 2433 wordlist.cc
2434nodist_tests_testHttpRequest_SOURCES = \
4b981814 2435 $(BUILT_SOURCES)
c21ad0f5 2436tests_testHttpRequest_LDADD = \
f49e4f7b 2437 libsquid.la \
f1263147
AJ
2438 clients/libclients.la \
2439 servers/libservers.la \
2440 helper/libhelper.la \
2441 ftp/libftp.la \
ca3a08e2 2442 http/libhttp.la \
62a0ef44
AJ
2443 ident/libident.la \
2444 acl/libacls.la \
62a0ef44 2445 acl/libstate.la \
62a0ef44 2446 acl/libapi.la \
f1263147 2447 parser/libparser.la \
62a0ef44
AJ
2448 ip/libip.la \
2449 fs/libfs.la \
f1263147 2450 $(SSL_LIBS) \
d5d5493b 2451 ipc/libipc.la \
36c774f7 2452 proxyp/libproxyp.la \
f1263147
AJ
2453 parser/libparser.la \
2454 dns/libdns.la \
2455 base/libbase.la \
2456 mgr/libmgr.la \
0c3d3f65 2457 anyp/libanyp.la \
f1263147
AJ
2458 $(SNMP_LIBS) \
2459 icmp/libicmp.la \
2460 comm/libcomm.la \
2461 log/liblog.la \
2462 format/libformat.la \
2745fea5 2463 store/libstore.la \
65e41a45 2464 sbuf/libsbuf.la \
f1263147
AJ
2465 $(REPL_OBJS) \
2466 $(ADAPTATION_LIBS) \
2467 $(ESI_LIBS) \
25f98340
AJ
2468 $(top_builddir)/lib/libmisccontainers.la \
2469 $(top_builddir)/lib/libmiscencoding.la \
2470 $(top_builddir)/lib/libmiscutil.la \
09cd7204 2471 $(NETTLELIB) \
c2afddd8 2472 $(REGEXLIB) \
3ae8895c 2473 $(SSLLIB) \
f1263147 2474 $(KRB5LIBS) \
d93bf055 2475 $(LIBCPPUNIT_LIBS) \
0f1173d4 2476 $(COMPAT_LIB) \
3ae8895c 2477 $(XTRA_LIBS)
f1263147 2478tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
30abd221 2479
f1263147
AJ
2480## Tests of ip/*
2481
2482check_PROGRAMS += tests/testIpAddress
c1a2df00
AJ
2483tests_testIpAddress_SOURCES = \
2484 tests/testIpAddress.cc \
2485 tests/testIpAddress.h
2486nodist_tests_testIpAddress_SOURCES = \
25f98340 2487 tests/stub_debug.cc \
ae72213d 2488 tests/stub_libmem.cc \
c1a2df00 2489 tests/stub_SBuf.cc \
f1263147 2490 tests/stub_tools.cc
c1a2df00 2491tests_testIpAddress_LDADD = \
65f92818 2492 ip/libip.la \
f1263147 2493 base/libbase.la \
d93bf055 2494 $(LIBCPPUNIT_LIBS) \
0f1173d4 2495 $(COMPAT_LIB) \
3ae8895c 2496 $(XTRA_LIBS)
c1a2df00 2497tests_testIpAddress_LDFLAGS = $(LIBADD_DL)
c21ad0f5 2498
f1263147
AJ
2499## Tests of icmp/*
2500
2501check_PROGRAMS += tests/testIcmp
2502# icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2503tests_testIcmp_SOURCES = \
2504 tests/testIcmp.h \
2505 tests/testIcmp.cc
2506nodist_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
2514tests_testIcmp_LDADD=\
2515 icmp/libicmpcore.la \
2516 ip/libip.la \
62a0ef44 2517 base/libbase.la \
f1263147
AJ
2518 $(LIBCPPUNIT_LIBS) \
2519 $(COMPAT_LIB) \
2520 $(XTRA_LIBS)
2521tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2522
2523check_PROGRAMS += tests/testNetDb
2524tests_testNetDb_SOURCES = \
2525 tests/testNetDb.cc \
2526 tests/testNetDb.h
2527nodist_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
2534tests_testNetDb_LDADD = \
2535 icmp/libicmp.la \
62a0ef44 2536 ip/libip.la \
f1263147
AJ
2537 base/libbase.la \
2538 $(top_builddir)/lib/libmisccontainers.la \
2539 $(LIBCPPUNIT_LIBS) \
2540 $(COMPAT_LIB) \
2541 $(XTRA_LIBS)
2542tests_testNetDb_LDFLAGS = $(LIBADD_DL)
62a0ef44 2543
f1263147
AJ
2544## Tests of mgr/* and CacheManager objects
2545
2546check_PROGRAMS += tests/testCacheManager
2547tests_testCacheManager_SOURCES = \
da6dbcd1 2548 AccessLogEntry.cc \
f1263147
AJ
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 \
93bc1434 2559 tests/stub_store_stats.cc \
f1263147
AJ
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 \
f1263147
AJ
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 \
c1a2df00 2574 tests/stub_client_db.cc \
f1263147
AJ
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 \
1f0a1fe7
FC
2599 fatal.h \
2600 tests/stub_fatal.cc \
c4ad1349 2601 fd.h \
40d34a62 2602 fd.cc \
cdeeb88d 2603 fde.cc \
75f8f9a2 2604 FileMap.h \
c8f4eac4 2605 filemap.cc \
f1263147
AJ
2606 fqdncache.h \
2607 fqdncache.cc \
2608 FwdState.cc \
2609 FwdState.h \
2610 gopher.h \
c1a2df00 2611 tests/stub_gopher.cc \
55622953
CT
2612 HappyConnOpener.cc \
2613 HappyConnOpener.h \
f1263147
AJ
2614 hier_code.h \
2615 helper.cc \
2616 $(HTCPSOURCE) \
2617 http.cc \
2618 HttpBody.h \
2619 HttpBody.cc \
2620 HttpHeader.h \
2621 HttpHeader.cc \
79cb238d 2622 HttpHeaderFieldInfo.h \
a5bac1d2 2623 HttpHeaderTools.h \
62a0ef44 2624 HttpHeaderTools.cc \
db2de30a 2625 HttpHeaderFieldStat.h \
ce394734
FC
2626 HttpHdrCc.h \
2627 HttpHdrCc.cc \
f1263147
AJ
2628 HttpHdrContRange.cc \
2629 HttpHdrRange.cc \
62a0ef44
AJ
2630 HttpHdrSc.cc \
2631 HttpHdrScTarget.cc \
f1263147
AJ
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 \
55622953
CT
2677 ResolvedPeers.h \
2678 ResolvedPeers.cc \
f1263147
AJ
2679 tests/stub_SBufDetailedStats.cc \
2680 $(SNMP_SOURCE) \
2681 SquidMath.h \
2682 SquidMath.cc \
2683 IoStats.h \
2684 stat.h \
2685 stat.cc \
e1656dc4 2686 StatCounters.h \
e4f1fdae 2687 StatCounters.cc \
00a7574e 2688 StatHist.h \
0a59b726
FC
2689 StrList.h \
2690 StrList.cc \
f1263147
AJ
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 \
4e540555 2717 tools.h \
f1263147
AJ
2718 tools.cc \
2719 Transients.cc \
1c2b4465
CT
2720 tests/stub_cache_cf.cc \
2721 tests/stub_HttpUpgradeProtocolAccess.cc \
f1263147 2722 tests/stub_tunnel.cc \
c1a2df00 2723 tests/stub_libstore.cc \
f1263147
AJ
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) \
437cae05 2734 wordlist.h \
13d8c08c 2735 wordlist.cc
f1263147
AJ
2736nodist_tests_testCacheManager_SOURCES = \
2737 $(BUILT_SOURCES)
2738# comm.cc only requires comm/libcomm.la until fdc_table is dead.
2739tests_testCacheManager_LDADD = \
2740 libsquid.la \
2741 clients/libclients.la \
2742 servers/libservers.la \
2743 ftp/libftp.la \
2744 helper/libhelper.la \
ca3a08e2 2745 http/libhttp.la \
36c774f7 2746 proxyp/libproxyp.la \
ca3a08e2 2747 parser/libparser.la \
62a0ef44
AJ
2748 ident/libident.la \
2749 acl/libacls.la \
62a0ef44 2750 acl/libstate.la \
62a0ef44 2751 acl/libapi.la \
f1263147
AJ
2752 dns/libdns.la \
2753 base/libbase.la \
62a0ef44
AJ
2754 ip/libip.la \
2755 fs/libfs.la \
f1263147
AJ
2756 comm/libcomm.la \
2757 eui/libeui.la \
2758 icmp/libicmp.la \
2759 log/liblog.la \
2760 format/libformat.la \
25f98340 2761 $(REPL_OBJS) \
f1263147
AJ
2762 $(ADAPTATION_LIBS) \
2763 $(ESI_LIBS) \
1b76e6c1 2764 $(SSL_LIBS) \
f1263147 2765 anyp/libanyp.la \
10a69fc0 2766 ipc/libipc.la \
f1263147
AJ
2767 mgr/libmgr.la \
2768 $(SNMP_LIBS) \
ed6e9fb9 2769 mem/libmem.la \
2745fea5 2770 store/libstore.la \
65e41a45 2771 sbuf/libsbuf.la \
25f98340
AJ
2772 $(top_builddir)/lib/libmisccontainers.la \
2773 $(top_builddir)/lib/libmiscencoding.la \
2774 $(top_builddir)/lib/libmiscutil.la \
09cd7204 2775 $(NETTLELIB) \
c2afddd8 2776 $(REGEXLIB) \
3ae8895c 2777 $(SSLLIB) \
f1263147 2778 $(KRB5LIBS) \
d93bf055 2779 $(LIBCPPUNIT_LIBS) \
25f98340 2780 $(COMPAT_LIB) \
3ae8895c 2781 $(XTRA_LIBS)
f1263147 2782tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
c8f4eac4 2783
f1263147
AJ
2784check_PROGRAMS += tests/testStatHist
2785tests_testStatHist_SOURCES = \
e35d7a77 2786 tests/stub_cbdata.cc \
f1263147
AJ
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 \
e35d7a77 2796 tests/stub_debug.cc \
f1263147
AJ
2797 tests/stub_DelayId.cc \
2798 tests/stub_HelperChildConfig.cc \
ae72213d 2799 tests/stub_libmem.cc \
f1263147
AJ
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
2813nodist_tests_testStatHist_SOURCES = \
2814 $(TESTSOURCES)
2815tests_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)
2822tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2823
2824## Tests of ConfigParser
2825
2826check_PROGRAMS += tests/testConfigParser
2827tests_testConfigParser_SOURCES = \
2828 ClientInfo.h \
e35d7a77 2829 tests/stub_MemBuf.cc \
f1263147
AJ
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
2848nodist_tests_testConfigParser_SOURCES = \
2849 $(TESTSOURCES)
2850tests_testConfigParser_LDADD = \
2851 libsquid.la \
2852 ip/libip.la \
2853 sbuf/libsbuf.la \
e35d7a77
AJ
2854 base/libbase.la \
2855 $(top_builddir)/lib/libmiscutil.la \
f1263147
AJ
2856 $(REGEXLIB) \
2857 $(SSLLIB) \
2858 $(LIBCPPUNIT_LIBS) \
e35d7a77
AJ
2859 $(COMPAT_LIB) \
2860 $(XTRA_LIBS)
f1263147 2861tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
e35d7a77 2862
f1263147
AJ
2863## Tests of Event handling
2864
2865check_PROGRAMS += tests/testEvent
2866tests_testEvent_SOURCES = \
da6dbcd1 2867 AccessLogEntry.cc \
f1263147
AJ
2868 BodyPipe.cc \
2869 CacheDigest.h \
2870 tests/stub_CacheDigest.cc \
2871 cache_cf.h \
2872 AuthReg.h \
2873 RefreshPattern.h \
f1263147
AJ
2874 CachePeer.cc \
2875 CachePeer.h \
2876 cache_manager.cc \
2877 carp.h \
2878 tests/stub_carp.cc \
9bb01611 2879 cbdata.cc \
c1a2df00 2880 tests/stub_client_db.cc \
f1263147
AJ
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 \
9bb01611
AR
2888 ConfigOption.cc \
2889 ConfigParser.cc \
f1263147
AJ
2890 CpuAffinityMap.cc \
2891 CpuAffinityMap.h \
2892 CpuAffinitySet.cc \
2893 CpuAffinitySet.h \
2894 debug.cc \
2895 $(DELAY_POOL_SOURCE) \
2745fea5
AR
2896 fs_io.h \
2897 fs_io.cc \
f1263147
AJ
2898 dlink.h \
2899 dlink.cc \
2900 $(DNSSOURCE) \
2901 errorpage.cc \
2902 tests/stub_ETag.cc \
9bb01611 2903 event.cc \
f1263147
AJ
2904 EventLoop.h \
2905 EventLoop.cc \
2906 external_acl.cc \
2907 ExternalACLEntry.cc \
aff43c9e 2908 FadingCounter.cc \
1f0a1fe7 2909 fatal.h \
f1263147 2910 tests/stub_fatal.cc \
c4ad1349 2911 fd.h \
9bb01611 2912 fd.cc \
cdeeb88d 2913 fde.cc \
75f8f9a2 2914 FileMap.h \
412ea290 2915 filemap.cc \
f1263147
AJ
2916 fqdncache.h \
2917 fqdncache.cc \
2918 FwdState.cc \
2919 FwdState.h \
2920 gopher.h \
c1a2df00 2921 tests/stub_gopher.cc \
55622953
CT
2922 HappyConnOpener.cc \
2923 HappyConnOpener.h \
f1263147
AJ
2924 helper.cc \
2925 hier_code.h \
2926 $(HTCPSOURCE) \
2927 http.cc \
0521f8be 2928 HttpBody.h \
9bb01611 2929 HttpBody.cc \
f1263147 2930 tests/stub_HttpControlMsg.cc \
437cae05 2931 HttpHeader.h \
9bb01611 2932 HttpHeader.cc \
79cb238d 2933 HttpHeaderFieldInfo.h \
a5bac1d2 2934 HttpHeaderTools.h \
9bb01611 2935 HttpHeaderTools.cc \
f1263147
AJ
2936 HttpHeaderFieldStat.h \
2937 HttpHdrCc.h \
2938 HttpHdrCc.cc \
2939 HttpHdrContRange.cc \
2940 HttpHdrRange.cc \
2941 HttpHdrSc.cc \
2942 HttpHdrScTarget.cc \
9bb01611 2943 HttpReply.cc \
f1263147
AJ
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 \
f9b6ff6e 2953 int.h \
9bb01611 2954 int.cc \
f1263147
AJ
2955 internal.h \
2956 internal.cc \
d2a6dcba 2957 LogTags.cc \
f1263147 2958 tests/stub_libsecurity.cc \
94bfd31f
AJ
2959 MasterXaction.cc \
2960 MasterXaction.h \
f1263147
AJ
2961 tests/stub_libmem.cc \
2962 mem_node.cc \
9bb01611
AR
2963 MemBuf.cc \
2964 MemObject.cc \
f1263147
AJ
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 \
efc9a0c6 2973 Notes.cc \
f1263147 2974 Notes.h \
9bb01611 2975 Parsing.cc \
f1263147
AJ
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 \
9bb01611 2991 RemovalPolicy.cc \
55622953
CT
2992 ResolvedPeers.h \
2993 ResolvedPeers.cc \
f1263147
AJ
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 \
e1656dc4 3003 StatCounters.h \
e4f1fdae 3004 StatCounters.cc \
00a7574e 3005 StatHist.h \
f1263147 3006 StatHist.cc \
9bb01611 3007 stmem.cc \
e452f48d 3008 repl_modules.h \
9bb01611 3009 store.cc \
f1263147
AJ
3010 store_client.cc \
3011 store_digest.h \
3012 tests/stub_store_digest.cc \
9bb01611 3013 store_io.cc \
fb548aaf 3014 store_key_md5.h \
9bb01611 3015 store_key_md5.cc \
f1263147
AJ
3016 store_log.h \
3017 store_log.cc \
3018 store_rebuild.h \
3019 store_rebuild.cc \
3020 store_swapin.h \
3021 store_swapin.cc \
9bb01611
AR
3022 store_swapmeta.cc \
3023 store_swapout.cc \
f1263147
AJ
3024 StoreFileSystem.cc \
3025 StoreIOState.cc \
3026 tests/stub_StoreMeta.cc \
3027 StoreMetaUnpacker.cc \
3028 StoreSwapLogData.cc \
9bb01611 3029 String.cc \
1c2b4465
CT
3030 tests/stub_cache_cf.cc \
3031 tests/stub_HttpUpgradeProtocolAccess.cc \
c1a2df00 3032 tests/stub_libstore.cc \
f1263147
AJ
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 \
adbdfad1 3039 tests/stub_libauth.cc \
f1263147 3040 tests/stub_libdiskio.cc \
83b62d3f 3041 tests/stub_libeui.cc \
93bc1434 3042 tests/stub_store_stats.cc \
9bb01611 3043 time.cc \
f1263147
AJ
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) \
437cae05 3057 wordlist.h \
f1263147
AJ
3058 wordlist.cc
3059nodist_tests_testEvent_SOURCES = \
3060 $(BUILT_SOURCES)
3061tests_testEvent_LDADD = \
3062 libsquid.la \
3063 clients/libclients.la \
3064 servers/libservers.la \
3065 ftp/libftp.la \
3066 helper/libhelper.la \
ca3a08e2 3067 http/libhttp.la \
36c774f7 3068 proxyp/libproxyp.la \
ca3a08e2 3069 parser/libparser.la \
f1263147 3070 ident/libident.la \
9bb01611 3071 acl/libacls.la \
9bb01611 3072 acl/libstate.la \
f1263147
AJ
3073 acl/libapi.la \
3074 dns/libdns.la \
9bb01611 3075 base/libbase.la \
f1263147
AJ
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) \
da6dbcd1 3084 $(ADAPTATION_LIBS) \
f1263147
AJ
3085 $(ESI_LIBS) \
3086 $(SSL_LIBS) \
9bb01611
AR
3087 $(top_builddir)/lib/libmisccontainers.la \
3088 $(top_builddir)/lib/libmiscencoding.la \
3089 $(top_builddir)/lib/libmiscutil.la \
f1263147
AJ
3090 ipc/libipc.la \
3091 mgr/libmgr.la \
3092 store/libstore.la \
3093 sbuf/libsbuf.la \
3094 $(SNMP_LIBS) \
09cd7204 3095 $(NETTLELIB) \
c2afddd8 3096 $(REGEXLIB) \
9bb01611 3097 $(SSLLIB) \
f1263147 3098 $(KRB5LIBS) \
d93bf055 3099 $(LIBCPPUNIT_LIBS) \
9bb01611
AR
3100 $(COMPAT_LIB) \
3101 $(XTRA_LIBS)
f1263147 3102tests_testEvent_LDFLAGS = $(LIBADD_DL)
9bb01611 3103
f1263147
AJ
3104check_PROGRAMS += tests/testEventLoop
3105tests_testEventLoop_SOURCES = \
d4204018 3106 AccessLogEntry.cc \
5f8252d2 3107 BodyPipe.cc \
f1263147
AJ
3108 CacheDigest.h \
3109 tests/stub_CacheDigest.cc \
3110 cache_manager.cc \
f07e1f9a 3111 cache_cf.h \
89736861 3112 AuthReg.h \
8d9a8184 3113 RefreshPattern.h \
719815a0
AJ
3114 CachePeer.cc \
3115 CachePeer.h \
21c22f04 3116 carp.h \
34ddf789 3117 tests/stub_carp.cc \
985c86bc 3118 cbdata.cc \
c1a2df00 3119 tests/stub_client_db.cc \
93da1f99 3120 client_side.h \
985c86bc 3121 client_side.cc \
3122 client_side_reply.cc \
3123 client_side_request.cc \
281422f8 3124 ClientInfo.h \
985c86bc 3125 clientStream.cc \
cb868059 3126 tests/stub_CollapsedForwarding.cc \
985c86bc 3127 ConfigOption.cc \
3128 ConfigParser.cc \
96c2bb61
AR
3129 CpuAffinityMap.cc \
3130 CpuAffinityMap.h \
3131 CpuAffinitySet.cc \
3132 CpuAffinitySet.h \
f1263147 3133 debug.cc \
985c86bc 3134 $(DELAY_POOL_SOURCE) \
2745fea5
AR
3135 fs_io.h \
3136 fs_io.cc \
e1f7507e
AJ
3137 dlink.h \
3138 dlink.cc \
985c86bc 3139 $(DNSSOURCE) \
985c86bc 3140 errorpage.cc \
f1263147
AJ
3141 tests/stub_ETag.cc \
3142 EventLoop.h \
3143 EventLoop.cc \
cf65b4fb 3144 event.cc \
985c86bc 3145 external_acl.cc \
3146 ExternalACLEntry.cc \
f1263147 3147 FadingCounter.cc \
1f0a1fe7
FC
3148 fatal.h \
3149 tests/stub_fatal.cc \
c4ad1349 3150 fd.h \
985c86bc 3151 fd.cc \
3152 fde.cc \
75f8f9a2 3153 FileMap.h \
cf65b4fb 3154 filemap.cc \
437cae05 3155 fqdncache.h \
985c86bc 3156 fqdncache.cc \
eb13c21e
AJ
3157 FwdState.cc \
3158 FwdState.h \
437cae05 3159 gopher.h \
c1a2df00 3160 tests/stub_gopher.cc \
55622953
CT
3161 HappyConnOpener.cc \
3162 HappyConnOpener.h \
985c86bc 3163 helper.cc \
bbaf2685 3164 hier_code.h \
1edbd3b6 3165 $(HTCPSOURCE) \
985c86bc 3166 http.cc \
0521f8be 3167 HttpBody.h \
985c86bc 3168 HttpBody.cc \
84540b47 3169 tests/stub_HttpControlMsg.cc \
f1263147
AJ
3170 HttpHeader.h \
3171 HttpHeader.cc \
3172 HttpHeaderFieldInfo.h \
3173 HttpHeaderTools.h \
3174 HttpHeaderTools.cc \
db2de30a 3175 HttpHeaderFieldStat.h \
ce394734
FC
3176 HttpHdrCc.h \
3177 HttpHdrCc.cc \
985c86bc 3178 HttpHdrContRange.cc \
3179 HttpHdrRange.cc \
3180 HttpHdrSc.cc \
3181 HttpHdrScTarget.cc \
985c86bc 3182 HttpReply.cc \
e8dca475
CT
3183 PeerPoolMgr.h \
3184 PeerPoolMgr.cc \
f206b652
FC
3185 RequestFlags.h \
3186 RequestFlags.cc \
cf65b4fb 3187 HttpRequest.cc \
985c86bc 3188 icp_v2.cc \
3189 icp_v3.cc \
b5d712b5 3190 $(IPC_SOURCE) \
985c86bc 3191 ipcache.cc \
f9b6ff6e 3192 int.h \
985c86bc 3193 int.cc \
308e60be 3194 internal.h \
985c86bc 3195 internal.cc \
53f5404d 3196 LogTags.cc \
94bfd31f
AJ
3197 MasterXaction.cc \
3198 MasterXaction.h \
985c86bc 3199 MemBuf.cc \
3200 MemObject.cc \
f1263147
AJ
3201 tests/stub_libmem.cc \
3202 mem_node.cc \
b65ce00c 3203 mime.h \
985c86bc 3204 mime.cc \
b6149797 3205 mime_header.h \
0f9db2d6 3206 mime_header.cc \
f1263147
AJ
3207 multicast.h \
3208 multicast.cc \
437cae05 3209 neighbors.h \
985c86bc 3210 neighbors.cc \
efc9a0c6 3211 Notes.cc \
f1263147 3212 Notes.h \
985c86bc 3213 Parsing.cc \
3214 pconn.cc \
3215 peer_digest.cc \
6ff204fc 3216 peer_proxy_negotiate_auth.h \
9ca29d23 3217 peer_proxy_negotiate_auth.cc \
985c86bc 3218 peer_select.cc \
f795b373 3219 peer_sourcehash.h \
f4a21650 3220 peer_sourcehash.cc \
37236ba1 3221 peer_userhash.h \
f4a21650 3222 peer_userhash.cc \
c6ae1627
AJ
3223 Pipeline.cc \
3224 Pipeline.h \
f1263147 3225 RemovalPolicy.cc \
55622953
CT
3226 ResolvedPeers.cc \
3227 ResolvedPeers.h \
c548327a 3228 redirect.h \
dd1efef8 3229 tests/stub_redirect.cc \
c6f15d40 3230 refresh.h \
985c86bc 3231 refresh.cc \
ff1eb053 3232 tests/stub_SBufDetailedStats.cc \
985c86bc 3233 $(SNMP_SOURCE) \
a98bcbee
AJ
3234 SquidMath.h \
3235 SquidMath.cc \
9ce629cf 3236 IoStats.h \
6ea5959e 3237 stat.h \
985c86bc 3238 stat.cc \
e1656dc4 3239 StatCounters.h \
e4f1fdae 3240 StatCounters.cc \
00a7574e 3241 StatHist.h \
f1263147 3242 StatHist.cc \
985c86bc 3243 stmem.cc \
e452f48d 3244 repl_modules.h \
985c86bc 3245 store.cc \
3246 store_client.cc \
35a28a37 3247 store_digest.h \
1d4896fb 3248 tests/stub_store_digest.cc \
985c86bc 3249 store_io.cc \
fb548aaf 3250 store_key_md5.h \
985c86bc 3251 store_key_md5.cc \
10818c0a 3252 store_log.h \
985c86bc 3253 store_log.cc \
687f5275 3254 store_rebuild.h \
985c86bc 3255 store_rebuild.cc \
f82b5c64 3256 store_swapin.h \
985c86bc 3257 store_swapin.cc \
3258 store_swapmeta.cc \
3259 store_swapout.cc \
3260 StoreFileSystem.cc \
3261 StoreIOState.cc \
2e878f54 3262 tests/stub_StoreMeta.cc \
985c86bc 3263 StoreMetaUnpacker.cc \
985c86bc 3264 StoreSwapLogData.cc \
cf65b4fb 3265 String.cc \
f206b652
FC
3266 StrList.h \
3267 StrList.cc \
1c2b4465
CT
3268 tests/stub_cache_cf.cc \
3269 tests/stub_HttpUpgradeProtocolAccess.cc \
c1a2df00 3270 tests/stub_libstore.cc \
f1263147
AJ
3271 tests/testEventLoop.cc \
3272 tests/testEventLoop.h \
3273 tests/stub_main_cc.cc \
3274 tests/stub_ipc_Forwarder.cc \
41ae65af 3275 tests/stub_libauth_acls.cc \
4705ac99 3276 tests/stub_libauth.cc \
647071c0 3277 tests/stub_libdiskio.cc \
f1263147 3278 tests/stub_libeui.cc \
a465e144 3279 tests/stub_libsecurity.cc \
93bc1434 3280 tests/stub_store_stats.cc \
f1263147 3281 time.cc \
4e540555 3282 tools.h \
985c86bc 3283 tools.cc \
f1263147 3284 Transients.cc \
2e878f54 3285 tests/stub_tunnel.cc \
f1263147
AJ
3286 MemStore.cc \
3287 $(UNLINKDSOURCE) \
5eb529cb 3288 urn.h \
985c86bc 3289 urn.cc \
437cae05 3290 wccp2.h \
5c681e77 3291 tests/stub_wccp2.cc \
08066558 3292 whois.h \
1e7c380b 3293 tests/stub_whois.cc \
9c8434f6 3294 $(WIN32_SOURCE) \
437cae05 3295 wordlist.h \
985c86bc 3296 wordlist.cc
f1263147 3297nodist_tests_testEventLoop_SOURCES = \
4b981814 3298 $(BUILT_SOURCES)
f1263147 3299tests_testEventLoop_LDADD = \
f49e4f7b 3300 libsquid.la \
92ae4c86
AR
3301 clients/libclients.la \
3302 servers/libservers.la \
f1263147 3303 ftp/libftp.la \
24438ec5 3304 helper/libhelper.la \
ca3a08e2 3305 http/libhttp.la \
36c774f7 3306 proxyp/libproxyp.la \
ca3a08e2 3307 parser/libparser.la \
62a0ef44
AJ
3308 ident/libident.la \
3309 acl/libacls.la \
62a0ef44 3310 acl/libstate.la \
62a0ef44 3311 acl/libapi.la \
4a3b98d7 3312 dns/libdns.la \
62a0ef44 3313 base/libbase.la \
62a0ef44
AJ
3314 ip/libip.la \
3315 fs/libfs.la \
f1263147 3316 anyp/libanyp.la \
ca3a08e2 3317 icmp/libicmp.la \
cfd66529 3318 comm/libcomm.la \
82b7abe3 3319 log/liblog.la \
38e16f92 3320 format/libformat.la \
3ae8895c 3321 $(REPL_OBJS) \
65f92818 3322 $(ADAPTATION_LIBS) \
88bfe098 3323 $(ESI_LIBS) \
f1263147 3324 $(SSL_LIBS) \
25f98340
AJ
3325 $(top_builddir)/lib/libmisccontainers.la \
3326 $(top_builddir)/lib/libmiscencoding.la \
3327 $(top_builddir)/lib/libmiscutil.la \
f1263147
AJ
3328 ipc/libipc.la \
3329 mgr/libmgr.la \
65e41a45 3330 sbuf/libsbuf.la \
f1263147
AJ
3331 store/libstore.la \
3332 $(SNMP_LIBS) \
3333 $(NETTLELIB) \
c2afddd8 3334 $(REGEXLIB) \
71be37e0 3335 $(SSLLIB) \
f1263147 3336 $(KRB5LIBS) \
d93bf055 3337 $(LIBCPPUNIT_LIBS) \
71be37e0
CT
3338 $(COMPAT_LIB) \
3339 $(XTRA_LIBS)
f1263147 3340tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
11e14d63 3341
f1263147
AJ
3342## Run the unit tests. check_PROGRAMS only builds the binaries.
3343TESTS += $(check_PROGRAMS) testHeaders
ee342e0b
AJ
3344
3345## Special Universal .h dependency test script
3346## aborts if error encountered
508e9b20 3347testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
a0fdc9bf 3348 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
ee342e0b
AJ
3349## src/repl/ has no .h files and its own makefile.
3350
3351CLEANFILES += testHeaders
3352.PHONY: testHeaders
3353