The following test case needs updating: https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=299 As per bug 3635 the functionality of --remove-duplicated was changed and thus the test case is obsolete. The following actions are required: 1)a new test case must be created withing the meta-yocto master branch test plan with correct Action/Expected Result; 2)the new test case must be introduced in the appropriate Test Run Templates in Testopia; 3)the old test case must be removed from the master test run TEMPLATES. Hongxu, can you please help us with a valid test case for the feature?
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!