Bug 4045 - sstate-cache-management.sh test case needs update
Summary: sstate-cache-management.sh test case needs update
Status: VERIFIED FIXED
Alias: None
Product: Test Plans/Suite
Classification: QA/Testing
Component: test-plans/suite (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M1
Assignee: Stoicescu Cornel
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-03-18 14:36 UTC by Stoicescu Cornel
Modified: 2013-08-06 09:28 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stoicescu Cornel 2013-03-18 14:36:59 UTC
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?
Comment 1 Hongxu Jia 2013-08-02 06:13:40 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
Comment 2 Stoicescu Cornel 2013-08-06 09:27:07 UTC
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
Comment 3 Stoicescu Cornel 2013-08-06 09:28:38 UTC
Setting to Verified. Thank you Hongxu for the test case!