Import LinuxCNC source tree
This commit is contained in:
8
tests/interp/abort-hot-comment/README
Normal file
8
tests/interp/abort-hot-comment/README
Normal file
@@ -0,0 +1,8 @@
|
||||
exercise the (ABORT,<message>) hot comment:
|
||||
|
||||
numbered, named and INI parameter substitution in message
|
||||
case preservation
|
||||
unwind from oword flow
|
||||
|
||||
|
||||
|
||||
10
tests/interp/abort-hot-comment/expected
Normal file
10
tests/interp/abort-hot-comment/expected
Normal file
@@ -0,0 +1,10 @@
|
||||
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()
|
||||
MixedCase param42=20.000000 named=4711.000000 INI=3.140000
|
||||
(abort, MixedCase param42=#42 named=#<named> INI=#<_ini[a]value>)
|
||||
7 N..... ON_RESET()
|
||||
8
tests/interp/abort-hot-comment/test.ini
Normal file
8
tests/interp/abort-hot-comment/test.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
[RS274NGC]
|
||||
# enable #<_ini[section]name> expansion
|
||||
INI_VARS = 1
|
||||
|
||||
# test ini variable expansion in (ABORT, text) comment
|
||||
[A]
|
||||
VALUE= 3.14
|
||||
|
||||
10
tests/interp/abort-hot-comment/test.ngc
Normal file
10
tests/interp/abort-hot-comment/test.ngc
Normal file
@@ -0,0 +1,10 @@
|
||||
#42 = 0
|
||||
#<named> = 4711
|
||||
o100 while [#42 lt 100]
|
||||
o200 if [#42 eq 20]
|
||||
(abort, MixedCase param42=#42 named=#<named> INI=#<_ini[a]value>)
|
||||
o200 endif
|
||||
#42 = [#42 + 1]
|
||||
o100 endwhile
|
||||
|
||||
M2
|
||||
5
tests/interp/abort-hot-comment/test.sh
Executable file
5
tests/interp/abort-hot-comment/test.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
export PYTHONUNBUFFERED=1
|
||||
rs274 -n 2 -i test.ini -g test.ngc 2>&1
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user