mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
tests/gem_basic: convert to subtest infrastructure
This commit is contained in:
parent
c3d5c1292b
commit
3cca0d8c6d
@ -13,6 +13,7 @@ NOUVEAU_TESTS = \
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
TESTS_progs_M = \
|
TESTS_progs_M = \
|
||||||
|
gem_basic \
|
||||||
flip_test \
|
flip_test \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
@ -20,7 +21,6 @@ TESTS_progs = \
|
|||||||
getversion \
|
getversion \
|
||||||
getclient \
|
getclient \
|
||||||
getstats \
|
getstats \
|
||||||
gem_basic \
|
|
||||||
gem_cacheing \
|
gem_cacheing \
|
||||||
gem_cpu_concurrent_blit \
|
gem_cpu_concurrent_blit \
|
||||||
gem_cs_tlb \
|
gem_cs_tlb \
|
||||||
|
@ -80,11 +80,16 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
drmtest_subtest_init(argc, argv);
|
||||||
|
|
||||||
fd = drm_open_any();
|
fd = drm_open_any();
|
||||||
|
|
||||||
test_bad_close(fd);
|
if (drmtest_run_subtest("bad-close"))
|
||||||
test_create_close(fd);
|
test_bad_close(fd);
|
||||||
test_create_fd_close(fd);
|
if (drmtest_run_subtest("create-close"))
|
||||||
|
test_create_close(fd);
|
||||||
|
if (drmtest_run_subtest("create-fd-close"))
|
||||||
|
test_create_fd_close(fd);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user