Skip to content

Commit

Permalink
Added some test for new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
KabirSamsi committed Oct 29, 2024
1 parent 051a35c commit c2b5eb7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions progs/incorrect/set_hierarchical.sched
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
classes A, B;

combined = rr[union[A, B]];

return combined
5 changes: 5 additions & 0 deletions progs/incorrect/set_multiple.sched
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
classes A, B;

combined = fifo[A, B];

return combined
6 changes: 6 additions & 0 deletions rio/tests/parsing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ let error_tests =
"progs/incorrect/duplicate_classes.sched" (Policy.DuplicateClass "B");
make_error_test "class used twice in one fifo"
"progs/incorrect/duplicate_samepol.sched" (Policy.DuplicateClass "A");
make_error_test "fifo for multiple classes without union"
"progs/incorrect/set_multiple.sched"
(Parser.ParserError "Syntax error at line 3, character 17");
make_error_test "rr for classes without fifo'ing first"
"progs/incorrect/set_hierarchical.sched"
(Parser.ParserError "Syntax error at line 3, character 14");
]

let suite = "parsing tests" >::: wc_tests @ error_tests (* @ nwc_tests *)
Expand Down

0 comments on commit c2b5eb7

Please sign in to comment.