code wiki / _hdl_build / nx_aw_smoke.nx

nx_aw_smoke.nx

buildroot/runtime/_hdl_build/nx_aw_smoke.nx

5351 B101 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind smoketopic aw
docsdependenciesstructsconstsfunctions

about

nx_aw_smoke.nx -- FRONT-END smoke gate: the "verify" stage of the local->dev->live pipeline. Hits a RUNNING andelinwest front-end (default 127.0.0.1:8088) over REAL HTTP via the sovereign nx_http_client and asserts that each capability renders its expected live output -- this is the front-end test as a repeatable GATE (not a manual curl), and the safety check every promotion must pass before pushing to the next stage. Reusable against dev OR live by repointing the address. Appends "FRONTEND-SMOKE ... verdict=PASS" to knowledge/status/cms_frontend.log ONLY on a full pass. Exit 0 iff all routes pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_http_client.nx nx_syscalls.nx nx_aw_smoke.nx

imports: nx_http_client.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sm_get_has sys_mmap nx_http_client_sockaddr_ip nx_http_client_get sys_socket nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_mmap ↻ nx_http_client_build_reque hc_put_caps sys_mmap ↻ nx_codec_caps_headers sys_mmap ↻ nx_codec_caps_accept_docum nx_codec_caps_accept_encod nx_cc_put sys_write _drain sys_read sm_len sm_find sm_row sm_w sys_write ↻ sm_num sys_mmap ↻ sys_write ↻

structs

none

consts

10const K_MAGIC_8088: i64 = 8088
11const K_MAGIC_262144: i64 = 262144
12const K_MAGIC_262143: i64 = 262143

functions

14func sm_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: sm_row calls 1: sys_write
15func sm_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: sm_row calls 2: sys_mmapsys_write
16func sm_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: sm_get_has
17func sm_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var k: i64=0; while s[k]!=(0 as u8){dst[o]=s[k];o=o+1;k=k+1} return o }
18func sm_catnum(dst: *u8, off: i64, v: i64) -> i64
calls 1: sys_mmap
24func sm_find(buf: *u8, n: i64, pat: *u8, plen: i64) -> i64
called by 1: sm_get_has
37func sm_get_has(path: *u8, expected: *u8) -> i64
48func sm_row(id: i64, ok: i64, route: *u8, expect: *u8) -> i64
called by 1: main calls 2: sm_wsm_num
55func main() -> i64