code wiki / (root) / nx_printer_conform_test.nx

nx_printer_conform_test.nx

buildroot/runtime/nx_printer_conform_test.nx

5418 B92 linesdepth 2pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic printer
docsdependenciesstructsconstsfunctions

about

nx_printer_conform_test.nx -- gate for the IPP conformance / capability-gap profiler (nx_printer_conform). Builds real Get-Printer-Attributes responses with the codec and asserts the gap bitmask, with unique exit codes per invariant: 1-4 Brother-like (ipp 1.0 / no pdf / duplex-supported but default one-sided / mono) -> all 4 gaps 5-6 truncated response -> UNKNOWN (-1), never confident gaps (no_silent_failure) 7-8 modern HP-like (ipp 2.0 / pdf / duplex + default two-sided / color) -> ZERO gaps (negative control) 9-10 modern but duplex-default-one-sided -> ONLY the duplex-waste gap (isolates that detector) expect_exit: 0 ; license_tier: ORIGINAL ; genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_ipp_codec.nx nx_printer_conform.nx nx_printer_conform_test.nx

imports: nx_syscalls.nxnx_ipp_codec.nxnx_printer_conform.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap build_brother nx_ipp_begin nx_ipp_put_u16 nx_ipp_put_u32 nx_ipp_group nx_ipp_attr_int nx_ipp_put_u16 ↻ nx_ipp_memcpy nx_ipp_put_u32 ↻ nx_ipp_attr nx_ipp_put_u16 ↻ nx_ipp_memcpy ↻ nx_ipp_attr_add nx_ipp_put_u16 ↻ nx_ipp_memcpy ↻ nx_ipp_attr_bool nx_ipp_put_u16 ↻ nx_ipp_memcpy ↻ nx_ipp_end nx_conf_gaps nx_ipp_find nx_ipp_strlen nx_ipp_get_u16 nx_ipp_name_eq nx_ipp_set_contains nx_ipp_strlen ↻ nx_ipp_get_u16 ↻ nx_ipp_name_eq ↻ nx_conf_default_one_sided nx_ipp_find ↻ nx_ipp_name_eq ↻ nx_conf_color nx_ipp_find ↻ nx_conf_gap_count build_hp nx_ipp_begin ↻ nx_ipp_group ↻ nx_ipp_attr_int ↻

structs

none

consts

none

functions

14func t_puts(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: main calls 1: sys_write
17func build_brother(buf: *u8) -> i64
32func build_hp(buf: *u8) -> i64
48func build_dupmis(buf: *u8) -> i64
61func main() -> i64