[PATCH intel-gpu-tools 00/10] Upgrade module configuration and packaging (reposted to .cc)

Daniel Vetter daniel at ffwll.ch
Wed Jan 4 06:38:24 PST 2012


On Wed, Jan 4, 2012 at 15:33, Gaetan Nadon <memsize at videotron.ca> wrote:
> On 12-01-04 04:52 AM, Daniel Vetter wrote:
>> While I have the attention of someone versed in buildsystem-fu:
>> intel-gpu-tools also contains a set of tests for the i915 kernel module
>> (and the libdrm interface for it). Currently we run them with
>>
>> $ make test
>>
>> by abusing the automake test rig. Is this ok or is there a better way to
>> do something like this?
> I would think so, there is support in Automake to hook test cases and in
> util-macros to test for things like glib and provide configure option.
> It is used by several modules by invoking 'make check'. I'll look into
> that, but I might ask a few questions as I am not familiar with video
> drivers.

Originally we've abused make check, but that turned out to be a bad
idea because make distcheck automatically runs that. And the tests
check the kernel and not intel-gpu-tools itself, so that didn't make
much sense. Hence we added make test with a quick hack to run make
check with a different set of tests (see the test: target in
tests/Makefile.am).

One thing I'm wondering is whether we could easily ship these tests in
some form, so that users could run them from the distro package
instead of grabbing the sources.

Thanks, Daniel
-- 
Daniel Vetter
daniel.vetter at ffwll.ch - +41 (0) 79 364 57 48 - http://blog.ffwll.ch


More information about the xorg-devel mailing list