<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4045</bug_id>
          
          <creation_ts>2013-03-18 14:36:59 +0000</creation_ts>
          <short_desc>sstate-cache-management.sh test case needs update</short_desc>
          <delta_ts>2013-08-06 09:28:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Test Plans/Suite</product>
          <component>test-plans/suite</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Stoicescu Cornel">corneliux.stoicescu</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30800</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-18 14:36:59 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35315</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-08-02 06:13:40 +0000</bug_when>
    <thetext>Here is a test case about &apos;--remove-duplicated&apos; 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 &quot;bitbake busybox&quot; to build a busybox.
4. Modify busybox&apos;s recipe to upgrade its PR and run &quot;bitbake busybox&quot;.
5. Check busybox&apos;s sstate cache file, there are duplicated sstate files.
...
find sstate-cache -name &quot;*busybox*package.tgz*&quot;
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 &quot;sstate-cache-management.sh --cache-dir=sstate-cache
   --remove-duplicated&quot;.
7. Check busybox&apos;s sstate cache file, the duplicated sstate files has
   been removed.
...
find sstate-cache -name &quot;*busybox*package.tgz*&quot;
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 &quot;bitbake busybox&quot; to build a busybox.
9. Check busybox&apos;s sstate cache file, there are sstate files with
   multiple archs.
...
find sstate-cache -name &quot;*busybox*package.tgz*&quot;
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 &quot;sstate-cache-management.sh --cache-dir=sstate-cache
    --remove-duplicated&quot;
11. Check busybox&apos;s sstate cache file, the sstate files with multiple
    archs are still there and not removed.
...
find sstate-cache -name &quot;*busybox*package.tgz*&quot;
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35402</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-08-06 09:27:07 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35404</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-08-06 09:28:38 +0000</bug_when>
    <thetext>Setting to Verified. Thank you Hongxu for the test case!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>