mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
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:
@@ -303,13 +303,13 @@ int main(int argc, char **argv)
|
||||
drmtest_init_aperture_trashers(bufmgr);
|
||||
mappable_gtt_limit = gem_mappable_aperture_size();
|
||||
|
||||
if (drmtest_run_subtest("reads"))
|
||||
drmtest_subtest_block("reads")
|
||||
test_partial_reads();
|
||||
|
||||
if (drmtest_run_subtest("writes"))
|
||||
drmtest_subtest_block("writes")
|
||||
test_partial_writes();
|
||||
|
||||
if (drmtest_run_subtest("writes-after-reads"))
|
||||
drmtest_subtest_block("writes-after-reads")
|
||||
test_partial_read_writes();
|
||||
|
||||
drmtest_cleanup_aperture_trashers();
|
||||
|
||||
Reference in New Issue
Block a user