Bug 9145 - Write oe-selftest for bbappend order
Summary: Write oe-selftest for bbappend order
Status: VERIFIED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1 M4
Assignee: Daniel Istrate
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-19 09:07 UTC by Daniel Istrate
Modified: 2016-05-11 12:47 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Istrate 2016-02-19 09:07:19 UTC
Write an oe-selftest for bug 9138.

Steps:
1. Create multiple bbappend files for a recipe and append to SUMMARY in each of them:
[/poky/meta-selftest/recipes-test]$ cat ed4/ed_1.9.bbappend 
SUMMARY += "4"
[/poky/meta-selftest/recipes-test]$ cat ed3/ed_1.9.bbappend 
SUMMARY += "3"
[/poky/meta-selftest/recipes-test]$ cat ed2/ed_1.9.bbappend 
SUMMARY += "2"
[/poky/meta-selftest/recipes-test]$ cat ed1/ed_1.9.bbappend 
SUMMARY += "1"
[/poky/meta-selftest/recipes-test]$ cat ed0/ed_1.9.bbappend 
SUMMARY += "0"

2. Based on BBFILES check the expected bbappend order:
$ ls poky/meta-selftest/recipes-*/*/*.bbappend
poky/meta-selftest/recipes-test/ed0/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed1/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed2/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed3/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed4/ed_1.9.bbappend

So the order is 0, 1, 2, 3, 4

3. Get the SUMMARY for the recipe:
bitbake -e ed | grep ^SUMMARY=

Expected results:
SUMMARY="Line-oriented text editor 0 1 2 3 4
Comment 2 Ross Burton 2016-04-14 20:02:20 UTC
Fixed in oe-core 51bef86ce52fdc2455cd1879e3e19d5ccc5c1c9c.
Comment 4 Bogdan Alexandru Voiculescu 2016-05-11 12:47:42 UTC
Added meta-selftest in bblayers.conf on master 7ca60ec8bff7656b4e52f5a4d238913e851da089
Run bitbake -e ed | grep ^SUMMARY=
SUMMARY="Line-oriented text editor 0 1 2 3 4"