Skip to content

Conversation

seldridge
Copy link
Member

Create a new package, chisel3.testing, and move
simulator.HasTestingDirectory and the scalatest implementation of it to the new package. This is done because the ability to get a testing directory is really a general property of "testing" and not "simulation".

This also builds towards moving the FileCheck utility out of ChiselSpec (i.e., only being available for tests) and into a proper home in testing. It also makes sense for FileCheck to use the HasTestingDirectory type class as it has the same problem of needing to be given a "testing directory".

Create a new package, `chisel3.testing`, and move
`simulator.HasTestingDirectory` and the scalatest implementation of it to
the new package.  This is done because the ability to get a testing
directory is really a general property of "testing" and not "simulation".

This also builds towards moving the FileCheck utility out of
`ChiselSpec` (i.e., only being available for tests) and into a proper home
in `testing`.  It also makes sense for FileCheck to use the
`HasTestingDirectory` type class as it has the same problem of needing to
be given a "testing directory".

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge seldridge added the No Release Notes Exclude from release notes, consider using Internal instead label Feb 27, 2025
@seldridge seldridge requested a review from jackkoenig February 27, 2025 23:56
Copy link
Contributor

@jackkoenig jackkoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this generalization

@seldridge seldridge enabled auto-merge (squash) February 28, 2025 02:18
@seldridge seldridge merged commit 58d9368 into main Feb 28, 2025
14 checks passed
@seldridge seldridge deleted the dev/seldridge/factor-HasTestingDirectory-out-of-simulator-and-into-testing branch February 28, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No Release Notes Exclude from release notes, consider using Internal instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants