]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix "make check" to test headers (#1463)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Tue, 3 Oct 2023 22:38:02 +0000 (22:38 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 6 Oct 2023 08:06:19 +0000 (08:06 +0000)
commita7b75c64982a81eb9329202c7b040375c5332a0b
tree792334e8bd2f987479d9019642362d8d5a3310fa
parent608c50d2a5ed5e3f0f8ecda901e6377b6577ff88
Fix "make check" to test headers (#1463)

A "make check" testHeaders target is supposed to check that C/C++ header
files can be compiled "autonomously" (i.e. without any other code except
the required squid.h). Since 2010 commit a0fdc9b, existing testHeaders
were not detecting problems in any headers due to a use of a shell
heredoc with echo, a command that does not read from standard input.

This fix ensures that all C/C++ header files used by "make" are tested
in the corresponding "make check".

This change also improves parallel testing of individual header files.
121 files changed:
compat/Makefile.am
configure.ac
include/splay.h
lib/Makefile.am
lib/libTrie/Makefile.am
lib/ntlmauth/Makefile.am
lib/sspi/Makefile.am
src/ClientRequestContext.h
src/Common.am
src/DiskIO/AIO/Makefile.am
src/DiskIO/Blocking/Makefile.am
src/DiskIO/DiskDaemon/Makefile.am
src/DiskIO/DiskThreads/Makefile.am
src/DiskIO/IpcIo/Makefile.am
src/DiskIO/Makefile.am
src/DiskIO/Mmapped/Makefile.am
src/HappyConnOpener.h
src/HttpUpgradeProtocolAccess.h
src/Makefile.am
src/MemObject.h
src/NeighborTypeDomainList.h
src/NullDelayId.h
src/Pipeline.h
src/ResolvedPeers.h
src/SnmpRequest.h
src/SquidConfig.h
src/TestHeaders.am
src/acl/Arp.h
src/acl/Certificate.h
src/acl/CertificateData.h
src/acl/Eui64.h
src/acl/Makefile.am
src/acl/ServerCertificate.h
src/acl/SourceDomain.h
src/adaptation/Makefile.am
src/adaptation/ecap/Makefile.am
src/adaptation/icap/Makefile.am
src/anyp/Makefile.am
src/auth/Makefile.am
src/auth/QueueNode.h
src/auth/basic/Makefile.am
src/auth/digest/Makefile.am
src/auth/digest/UserRequest.h
src/auth/digest/eDirectory/edir_ldapext.h
src/auth/forward.h
src/auth/negotiate/Makefile.am
src/auth/ntlm/Makefile.am
src/base/AsyncCall.h
src/base/AsyncCallList.h
src/base/Makefile.am
src/base/ToCpp.h [new file with mode: 0644]
src/clients/HttpTunnelerAnswer.h
src/clients/Makefile.am
src/comm/Makefile.am
src/debug/Makefile.am
src/dns/Makefile.am
src/error/Makefile.am
src/esi/Context.h
src/esi/Include.h
src/esi/Makefile.am
src/eui/Makefile.am
src/format/Makefile.am
src/fs/Makefile.am
src/fs/ufs/UFSStoreState.h
src/ftp/Makefile.am
src/helper/Makefile.am
src/helper/Request.h
src/htcp.h
src/http/Makefile.am
src/http/Stream.h
src/http/one/Makefile.am
src/icmp/Makefile.am
src/ident/Makefile.am
src/ip/Intercept.h
src/ip/Makefile.am
src/ip/NfMarkConfig.h
src/ip/QosConfig.h
src/ipc/Makefile.am
src/ipc/Response.h
src/ipc/SharedListen.h
src/log/Makefile.am
src/log/TcpLogger.h
src/mem/Makefile.am
src/mgr/Filler.h
src/mgr/Makefile.am
src/mgr/Request.h
src/parser/Makefile.am
src/proxyp/Makefile.am
src/refresh.h
src/repl/Makefile.am
src/sbuf/Makefile.am
src/security/BlindPeerConnector.h
src/security/Certificate.h
src/security/CommunicationSecrets.h
src/security/EncryptorAnswer.h
src/security/LockingPointer.h
src/security/Makefile.am
src/security/PeerOptions.h
src/security/Session.h
src/security/cert_generators/file/Makefile.am
src/security/forward.h
src/servers/FtpServer.h
src/servers/Http1Server.h
src/servers/Makefile.am
src/servers/Server.h
src/servers/forward.h
src/snmp/Forwarder.h
src/snmp/Makefile.am
src/snmp_core.h
src/ssl/Makefile.am
src/ssl/context_storage.h
src/ssl/gadgets.h
src/ssl/support.h
src/store/Makefile.am
src/store/SwapMetaOut.h
src/store/SwapMetaView.h
src/time/Makefile.am
src/whois.h
test-suite/Makefile.am
test-suite/testHeader.cc.in [new file with mode: 0644]
test-suite/testheaders.sh [deleted file]