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 compilation testing binary #99

Open
michaelmior opened this issue Oct 29, 2024 · 0 comments
Open

Add compilation testing binary #99

michaelmior opened this issue Oct 29, 2024 · 0 comments

Comments

@michaelmior
Copy link

This can be based off contrib/validate.cc, but we don't actually need to validate a document. Just verify that a schema is compiled correctly. Ideally, this would be a basis for future fuzz testing. This means that the program should not crash under any of the following conditions:

  • Invalid JSON
  • Unknown dialect
  • Invalid schema (i.e., the schema doesn't validate according to the metaschema)

Really, the only case where it should crash if there's an unanticipated error during the compilation process. Exiting with non-zero status and an error message 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

No branches or pull requests

1 participant