-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a unit test to test the various lock commands produce the expected output.
- Loading branch information
1 parent
06c333a
commit a5103f6
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tests that the various lock commands result in the expected locking status. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
status | ||
lock | ||
status | ||
unlock | ||
status | ||
lock tune | ||
status | ||
unlock tune | ||
status | ||
lock all | ||
status | ||
unlock all | ||
status | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
halrun -f halrun.hal | grep -i lock | ||
|