framework: Dump the result of 'uname -a' in the report

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
tests/igt.py: add support for reading the test list from the file system

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
cl: Add cl-api-enqueue-copy-buffer-rect test
gtest: Use correct fuction signature for interpret_result

This was changed in fb6c545d880791f8e3057bbd86dd5cdf1bf3a3d3
and gtest.py was not updated.
Don't run GLX_OML_sync_control tests concurrently.

This fixes the swapbuffersmsc-return (with default swap_interval) test,
by not passing it arguments that it doesn't understand.

These tests all require a GLXWindow, so they can't be used in -fbo mode
(and they didn't understand that option anyway).

And though they need the behavior of -auto, none of them parse that
option. These tests have to deal with it in other ways, as illustrated
by commit 1d618f2abbc9f9665505b7082690eebc3bc01a72.

Finally, I think it's a bad idea to run these tests concurrently with
anything else, as interference from other clients could change the
result of attempting to sync to vertical retrace, which is a
screen-global resource.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Simplify piglit_glx_get_all_proc_addresses API.

I couldn't stand the number of ways this API could be misused and the
amount of code duplication it forced--two closely related issues.

This also fixes a bug: The "Failed to get function pointer" test could
never have triggered unless the caller passed incorrect arguments,
which is not the kind of error it was intended to be testing for.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Only test non-default swap_interval if supported.

If this test is compiled on a machine that does not have headers for
GLX_MESA_swap_control, then it should skip any tests that require using
GLX_MESA_swap_control.

I tested this patch in both configurations, using "#if 0 && ..." to
check the unsupported-at-build-time case.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Add piglit_set_timeout for tests that might hang.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Add helper for creating full-screen glX windows.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Allow OML_sync_control tests to run fullscreen.

None of the current tests use this, but we introduce some fullscreen
tests in the next commit.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Validate that OML Sync Control syncs to vblank.

The existing tests don't demonstrate a variety of implementation bugs
that we've observed in current drivers, so this is our attempt to
demonstrate those bugs.

Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Added timeouts to tests that use SwapBuffersMsc.

We've observed hangs on some drivers in these calls, which make it
harder to run the rest of the Piglit test suite.

Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Validate that SwapBuffers doesn't re-use an MSC.

This test checks that when swapbuffers is called multiple times without
WaitForSbc that the SBC is not incremented more often than the MSC.

Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>