Bug 102090

Summary: [Piglit] Throwing "...does not recognize some tests" error when libraries are missing
Product: piglit Reporter: hecmundo <hector.edmundox.ramirez.gomez>
Component: infrastructureAssignee: Dylan Baker <baker.dylan.c>
Status: RESOLVED NOTOURBUG QA Contact: Piglit Mailing List <piglit>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description hecmundo 2017-08-07 19:48:58 UTC
Description
=================================
Piglit throws the "piglit does not recognize some tests" error when Ubuntu 17.04 has missing libraries: libprocps.so.4.0.0 & libpng12.so.0.54.0. 


Versions
======================================
kernel version              : 4.13.0-rc3-drm-tip-ww31-commit-fcb630a+
os version                  : Ubuntu 17.04
intel-gpu-tools (commit)    : 0fbe9242

How to reproduce
======================================
Boot a fresh Ubuntu 17.04 image. Try to run any testlist. Piglit will throw an error saying it does not recognize some tests on the testlists. 
Add both libraries mentioned above and piglit will run

Expected Behavior
==============================
Piglit should alert about missing libraries

Current Behavior
==============================
Piglit says it does not recognize some tests
Comment 1 Dylan Baker 2017-08-09 18:56:51 UTC
There is some missing information here:

Are you compiling piglit on the Ubuntu image, or trying to run a version from somewhere. If you're not compiling yourself, are you installing from a pacakge like a .deb file, or copying a pre-compiled copy of piglit?

Dylan
Comment 2 hecmundo 2017-08-09 20:28:55 UTC
(In reply to Dylan Baker from comment #1)
> There is some missing information here:
> 
> Are you compiling piglit on the Ubuntu image, or trying to run a version
> from somewhere. If you're not compiling yourself, are you installing from a
> pacakge like a .deb file, or copying a pre-compiled copy of piglit?
> 
> Dylan

None of them. It is not necessary to compile piglit when using igt. This is what I mean:

$ : pwd
/home/gfx/intel-graphics/intel-gpu-tools/tests
$ : ldd testdisplay | grep -i "not found"
        libprocps.so.4 => not found
        libpng12.so.0 => not found
Comment 3 Dylan Baker 2017-08-09 21:37:01 UTC
That really sounds more like an igt bug than a piglit bug.

Piglit when not compiled only depends on python and six (there are some other optional libraries), but definitely not libpng or libprocps.

With IGT piglit is just acting as a wrapper to add additional functionality (dmesg checking, process isolation, resume, etc); either the messages being generated by igt when there are missing dependencies are insufficient, or the wrapper layer in $piglit/tests/igt.py are insufficient, either way this is really an IGT related problem.

Dylan
Comment 4 Emil Velikov 2017-08-11 22:36:45 UTC
> $ : ldd testdisplay | grep -i "not found"
>         libprocps.so.4 => not found
This here is from IGT - lib/igt_aux.c, in particular.

>         libpng12.so.0 => not found
While this is from piglit - tests/util/piglit-util-png.c

Both libraries are optional dependencies. It seems that they were available on the build system yet are missing on the run/test one.

Overall this looks like a user/packaging bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.