]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: re-add simple test target, and name it `tests`
authorViktor Szakats <commit@vsz.me>
Sat, 2 Aug 2025 11:10:05 +0000 (13:10 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 2 Aug 2025 13:03:54 +0000 (15:03 +0200)
commit51bc836c428ce7dbdf4deef41eeacee974ad7b3e
treed2c10d06ea1a8a65d236ad42b43089c5a04cfe2a
parentd01d2ec9f1039e94f8d6bbfd216fae4d9bde9ba6
cmake: re-add simple test target, and name it `tests`

Before this patch there was no (easy) way to run tests without various
verbose options, hindering readability of the output due its length.

Unfortunately CMake reserves `test` as a target name, which was
the reason for its removal earlier. Re-add it with the name `tests`,
to have the functionality without the name collision.

Also add a `tests` target as an alias to `test` for autotools.

Ref: https://cmake.org/cmake/help/v4.1/policy/CMP0037.html
Follow-up to cfea4f2f4dc316c38694440ef2eed899a3e7d207 #6258
Closes #18145
tests/CMakeLists.txt
tests/Makefile.am