chore(docs): merge captured main into canonical guide layout
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
FEATURES {
|
||||
STARTADDRESS: default = $8001;
|
||||
}
|
||||
MEMORY {
|
||||
IMAGE: start = %S, size = $10000 - %S, file = %O;
|
||||
}
|
||||
SEGMENTS {
|
||||
CODE: load = IMAGE, type = ro;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
; Source-owned NMOS 6502 fixture: direct call, conditional branch, and arithmetic.
|
||||
.setcpu "6502"
|
||||
.segment "CODE"
|
||||
.export entry, add_three
|
||||
|
||||
entry:
|
||||
lda #7
|
||||
jsr add_three
|
||||
cmp #10
|
||||
bne mismatch
|
||||
lda #42
|
||||
rts
|
||||
mismatch:
|
||||
lda #0
|
||||
rts
|
||||
add_three:
|
||||
clc
|
||||
adc #3
|
||||
rts
|
||||
@@ -26,14 +26,18 @@ describe("real Windows Ghidra workflow trust boundary", () => {
|
||||
environment: "real-ghidra-windows",
|
||||
"runs-on": expect.arrayContaining(["self-hosted", "Windows", "x64"]),
|
||||
steps: expect.arrayContaining([
|
||||
expect.objectContaining({ uses: "actions/setup-node@v4" }),
|
||||
expect.objectContaining({
|
||||
uses: expect.stringMatching(/^actions\/setup-node@[0-9a-f]{40}$/),
|
||||
}),
|
||||
expect.objectContaining({ run: "npm ci" }),
|
||||
expect.objectContaining({
|
||||
env: { REA_ANALYSIS_PROVIDER: "ghidra" },
|
||||
run: "npm run verify:ghidra:windows | Tee-Object -FilePath windows-ghidra-proof.log",
|
||||
}),
|
||||
expect.objectContaining({
|
||||
uses: "actions/upload-artifact@v4",
|
||||
uses: expect.stringMatching(
|
||||
/^actions\/upload-artifact@[0-9a-f]{40}$/,
|
||||
),
|
||||
with: expect.objectContaining({
|
||||
path: expect.stringContaining("windows-ghidra-proof.log"),
|
||||
}),
|
||||
|
||||
@@ -35,6 +35,20 @@ const shellExamples = (content: string): string[] =>
|
||||
);
|
||||
|
||||
describe("onboarding documentation product facts", () => {
|
||||
it.each([
|
||||
["docs/native-investigation.md", "raw-binary.md#nmos-6502"],
|
||||
["docs/ghidra-riscv.md", "raw-binary.md"],
|
||||
])(
|
||||
"routes raw admission guidance in %s to the owning guide",
|
||||
async (path, target) => {
|
||||
const content = await readFile(resolve(path), "utf8");
|
||||
const links = [...content.matchAll(/\]\(([^)\s]+)\)/gu)].map(
|
||||
(match) => match[1],
|
||||
);
|
||||
expect(links, path).toContain(target);
|
||||
},
|
||||
);
|
||||
|
||||
it("keeps the installation MCP example aligned with the package registration command", async () => {
|
||||
const content = await readFile(
|
||||
resolve("docs/getting-started/installation.md"),
|
||||
|
||||
Reference in New Issue
Block a user