mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-28 16:29:24 +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:
+2
-2
@@ -1186,7 +1186,7 @@ int main(int argc, char **argv)
|
||||
batch = intel_batchbuffer_alloc(bufmgr, devid);
|
||||
|
||||
for (i = 0; i < sizeof(tests) / sizeof (tests[0]); i++) {
|
||||
if (drmtest_run_subtest(tests[i].name)) {
|
||||
drmtest_subtest_block(tests[i].name) {
|
||||
printf("running testcase: %s\n", tests[i].name);
|
||||
run_test(tests[i].duration, tests[i].flags, tests[i].name);
|
||||
}
|
||||
@@ -1203,7 +1203,7 @@ int main(int argc, char **argv)
|
||||
!(tests[i].flags & TEST_VBLANK_ABSOLUTE))
|
||||
continue;
|
||||
|
||||
if (drmtest_run_subtest(name)) {
|
||||
drmtest_subtest_block(name) {
|
||||
printf("running testcase: %s\n", name);
|
||||
run_test(tests[i].duration, tests[i].flags, name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user