• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <gtest/gtest.h>
2 #include <cstdlib>
3 #include <string>
4 #include "gtest_helper.h"
5 
6 class KmsPropertiesTests : public ::testing::Test {
7     public:
8     const char* testBinaryName = "kms_properties";
SetUp()9     void SetUp() override { chdir(binary_path); }
TearDown()10     void TearDown() override { chdir("/"); }
11 };
12 
TEST_F(KmsPropertiesTests,TestPlanePropertiesLegacy)13 TEST_F(KmsPropertiesTests, TestPlanePropertiesLegacy) {
14     runSubTest(testBinaryName, "plane-properties-legacy");
15 }
16 
TEST_F(KmsPropertiesTests,TestPlanePropertiesAtomic)17 TEST_F(KmsPropertiesTests, TestPlanePropertiesAtomic) {
18     runSubTest(testBinaryName, "plane-properties-atomic");
19 }
20 
TEST_F(KmsPropertiesTests,TestCrtcPropertiesLegacy)21 TEST_F(KmsPropertiesTests, TestCrtcPropertiesLegacy) {
22     runSubTest(testBinaryName, "crtc-properties-legacy");
23 }
24 
TEST_F(KmsPropertiesTests,TestCrtcPropertiesAtomic)25 TEST_F(KmsPropertiesTests, TestCrtcPropertiesAtomic) {
26     runSubTest(testBinaryName, "crtc-properties-atomic");
27 }
28 
TEST_F(KmsPropertiesTests,TestConnectorPropertiesLegacy)29 TEST_F(KmsPropertiesTests, TestConnectorPropertiesLegacy) {
30     runSubTest(testBinaryName, "connector-properties-legacy");
31 }
32 
TEST_F(KmsPropertiesTests,TestConnectorPropertiesAtomic)33 TEST_F(KmsPropertiesTests, TestConnectorPropertiesAtomic) {
34     runSubTest(testBinaryName, "connector-properties-atomic");
35 }
36 
TEST_F(KmsPropertiesTests,TestInvalidPropertiesLegacy)37 TEST_F(KmsPropertiesTests, TestInvalidPropertiesLegacy) {
38     runSubTest(testBinaryName, "invalid-properties-legacy");
39 }
40 
TEST_F(KmsPropertiesTests,TestInvalidPropertiesAtomic)41 TEST_F(KmsPropertiesTests, TestInvalidPropertiesAtomic) {
42     runSubTest(testBinaryName, "invalid-properties-atomic");
43 }
44 
TEST_F(KmsPropertiesTests,TestGetPropertiesSanityAtomic)45 TEST_F(KmsPropertiesTests, TestGetPropertiesSanityAtomic) {
46     runSubTest(testBinaryName, "get_properties-sanity-atomic");
47 }
48 
TEST_F(KmsPropertiesTests,TestGetPropertiesSanityNonAtomic)49 TEST_F(KmsPropertiesTests, TestGetPropertiesSanityNonAtomic) {
50     runSubTest(testBinaryName, "get_properties-sanity-non-atomic");
51 }
52