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

[sim] add simulation check to sw makefiles as target 'sim-check' #817

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

umarcor
Copy link
Collaborator

@umarcor umarcor commented Feb 20, 2024

Coming from #816, this PR moves the cat-grep assert from the simulation shell script to the Makefile of the corresponding software program. In order to do so, target sim-check is added, which depends on sim.
This approach allows us to have per-program checks. In order to showcase the feature, I added a check to hello_world as well.

See a successful execution https://github.com/umarcor/neorv32/actions/runs/7977125739 and failures when I changed the strings in the software on purpose: https://github.com/umarcor/neorv32/actions/runs/7977200433.

@umarcor umarcor mentioned this pull request Feb 20, 2024
@umarcor umarcor added enhancement New feature or request CI Continuous integration-related labels Feb 20, 2024
@stnolting
Copy link
Owner

That's a really nice solution! 👍

@stnolting stnolting merged commit bf53181 into stnolting:main Feb 20, 2024
5 checks passed
@umarcor umarcor deleted the umarcor/sim-check branch February 21, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration-related enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants