-
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.
added INFER option to WAIT WITH statements and added tests and docume…
…ntation.
- Loading branch information
Showing
5 changed files
with
89 additions
and
42 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
2 changes: 2 additions & 0 deletions
2
shepherd/tests/testing_tests/with_infer_test/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 with_infer_client.shepherd | ||
TEST with_infer_server.shepherd |
13 changes: 13 additions & 0 deletions
13
shepherd/tests/testing_tests/with_infer_test/with_infer_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,13 @@ | ||
READ LCM_TARGETS.SCOREBOARD | ||
RUN a = 1 | ||
RUN b = 1 | ||
RUN c = 1 | ||
WAIT SCOREBOARD_HEADER.ALL_INFO FROM LCM_TARGETS.SCOREBOARD WITH c2 = 'c' WITH INFER WITH a2 = 'a' | ||
FAIL a != 1 | ||
FAIL c != 1 | ||
FAIL b != 2 | ||
WAIT SCOREBOARD_HEADER.ALL_INFO FROM LCM_TARGETS.SCOREBOARD WITH INFER SET d = 4 | ||
FAIL a != 3 | ||
FAIL c != 3 | ||
FAIL b != 3 | ||
PASS |
2 changes: 2 additions & 0 deletions
2
shepherd/tests/testing_tests/with_infer_test/with_infer_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,2 @@ | ||
EMIT SCOREBOARD_HEADER.ALL_INFO TO LCM_TARGETS.SCOREBOARD WITH 'a' = 2 WITH 'b' = 2 WITH 'c' = 2 | ||
EMIT SCOREBOARD_HEADER.ALL_INFO TO LCM_TARGETS.SCOREBOARD WITH 'a' = 3 WITH 'b' = 3 WITH 'c' = 3 |
1dc0c02
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.
#47