aboutsummaryrefslogtreecommitdiff
path: root/scripts/tests
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tests')
-rw-r--r--scripts/tests/ai-launcher-runtime.bats13
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/tests/ai-launcher-runtime.bats b/scripts/tests/ai-launcher-runtime.bats
index 4ec24bf..b93f778 100644
--- a/scripts/tests/ai-launcher-runtime.bats
+++ b/scripts/tests/ai-launcher-runtime.bats
@@ -38,10 +38,17 @@ teardown() {
[[ "$output" == codex\ * ]]
}
-@test "--runtime local is reserved and says why it is not wired" {
+@test "--runtime local launches codex --oss over ollama with the default local model" {
run bash "$AI" --runtime local --print-launch "$PROJ"
- [ "$status" -eq 2 ]
- [[ "$output" == *"not wired"* ]]
+ [ "$status" -eq 0 ]
+ [[ "$output" == "codex --oss --local-provider=ollama -m gpt-oss:120b "* ]]
+ [[ "$output" == *"protocols.org"* ]]
+}
+
+@test "AI_LOCAL_MODEL overrides the local runtime's model" {
+ AI_LOCAL_MODEL=qwen3-coder:30b run bash "$AI" --runtime local --print-launch "$PROJ"
+ [ "$status" -eq 0 ]
+ [[ "$output" == "codex --oss --local-provider=ollama -m qwen3-coder:30b "* ]]
}
@test "an unknown runtime errors and names the valid ones" {