mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
21 lines
648 B
Python
21 lines
648 B
Python
from pathlib import Path
|
|
import subprocess
|
|
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parents[2]
|
|
SETUP_SCRIPT = REPO_ROOT / "setup-hermes.sh"
|
|
|
|
|
|
def test_setup_hermes_script_is_valid_shell():
|
|
result = subprocess.run(["bash", "-n", str(SETUP_SCRIPT)], capture_output=True, text=True)
|
|
assert result.returncode == 0, result.stderr
|
|
|
|
|
|
def test_setup_hermes_script_has_termux_path():
|
|
content = SETUP_SCRIPT.read_text(encoding="utf-8")
|
|
|
|
assert "is_termux()" in content
|
|
assert ".[termux]" in content
|
|
assert "constraints-termux.txt" in content
|
|
assert "$PREFIX/bin" in content
|
|
assert "Skipping tinker-atropos on Termux" in content
|