-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[circt-test] Allow tests to filter according to test runners (#8084)
Interpret the `require_runners` and `exclude_runners` attributes on formal tests as a filter for the potential runners that can execute a test. If the set of required runners is not empty, a runner from this set is picked. Tests for which no runner is available report as "unsupported", for example if none of the available runners match the filter.
- Loading branch information
1 parent
65c4186
commit db847ef
Showing
4 changed files
with
212 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// RUN: circt-test --verify-diagnostics --split-input-file %s | ||
|
||
// expected-error @below {{`ignore` attribute of test "Foo" must be a boolean}} | ||
verif.formal @Foo {ignore = "hello"} {} | ||
|
||
// ----- | ||
// expected-error @below {{`require_runners` attribute of test "Foo" must be an array}} | ||
verif.formal @Foo {require_runners = "hello"} {} | ||
|
||
// ----- | ||
// expected-error @below {{`exclude_runners` attribute of test "Foo" must be an array}} | ||
verif.formal @Foo {exclude_runners = "hello"} {} | ||
|
||
// ----- | ||
// expected-error @below {{element of `require_runners` array of test "Foo" must be a string}} | ||
verif.formal @Foo {require_runners = [42]} {} | ||
|
||
// ----- | ||
// expected-error @below {{element of `exclude_runners` array of test "Foo" must be a string}} | ||
verif.formal @Foo {exclude_runners = [42]} {} |
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