mirror of
https://github.com/Mesh-LLM/mesh-llm.git
synced 2026-08-08 22:23:19 -04:00
- build one backend-neutral host per platform and package native runtimes separately - compose immutable product-v2 bundles from verified host and runtime artifacts - enforce host import policy and runtime provenance across release and SDK lanes - align debug, release, Windows, Kotlin, and Swift validation with the composed product model - update release documentation, CI topology, and agent guidance for the unified path - require no-device client readiness and bounded clean shutdown for packaged runtimes
31 lines
836 B
Python
31 lines
836 B
Python
#!/usr/bin/env python3
|
|
"""Focused argument-contract tests for scripts/build-linux.sh."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pathlib
|
|
import subprocess
|
|
import unittest
|
|
|
|
|
|
REPO_ROOT = pathlib.Path(__file__).resolve().parents[2]
|
|
SCRIPT = REPO_ROOT / "scripts" / "build-linux.sh"
|
|
|
|
|
|
class BuildLinuxArgumentTests(unittest.TestCase):
|
|
def test_rejects_unknown_dash_prefixed_option(self) -> None:
|
|
result = subprocess.run(
|
|
[str(SCRIPT), "--cuda-archh", "90"],
|
|
cwd=REPO_ROOT,
|
|
capture_output=True,
|
|
text=True,
|
|
check=False,
|
|
)
|
|
|
|
self.assertEqual(result.returncode, 2)
|
|
self.assertIn("unknown option: --cuda-archh", result.stderr)
|
|
self.assertIn("usage: scripts/build-linux.sh", result.stderr)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|