code wiki / _hdl_build / nx_aw_smoke.nx
nx_aw_smoke.nx
buildroot/runtime/_hdl_build/nx_aw_smoke.nx
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
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
structs
| none |
consts
| 10 | const K_MAGIC_8088: i64 = 8088 |
| 11 | const K_MAGIC_262144: i64 = 262144 |
| 12 | const K_MAGIC_262143: i64 = 262143 |
functions
| 14 | func 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 } |
| 15 | func 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 } |
| 16 | func 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 |
| 17 | func 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 } |
| 18 | func sm_catnum(dst: *u8, off: i64, v: i64) -> i64 calls 1: sys_mmap |
| 24 | func sm_find(buf: *u8, n: i64, pat: *u8, plen: i64) -> i64 called by 1: sm_get_has |
| 37 | func sm_get_has(path: *u8, expected: *u8) -> i64 |
| 48 | func sm_row(id: i64, ok: i64, route: *u8, expect: *u8) -> i64 |
| 55 | func main() -> i64 |