mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
pm_rps: Convert to subtest structure
Signed-off-by: Jeff McGee <jeff.mcgee@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
0102b6bde6
commit
d14cd7430b
@ -142,14 +142,15 @@ static void pm_rps_exit_handler(int sig)
|
||||
}
|
||||
}
|
||||
|
||||
igt_simple_main
|
||||
igt_main
|
||||
{
|
||||
igt_skip_on_simulation();
|
||||
|
||||
igt_fixture {
|
||||
const int device = drm_get_card();
|
||||
struct junk *junk = stuff;
|
||||
int fd, ret;
|
||||
|
||||
igt_skip_on_simulation();
|
||||
|
||||
/* Use drm_open_any to verify device existence */
|
||||
fd = drm_open_any();
|
||||
close(fd);
|
||||
@ -172,9 +173,12 @@ igt_simple_main
|
||||
origmax = fmax;
|
||||
|
||||
igt_install_exit_handler(pm_rps_exit_handler);
|
||||
}
|
||||
|
||||
igt_subtest("min-max-config-at-idle") {
|
||||
if (verbose)
|
||||
printf("Original min = %d\nOriginal max = %d\n", origmin, origmax);
|
||||
printf("Original min = %d\nOriginal max = %d\n",
|
||||
origmin, origmax);
|
||||
|
||||
if (verbose)
|
||||
dumpit();
|
||||
@ -204,4 +208,5 @@ igt_simple_main
|
||||
|
||||
writeval(stuff[MIN].filp, origmin);
|
||||
writeval(stuff[MAX].filp, origmax);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user