Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRun non-native tests on real device #41268
Conversation
rust-highfive
assigned
alexcrichton
Apr 13, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
|
Seems reasonable to me! What other cleanups did you have in mind? |
This comment has been minimized.
This comment has been minimized.
|
I was mainly thinking about renaming |
This comment has been minimized.
This comment has been minimized.
|
Ok sounds great to me! Feel free to just ping me here when that is sorted out |
shepmaster
added
the
S-waiting-on-author
label
Apr 14, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks for the cool work @mmatyas! Do you think you will still be able to make the suggested changes to the PR? |
This comment has been minimized.
This comment has been minimized.
|
Yeah, it's almost done. I was experimenting with setting the device address from an env var, then from a configure parameter to see which works better. Both have their pros/cons, but in the end personally I've found the config parameter solution cleaner. I'm going to finish this next week, sorry for the delay! |
This comment has been minimized.
This comment has been minimized.
|
Oh no worries @mmatyas, thanks for the update! |
mmatyas
force-pushed the
mmatyas:test_on_device
branch
from
3afa105
to
b7b12e7
Apr 27, 2017
This comment has been minimized.
This comment has been minimized.
|
Well it turned out to be a way bigger patch than I originally expected, but now it's nicely integrated into the build system. Some descriptions/comments are still missing or incomplete, I'll fix that. There's also some code duplication (eg. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Ah, yeah it seems we have an overlap; should I wait until #41575 gets sorted out / merged? |
This comment has been minimized.
This comment has been minimized.
|
Sure yeah, I just r+'d that PR so if you want to go ahead and rebase on top you can probably start handling the rebase conflicts immediately |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Ah merged anyway now! |
mmatyas
force-pushed the
mmatyas:test_on_device
branch
from
b7b12e7
to
b194def
May 4, 2017
This comment has been minimized.
This comment has been minimized.
|
Rebased, minimalized and dropped half of the patch; also now it uses an environment variable. If |
This comment has been minimized.
This comment has been minimized.
|
There's also an unused |
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ Looks good to me, thanks! |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
May 4, 2017
This comment has been minimized.
This comment has been minimized.
|
|
mmatyas commentedApr 13, 2017
After #40733, I've made some hacks to the QEMU client-server tools to allow running the tests on a real device when cross compiling Rust. The address and port of the remote server can be set using an environment variable.
I've made this mainly for local testing purposes, if you're interested in merging this, I'd clean it a bit more (eg. renaming the functions from
qemu-to something else). I'm not asking for CI integration or adding ARM boards to the build system; it's just that I used these modifications and I was wondering if you'd find them useful too.