igt/gem_exec_alignment: Convert to subtests

Allow both parts (single, many) to be run independently.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-01-19 23:59:33 +00:00
parent 28c33c6f90
commit ad9b78f443

View File

@ -193,14 +193,16 @@ static void single(int fd)
gem_close(fd, execobj.handle); gem_close(fd, execobj.handle);
} }
igt_simple_main igt_main
{ {
int fd; int fd;
igt_skip_on_simulation(); igt_fixture
fd = drm_open_driver(DRIVER_INTEL); fd = drm_open_driver(DRIVER_INTEL);
igt_subtest("single") /* basic! */
single(fd); single(fd);
igt_subtest("many")
many(fd); many(fd);
} }