-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add 'it runs' tests #4
Comments
Some idea: Most trival one:
More complex one:
Notes
|
EmulatorI installed
Cratetry https://github.com/japaric/lm3s6965evb cargo build
betaI got:
nightlygo to nightly:
Now the build succeeds with one harmless warning:
|
How to exit from qemu cleanly
The above will be translated to References
UpdateThe above decription is for normal Arm architecture. For thumb target, http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0471c/Bgbjjgij.html says:
Best way in the Rust CIYou can use extern crate cortex_m_semihosting as semihosting;
(snip)
unsafe { semihosting::syscall1(
semihosting::nr::REPORT_EXCEPTION,
semihosting::debug::Exception::ApplicationExit as usize,
); You can return successful result:
You can also return failure like this using other than
|
One terminal (qemu)
tips: ( On another terminal (gdb)like this:
|
I submitted this PR:
This is the prerequisite before the main PR submitted to the Rust repository. |
I opened this: I don't think it's safe to merge now. We need to wait for stable |
These tests are the ambitious part of the project. So, while it be good to have tests for a minimal embedded program which is executed in QEMU and completes successfully. Code must be in beta before September 13, 2018 if we want these tests to be shipped with Rust 1.30.
Note other issues will be given priority over this.
The text was updated successfully, but these errors were encountered: