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

Ensure compiler security compliance #2

Open
8 tasks
thomasvergne opened this issue Nov 18, 2024 · 0 comments
Open
8 tasks

Ensure compiler security compliance #2

thomasvergne opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Comments

@thomasvergne
Copy link
Collaborator

Current compiler already has some tests directly integrated in it, but it should cover every possible cases, to avoid any potential core-breaking issue.

Steps

  • Create a new test battery for a given compiler component
  • Provide from basic test implementations to most complex cases
  • Potentially discover new issues within the compiler
  • Repeat these steps for the new discovered issue

Making test creation easier

To allow better productivity, parser tests should be the only tests to be that verbose for syntax checking. When finishing writing parser tests, parser should be used to incorporate files directly in tests. Resulting in better code examples.

State of art

  • Parser tests
  • Module resolution tests
  • Type-checking tests
  • Type erasure tests
  • Closure conversion tests
  • ANF Conversion tests
  • LLIR Conversion tests
  • Bytecode generation and serialization tests
@thomasvergne thomasvergne added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Nov 18, 2024
@thomasvergne thomasvergne self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant