将最小解释器验证改为fixture驱动
结论:最小解释器 harness 改为读取 G-code fixture,并通过 expected canonical event fixture 验证 G0/G1/feed 输出,后续扩展覆盖可直接新增 fixture。检查:git diff --check 通过;wasm-port/tests/native/verify_native_probes.sh 通过。
This commit is contained in:
4
wasm-port/tests/fixtures/canon/minimal_linear.events
vendored
Normal file
4
wasm-port/tests/fixtures/canon/minimal_linear.events
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
canon_event=COMMENT: Comment
|
||||
canon_event=STRAIGHT_TRAVERSE line=1 x=1 y=2 z=0 a=0 b=0 c=0 u=0 v=0 w=0
|
||||
canon_event=SET_FEED_RATE rate=120
|
||||
canon_event=STRAIGHT_FEED line=2 x=3 y=4 z=0 a=0 b=0 c=0 u=0 v=0 w=0
|
||||
2
wasm-port/tests/fixtures/gcode/minimal_linear.ngc
vendored
Normal file
2
wasm-port/tests/fixtures/gcode/minimal_linear.ngc
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
G0 X1.0 Y2.0 (Comment)
|
||||
G1 X3.0 Y4.0 F120.0
|
||||
Reference in New Issue
Block a user