/
AlexandrNarbaev
/
opencode_initializer
Обзор
Документация
Войти
/
AlexandrNarbaev
/
opencode_initializer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
tests/unit/test_llm.sh
18 строк
659 B
Alexandr Narbaev
feat(v2.0.2): remove Moonshot/LiteLLM, restore test gates, wire dead modules
03 авг 2026, 22:59
03 авг 2026, 22:59
0eff737
Код
Авторство
О чём код?
#!/usr/bin/env bash set -euo pipefail P="$(cd "$(dirname "$0")/../.." && pwd)" L="$P/src/lib/16-llm.sh" TP=0; TF=0 a() { local d="$1" c="$2"; if (eval "$c") &>/dev/null; then TP=$((TP+1)); else TF=$((TF+1)); echo " FAIL: $d" >&2; fi } a "exists" "[ -f $L ]" a "syntax" "bash -n $L" a "has Ollama" "grep -q ollama $L" a "has vLLM" "grep -q vllm $L" a "has SGLang" "grep -q sglang $L" a "has Open WebUI" "grep -q webui $L" a "has GPU detection" "grep -qi nvidia $L" a "has WasmEdge" "grep -q wasmedge $L" a "has service setup" "grep -q systemd $L" a "has model pull" "grep -q ollama pull $L" echo "test_llm: $TP passed, $TF failed" [ "$TF" -eq 0 ] || exit 1