]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/README: document test bundles
authorViktor Szakats <commit@vsz.me>
Tue, 1 Apr 2025 09:42:25 +0000 (11:42 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 1 Apr 2025 10:48:04 +0000 (12:48 +0200)
Closes #16902

.github/scripts/spellcheck.words
tests/README.md

index deb68d6cffed39aa6aefc023635f01e6891113ca..80f323ba80a0dbb57cf403252e5b456e046737a9 100644 (file)
@@ -447,6 +447,8 @@ librtmp
 libs
 libssh
 libssh2
+libtest
+libtests
 Libtool
 libtool
 libuv
index 54fb6b3e938d5fc8596c25d5dbdcd79ca6e35ad2..b2c4261abca89852027171df7ab613498171a9ff 100644 (file)
@@ -267,3 +267,15 @@ SPDX-License-Identifier: curl
   writing tests that verify behaviors of specific individual functions.
 
   The unit tests depend on curl being built with debug enabled.
+
+### test bundles
+
+  The `--enable-test-bundles` (autotools) and `-DCURL_TEST_BUNDLES=ON` (cmake)
+  build options allow to build tests bundled into single executables, one for
+  libtests, one for unit tests and one for servers.
+  The executables' first argument is the name of libtest, unit test or server
+  respectively.
+  In these executables, the build process automatically renames the entry point
+  to a unique symbol. `test` becomes `test_<tool>`, e.g. `test_lib1598` or
+  `test_unit1305`. For servers `main` becomes `main_sws` for the `sws` server,
+  and so on. Other common symbols may also be suffixed the same way.