Bug 12485 - ptest: ptest-runner return perl5 ptest isn't available while it was available (2.5 M1 rc3)
Summary: ptest: ptest-runner return perl5 ptest isn't available while it was available...
Status: RESOLVED NOTABUG
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Jose Perez C
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-01-16 03:17 UTC by yeoh ee peng
Modified: 2018-01-16 05:31 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeoh ee peng 2018-01-16 03:17:47 UTC
2.5 M1 rc3
While running ptest-runner perl5, it return below message.
perl5 ptest isn'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
...
Comment 1 Anuj Mittal 2018-01-16 04:15:07 UTC
Can you try ptest-runner perl? I think test name is perl.
Comment 2 yeoh ee peng 2018-01-16 04:57:03 UTC
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
Comment 3 yeoh ee peng 2018-01-16 05:31:25 UTC
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 -> 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