<?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>12485</bug_id>
          
          <creation_ts>2018-01-16 03:17:47 +0000</creation_ts>
          <short_desc>ptest: ptest-runner return perl5 ptest isn&apos;t available while it was available (2.5 M1 rc3)</short_desc>
          <delta_ts>2018-01-16 05:31:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="yeoh ee peng">ee.peng.yeoh</reporter>
          <assigned_to name="Jose Perez C">jose.perez.carranza</assigned_to>
          <cc>anuj.mittal</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>79082</commentid>
    <comment_count>0</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-01-16 03:17:47 +0000</bug_when>
    <thetext>2.5 M1 rc3
While running ptest-runner perl5, it return below message.
perl5 ptest isn&apos;t available

Debugging
Manually execute run-ptest for perl5, test was able to run. 
root@genericx86-64:/usr/lib/perl5/ptest# ./run-ptest
PASS: t/base/cond
PASS: t/base/if
PASS: t/base/lex
PASS: t/base/num
PASS: t/base/pat
PASS: t/base/rs
PASS: t/base/term
PASS: t/base/translate
PASS: t/base/while
PASS: t/comp/bproto
PASS: t/comp/cmdopt
PASS: t/comp/colon
PASS: t/comp/decl
PASS: t/comp/final_line_num
PASS: t/comp/fold
PASS: t/comp/form_scope
PASS: t/comp/hints
PASS: t/comp/line_debug
PASS: t/comp/multiline
PASS: t/comp/opsubs
PASS: t/comp/our
PASS: t/comp/package
PASS: t/comp/package_block
PASS: t/comp/parser
PASS: t/comp/proto
PASS: t/comp/redef
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79083</commentid>
    <comment_count>1</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-01-16 04:15:07 +0000</bug_when>
    <thetext>Can you try ptest-runner perl? I think test name is perl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79084</commentid>
    <comment_count>2</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-01-16 04:57:03 +0000</bug_when>
    <thetext>ptest for perl is running without any issue. 
root@genericx86-64:/usr/lib/perl5/ptest# ptest-runner perl
START: ptest-runner
2018-01-16T04:56
BEGIN: /usr/lib/perl/ptest
PASS: t/base/cond
PASS: t/base/if
PASS: t/base/lex
PASS: t/base/num
PASS: t/base/pat
PASS: t/base/rs
PASS: t/base/term
PASS: t/base/translate
PASS: t/base/while
PASS: t/comp/bproto
PASS: t/comp/cmdopt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79085</commentid>
    <comment_count>3</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-01-16 05:31:25 +0000</bug_when>
    <thetext>As pointed out by Anuj, this is not a bug but rather an enhancement in ptest to recognize that perl5 is the same as perl (eg. perl5 -&gt; perl) where ptest will ignore perl5 and thus ptest was only running for perl. Will close this ticket. 

root@genericx86-64:/usr/lib# ptest-runner -l
Available ptests:
acl     /usr/lib/acl/ptest/run-ptest
attr    /usr/lib/attr/ptest/run-ptest
bash    /usr/lib/bash/ptest/run-ptest
bluez5  /usr/lib/bluez5/ptest/run-ptest
busybox /usr/lib/busybox/ptest/run-ptest
bzip2   /usr/lib/bzip2/ptest/run-ptest
dbus-test       /usr/lib/dbus-test/ptest/run-ptest
diffstat        /usr/lib/diffstat/ptest/run-ptest
diffutils       /usr/lib/diffutils/ptest/run-ptest
e2fsprogs       /usr/lib/e2fsprogs/ptest/run-ptest
flex    /usr/lib/flex/ptest/run-ptest
gawk    /usr/lib/gawk/ptest/run-ptest
gdbm    /usr/lib/gdbm/ptest/run-ptest
gdk-pixbuf      /usr/lib/gdk-pixbuf/ptest/run-ptest
glib-2.0        /usr/lib/glib-2.0/ptest/run-ptest
gzip    /usr/lib/gzip/ptest/run-ptest
kbd     /usr/lib/kbd/ptest/run-ptest
libpcre /usr/lib/libpcre/ptest/run-ptest
libxml2 /usr/lib/libxml2/ptest/run-ptest
lttng-tools     /usr/lib/lttng-tools/ptest/run-ptest
nettle  /usr/lib/nettle/ptest/run-ptest
openssh /usr/lib/openssh/ptest/run-ptest
openssl /usr/lib/openssl/ptest/run-ptest
pango   /usr/lib/pango/ptest/run-ptest
perl    /usr/lib/perl/ptest/run-ptest
python  /usr/lib/python/ptest/run-ptest
quilt   /usr/lib/quilt/ptest/run-ptest
slang   /usr/lib/slang/ptest/run-ptest
strace  /usr/lib/strace/ptest/run-ptest
tcl     /usr/lib/tcl/ptest/run-ptest
util-linux      /usr/lib/util-linux/ptest/run-ptest
valgrind        /usr/lib/valgrind/ptest/run-ptest
zlib    /usr/lib/zlib/ptest/run-ptest</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>