| Summary: | sstate-cache-management.sh test case needs update | ||
|---|---|---|---|
| Product: | [QA/Testing] Test Plans/Suite | Reporter: | Stoicescu Cornel <corneliux.stoicescu> |
| Component: | test-plans/suite | Assignee: | Stoicescu Cornel <corneliux.stoicescu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | corneliux.stoicescu, hongxu.jia, liezhi.yang, sgw, yi.zhao |
| Version: | 1.4 | ||
| Target Milestone: | 1.5 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Stoicescu Cornel
2013-03-18 14:36:59 UTC
Here is a test case about '--remove-duplicated' option 1. Download poky source and prepare the build environment. 2. Follow the wiki steps to setup a sstate cache on local machine, https://wiki.yoctoproject.org/wiki/Enable_sstate_cache 3. Set MACHINE to qemumips, and run "bitbake busybox" to build a busybox. 4. Modify busybox's recipe to upgrade its PR and run "bitbake busybox". 5. Check busybox's sstate cache file, there are duplicated sstate files. ... find sstate-cache -name "*busybox*package.tgz*" sstate-cache/b8/sstate-busybox-mips32-poky-linux-1.21.1-r0-mips32-3-b8671ee7031a0d91180034ddfaf8046a_package.tgz.siginfo sstate-cache/b8/sstate-busybox-mips32-poky-linux-1.21.1-r0-mips32-3-b8671ee7031a0d91180034ddfaf8046a_package.tgz sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz.siginfo ... 6. Invoke script "sstate-cache-management.sh --cache-dir=sstate-cache --remove-duplicated". 7. Check busybox's sstate cache file, the duplicated sstate files has been removed. ... find sstate-cache -name "*busybox*package.tgz*" sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz.siginfo ... 8. Set MACHINE to qemuarm and run "bitbake busybox" to build a busybox. 9. Check busybox's sstate cache file, there are sstate files with multiple archs. ... find sstate-cache -name "*busybox*package.tgz*" sstate-cache/d1/sstate-busybox-armv5te-poky-linux-gnueabi-1.21.1-r1-armv5te-3-d1ad97462fcebc2e2b37f6b140953b46_package.tgz.siginfo sstate-cache/d1/sstate-busybox-armv5te-poky-linux-gnueabi-1.21.1-r1-armv5te-3-d1ad97462fcebc2e2b37f6b140953b46_package.tgz sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz.siginfo ... 10. Invoke "sstate-cache-management.sh --cache-dir=sstate-cache --remove-duplicated" 11. Check busybox's sstate cache file, the sstate files with multiple archs are still there and not removed. ... find sstate-cache -name "*busybox*package.tgz*" sstate-cache/d1/sstate-busybox-armv5te-poky-linux-gnueabi-1.21.1-r1-armv5te-3-d1ad97462fcebc2e2b37f6b140953b46_package.tgz.siginfo sstate-cache/d1/sstate-busybox-armv5te-poky-linux-gnueabi-1.21.1-r1-armv5te-3-d1ad97462fcebc2e2b37f6b140953b46_package.tgz sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz sstate-cache/f1/sstate-busybox-mips32-poky-linux-1.21.1-r1-mips32-3-f18b0cdcdb925d59861502c7b7efa60b_package.tgz.siginfo ... //Hongxu New test case created and replaced the old one in the Full Pass Test Run. https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=783 Setting to Verified. Thank you Hongxu for the test case! |