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

Executable for use with AFL #1703

Merged
merged 3 commits into from
Feb 17, 2017
Merged

Executable for use with AFL #1703

merged 3 commits into from
Feb 17, 2017

Conversation

chriseth
Copy link
Contributor

@holiman please just run solfuzz < inputfile for fuzz-testing, this will now catch much more errors.

@chriseth
Copy link
Contributor Author

Error on windows is "block mining timeout" and can thus be ignored.


# search for test names and create ctest tests
Copy link
Member

Choose a reason for hiding this comment

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

What was the reason for this block and why isn't it needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This generated some auxiliary information so that ctest could be used as a test runner. The main advantage of ctest was that tests could be run in parallel. Since this is not possible anymore because of the IPC connection required, I did not see any reason to keep it.

Copy link
Member

Choose a reason for hiding this comment

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

👍 for removing if not needed

cd "$REPO_ROOT"
REPO_ROOT=$(pwd) # make it absolute
cd "$TMPDIR"
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/contracts/* "$REPO_ROOT"/test/libsolidity/*EndToEnd*
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't these errors caught by soltest? Or is the reason here to verify solfuzzer instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These basically test solcjs, i.e. generating all the json structures for the output, we had some bugs there before.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah right, it is a rudimentary soljson test.

@axic axic merged commit 419ab92 into develop Feb 17, 2017
@axic axic deleted the fuzzer branch February 17, 2017 22:57
@axic axic removed the needs review label Feb 17, 2017
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