diff options
author | Ramalingam C <ramalingam.c@intel.com> | 2019-07-03 15:24:40 +0530 |
---|---|---|
committer | Ramalingam C <ramalingam.c@intel.com> | 2019-08-06 16:16:15 +0530 |
commit | b407c7e09d04d68d073a5b0ab6c02111ffcdfc71 (patch) | |
tree | 30fd558413d16aa1e369b8561007aeadbfe793be /tests/kms_content_protection.c | |
parent | 4a275837c3a297e8867003546f11c301a7c8746b (diff) |
kms_content_protection: Link Integrity Check subtest
Existing Link integrity check test is moved into dedicated subtest.
This helps to reduce the execution time of other tests by removing the
repeated Link integrity check on every other tests.
v2:
s/reduced/reduce [Uma]
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/315465/?series=57756&rev=10
Diffstat (limited to 'tests/kms_content_protection.c')
-rw-r--r-- | tests/kms_content_protection.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c index 5f7d8ff9..c86fe936 100644 --- a/tests/kms_content_protection.c +++ b/tests/kms_content_protection.c @@ -38,6 +38,7 @@ struct data { } data; #define CP_DPMS (1 << 0) +#define CP_LIC (1 << 1) #define CP_UNDESIRED 0 #define CP_DESIRED 1 @@ -265,7 +266,9 @@ static void test_content_protection_on_output(igt_output_t *output, modeset_with_fb(pipe, output, s); test_cp_enable_with_retry(output, s, 3); - test_cp_lic(output); + + if (data.cp_tests & CP_LIC) + test_cp_lic(output); if (data.cp_tests & CP_DPMS) { igt_pipe_set_prop_value(display, pipe, @@ -377,6 +380,12 @@ igt_main test_content_protection(COMMIT_ATOMIC); } + igt_subtest("LIC") { + igt_require(data.display.is_atomic); + data.cp_tests = CP_LIC; + test_content_protection(COMMIT_ATOMIC); + } + igt_fixture igt_display_fini(&data.display); } |