Import LinuxCNC source tree
This commit is contained in:
8
tests/remap/nested-remaps-oword/README
Normal file
8
tests/remap/nested-remaps-oword/README
Normal file
@@ -0,0 +1,8 @@
|
||||
Exercise nested remaps - three levels deep
|
||||
|
||||
each invocation bumps both call and remap level
|
||||
at end of invocation both most be 0
|
||||
|
||||
also verify correct propagation and restore of sequence numbers
|
||||
|
||||
|
||||
18
tests/remap/nested-remaps-oword/expected
Normal file
18
tests/remap/nested-remaps-oword/expected
Normal file
@@ -0,0 +1,18 @@
|
||||
executing
|
||||
N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
|
||||
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
|
||||
N..... SET_XY_ROTATION(0.0000)
|
||||
N..... SET_FEED_REFERENCE(CANON_XYZ)
|
||||
N..... ON_RESET()
|
||||
N..... MESSAGE("main call_level=0.000000 remap_level=0.000000 line=2.000000")
|
||||
N..... MESSAGE("m400 handler pre call_level=1.000000 remap_level=1.000000 line=2.000000")
|
||||
N..... MESSAGE("m401 handler pre call_level=2.000000 remap_level=2.000000 line=2.000000")
|
||||
N..... MESSAGE("m402 handler pre call_level=3.000000 remap_level=3.000000 line=2.000000")
|
||||
N..... MESSAGE("m403 handler pre call_level=4.000000 remap_level=4.000000 line=2.000000")
|
||||
N..... MESSAGE("m402 handler post call_level=3.000000 remap_level=3.000000 line=4.000000")
|
||||
N..... MESSAGE("m401 handler post call_level=2.000000 remap_level=2.000000 line=4.000000")
|
||||
N..... MESSAGE("m400 handler post call_level=1.000000 remap_level=1.000000 line=4.000000")
|
||||
N..... MESSAGE("main call_level=0.000000 remap_level=0.000000 line=4.000000")
|
||||
N..... FINISH()
|
||||
N..... ON_RESET()
|
||||
7
tests/remap/nested-remaps-oword/rm400.ngc
Normal file
7
tests/remap/nested-remaps-oword/rm400.ngc
Normal file
@@ -0,0 +1,7 @@
|
||||
o<rm400> sub
|
||||
(debug,m400 handler pre call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
m401
|
||||
(debug,m400 handler post call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
o<rm400> endsub
|
||||
m2
|
||||
%
|
||||
7
tests/remap/nested-remaps-oword/rm401.ngc
Normal file
7
tests/remap/nested-remaps-oword/rm401.ngc
Normal file
@@ -0,0 +1,7 @@
|
||||
o<rm401> sub
|
||||
(debug,m401 handler pre call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
m402
|
||||
(debug,m401 handler post call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
o<rm401> endsub
|
||||
m2
|
||||
%
|
||||
7
tests/remap/nested-remaps-oword/rm402.ngc
Normal file
7
tests/remap/nested-remaps-oword/rm402.ngc
Normal file
@@ -0,0 +1,7 @@
|
||||
o<rm402> sub
|
||||
(debug,m402 handler pre call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
m403
|
||||
(debug,m402 handler post call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
o<rm402> endsub
|
||||
m2
|
||||
%
|
||||
6
tests/remap/nested-remaps-oword/rm403.ngc
Normal file
6
tests/remap/nested-remaps-oword/rm403.ngc
Normal file
@@ -0,0 +1,6 @@
|
||||
o<rm403> sub
|
||||
(debug,m403 handler pre call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
o<rm403> endsub
|
||||
(debug,m403 handler post call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
m2
|
||||
%
|
||||
11
tests/remap/nested-remaps-oword/test.ini
Normal file
11
tests/remap/nested-remaps-oword/test.ini
Normal file
@@ -0,0 +1,11 @@
|
||||
[EMC]
|
||||
DEBUG=0
|
||||
LOG_LEVEL=0
|
||||
|
||||
[RS274NGC]
|
||||
SUBROUTINE_PATH = .
|
||||
|
||||
REMAP=M400 modalgroup=10 ngc=rm400
|
||||
REMAP=M401 modalgroup=10 ngc=rm401
|
||||
REMAP=M402 modalgroup=10 ngc=rm402
|
||||
REMAP=M403 modalgroup=10 ngc=rm403
|
||||
5
tests/remap/nested-remaps-oword/test.ngc
Normal file
5
tests/remap/nested-remaps-oword/test.ngc
Normal file
@@ -0,0 +1,5 @@
|
||||
%
|
||||
(debug,main call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
m400
|
||||
(debug,main call_level=#<_call_level> remap_level=#<_remap_level> line=#<_line>)
|
||||
%
|
||||
3
tests/remap/nested-remaps-oword/test.sh
Executable file
3
tests/remap/nested-remaps-oword/test.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
rs274 -i test.ini -g test.ngc 2>&1 | sed 's/^ *[0-9]* //'
|
||||
exit "${PIPESTATUS[0]}"
|
||||
6
tests/remap/nested-remaps-oword/testsub.ngc
Normal file
6
tests/remap/nested-remaps-oword/testsub.ngc
Normal file
@@ -0,0 +1,6 @@
|
||||
o<rm400> sub
|
||||
(debug, call_level=#<_call_level> remap_level=#<_remap_level>)
|
||||
m401
|
||||
o<rm400> endsub
|
||||
m2
|
||||
%
|
||||
Reference in New Issue
Block a user