Run rt specific test in "core-image-rt" #patch #yocto #qemu #dunfell #linux
Hello All,
I have made a preempt-rt image with "core-image-rt" by including the following line in local.conf file.
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt" IMAGE_CLASSES += "testimage testsdk" EXTRA_IMAGE_FEATURES = ptest-pkgs debug-tweaks"
and the bake my recipe with following command.
*bitbake core-image-rt*
I got my image successfully ready. Now I want to do testing of this image so I run the following command .
*bitbake core-image-rt -c testimage*
So i am seeing my all tests are skipped ( attached ). Kindly make me clear on following points .
1. Why my all tests are skipped?
2. How can I run the rt-specific test in my image? Except cyclictest any test, i need to run for this particular image ?
3. Would I need to run every test individually through bitbake or any other specific command so my p-test would run?
3. How can I generate the test report?
Any replies would be helpful for me. Thanks in advance
It helps if you show log.do_rootfs for the image, so it's possible to inspect what actually got installed into it.
Alex
Quoted 37 lines · Nikita Gupta
Hello All,
I have made a preempt-rt image with "core-image-rt" by including the following line in local.conf file.
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
IMAGE_CLASSES+= "testimage testsdk"EXTRA_IMAGE_FEATURES= ptest-pkgs debug-tweaks"and the bake my recipe with following command.
bitbake core-image-rt
I got my image successfully ready. Now I want to do testing of this image so I run the following command .
bitbake core-image-rt -c testimage
So i am seeing my all tests are skipped ( attached ). Kindly make me clear on following points .
1. Why my all tests are skipped?
2. How can I run the rt-specific test in my image? Except cyclictest any test, i need to run for this particular image ?
3. Would I need to run every test individually through bitbake or any other specific command so my p-test would run?
3. How can I generate the test report?Any replies would be helpful for me. Thanks in advance
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58246): https://lists.yoctoproject.org/g/yocto/message/58246
Mute This Topic: https://lists.yoctoproject.org/mt/94066549/1686489
Mute #patch:https://lists.yoctoproject.org/g/yocto/mutehashtag/patch Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Mute #qemu:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemu Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Mute #linux:https://lists.yoctoproject.org/g/yocto/mutehashtag/linux Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hello Alexander,
Please find log.do_rootfs file for the image.
The log file seems truncated?
To enable the standard rt test, use
TEST_SUITES:append = ' rt'
as seen in https://git.yoctoproject.org/yocto-autobuilder-helper/tree/config.json#n1138
and build core-image-full-cmdline. core-image-rt is not well tested unfortunately.
Alex
Quoted 17 lines · Nikita Gupta
Hello Alexander,
Please find log.do_rootfs file for the image.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58250): https://lists.yoctoproject.org/g/yocto/message/58250
Mute This Topic: https://lists.yoctoproject.org/mt/94066549/1686489
Mute #patch:https://lists.yoctoproject.org/g/yocto/mutehashtag/patch Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Mute #qemu:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemu Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Mute #linux:https://lists.yoctoproject.org/g/yocto/mutehashtag/linux Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hello Alexander
But core-image-full-cmdline is not going to give real time exposure, isn't it? The requirement is to make real time image so core-image-full-cmdline will satisfy the requirement?
And would i need to run test of rt-suit one-by one or there is something so i can run in one go? Can you refer me some documents in which I get all these information as I didn't find all these info in one document.
As I am new in this thing please guide me . Your guidance is highly appreciated.
Quoted 36 lines · On Tue, Oct 4, 2022, 18:31 Alexander Kanavin <[email protected]> wrote:
The log file seems truncated?
To enable the standard rt test, use
TEST_SUITES:append = ' rt'
as seen in
https://git.yoctoproject.org/yocto-autobuilder-helper/tree/config.json#n1138and build core-image-full-cmdline. core-image-rt is not well tested unfortunately.
Alex
Quoted 7 lines · Nikita Gupta
Hello Alexander,
Please find log.do_rootfs file for the image.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#58250):https://lists.yoctoproject.org/g/yocto/message/58250
Quoted 8 lines
Mute This Topic: https://lists.yoctoproject.org/mt/94066549/1686489
Mute #patch:https://lists.yoctoproject.org/g/yocto/mutehashtag/patch Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Mute #qemu:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemu Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Mute #linux:https://lists.yoctoproject.org/g/yocto/mutehashtag/linux Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
You can simply open the recipe file for core-image-rt (in poky/meta) to see what it does. The realtime-ness (of any image) is set by setting PREFERRED_PROVIDER_virtual/kernel to the realtime flavour, which you already did, and so core-image-full-cmdline will be just as realtime as this one.
We do not have a lot of automated testing for the realtime behaviour, as it is difficult to control in a qemu based virtual environment. There's basically just poky/meta/lib/oeqa/runtime/cases/rt.py
If you want to check timings, etc. you will have to most likely put the image on real hardware, and experiment with running tests and utilities from command line. Then you can think of how to automate them.
It would help if you describe your overall goal.
Alex
Quoted 44 lines · Nikita Gupta
Hello Alexander
But core-image-full-cmdline is not going to give real time exposure, isn't it? The requirement is to make real time image so core-image-full-cmdline will satisfy the requirement?
And would i need to run test of rt-suit one-by one or there is something so i can run in one go? Can you refer me some documents in which I get all these information as I didn't find all these info in one document.
As I am new in this thing please guide me . Your guidance is highly appreciated.
Quoted 32 lines · On Tue, Oct 4, 2022, 18:31 Alexander Kanavin <[email protected]> wrote:
The log file seems truncated?
To enable the standard rt test, use
TEST_SUITES:append = ' rt'
as seen in https://git.yoctoproject.org/yocto-autobuilder-helper/tree/config.json#n1138
and build core-image-full-cmdline. core-image-rt is not well tested unfortunately.
Alex
Quoted 17 lines · Nikita Gupta
Hello Alexander,
Please find log.do_rootfs file for the image.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58250): https://lists.yoctoproject.org/g/yocto/message/58250
Mute This Topic: https://lists.yoctoproject.org/mt/94066549/1686489
Mute #patch:https://lists.yoctoproject.org/g/yocto/mutehashtag/patch Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Mute #qemu:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemu Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Mute #linux:https://lists.yoctoproject.org/g/yocto/mutehashtag/linux Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Thanks Alexander,
For guiding me in the right way. I did the same and was able to do testing my image previously all of those tests were skipping but now some of them are passing and some of the status are unknown and skipped and i am trying to figure out the reason of the "unknown" status. Hope so sooner I will get the reason and solution as well.
Thanks for helping me.