Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit test template #236

Merged

Conversation

jeffnye-gh
Copy link
Collaborator

A unit test bench template. It intends to help new users create unit tests.

Three components, Src, Sink, Dut. Handles json and stf input test types.

Conforms to coding style through clang-formt.

I created this for myself a while back to help learning the concepts, updated for coding style.

It was useful to me when learning sparta/map/olympia.

jeff added 4 commits December 3, 2024 14:54
@jeffnye-gh jeffnye-gh requested a review from klingaard December 5, 2024 15:09
@jeffnye-gh
Copy link
Collaborator Author

this fails for MAC OS but I do not see a connection between my PR and the mac failure. I believe it fails due to the warning installing conda.

Warning: Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/.
Warning: ERROR: executing pre_install.sh failed

@jeffnye-gh
Copy link
Collaborator Author

jeffnye-gh commented Dec 6, 2024

re-running the checks with-out change, it now works.

@jeffnye-gh jeffnye-gh self-assigned this Dec 9, 2024
Copy link
Collaborator

@klingaard klingaard left a comment

Choose a reason for hiding this comment

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

This is super awesome. What are your thoughts about moving this into Sparta?

@jeffnye-gh
Copy link
Collaborator Author

jeffnye-gh commented Dec 16, 2024 via email

@jeffnye-gh jeffnye-gh merged commit e370d4f into riscv-software-src:master Dec 16, 2024
5 checks passed
@jeffnye-gh jeffnye-gh deleted the jeffnye-gh/test_template branch December 16, 2024 22:35
@klingaard
Copy link
Collaborator

I don't think it collides with anything in Sparta, really. If we do put this in sparta, a set of cool scripts would be nice to set up a unit. But I think here is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants