curl-curl/tests/server
Viktor Szakats a16485a42e
build: do not apply curl debug macros to tests/server by default
It seems unnecessary and possibly unexpected to build test servers with
debug-enabled features and memory tracking whenever the tested curl is
built like that (which is a requirement for some tests, so curl is
mostly built like that when running tests.) It also makes building
servers a little bit faster with cmake for the most common cases.

You can apply debug options to `tests/server` with these new options:
- `./configure`: `--enable-server-debug`.
- cmake: `-DENABLE_SERVER_DEBUG`.

Also sync the way we pass these macros in autotools, with CMake builds.
Before this patch, autotools passed them via `curl_config.h`. After this
patch it passes them on the command-line, like cmake builds do.

This patch also make these option no longer passed to examples and
`http/client` in cmake builds, where they were no-ops anyway.

Ref: #15000
Closes #16705
2025-03-14 12:59:32 +01:00
..
.checksrc checksrc: use 'banfunc' proper in more places 2025-01-13 09:10:58 +01:00
.gitignore build: drop unused getpart tool 2025-02-25 01:52:13 +01:00
CMakeLists.txt build: do not apply curl debug macros to tests/server by default 2025-03-14 12:59:32 +01:00
disabled.c tests: make --libcurl tests require the --libcurl feature 2025-03-12 15:23:20 +01:00
getpart.c tests/server: sync memory callbacks with lib/easy.c 2025-03-13 11:36:53 +01:00
getpart.h tests/server: sync memory callbacks with lib/easy.c 2025-03-13 11:36:53 +01:00
Makefile.am build: do not apply curl debug macros to tests/server by default 2025-03-14 12:59:32 +01:00
Makefile.inc curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
mqttd.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
resolve.c tests/server: drop unused headers 2025-03-13 11:36:53 +01:00
rtspd.c tests/server: give global path variable a more descriptive name 2025-03-14 12:04:39 +01:00
server_setup.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
server_sockaddr.h build: prefer USE_IPV6 macro internally (was: ENABLE_IPV6) 2024-04-13 08:33:26 +00:00
sockfilt.c tests/server: do not redefine standard functions in sockfilt 2025-03-13 11:36:53 +01:00
socksd.c tests/server: drop unused headers 2025-03-13 11:36:53 +01:00
sws.c tests/server: give global path variable a more descriptive name 2025-03-14 12:04:39 +01:00
tftp.h tftpd: prefix TFTP protocol error E* constants with TFTP_ 2025-03-11 08:50:09 +01:00
tftpd.c tests/server: give global path variable a more descriptive name 2025-03-14 12:04:39 +01:00
util.c tests/server: give global path variable a more descriptive name 2025-03-14 12:04:39 +01:00
util.h tests/server: give global path variable a more descriptive name 2025-03-14 12:04:39 +01:00