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

C integration test design #166

Open
anholt opened this issue Sep 25, 2024 · 2 comments
Open

C integration test design #166

anholt opened this issue Sep 25, 2024 · 2 comments

Comments

@anholt
Copy link
Contributor

anholt commented Sep 25, 2024

I'm working on ELF binfmt support a bit, and I'd like to be able to write integration tests in C. How would we like to integrate non-shell integration tests? One thought would be to build them from testing/Dockerfile, so that we have a reproducible build without demanding that the user install a bunch of arbitrary tools just to build kerla. The downside to that plan is that then verifying that the integration test actually passes on Linux means docker runing instead of just invoking the binary, and that docker container won't have all the tools you're used to (gdb, eu-readelf, etc.).

Thoughts?

@anholt
Copy link
Contributor Author

anholt commented Sep 25, 2024

Motivation: ET_DYN WIP is at https://github.com/anholt/kerla/tree/et-dyn, commit log shows the current sticking point.

@nuta
Copy link
Owner

nuta commented Sep 29, 2024

Putting binary-based tests in the Dockerfile sounds good. Running them on Linux is still simple, and I think we can still debug it with docker debug.

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

2 participants