<?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>10840</bug_id>
          
          <creation_ts>2016-12-21 21:50:40 +0000</creation_ts>
          <short_desc>pTest- openssl:  test cases &quot;test_bn&quot; and &quot;test_cms&quot; are failing</short_desc>
          <delta_ts>2017-04-28 17:33:54 +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>OE-Core</product>
          <component>connectivity</component>
          <version>2.3</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>2.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>jku</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <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>69294</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-12-21 21:50:40 +0000</bug_when>
    <thetext>Commit: 573c646d4cc62dcd0c230381df4940bdf314d495 
Image: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.3_M1.rc1/machines/genericx86-64/core-image-sato-sdk-ptest-genericx86-64.hddimg
HW: NUC6 

----- Steps ----

1. Download pTest image from autobuilder( you can find core-image-sato-sdk image in pTest directory)
* we test it on NUC with genericx86-64
2. Install the image on DUT (using legacy boot)
3. Boot the image
4. In command line type
   $ ptest-runner &gt; ptest.log 

EXPECTED RESULT

 All openssl test cases should be PASS 

ACTUAL RESULT 

test cases are failing as below:
FAIL:test_bn
FAIL:test_cms

--- Ouput ----
make[2]: Entering directory &apos;/usr/lib/openssl/ptest/test&apos;
starting big number library test, could take a while...
running bc
make[2]: Leaving directory &apos;/usr/lib/openssl/ptest/test&apos;
FAIL: test_bn
---

make[2]: Entering directory &apos;/usr/lib/openssl/ptest/test&apos;
CMS consistency test
/bin/perl cms-test.pl
make[2]: Leaving directory &apos;/usr/lib/openssl/ptest/test&apos;
FAIL: test_cms


NOTE: full lg can be downloaded from here https://wiki.yoctoproject.org/wiki/images/8/81/Logs_2.3.M1.rc1.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69926</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-01-19 11:03:46 +0000</bug_when>
    <thetext>Postponing to M4, my hands are tied with bug 9675 now. In any case, I&apos;d like to further investigate moving to openssl 1.1 first, by looking at specific packages that currently fail to build against it:
http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130132.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71515</commentid>
    <comment_count>2</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-03-21 13:01:51 +0000</bug_when>
    <thetext>Had a moment while waiting for a build:

Both tests end up trying to execute build host perl (with absolute path). This is because even though test/Makefile sets &quot;PERL = perl&quot;, the top-level makefile runs test/Makefile with &quot;$(MAKE) -e $(BUILDENV)&quot; and BUILDENV includes PERL, overriding the local PERL definition.

Removing PERL from BUILDENV makes the tests pass, but I&apos;m not sure if it would break something during build -- probably not in our case at least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72211</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-04-10 15:39:36 +0000</bug_when>
    <thetext>I ended up patching the Makefile that is installed into ptest directory. This is not particularly important though, as openssl 1.1 will run ptests directly, bypassing the Makefile altogether.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72945</commentid>
    <comment_count>4</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-04-28 17:33:54 +0000</bug_when>
    <thetext>Verified on 2.3 rc2 are working correctly 

https://wiki.yoctoproject.org/wiki/WW17_-_2017-04-21_-_Full_Test_Cycle_2.3_rc2#results</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>