-
Notifications
You must be signed in to change notification settings - Fork 212
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
How to test after migration from 0.9.x #330
Comments
I got the tests to build by leaving a
Actually running the tests runs into further issues: namely that it tries to run the ELF file as a binary. This was done in 0.9 by also having the following in the cargo config:
What |
Yup! I added the following runner to my OS workspace:
Edit: Above code used to use OUT_DIR, but that is apparently unreliable for a test runner. Now creates a file in temp_dir and removes after QEMU exits. And my
Options to the runner are passed to QEMU, and I highly recommend removing |
I'm interested in this but I don't understand @Benabik fix, can you link the repo? |
I was able to get my tests to run by first compiling the kernel with cargo test -p kernel --no-run --target x86_64-unknown-none Then replacing the kernel in I don't yet know how to get |
I migrated from 0.9.x to 0.11.
The build works fine but tests are broken the old way. When testing teh kernel there is no executable, what I can understand. But when testing the parent directory only the crate itself will be tested. When testing the parent directory with --workspace option there is no target transferred to the kernel build, which leads to the error:
I guess there is an option to pass the target even in test build mode. But I didn't find yet.
Thanks in advane!
The text was updated successfully, but these errors were encountered: