llama.cpp/tools/server/tests/unit
Pascal 0a66ac7189
server, fix CI: read a small temp file in the read_file tool test [no release] (#32168)
* server: read a small temp file in the read_file tool test

test_tools_builtin_read_file read its own file, which grows with every
added test. On Windows the CRLF checkout puts it at 16664 bytes, over
the 16384 byte read limit, and the tool refuses it.

The test now writes a small file of its own and checks the exact
content read back.

* server: use a temp cwd in the x-tool-cwd tool test

test_tools_builtin_cwd_header read test_tools_builtin.py through the
x-tool-cwd header, which hits the same 16384 byte read limit on the
Windows CRLF checkout, and wrote its shell marker into the source tree.

The test now uses a temp directory as cwd, reads a small file from it
and checks the shell marker lands there.
2026-11-12 23:47:14 +01:00
..
test_basic.py ci: move test models to ggml-org-dev (#32096) 2026-11-11 21:17:16 +01:00
test_chat_completion.py server : fix response_format json_schema when schema is not nested in the json_schema wrapper (#28697) 2026-11-09 14:10:11 +01:00
test_compat_anthropic.py ci: move test models to ggml-org-dev (#32096) 2026-11-11 21:17:16 +01:00
test_compat_gcp.py server: support Vertex AI compatible API (#22545) 2026-05-08 15:23:04 +02:00
test_compat_oai_responses.py server : add timings and progress to /responses API stream (#25348) 2026-07-07 16:13:03 +02:00
test_compat_oai_speech.py server: add oai-compat /v1/audio/speech endpoint (#31763) 2026-11-09 23:58:52 +01:00
test_completion.py tests: fix CI flakes in server cancel and sleep tests (#31330) 2026-10-29 01:35:01 +01:00
test_ctx_shift.py memory : remove KV cache size padding (#16812) 2025-10-28 20:19:44 +02:00
test_embedding.py server: return HTTP 400 for invalid embedding requests (#29060) 2026-10-01 16:52:43 +02:00
test_ignore_eos.py server: respect the ignore eos flag (#21203) 2026-04-08 17:12:15 +02:00
test_infill.py server : support unified cache across slots (#16736) 2025-11-02 18:14:04 +02:00
test_kv_keep_only_active.py server: rename debug tags to match --cache-idle-slots naming (#22292) 2026-04-24 09:28:44 +03:00
test_lora.py ci: move test models to ggml-org-dev (#32096) 2026-11-11 21:17:16 +01:00
test_mcp_servers.py server : cancel MCP tool calls on client disconnect or timeout (#32025) 2026-11-12 17:19:26 +01:00
test_metrics.py server: refactor + correctness fixes for metrics (#26920) 2026-08-13 10:02:01 +02:00
test_proxy.py server: fix SSRF for CORS proxy and media URLs (#32115) 2026-11-12 12:33:48 +01:00
test_rerank.py server: save only restorable slot states to the prompt cache (#30498) 2026-10-15 06:30:17 +02:00
test_router.py server: skip LAN address tests when the host cannot reach it [no ci] (#32166) 2026-11-12 23:13:37 +01:00
test_security.py server: skip LAN address tests when the host cannot reach it [no ci] (#32166) 2026-11-12 23:13:37 +01:00
test_sleep.py tests: fix CI flakes in server cancel and sleep tests (#31330) 2026-10-29 01:35:01 +01:00
test_slot_save.py ci: move test models to ggml-org-dev (#32096) 2026-11-11 21:17:16 +01:00
test_spec_methods.py server : functionality test for new spec dec (#31027) 2026-11-09 19:08:20 +01:00
test_speculative.py ci: move test models to ggml-org-dev (#32096) 2026-11-11 21:17:16 +01:00
test_stream.py ci: move test models to ggml-org-dev (#32096) 2026-11-11 21:17:16 +01:00
test_systemone.py server: visit parent slots before child slots (#30779) 2026-11-07 13:03:38 +02:00
test_template.py tests : use reasoning instead of reasoning_budget in server tests (#20432) 2026-03-12 13:41:01 +01:00
test_tokenize.py server : disable context shift by default (#15416) 2025-08-19 16:46:37 +03:00
test_tool_call.py common : support deferred tools and tool_reference content parts (#31256) 2026-10-27 18:39:11 +01:00
test_tools_builtin.py server, fix CI: read a small temp file in the read_file tool test [no release] (#32168) 2026-11-12 23:47:14 +01:00
test_vision_api.py server: allow private media URLs in the vision tests [no ci] (#32167) 2026-11-12 23:15:28 +01:00