Public dry run dryrun-309831e1e021
Source commit: 309831e1e021f962c118452336776fd9a94025f9 Public tree identity: sha256:6fa95c1745579bd6256dbeb3d476db0b07c2f24aa9213b0f7783ce1adfc8aca5
This commit is contained in:
commit
f22d0a5791
113 changed files with 39348 additions and 0 deletions
30
scripts/sdk-spawn-runtime-smoke.js
Executable file
30
scripts/sdk-spawn-runtime-smoke.js
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/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 sdk = fs.readFileSync(path.join(repo, "crates/disasmer-sdk/src/lib.rs"), "utf8");
|
||||
|
||||
assert.match(sdk, /pub struct RuntimeSpawnEvent/);
|
||||
assert.match(sdk, /pub debugger_visible: bool/);
|
||||
assert.match(sdk, /fn register_runtime_thread/);
|
||||
assert.match(sdk, /register_runtime_thread\(id, self\.name, self\.env\)/);
|
||||
assert.match(sdk, /pub fn debugger_visible\(&self\) -> bool/);
|
||||
|
||||
cp.execFileSync(
|
||||
"cargo",
|
||||
[
|
||||
"test",
|
||||
"-p",
|
||||
"disasmer-sdk",
|
||||
"spawn_task_start_registers_debugger_visible_runtime_thread",
|
||||
"--",
|
||||
"--exact",
|
||||
],
|
||||
{ cwd: repo, stdio: "inherit" }
|
||||
);
|
||||
|
||||
console.log("SDK spawn runtime smoke passed");
|
||||
Loading…
Add table
Add a link
Reference in a new issue