tests/gem_mmap_gtt: convert to subtest infrastructure

This commit is contained in:
Daniel Vetter 2012-11-28 12:40:23 +01:00
parent 7160c534f8
commit af228d4edc
2 changed files with 11 additions and 5 deletions

View File

@ -19,6 +19,7 @@ TESTS_progs_M = \
gem_cs_tlb \ gem_cs_tlb \
gem_flink \ gem_flink \
gem_gtt_concurrent_blit \ gem_gtt_concurrent_blit \
gem_mmap_gtt \
flip_test \ flip_test \
$(NULL) $(NULL)
@ -34,7 +35,6 @@ TESTS_progs = \
gem_readwrite \ gem_readwrite \
gem_ringfill \ gem_ringfill \
gem_mmap \ gem_mmap \
gem_mmap_gtt \
gem_mmap_offset_exhaustion \ gem_mmap_offset_exhaustion \
gem_hangcheck_forcewake \ gem_hangcheck_forcewake \
gem_non_secure_batch \ gem_non_secure_batch \

View File

@ -148,12 +148,18 @@ int main(int argc, char **argv)
{ {
int fd; int fd;
drmtest_subtest_init(argc, argv);
fd = drm_open_any(); fd = drm_open_any();
test_copy(fd); if (drmtest_run_subtest("copy"))
test_read(fd); test_copy(fd);
test_write(fd); if (drmtest_run_subtest("read"))
test_write_gtt(fd); test_read(fd);
if (drmtest_run_subtest("write"))
test_write(fd);
if (drmtest_run_subtest("write-gtt"))
test_write_gtt(fd);
close(fd); close(fd);