<?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>9706</bug_id>
          
          <creation_ts>2016-06-03 17:25:20 +0000</creation_ts>
          <short_desc>Systemd-boot: Create test harness in OE</short_desc>
          <delta_ts>2016-08-17 13:50:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-oe-core</component>
          <version>2.0</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>enhancement</bug_severity>
          <target_milestone>2.2 M2</target_milestone>
          
          <blocked>9903</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jianxun Zhang">jianxun.zhang</reporter>
          <assigned_to name="Jose Perez C">jose.perez.carranza</assigned_to>
          <cc>ross.burton</cc>
          
          <qa_contact name="David Rodriguez">david.israelx.rodriguez.castellanos</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62633</commentid>
    <comment_count>0</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-06-03 17:25:20 +0000</bug_when>
    <thetext>The new bootloader systemd-boot has been in poky master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c71f5ab37416629793b9f826480d440d67531791

Now we should create a new test script in OE like what we did for the existing gummiboot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62634</commentid>
    <comment_count>1</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-06-03 17:26:35 +0000</bug_when>
    <thetext>The work will involve creating new test cases in testpidia and actual python script in OE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62865</commentid>
    <comment_count>2</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-06-09 17:29:41 +0000</bug_when>
    <thetext>I will create equivalent test cases for systemd-boot based on these existing gummiboot cases:

https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1101
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1103</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62868</commentid>
    <comment_count>3</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-06-09 18:11:38 +0000</bug_when>
    <thetext>I don&apos;t have sufficient permission to create test cases in testopia when I tried to add fist test case so I dump information here:

Summary:
systemd-boot: Check if EFI bootloader can be built in poky

Action:
Clone poky
Source environment
Set EFI_PROVIDER = &quot;systemd-boot&quot; and MACHINE = &quot;genericx86-64&quot; in conf/local.conf
Run &quot;bitbake mtools-native core-image-minimal&quot;
Try to use mtool to copy EFI/BOOT/bootx64.efi from hddimg, fail if not successfull
diff copied bootx64.efi against systemd-bootx64.efi in build directory of systemd-boot, fail if two images are not identical.
Pass

Expected Result:
systemd-bootx64.efi can be built successfully.
system-bootx64.efi can be deployed as bootx64.efi in correct location on EFI partition in hddimg file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62886</commentid>
    <comment_count>4</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-06-10 01:28:25 +0000</bug_when>
    <thetext>The second test case is for wic similarly as gummiboot:
 - After the image is built, run command: wic create mkgummidisk -e core-image-minimal&quot;

Note we could have a new &quot;mksdbootdisk&quot; option to replace &quot;mkgummidisk&quot;. This requires another functional patch in OE.

Please QA team create the first test case in my previous comments and then contact me for the 2nd new test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63002</commentid>
    <comment_count>5</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-06-15 13:49:57 +0000</bug_when>
    <thetext>I created Test Case on Testopia, please review it and as soon as I get the approval I&apos;ll work on the automated test case.

 https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1445</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63641</commentid>
    <comment_count>6</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-07-04 21:33:16 +0000</bug_when>
    <thetext>Patch sent for review :

https://lists.yoctoproject.org/pipermail/poky/2016-July/thread.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63642</commentid>
    <comment_count>7</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-07-04 21:34:13 +0000</bug_when>
    <thetext>link corrected form Comment 6

https://lists.yoctoproject.org/pipermail/poky/2016-July/010614.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63644</commentid>
    <comment_count>8</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-07-05 04:58:43 +0000</bug_when>
    <thetext>Jose,
I just noticed patch should be implemented as the new test case, but the steps in test case are not the same thing I depicted in this ticket. I think the original gummiboot TC actually doesn&apos;t verify the final output in image. That&apos;s why we should improve it a a new way.

Could you go over what I outlined in my previous comments?

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63792</commentid>
    <comment_count>9</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-07-11 13:58:32 +0000</bug_when>
    <thetext>After a talk with the reporter Jianxun Zhang, the main objective of create test harness is already coverd by this patch [1], Bug 9903 opened has enhancement to add more test cases to the harness starting with the one mentioned on Comment 3. 


1 - https://lists.yoctoproject.org/pipermail/poky/2016-July/010614.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64499</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-26 16:34:24 +0000</bug_when>
    <thetext>Merged in oe-core 3f859816aef3c3dba35cfbea15f0c56483205544.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65261</commentid>
    <comment_count>11</comment_count>
    <who name="David Rodriguez">david.israelx.rodriguez.castellanos</who>
    <bug_when>2016-08-17 13:50:28 +0000</bug_when>
    <thetext>Verified on Master, using TC in comment 5 and &quot;test_efi_systemdboot_images_can_be_built&quot; method. Systemd-boot images can be built correctly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>