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

Add more MISRA mutation tests #1818

Merged
merged 21 commits into from Jan 20, 2024
Merged

Conversation

bongbui321
Copy link
Contributor

@bongbui321 bongbui321 commented Jan 18, 2024

Randomly patch pattern now. with CI env variable saves about ~30s. I did 4 tests:

Need pytest-randomly for pytest with random obj possible (similar issue). Need to update the ghcr

@bongbui321 bongbui321 marked this pull request as ready for review January 19, 2024 01:22
@bongbui321 bongbui321 marked this pull request as draft January 19, 2024 01:40
@bongbui321 bongbui321 marked this pull request as ready for review January 19, 2024 01:58
Copy link
Contributor

@adeebshihadeh adeebshihadeh left a comment

Choose a reason for hiding this comment

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

Let's combine the two listed bounties in that issue and do this for the full $350:

  • move all the patterns you added to a pattern list
  • use the list of patterns to generate test cases by pairing each one with a randomly chosen file

tests/misra/test_misra.sh Outdated Show resolved Hide resolved
tests/misra/test_mutation.py Outdated Show resolved Hide resolved
tests/misra/test_mutation.py Outdated Show resolved Hide resolved
@adeebshihadeh adeebshihadeh merged commit ced1fb3 into commaai:master Jan 20, 2024
9 checks passed
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.

None yet

2 participants