Public release release-55b5a563d642
Source commit: 55b5a563d6421f49b5f5e77bc3c1f29752da8801 Public tree identity: sha256:52790e23e2b1806b00cc220c92edcfeed445600dcde620342af2b3369e7883fa
This commit is contained in:
commit
6acd2d6eb7
210 changed files with 76963 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