1 #include <gtest/gtest.h>
2 #include <cstdlib>
3 #include <string>
4
5 #include "gtest_helper.h"
6
7 class KmsAtomicTests : public ::testing::Test {
8 public:
9 const char* testBinaryName = "kms_atomic";
SetUp()10 void SetUp() override { chdir(binary_path); }
TearDown()11 void TearDown() override { chdir("/"); }
12 };
13
TEST_F(KmsAtomicTests,TestPlaneOverlayLegacy)14 TEST_F(KmsAtomicTests, TestPlaneOverlayLegacy) {
15 runSubTest(testBinaryName, "plane_overlay_legacy");
16 }
17
TEST_F(KmsAtomicTests,TestPlanePrimaryLegacy)18 TEST_F(KmsAtomicTests, TestPlanePrimaryLegacy) {
19 runSubTest(testBinaryName, "plane_primary_legacy");
20 }
21
TEST_F(KmsAtomicTests,TestPlanePrimaryOverlayZpos)22 TEST_F(KmsAtomicTests, TestPlanePrimaryOverlayZpos) {
23 runSubTest(testBinaryName, "plane_primary_overlay_zpos");
24 }
25
TEST_F(KmsAtomicTests,TestOnly)26 TEST_F(KmsAtomicTests, TestOnly) {
27 runSubTest(testBinaryName, "test_only");
28 }
29
TEST_F(KmsAtomicTests,TestPlaneCursorLegacy)30 TEST_F(KmsAtomicTests, TestPlaneCursorLegacy) {
31 runSubTest(testBinaryName, "plane_cursor_legacy");
32 }
33
TEST_F(KmsAtomicTests,TestPlaneInvalidParams)34 TEST_F(KmsAtomicTests, TestPlaneInvalidParams) {
35 runSubTest(testBinaryName, "plane_invalid_params");
36 }
37
TEST_F(KmsAtomicTests,TestPlaneInvalidParamsFence)38 TEST_F(KmsAtomicTests, TestPlaneInvalidParamsFence) {
39 runSubTest(testBinaryName, "plane_invalid_params_fence");
40 }
41
TEST_F(KmsAtomicTests,TestCrtcInvalidParams)42 TEST_F(KmsAtomicTests, TestCrtcInvalidParams) {
43 runSubTest(testBinaryName, "crtc_invalid_params");
44 }
45
TEST_F(KmsAtomicTests,TestCrtcInvalidParamsFence)46 TEST_F(KmsAtomicTests, TestCrtcInvalidParamsFence) {
47 runSubTest(testBinaryName, "crtc_invalid_params_fence");
48 }
49
TEST_F(KmsAtomicTests,TestAtomicInvalidParams)50 TEST_F(KmsAtomicTests, TestAtomicInvalidParams) {
51 runSubTest(testBinaryName, "atomic_invalid_params");
52 }
53