Import LinuxCNC source tree
This commit is contained in:
1
tests/halrun-lock/README
Normal file
1
tests/halrun-lock/README
Normal file
@@ -0,0 +1 @@
|
||||
Tests that the various lock commands result in the expected locking status.
|
||||
28
tests/halrun-lock/expected
Normal file
28
tests/halrun-lock/expected
Normal file
@@ -0,0 +1,28 @@
|
||||
HAL locking status:
|
||||
current lock value 0 (00)
|
||||
HAL_LOCK_NONE - nothing is locked
|
||||
HAL locking status:
|
||||
current lock value 255 (ff)
|
||||
HAL_LOCK_LOAD - loading of new components is locked
|
||||
HAL_LOCK_CONFIG - link and addf is locked
|
||||
HAL_LOCK_PARAMS - setting params is locked
|
||||
HAL_LOCK_RUN - running/stopping HAL is locked
|
||||
HAL locking status:
|
||||
current lock value 0 (00)
|
||||
HAL_LOCK_NONE - nothing is locked
|
||||
HAL locking status:
|
||||
current lock value 3 (03)
|
||||
HAL_LOCK_LOAD - loading of new components is locked
|
||||
HAL_LOCK_CONFIG - link and addf is locked
|
||||
HAL locking status:
|
||||
current lock value 0 (00)
|
||||
HAL_LOCK_NONE - nothing is locked
|
||||
HAL locking status:
|
||||
current lock value 255 (ff)
|
||||
HAL_LOCK_LOAD - loading of new components is locked
|
||||
HAL_LOCK_CONFIG - link and addf is locked
|
||||
HAL_LOCK_PARAMS - setting params is locked
|
||||
HAL_LOCK_RUN - running/stopping HAL is locked
|
||||
HAL locking status:
|
||||
current lock value 0 (00)
|
||||
HAL_LOCK_NONE - nothing is locked
|
||||
14
tests/halrun-lock/halrun.hal
Normal file
14
tests/halrun-lock/halrun.hal
Normal file
@@ -0,0 +1,14 @@
|
||||
status
|
||||
lock
|
||||
status
|
||||
unlock
|
||||
status
|
||||
lock tune
|
||||
status
|
||||
unlock tune
|
||||
status
|
||||
lock all
|
||||
status
|
||||
unlock all
|
||||
status
|
||||
|
||||
4
tests/halrun-lock/test.sh
Normal file
4
tests/halrun-lock/test.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
halrun -f halrun.hal | grep -i lock
|
||||
|
||||
Reference in New Issue
Block a user