mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +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:
@@ -270,15 +270,15 @@ static void do_tests(int cache_level, const char *suffix)
|
||||
}
|
||||
|
||||
snprintf(name, sizeof(name), "reads%s", suffix);
|
||||
if (drmtest_run_subtest(name))
|
||||
drmtest_subtest_block(name)
|
||||
test_partial_reads();
|
||||
|
||||
snprintf(name, sizeof(name), "writes%s", suffix);
|
||||
if (drmtest_run_subtest(name))
|
||||
drmtest_subtest_block(name)
|
||||
test_partial_writes();
|
||||
|
||||
snprintf(name, sizeof(name), "writes-after-reads%s", suffix);
|
||||
if (drmtest_run_subtest(name))
|
||||
drmtest_subtest_block(name)
|
||||
test_partial_read_writes();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user