| Summary: | Refactor packaging sanity tests from package.bbclass to insane.bbclass | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Richard Purdie <richard.purdie> |
| Component: | core | Assignee: | Robert Yang <liezhi.yang> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium+ | CC: | liezhi.yang, meta.mr.watcher, meta.watcher, mihai.lindner, richard.purdie, sen.zhang, sgw, yi.zhao, zhenfeng.zhao |
| Version: | 1.4 | ||
| Target Milestone: | 1.5 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| See Also: |
https://bugzilla.yoctoproject.org/show_bug.cgi?id=3307 https://bugzilla.yoctoproject.org/show_bug.cgi?id=4396 |
||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
| Bug Depends on: | |||
| Bug Blocks: | 4647 | ||
|
Description
Richard Purdie
2012-09-27 22:58:55 UTC
Postpone to 1.5 Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=43713b9e17707992569d807cdd61aaaf969ec6fc http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b4371dd0e41713979b59875fff8d8724761b69d1 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=829d6bf005882137aeea397fa1896285a17bee72 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5a0f74ac0418e219c6127e7906fd550a15809920 . Test case:
Steps:
1. Add the following lines to a .bb file. For expample, gzip_1.6.bb:
PACKAGES += "${PN}-dbg"
2. Run "bitbake gzip"
3. Modify the meta-yocto/conf/distro/poky.conf. Move the "packages-list" from ERROR_QA to WARN_QA. Run "bitbake gzip" again.
Expected results:
In step 2, the build should failed and show the following error:
########################
ERROR: QA Issue: gzip-dbg is listed in PACKAGES multiple times, this leads to packaging errors.
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /buildarea1/yzhao1/poky/build-test/tmp/work/i586-poky-linux/gzip/1.6-r0/temp/log.do_package.28207
ERROR: Task 10 (/buildarea1/yzhao1/poky/meta/recipes-extended/gzip/gzip_1.6.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 734 tasks of which 733 didn't need to be rerun and 1 failed.
No currently running tasks (498 of 738)
Summary: 1 task failed:
/buildarea1/yzhao1/poky/meta/recipes-extended/gzip/gzip_1.6.bb, do_package
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
##########################
Check the return value of the command,should be 1.
echo $?
1
In step 3, the build can finish but will show a warning message:
####################
WARNING: QA Issue: gzip-dbg is listed in PACKAGES multiple times, this leads to packaging errors.
NOTE: Tasks Summary: Attempted 738 tasks of which 577 didn't need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.
####################
Check the return value of the command,should be 0.
echo $?
0
|