nx_printer_conform_test.nx
buildroot/runtime/nx_printer_conform_test.nx
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
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
structs
| none |
consts
| none |
functions
| 14 | func 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 } |
| 17 | func build_brother(buf: *u8) -> i64 called by 1: main calls 7: nx_ipp_beginnx_ipp_groupnx_ipp_attr_intnx_ipp_attrnx_ipp_attr_addnx_ipp_attr_bool+1 |
| 32 | func build_hp(buf: *u8) -> i64 called by 1: main calls 7: nx_ipp_beginnx_ipp_groupnx_ipp_attr_intnx_ipp_attrnx_ipp_attr_addnx_ipp_attr_bool+1 |
| 48 | func build_dupmis(buf: *u8) -> i64 called by 1: main calls 7: nx_ipp_beginnx_ipp_groupnx_ipp_attr_intnx_ipp_attrnx_ipp_attr_addnx_ipp_attr_bool+1 |
| 61 | func main() -> i64 |