code wiki / _hdl_build / nx_wpt_run.nx
nx_wpt_run.nx
buildroot/runtime/_hdl_build/nx_wpt_run.nx
about
nx_wpt_run.nx -- the EXTERNAL-ORACLE VALIDATION SPINE: drive OUR sovereign engine over a vendored
REAL Web-Platform-Tests reftest subset (knowledge/wpt/, fetched by nx_wpt_fetch at a pinned commit) and
emit an HONEST pass-permille + the suite commit. A reftest renders a TEST + a spec-defined REFERENCE;
BOTH go through OUR renderer, so our font/metric quirks cancel -> a PASS means our engine satisfies the
WPT-author-defined spec-equivalence (a falsifiable, never-self-scored conformance check). Reads
manifest.tsv (test<TAB>ref<TAB>match|mismatch<TAB>name). NOT cherry-picked: every row in the manifest is
scored and the raw diff printed. 100% sovereign (no Chrome/headless/gcc). license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_render_html.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_999999: i64 = 999999 |
| 11 | const K_MAGIC_1024: i64 = 1024 |
functions
| 13 | func g_w(s: *u8) -> i64 { var k: i64=0; while s[k]!=(0 as u8){k=k+1} sys_write(1,s,k); return 0 } |
| 14 | func pn(v0: i64) -> i64 { var v: i64=v0; if v<0 { let m: *u8=sys_mmap(8); m[0]=45 as u8; sys_write(1,m,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 } |
| 15 | func u32le(d: *u8, p: i64) -> i64 { return (d[p]&0xff) + ((d[p+1]&0xff)<<8) + ((d[p+2]&0xff)<<16) + ((d[p+3]&0xff)<<24) } called by 1: bmp_diff |
| 18 | func bmp_diff(a: *u8, b: *u8) -> i64 |
| 48 | func reftest_files(test_path: *u8, ref_path: *u8) -> i64 |
| 63 | func fcopy(src: *u8, start: i64, end: i64, dst: *u8) -> i64 called by 1: main |
| 70 | func main() -> i64 |