mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:20:43 +00:00
test: improve Parallels beta validation
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user