lib/drmtest: Add drmtest_subtest_block macro

Doesn't do more than an if (drmtest_run_test(name)) right now, but
as soon as we get a bit of infrastructure to handle test failures and
skipping, this will get more interesting.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-08-12 09:04:24 +02:00
parent 40ea6f4ea8
commit 9f6365e4ea
30 changed files with 123 additions and 118 deletions
+4 -4
View File
@@ -124,18 +124,18 @@ int main(int argc, char **argv)
handle = gem_create(fd, 4096);
gem_write(fd, handle, 0, batch, sizeof(batch));
if (drmtest_run_subtest("render"))
drmtest_subtest_block("render")
loop(fd, handle, I915_EXEC_RENDER, "render");
if (drmtest_run_subtest("bsd"))
drmtest_subtest_block("bsd")
if (HAS_BSD_RING(devid))
loop(fd, handle, I915_EXEC_BSD, "bsd");
if (drmtest_run_subtest("blt"))
drmtest_subtest_block("blt")
if (HAS_BLT_RING(devid))
loop(fd, handle, I915_EXEC_BLT, "blt");
if (drmtest_run_subtest("vebox"))
drmtest_subtest_block("vebox")
if (gem_has_vebox(fd))
loop(fd, handle, LOCAL_I915_EXEC_VEBOX, "vebox");