-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[circt-test] Keep a list of available test runners (#8046)
Instead of accepting a runner binary directly through the `-r` command line option, add a `RunnerSuite` to circt-test which tracks a list of configured runners. This currently gets populated with the default "sby" and "circt-bmc" runners with the corresponding configuration. The user can then pass the runner name to the `-r` option, e.g. `-r sby`, instead of a full path. Further down the road we'll want to allow the user to dynamically configure additional runners through files on disk, and specify an order in which the runners should be used. For example, a user may want to use "sby" for as many tests as possible, and fall back to "circt-bmc" for the ones where "sby" was not available.
- Loading branch information
1 parent
1c5826f
commit 4e47877
Showing
3 changed files
with
184 additions
and
51 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// RUN: env Z3LIB=%libz3 not circt-test %S/basic.mlir -r circt-test-runner-circt-bmc.py --mlir-runner 2>&1 | FileCheck %S/basic.mlir | ||
// RUN: env Z3LIB=%libz3 not circt-test %S/basic.mlir -r \circt-bmc 2>&1 | FileCheck %S/basic.mlir | ||
// REQUIRES: libz3 | ||
// REQUIRES: circt-bmc-jit |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// RUN: not circt-test %S/basic.mlir -r circt-test-runner-sby.py 2>&1 | FileCheck %S/basic.mlir | ||
// RUN: not circt-test %S/basic.mlir -r \sby 2>&1 | FileCheck %S/basic.mlir | ||
// REQUIRES: sby |
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