8000 [Question] Contribution of regression tests and other fixes to kecc-public · Issue #583 · kaist-cp/cs420 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Question] Contribution of regression tests and other fixes to kecc-public #583

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&r 8000 dquo;, 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

Open
bauen1 opened this issue Apr 6, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@bauen1
Copy link
bauen1 commented Apr 6, 2025

Hello,

Is it allowed to share tests for the homeworks with other students ?
Or, more specifically, can I make MRs to the kecc-public repository to contribute some smaller fixes and improvements to the test framework ?

Currently I have the following improvements I'd like to contribute / share:

  • More reliable skipping of "unsupported" ASTs during fuzzing
  • Support for initializing global scalar variables with the type name = { expr }; syntax, which is equivalent to type name = expr; but currently not handled by the irgen template or the interp, despite being valid C code.
    While this is done with some modifications to the irgen.rs file, implementation of global constructors is not part of the homework. When fuzzing with more advanced options, i.e., pointers, arrays, ..., csmith will sometimes generate such code.
  • Use of the dir-test crate to split the tests into individual tests per test file
  • Use of dir-test to run regression tests, e.g., over all the C files found from fuzzing.

Since some of these touch on testing code or existing template code, I can understand that you might be reluctant to merge them during the semester, but I would still like to contribute them if possible for future iterations of the course.

I'd also like to share some of the C test cases I have found through fuzzing, or manual writing.
Since some go further than expected in the homework, e.g., String Literals.
But some of them cover cases of pointer arithmetic that should be implemented, but which don't seem to be covered by the existing test cases, grade script, or the default fuzzing parameters.

(Pinging @TomLafay so he does not ask the same question)

@bauen1 bauen1 added the question Further information is requested label Apr 6, 2025
@Jaewookim08 Jaewookim08 added the enhancement New feature or request label Apr 6, 2025
@Lee-Janggun
Copy link
Member
Lee-Janggun commented Apr 7, 2025

Yes, it is allowed to make PRs for test cases (we'll actually be glad if you did). Although, we probably won't get to it until the semester is over so that students don't suddenly get new tests.

If you are going to make PRs, we would appreciate it if you made multiple, small PRs for easy review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
0