按规划持续工作
This commit is contained in:
5
wasm-port/vendor/linuxcnc/tests/interp/iniparam/README
vendored
Normal file
5
wasm-port/vendor/linuxcnc/tests/interp/iniparam/README
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
named parameters can now reference INI variables; they are retrieved on demand and
|
||||
cached as global read-only parameters.
|
||||
|
||||
Syntax: #<_ini[section]name>
|
||||
13
wasm-port/vendor/linuxcnc/tests/interp/iniparam/expected
vendored
Normal file
13
wasm-port/vendor/linuxcnc/tests/interp/iniparam/expected
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
executing
|
||||
1 N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
|
||||
2 N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
3 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
4 N..... SET_XY_ROTATION(0.0000)
|
||||
5 N..... SET_FEED_REFERENCE(CANON_XYZ)
|
||||
6 N..... ON_RESET()
|
||||
7 N..... STRAIGHT_TRAVERSE(10.0000, 20.0000, 30.0000, 0.0000, 0.0000, 0.0000)
|
||||
8 N..... MESSAGE(" position now: 10.000000 20.000000 30.000000")
|
||||
9 N..... MESSAGE(" not in INI: ######")
|
||||
Named parameter #<_ini[nosuchsection]nosuchname> not defined
|
||||
#4711 = #<_iNI[nosuchsection]nosuchname>
|
||||
10 N..... ON_RESET()
|
||||
12
wasm-port/vendor/linuxcnc/tests/interp/iniparam/test.ini
vendored
Normal file
12
wasm-port/vendor/linuxcnc/tests/interp/iniparam/test.ini
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
[EMC]
|
||||
DEBUG=0
|
||||
LOG_LEVEL=0
|
||||
|
||||
[RS274NGC]
|
||||
INI_VARS = 1
|
||||
|
||||
|
||||
[VARS]
|
||||
TOOLCHANGE_X = 10
|
||||
TOOLCHANGE_Y = 20
|
||||
TOOLCHANGE_Z = 30
|
||||
9
wasm-port/vendor/linuxcnc/tests/interp/iniparam/test.ngc
vendored
Normal file
9
wasm-port/vendor/linuxcnc/tests/interp/iniparam/test.ngc
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
G53 G0 x#<_ini[vars]toolchange_x> y#<_InI[vars]toolchange_y> z#<_INi[vars]toolchange_z>
|
||||
(debug, position now: #<_x> #<_y> #<_z>)
|
||||
|
||||
(debug, not in INI: #<_iNi[nosuchsection]nosuchname>)
|
||||
|
||||
; now fail referencing an undefined INI variable:
|
||||
#4711 = #<_iNI[nosuchsection]nosuchname>
|
||||
|
||||
M2
|
||||
5
wasm-port/vendor/linuxcnc/tests/interp/iniparam/test.sh
vendored
Executable file
5
wasm-port/vendor/linuxcnc/tests/interp/iniparam/test.sh
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
export PYTHONUNBUFFERED=1
|
||||
rs274 -i test.ini -g test.ngc 2>&1
|
||||
# this is expected to fail on the undefined INI var
|
||||
exit 0
|
||||
Reference in New Issue
Block a user