Files
scriptc/packages/cli/test/runtime-pack-host.test.ts
Chris Tate 64b2a285d5 feat(runtime): ship precompiled macOS artifacts (#248)
* feat(runtime): ship precompiled macOS artifacts

- Add a versioned macOS arm64 runtime pack with deterministic feature selection and artifact verification.
- Link LLVM helper objects against release-built runtime and vendor inputs without compiling user-machine C.
- Wire package publishing, cache validation, documentation, and full-gate coverage for the new path.

* fix(runtime): harden precompiled artifact handling

* fix(runtime): make precompiled artifacts reproducible

* fix(runtime): reject opaque linkers from executable cache

* fix(runtime): normalize precompiled archive metadata

* fix(runtime): harden precompiled artifact caching

* fix(runtime): close executable cache link race

* fix(runtime): stage verified pack artifacts

* fix(runtime): bracket helper cache inputs

* fix(runtime): preserve executable link identity

* fix(runtime): trace selected linker dependencies
2026-08-28 09:29:21 -05:00

12 lines
544 B
TypeScript

import { describe, expect, test } from "vitest";
import { hostSupportsRuntimePack } from "../scripts/runtime-pack-host.mjs";
describe("runtime-pack host support", () => {
test("requires macOS 15 or newer on arm64", () => {
expect(hostSupportsRuntimePack("darwin", "arm64", "24.0.0")).toBe(true);
expect(hostSupportsRuntimePack("darwin", "arm64", "23.6.0")).toBe(false);
expect(hostSupportsRuntimePack("darwin", "x64", "24.0.0")).toBe(false);
expect(hostSupportsRuntimePack("linux", "arm64", "24.0.0")).toBe(false);
});
});