-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DISCARD statement, tesets for this statement, and documentation
- Loading branch information
Showing
6 changed files
with
42 additions
and
3 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
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
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
6 changes: 6 additions & 0 deletions
6
shepherd/tests/testing_tests/discard_tests/discard_client.shepherd
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,6 @@ | ||
READ LCM_TARGETS.SHEPHERD | ||
EMIT SCOREBOARD_HEADER.ALL_INFO TO LCM_TARGETS.SCOREBOARD | ||
SLEEP 3 | ||
DISCARD | ||
WAIT SHEPHERD_HEADER.SETUP_MATCH FROM LCM_TARGETS.SHEPHERD WITH a = 'a' | ||
ASSERT a == 2 |
9 changes: 9 additions & 0 deletions
9
shepherd/tests/testing_tests/discard_tests/discard_server.shepherd
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,9 @@ | ||
READ LCM_TARGETS.SCOREBOARD | ||
WAIT SCOREBOARD_HEADER.ALL_INFO FROM LCM_TARGETS.SCOREBOARD | ||
RUN counter = 0 | ||
WHILE counter < 10 | ||
EMIT SHEPHERD_HEADER.SETUP_MATCH TO LCM_TARGETS.SHEPHERD WITH 'a' = 1 | ||
RUN counter += 1 | ||
END | ||
SLEEP 5 | ||
EMIT SHEPHERD_HEADER.SETUP_MATCH TO LCM_TARGETS.SHEPHERD WITH 'a' = 2 |
2 changes: 2 additions & 0 deletions
2
shepherd/tests/testing_tests/discard_tests/instructions.shepherd
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,2 @@ | ||
TEST discard_server.shepherd | ||
TEST discard_client.shepherd |
ba26d7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#52