Bug 9145

Summary: Write oe-selftest for bbappend order
Product: [QA/Testing] Build Testing Reporter: Daniel Istrate <daniel.alexandrux.istrate>
Component: generalAssignee: Daniel Istrate <daniel.alexandrux.istrate>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, ross.burton, sgw
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: Don't know

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"