Bug 7202 - Test for linux-dummy
Summary: Test for linux-dummy
Status: RESOLVED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium enhancement
Target Milestone: 2.3
Assignee: Jose Perez C
QA Contact: David Rodriguez
URL:
Whiteboard:
Depends on: 7884
Blocks:
  Show dependency tree
 
Reported: 2015-01-20 15:10 UTC by Paul Eggleton
Modified: 2016-11-03 18:15 UTC (History)
3 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 Paul Eggleton 2015-01-20 15:10:18 UTC
The linux-dummy recipe is used when you're building your own kernel outside of the build system. We often forget to update linux-dummy recipe when we make changes to how the kernel is built, so we should add a test to ensure it continues to function as a replacement at build time for the kernel.
Comment 1 Alexandru Georgescu 2015-03-31 05:42:02 UTC
Setting up for 1.9
Comment 2 Alexandru Georgescu 2015-04-09 14:49:21 UTC
Assigning this to Costin. Not sure if we can do this with oe-selftest
Comment 3 Alexandru Georgescu 2015-04-09 14:50:03 UTC
Assigning this to Costin. Not sure if we can do this with oe-selftest
Comment 4 Costin 2015-05-21 11:38:22 UTC
I'll just have a look. In essence (i guess) all there is to add is a test to build the linux-dummy and check the exit code of bitbake.

Costin
Comment 5 Paul Eggleton 2015-05-21 12:24:16 UTC
Well, we need to do a bit more than that - you'd need to actually set PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" and then build an image e.g. core-image-minimal. You'd then need to check that linux-dummy did actually get built, and that there were no "multiple providers are available for" messages printed.
Comment 6 Costin 2015-06-11 13:36:21 UTC
Hi Paul,

I tried your recommendations and the image didn't build. I think there is an issue and will open a separate bug. 

Costin
Comment 7 Alexandru Georgescu 2015-06-22 12:07:39 UTC
Costin, can you paste the bug no here?
Comment 8 Alexandru Georgescu 2015-06-22 12:08:25 UTC
(In reply to comment #7)
> Costin, can you paste the bug no here?

bug 7884
Comment 9 Alexandru Georgescu 2015-06-22 12:09:55 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Costin, can you paste the bug no here?
> 
> bug 7884
Updating the bug milestone which depends on bug 7884 (no milestone set)
Comment 10 Costin 2015-06-30 12:26:42 UTC
Hello,

After following the indications of 7884, the image built successfully. 
Still messages like:
"NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for runtime kernel-base (linux-yocto, linux-yocto-tiny, linux-yocto-rt)
NOTE: consider defining a PREFERRED_PROVIDER entry to match kernel-base"

are present during build time. I checked however if linux-dummy is built and found under /build/tmp/deploy/rpm$ ls
./i586/linux-dummy-dbg-1.0-r1.i586.rpm
./i586/linux-dummy-dev-1.0-r1.i586.rpm

I can see some "activity" under 
build/tmp/work/i586-poky-linux/linux-dummy/1.0-r1$ ls
COPYING.GPL  deploy-rpms  image  license-destdir  linux-dummy.spec  package  packages-split  pkgdata  pseudo  sysroot-destdir  temp
alongside all related tasks log under 
build/tmp/work/i586-poky-linux/linux-dummy/1.0-r1/temp 

so i guess it did built.

Thank you,
Costin
Comment 11 Costin 2015-06-30 14:13:11 UTC
Hi,

Auto test case implemented. Will submit it shortly.

Costin
Comment 12 Ross Burton 2015-10-08 15:47:35 UTC
Costin, did you submit this?  I can't see it in oe-core or on the list.
Comment 13 Alexandru Georgescu 2016-02-04 13:11:49 UTC
It won't make M2
Comment 14 Costin 2016-02-21 17:15:35 UTC
patch sent for review.
Comment 15 Costin 2016-02-21 17:55:11 UTC
... forgot to add patch location:
http://lists.openembedded.org/pipermail/openembedded-core/2016-February/117819.html
Comment 16 Jose Perez C 2016-10-26 20:15:08 UTC
the version 2 of the patch is here 

http://lists.openembedded.org/pipermail/openembedded-core/2016-February/118260.html