-
Notifications
You must be signed in to change notification settings - Fork 191
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
Support installing and running tests on a target #1399
Comments
@LeBlue Many of the tests require root access or specific kernel features to be enabled and are meant to be run in our qemu environment, but that should not prevent allowing those that do not have such strong restrictions. |
[Pressed Send accidentially] 😏
I'd be interested. I guess having ptest support is at least good to align with other oe-integrated packages.
If there are missing bits, I'd be happy to have them in the general test suite, yes. I am also working on migrating the sharness-based tests (rauc.t) to pytest currently, thus I would be really interested if there are things I should pick up.
I could support with this, probably best in the context of meta-rauc repo then. |
@ejoerns I have added a PR for the basic install changes. I am still working moving the recipe appends into
I am aware the the
For running the tests on a target, this is not a pleasant change, because now the runtime dependency of pytest is added. In addtition, the "ptest" API implementation is relativlely simple for the |
Thank you! I've added my comments there.
Yes. It is inconsistent at the moment. Maybe this is something worth adding no matter if we support target tests or not.
Maybe add a link to your corresponding commit here for reference. Not sure if the pytest tests are useful on the target anyway 😏 |
The sharness tests (soon pytest) are usefull. e.g. I just added the necessary options for encryption into the |
But that should have been revealed by the dm unit-test, too, doesn't it?
The other thing is, if you really don't intend to use encryption. Then this is a false positive somehow. |
Indeed it also failed.
A problem I also thought about already. One would need to be able to explicitly disable this test. This also applies to the |
Is your feature request related to a problem?
I have been working on running the rauc unit-tests on a target system through the yocto ptest framework. To get it to work, i have patched the rauc (test) build process a bit.
If there is general interest in these changes, I can submit the related PRs.
Describe the solution you'd like
To support the on-target tests/ptest, the rauc build could support installing all unit-test programs and assets.
Additional changes i had to make/want to make:
Describe alternatives you've considered
Most (all?) of the changes could be done in the yocto recipe, but:
Additional context
For the yocto bits, i can only provide and test the changes on the 'kirkstone' branch. I would need some help with that.
In addition I have serveral features disabled, namely casync, networking, streaming. Therfore I cannot really verify the tests will run successfully on the target.
The text was updated successfully, but these errors were encountered: