Bug 4555 - Test case for smart recommends support is not effective
Summary: Test case for smart recommends support is not effective
Status: RESOLVED FIXED
Alias: None
Product: Test Plans/Suite
Classification: QA/Testing
Component: test-plans/suite (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium+ normal
Target Milestone: 1.5
Assignee: Stoicescu Cornel
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-24 16:28 UTC by Paul Eggleton
Modified: 2013-06-20 14:33 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2013-05-24 16:28:12 UTC
Test case 755 "check if smart supports hinting for RRECOMMENDS" is not effective; pn-buildlist is determined without the involvement of smart. If you want to test this properly you need to build an image with PACKAGE_CLASSES = "rootfs_rpm" (the default) and check that the recommended package has been installed. This could be done using buildhistory i.e. looking to see that the package is listed in depends.dot with style=dotted (indicating it's a recommend relationship).
Comment 1 Stoicescu Cornel 2013-06-05 13:47:45 UTC
Could we use bitbake-whatchanged for this in stead? I believe it will be faster as there is no need for a rebuild.
Comment 2 Paul Eggleton 2013-06-05 13:53:45 UTC
No, that won't help either. You need to be testing something where smart is actually getting run. The test must either look at the contents of an rpm-based image on the host side to ensure it contains a certain package because of a recommends relationship (see my original comment); or alternatively the test could install a package at runtime using smart that has a recommends relationship on another package and check that the other package also gets installed.
Comment 3 Stoicescu Cornel 2013-06-20 14:33:33 UTC
Test case modified. Now run-time testing is required.

https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=755