curl-curl/tests/libtest
Viktor Szakats 00887aee8c
tests: merge clients into libtests, drop duplicate code
libtests and clients were built the same way after recent overhauls.
libtests are used by runtests, clients by pytests.

Merge clients into libtests, aligning their entry function signature,
dropping common utility functions, and simplifying the build.

Note: After this patch `CURLDEBUG` applies to cli tests, when enabled.

Also:
- lib552: drop local copy-paste debug callback in favor of testtrace.
- lib552: drop local copy-paste dump function in favor of testtrace.
- clients: use `long` for HTTP version, drop casts.
- clients: replace local dump function in favor of testrace clone.
- sync cli test entry function prototype with libtests'.
- h2_serverpush: replace local trace callback with testtrace.
- de-duplicate 3 websocket close, ping, ping, functions. Kept the pong
  iteration from `ws_pingpong`. Note: the pong clone in `lib2304` was
  returning an error when `curl_ws_recv()` returned non-zero and
  the payload matched the expected one anyway. After this patch, this
  case returns success, as it does in `ws_pingpong`.
  `lib2304` keeps passing, but I'm not sure if the previous behavior
  was intentional.
- display full value in websocket close, ping, pong, drop casts.

Closes #18079
2025-07-30 02:38:13 +02:00
..
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
cli_h2_pausing.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_h2_serverpush.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_h2_upgrade_extreme.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_hx_download.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_hx_upload.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_tls_session_reuse.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_upload_pausing.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_ws_data.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
cli_ws_pingpong.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
CMakeLists.txt build: allow libtests/clients to use libcurl dependencies directly 2025-07-29 02:38:11 +02:00
first.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
first.h tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib500.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib501.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib502.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib503.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib504.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib505.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib506.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib507.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib508.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib509.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib510.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib511.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib512.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib513.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib514.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib515.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib516.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib517.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib518.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib519.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib520.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib521.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib523.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib524.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib525.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib526.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib530.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib533.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib536.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib537.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib539.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib540.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib541.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib542.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib543.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib544.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib547.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib549.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib552.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib553.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib554.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib555.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib556.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib557.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib558.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib559.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib560.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib562.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib564.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib566.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib567.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib568.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib569.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib570.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib571.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib572.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib573.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib574.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib575.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib576.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib578.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib579.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib582.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib583.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib586.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib589.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib590.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib591.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib597.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib598.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib599.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib643.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib650.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib651.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib652.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib653.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib654.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib655.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib658.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib659.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib661.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib666.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib667.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib668.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib670.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib674.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib676.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib677.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib678.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib694.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib695.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib751.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib753.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib1156.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1301.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1308.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1485.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1500.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1501.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1502.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1506.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1507.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1508.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1509.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1510.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1511.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1512.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1513.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1514.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1515.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib1517.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1518.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1520.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1522.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib1523.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1525.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1526.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1527.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1528.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1529.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1530.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1531.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1532.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1533.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1534.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1535.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1536.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1537.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1538.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1540.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib1541.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1542.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib1545.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1550.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1551.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1552.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1553.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib1554.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1555.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1556.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1557.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1558.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1559.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1560.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1564.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1565.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1567.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1568.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1569.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1571.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1576.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1591.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1592.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1593.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1594.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1597.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1598.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1599.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1662.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1900.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1901.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1903.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1905.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1906.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1907.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1908.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1910.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1911.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1912.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1913.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1915.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib1916.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1918.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1919.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1933.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1934.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1935.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1936.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1937.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1938.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1939.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1940.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1945.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1947.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1948.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1955.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1956.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1957.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1958.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1959.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1960.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1964.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1970.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1971.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1972.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1973.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1974.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1975.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1977.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib1978.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2023.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2032.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2082.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2301.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib2302.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2304.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib2306.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2308.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2309.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2402.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2404.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2405.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib2502.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib2700.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib3010.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3025.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3026.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3027.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3033.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
lib3100.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3101.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3102.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3103.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3104.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3105.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3207.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
lib3208.c tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
Makefile.am build: allow libtests/clients to use libcurl dependencies directly 2025-07-29 02:38:11 +02:00
Makefile.inc tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
memptr.c windows: drop redundant curl_wcsdup_callback callback 2025-07-08 13:33:38 +02:00
mk-lib1521.pl tests: constify command-line arguments 2025-07-29 13:44:50 +02:00
test307.pl scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
test610.pl scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
test613.pl scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
test1013.pl scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
test1022.pl scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
testtrace.c tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
testtrace.h tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
testutil.c tests/libtest: use curltime from curlx 2025-06-23 11:29:41 +02:00
testutil.h libtests: more header tidy-ups 2025-07-09 20:29:50 +02:00
unitcheck.h tests: move curlcheck.h to libtest as unitcheck.h 2025-07-09 02:29:25 +02:00