Public release release-b8454b34d38c
Source commit: b8454b34d38cc2ba0bd278e842060db45d091e1c Public tree identity: sha256:69d6c8143bf6227e1bb07852aa94e8af9c26793eca252bb46788894f728cb6d2
This commit is contained in:
commit
d2e84229c5
221 changed files with 80960 additions and 0 deletions
44
scripts/wasmtime-assignment-smoke.js
Executable file
44
scripts/wasmtime-assignment-smoke.js
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const assert = require("assert");
|
||||
const cp = require("child_process");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const repo = path.resolve(__dirname, "..");
|
||||
const sdkRuntime = fs.readFileSync(
|
||||
path.join(repo, "crates/clusterflux-sdk/src/sdk_runtime.rs"),
|
||||
"utf8"
|
||||
);
|
||||
|
||||
assert.doesNotMatch(
|
||||
sdkRuntime,
|
||||
/"type": "launch_task"/,
|
||||
"native SDK code must not submit external TaskV1 work"
|
||||
);
|
||||
assert.match(
|
||||
sdkRuntime,
|
||||
/native SDK task spawning requires coordinator EntrypointV1 execution/
|
||||
);
|
||||
|
||||
cp.execFileSync("node", ["scripts/cli-local-run-smoke.js"], {
|
||||
cwd: repo,
|
||||
stdio: "inherit",
|
||||
});
|
||||
cp.execFileSync(
|
||||
"cargo",
|
||||
["test", "-p", "clusterflux-node", "wasmtime_runtime_runs_named_task_export"],
|
||||
{ cwd: repo, stdio: "inherit" }
|
||||
);
|
||||
cp.execFileSync(
|
||||
"cargo",
|
||||
[
|
||||
"test",
|
||||
"-p",
|
||||
"clusterflux-coordinator",
|
||||
"signed_active_wasm_task_can_spawn_and_join_child_in_its_process_only",
|
||||
],
|
||||
{ cwd: repo, stdio: "inherit" }
|
||||
);
|
||||
|
||||
console.log("Wasmtime assignment smoke passed");
|
||||
Loading…
Add table
Add a link
Reference in a new issue