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

implement testing #2

Closed
tsatke opened this issue Apr 19, 2023 · 2 comments
Closed

implement testing #2

tsatke opened this issue Apr 19, 2023 · 2 comments
Labels
feature New feature or request

Comments

@tsatke
Copy link
Owner

tsatke commented Apr 19, 2023

rust-osdev/bootloader#366

Seems to be harder than anticipated.

Goal is to have the kernel tests run in QEMU with a simple call to cargo test, no fuzz.

@tsatke
Copy link
Owner Author

tsatke commented Apr 19, 2023

Attempted to solve this with a proc macro and the https://github.com/dtolnay/inventory crate, but no luck, since that depends on the https://github.com/mmastrac/rust-ctor crate, and that doesn't support our target x86_64-unknown-none, or any custom target without a well-known target_os for that matter. (See https://github.com/mmastrac/rust-ctor/blob/fdaf51e7fd7d2bb010da088f67524a1236bdaabb/ctor/src/lib.rs#L173-L174)

@tsatke tsatke added this to the Minimal viable OS milestone May 11, 2023
@tsatke tsatke added the feature New feature or request label May 11, 2023
@tsatke
Copy link
Owner Author

tsatke commented Oct 31, 2023

Resorted to small test kernels in 4e74843 , which allows tests to be run locally, but for some reason it fails on the GitHub actions runner.
However, since we have tests now, this issue can be closed.

@tsatke tsatke closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant