tests: Introduce igt_fixture
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 13:48:54 +0000 (15:48 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 15:04:56 +0000 (17:04 +0200)
commit2dbd998429dc1c449abfa153060aba5a97b7c8aa
treea6fdf8eb71ba8078b855da5990d601bb580d40ca
parentf8c0dfe399d7b5351a16d111285e85f54a5725ff
tests: Introduce igt_fixture

Just a tiny wrapper to protect global test setup/teardown code when
just listing subtests. Rolling this out over all tests with subtests
should allow us to generate the testlist with piglit as an
unpriviledged user on a non-intel system.

The aim here is to make our QA team happy who currently suffers from
this. Even more so for the prime tests since you need a system with
intel _and_ nouveau gpus to just be able to list tests.

Exemplary conversion with gem_concurrent_blt.c

Fixture is the same name other test suites like googletest use for
setup/teardown code used by multiple tests.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/drmtest.h
tests/gem_concurrent_blit.c