curl-curl/tests/libtest
Daniel Stenberg 255aac56f9
curlx: move into to curlx/
Move curlx_ functions into its own subdir.

The idea is to use the curlx_ prefix proper on these functions, and use
these same function names both in tool, lib and test suite source code.
Stop the previous special #define setup for curlx_ names.

The printf defines are now done for the library alone. Tests no longer
use the printf defines. The tool code sets its own defines. The printf
functions are not curlx, they are publicly available.

The strcase defines are not curlx_ functions and should not be used by
tool or server code.

dynbuf, warnless, base64, strparse, timeval, timediff are now proper
curlx functions.

When libcurl is built statically, the functions from the library can be
used as-is. The key is then that the functions must work as-is, without
having to be recompiled for use in tool/tests. This avoids symbol
collisions - when libcurl is built statically, we use those functions
directly when building the tool/tests. When libcurl is shared, we
build/link them separately for the tool/tests.

Assisted-by: Jay Satiro

Closes #17253
2025-05-07 11:01:15 +02:00
..
.checksrc checksrc: introduce 'banfunc' to ban specific functions 2024-12-30 08:25:56 +01:00
.gitignore tests: git ignore the bundle executables built 2025-03-17 17:19:15 +01:00
CMakeLists.txt curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
first.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
first.h tests: speed up builds with single-binary test bundles 2024-09-22 09:51:15 +02:00
lib500.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib501.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib502.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib503.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib504.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib505.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib506.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib507.c cmake: fix clang-tidy builds to verify tests, fix fallouts 2025-03-24 10:14:58 +01:00
lib508.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib509.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib510.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib511.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib512.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib513.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib514.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib515.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib516.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib517.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib518.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib519.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib520.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib521.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib523.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib524.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib525.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib526.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib530.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib533.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib536.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib537.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib539.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib540.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib541.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib542.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib543.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib544.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib547.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib549.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib552.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib553.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib554.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib555.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib556.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib557.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib558.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib559.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib560.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib562.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib564.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib566.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib567.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib568.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib569.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib570.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib571.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib572.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib573.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib574.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib575.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib576.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib578.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib579.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib582.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib583.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib586.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib589.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib590.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib591.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib597.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib598.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib599.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib643.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib650.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib651.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib652.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib653.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib654.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib655.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib658.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib659.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib661.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib666.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib667.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib668.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib670.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib674.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib676.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib677.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib678.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib694.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib695.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1156.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1301.c test: make unittest 1308 into a libtest 2025-04-02 14:01:27 +02:00
lib1308.c test: make unittest 1308 into a libtest 2025-04-02 14:01:27 +02:00
lib1485.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1500.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1501.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1502.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1506.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1507.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1508.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1509.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1510.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1511.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1512.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1513.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1514.c tests: speed up builds with single-binary test bundles 2024-09-22 09:51:15 +02:00
lib1515.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1517.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1518.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1520.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1522.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1523.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1525.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1526.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1527.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1528.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1529.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1530.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1531.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1532.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1533.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1534.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1535.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1536.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1537.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1538.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1540.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1541.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1542.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1545.c build: tidy up deprecation suppression, enable warnings for clang 2024-09-21 00:59:52 +02:00
lib1550.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1551.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1552.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1553.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1554.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1555.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1556.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1557.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1558.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1559.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1560.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1564.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1565.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1567.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1568.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1569.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1571.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1576.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1591.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1592.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1593.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1594.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1597.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1598.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1662.c tests: speed up builds with single-binary test bundles 2024-09-22 09:51:15 +02:00
lib1900.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1901.c curl.h: switch CURL_HTTP_VERSION* enums to long constants 2025-03-06 01:01:24 +01:00
lib1903.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1905.c cmake: fix clang-tidy builds to verify tests, fix fallouts 2025-03-24 10:14:58 +01:00
lib1906.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1907.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1908.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1910.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1911.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1912.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1913.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1915.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1916.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1918.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1919.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1933.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1934.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1935.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1936.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1937.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1938.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1939.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1940.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1945.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1947.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1948.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
lib1955.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1956.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1957.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1958.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1959.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1960.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1964.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib1970.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1971.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1972.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1973.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1974.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1975.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1977.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib1978.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2301.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2302.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2304.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2305.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2306.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib2308.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2309.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2310.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2311.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2312.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2402.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2404.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2405.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib2502.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3010.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3025.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3026.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3027.c tests: make the unit test result type CURLcode 2024-05-12 18:53:07 +02:00
lib3100.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3101.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3102.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3103.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3104.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3105.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3207.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
lib3208.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
libauthretry.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
libntlmconnect.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
libprereq.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
Makefile.am curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
Makefile.inc curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
memptr.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
mk-lib1521.pl lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
stub_gssapi.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
stub_gssapi.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test307.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test610.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test613.pl test615: fix for Cygwin, unignore in CI 2025-03-24 16:49:57 +01:00
test1013.pl test1013.pl: require case match for features, order match for protos, fix issue 2024-08-29 13:56:05 +02:00
test1022.pl test1022: add support for rc releases 2025-03-08 22:15:34 +01:00
test.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
testtrace.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
testtrace.h tests: fix callback signatures to please UndefinedBehaviorSanitizer 2024-10-15 14:33:47 +02:00
testutil.c windows: fix issues detected by clang-tidy, and some more 2025-03-24 10:15:08 +01:00
testutil.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00