• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <gtest/gtest.h>
18 
19 #include <cstdlib>
20 
21 #include "include/igt_test_helper.h"
22 
23 namespace igt {
24 namespace {
25 
26 /**
27  * TEST: kms sysfs edid timing
28  * Category: Display
29  * Description: Test to check the time it takes to reprobe each connector.
30  */
31 
32 class KmsSysfsEdidTimingTests
33     : public ::testing::TestWithParam<IgtSubtestParams>,
34       public IgtTestHelper {
35 public:
KmsSysfsEdidTimingTests()36   KmsSysfsEdidTimingTests() : IgtTestHelper("kms_sysfs_edid_timing") {}
37 };
38 
TEST_F(KmsSysfsEdidTimingTests,TestSysfsEdidTiming)39 TEST_F(KmsSysfsEdidTimingTests, TestSysfsEdidTiming) {
40   std::string desc =
41       "This test checks the time it takes to reprobe each connector and fails "
42       "if either the time it takes for one reprobe is too long or if the mean "
43       "time it takes to reprobe one connector is too long. Additionally, make "
44       "sure that the mean time for all connectors is not too long.";
45   std::string rationale = "we don't want tests taking forever to (re)probe";
46   runTest(desc, rationale);
47 }
48 
49 } // namespace
50 } // namespace igt
51