Bug 3922 - Add sanity checks for Build appliance
Summary: Add sanity checks for Build appliance
Status: VERIFIED OBSOLETE
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: Future
Assignee: Lucian Musat
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-02-21 17:55 UTC by Stefan Stanacar
Modified: 2015-05-13 13:50 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Stanacar 2013-02-21 17:55:42 UTC
Currently Autobuilder doesn't run sanity checks for the Build Appliance image.
A sanity check that at least Hob runs would be desirable (ps | grep hob should suffice). That implies that the BA boots and has a network connection (which right know it's broken).
Comment 1 Paul Eggleton 2013-04-29 14:49:58 UTC
I'm guessing this would amount to automating test cases 323 (check that hob can be launched) and 340 (try building core-image-minimal within the build appliance).
Comment 2 Stefan Stanacar 2013-05-08 14:12:40 UTC
Yes, it's exactly 323 + all the other sanity checks than run for a normal image.
340 - building core-image-minimal might be a stretch - I'm not sure how we could trigger a Hob build from qemuimagetests, not to say it will take forever.(and it's a separate bug/enhacement anyway).
Comment 3 Alexandru Georgescu 2013-09-19 13:49:22 UTC
Moving to 1.6 since we don't have the infrastructure which will support this.
Comment 4 Alexandru Palalau 2013-10-30 09:55:12 UTC
Well, the TC323 is quite simple, as Stefan already mentioned.
The tricky part is to start the build in Build Appliance from HOB.
Maybe this could be done with Dogtail, meaning that a Dogtail recipe should be made available and the script that triggers the qemu-image-minimal build via HOB will be copied in Build Appliance image.
The even trickier part is to start the qemu image that results from HOB and check the success of this action.

So the plan is that:
1. Create test to check HOB launched successfully in Build Appliance image
2. Create Dogtail recipe and include it in Build Appliance image
3. Include Dogtail script in Build Appliance and run Dogtail in order to create core-image-minimal
4. Start the core-image-minimal and make sanity checks on it

I don't know if this is going to work well with AB as the test will take too much time...
Comment 5 Alexandru Georgescu 2015-05-04 12:55:13 UTC
HOB will be deprecated, therefore testing HOB in BA won't be the case anynmore.
Comment 6 Alexandru Georgescu 2015-05-04 12:55:21 UTC
.