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