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

tools: added a port of dust #979

Draft
wants to merge 13 commits into
base: devel
Choose a base branch
from
Draft

Conversation

saem
Copy link
Collaborator

@saem saem commented Oct 19, 2023

Summary

dust is an automatic test case minimizer written by @disruptek

  • what changed and how?
  • why are we changing it?

Details

  • info that couldn't fit into the summary
  • relevant details; tricky parts
  • anything else

Notes for Reviewers

  • clean-up commit message
  • figure out some minor testing, at least try it
  • audit dust code to use the latest in nimskull compiler
  • break out discardCheck fix
  • removing warnings and hints

tools/dust/spec.nim Outdated Show resolved Hide resolved
tools/dust/spec.nim Outdated Show resolved Hide resolved
tools/dust/mutate.nim Outdated Show resolved Hide resolved
Copy link
Collaborator

@zerbina zerbina left a comment

Choose a reason for hiding this comment

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

I did a first pass and left some minor style suggestions.

tools/dust/mutate.nim Outdated Show resolved Hide resolved
tools/dust/mutate.nim Outdated Show resolved Hide resolved
tools/dust/mutate.nim Show resolved Hide resolved
tools/dust/mutate.nim Outdated Show resolved Hide resolved
tools/dust/spec.nim Outdated Show resolved Hide resolved
tools/dust/pass.nim Outdated Show resolved Hide resolved
# yield the next available permutation (once)
result = pop(remains)
assert result.kind == nkStmtList
c.ignore = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not entirely sure, but since the process procedure is called for every fragment, wouldn't this mean that everything beyond and including the first declarative statement would be thrown away?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, seeing as this code seems to be unused, it looks to be an incomplete implementation.

tools/dust/pass.nim Outdated Show resolved Hide resolved
tools/dust/boring.nim Outdated Show resolved Hide resolved
tools/dust/boring.nim Outdated Show resolved Hide resolved
@saem saem marked this pull request as draft October 20, 2023 19:39
the problem is that right now we generate more and more errors over
time, so the minimization process diverges, rather than converging.
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

3 participants