Bug 9369 - Extensible SDK: oe-selftest test does not test that update actually works
Summary: Extensible SDK: oe-selftest test does not test that update actually works
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.3 M2
Assignee: Jair Gonzalez
QA Contact: Jair Gonzalez
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-01 03:18 UTC by Paul Eggleton
Modified: 2017-04-28 19:03 UTC (History)
7 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 2016-04-01 03:18:41 UTC
We have a test in meta/lib/oeqa/sdkext/sdk_update.py that tests that sdk-update doesn't outright fail, but it does not verify if the update process actually works i.e. that it's capable of updating an installed SDK when a new one gets published. We need to have this tested so it doesn't regress.
Comment 1 Stephano Cetola 2016-11-14 23:49:47 UTC
This is currently written as an image test but may be simpler as a selftest. The workflow should look something like this:

bitbake -c populate-sdk-ext [some-image]
run ${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh
oe-publish-sdk [esdk] [path-to-http]
IMAGE_INSTALL_appends += [some-lib]
bitbake -c populate-sdk-ext [some-image]
devtool sdk-update

The key is to check that some files have actually be downloaded from the newly appended and published eSDK. The sysroot of that eSDK should contain the updated files.
Comment 2 Francisco Pedraza 2017-01-06 22:57:53 UTC
I will work on this.
Comment 3 Francisco Pedraza 2017-01-06 22:58:54 UTC
Adding the test case on "oe-selftest" at /meta/lib/oeqa/selftest/eSDK.py and working with the "perl" recipe over local.conf
Comment 4 Francisco Pedraza 2017-01-14 01:30:45 UTC
commited to Contrib [1] and running on local AB.
[1] - http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fjpedraz/eSDK_update
Comment 5 Francisco Pedraza 2017-01-18 02:23:02 UTC
(In reply to comment #4)
> commited to Contrib [1] and running on local AB.
> [1] -
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fjpedraz/
> eSDK_update

Added an update on contrib due an issue with rebase on master: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fjpedraz/eSDK_sdk_update&id=e245d0e49598ac05cc14f752eb9fcfb6fefc1375
Comment 6 Francisco Pedraza 2017-01-18 02:23:56 UTC
Patch sent to OpenEmbedded core lists: http://lists.openembedded.org/pipermail/openembedded-core/2017-January/131234.html
Waiting for review.
Comment 8 Francisco Pedraza 2017-01-23 23:07:42 UTC
Assigning to Jair in order to verify this.