[Piglit] Running piglit in chroot

Dylan Baker baker.dylan.c at gmail.com
Mon Feb 16 20:36:35 PST 2015


Have you tried just setting your environment variables directly? It's a
pretty common setup to LD_LIBRARY_PATH and LIBGL_DRIVERS_PATH to a local
directory as a means of running piglit against a development branch of
mesa. Unless I'm completely misunderstanding, or there's something I'm
not thinking about, you shouldn't need to patch anything.

Dylan

On Tue, Feb 17, 2015 at 01:05:23AM +0100, Matěj Cepl wrote:
> Hi,
> 
> after complete failure of building on older Linux distribution 
> (specifically RHEL-6 ... it is just not possible to patch out 
> all development which increase the dependency requirements 
> enough) I have decided to try to run the current version of 
> piglit in chroot with more recent versio of Linux (RHEL_7) and 
> using RHEL-6 mesa libraries via bind-mounted directory from the 
> RHEL-6.
> 
> I was thinking how to change environment (particularly 
> LD_LIBRARY_PATH and LIBGL_DRIVERS_PATH, right?) to be as close 
> to the testing binaries but with as little as possible impact on 
> the piglit itself.
> 
> Do you think that this patch could accomplish this or do you 
> think there is other place (or other mean) in piglit which could 
> serve me better?
> 
> Thank you in advance for any suggestions,
> 
> Matěj
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> --- a/framework/core.py
> +++ b/framework/core.py
> @@ -114,6 +114,13 @@ class Options(object):
>                   os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
>          }
>  
> +        # For setting another library path
> +        if 'PIGLIT_LIB_DIR' in os.environ:
> +            self.env.update({
> +                'LD_LIBRARY_PATH': os.environ['PIGLIT_LIB_DIR'],
> +                'LIBGL_DRIVERS_PATH': os.environ['PIGLIT_LIB_DIR'],
> +            })
> +
>      def __iter__(self):
>          for key, values in self.__dict__.iteritems():
>              # If the values are regex compiled then yield their pattern
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150216/185b8483/attachment.sig>


More information about the Piglit mailing list