nx_christus_integration_test.nx
buildroot/runtime/nx_christus_integration_test.nx
about
nx_christus_integration_test.nx -- Phase B2 of S-class hardening.
Real-input integration test on a Christus-class geometry: tall
narrow cone-tetrahedron (10mm × 10mm base × 40mm tall apex).
Three slanted faces; base 5mm radius × 40mm tall -> tipover
ratio 8.0 >> Qidi tipover threshold 0.98.
HONEST GEOMETRY NOTE: this cone-tet has APEX-UP orientation, so
each Z slice shrinks toward the apex. Layers are STRICTLY INSIDE
the previous, meaning auto-supports legitimately do NOT fire (no
overhang by geometry; the slant goes inward as z rises). A real
Christus STL with cantilever arms would have growing-layer regions
where supports DO fire -- queued as Phase B2.1.
What this test composes end-to-end:
1. Build the cone-tet mesh manually (substrate primitives)
2. nx_slice_pipe_run_v2 produces G-code on real geometry
3. nx_klipper_gcode_validate confirms output is syntactically
valid Klipper
4. G-code contains expected preamble + skirt + postamble markers
5. Sensible byte count + layer count
This validates the FULL stack the operator would use to print
a Christus statue, exercised on a tall-narrow-but-shrinking
geometry that's a real graceful-handling test for the substrate.
expect_exit: 0
license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_mesh.nxnx_machine_graph.nxnx_material_profile.nxnx_gcode_emit.nxnx_slice_pipeline.nxnx_klipper_gcode_validator.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
| 38 | const Q14: i64 = 16384 |
functions
| 40 | func smoke_count(buf: *u8, len: i64, needle: *u8) -> i64 called by 1: main |
| 70 | func build_christus_cone() -> *NxMesh |
| 85 | func main() -> i64 |