test: improve Parallels beta validation

This commit is contained in:
Peter Steinberger
2026-05-04 04:43:18 +01:00
parent 616a4e9782
commit a8b38bb742
10 changed files with 351 additions and 38 deletions

View File

@@ -22,6 +22,27 @@ describe("parallels npm update smoke", () => {
expect(script).toContain("await this.server?.stop()");
});
it("has a one-command beta validation mode with fresh target coverage", () => {
const script = readFileSync(SCRIPT_PATH, "utf8");
expect(script).toContain("--beta-validation [target]");
expect(script).toContain("resolveOpenClawRegistryVersion");
expect(script).toContain("this.options.updateTarget = version");
expect(script).toContain("this.options.freshTargetSpec = `openclaw@${version}`");
expect(script).toContain("runFreshTargetInstalls");
expect(script).toContain("freshTargetStatus");
});
it("prints actionable progress, rerun hints, and markdown summaries", () => {
const script = readFileSync(SCRIPT_PATH, "utf8");
expect(script).toContain("stale=");
expect(script).toContain("bytes=");
expect(script).toContain("rerunCommand");
expect(script).toContain("writeSummaryMarkdown");
expect(script).toContain("Parallels NPM Update Smoke");
});
it("runs Windows updates through a detached done-file runner", () => {
const script = readFileSync(SCRIPT_PATH, "utf8");
const transports = readFileSync(GUEST_TRANSPORTS_PATH, "utf8");

View File

@@ -375,6 +375,12 @@ console.log(JSON.stringify(result));
}
});
it("runs POSIX guest shell scripts with a normal install umask", () => {
const guestTransports = readFileSync(TS_PATHS.guestTransports, "utf8");
expect(guestTransports.match(/umask 022/g)).toHaveLength(2);
});
it("provisions portable Git before Windows dev update lanes", () => {
const script = readFileSync(TS_PATHS.windows, "utf8");
const windowsGit = readFileSync(TS_PATHS.windowsGit, "utf8");