1 #include <gtest/gtest.h>
2 #include <cstdlib>
3 #include <string>
4 #include "gtest_helper.h"
5
6 class KmsPlaneLowres : public ::testing::Test {
7 public:
8 const char* testBinaryName = "kms_plane_lowres";
SetUp()9 void SetUp() override { chdir(binary_path); }
TearDown()10 void TearDown() override { chdir("/"); }
11 };
12
TEST_F(KmsPlaneLowres,TestPipeATilingNone)13 TEST_F(KmsPlaneLowres, TestPipeATilingNone) {
14 runSubTest(testBinaryName, "pipe-A-tiling-none");
15 }
16
TEST_F(KmsPlaneLowres,TestPipeATilingX)17 TEST_F(KmsPlaneLowres, TestPipeATilingX) {
18 runSubTest(testBinaryName, "pipe-A-tiling-x");
19 }
20
TEST_F(KmsPlaneLowres,TestPipeATilingY)21 TEST_F(KmsPlaneLowres, TestPipeATilingY) {
22 runSubTest(testBinaryName, "pipe-A-tiling-y");
23 }
24
TEST_F(KmsPlaneLowres,TestPipeATilingYf)25 TEST_F(KmsPlaneLowres, TestPipeATilingYf) {
26 runSubTest(testBinaryName, "pipe-A-tiling-yf");
27 }
28
TEST_F(KmsPlaneLowres,TestPipeBTilingNone)29 TEST_F(KmsPlaneLowres, TestPipeBTilingNone) {
30 runSubTest(testBinaryName, "pipe-B-tiling-none");
31 }
32
TEST_F(KmsPlaneLowres,TestPipeBTilingX)33 TEST_F(KmsPlaneLowres, TestPipeBTilingX) {
34 runSubTest(testBinaryName, "pipe-B-tiling-x");
35 }
36
TEST_F(KmsPlaneLowres,TestPipeBTilingY)37 TEST_F(KmsPlaneLowres, TestPipeBTilingY) {
38 runSubTest(testBinaryName, "pipe-B-tiling-y");
39 }
40
TEST_F(KmsPlaneLowres,TestPipeBTilingYf)41 TEST_F(KmsPlaneLowres, TestPipeBTilingYf) {
42 runSubTest(testBinaryName, "pipe-B-tiling-yf");
43 }
44
TEST_F(KmsPlaneLowres,TestPipeCTilingNone)45 TEST_F(KmsPlaneLowres, TestPipeCTilingNone) {
46 runSubTest(testBinaryName, "pipe-C-tiling-none");
47 }
48
TEST_F(KmsPlaneLowres,TestPipeCTilingX)49 TEST_F(KmsPlaneLowres, TestPipeCTilingX) {
50 runSubTest(testBinaryName, "pipe-C-tiling-x");
51 }
52
TEST_F(KmsPlaneLowres,TestPipeCTilingY)53 TEST_F(KmsPlaneLowres, TestPipeCTilingY) {
54 runSubTest(testBinaryName, "pipe-C-tiling-y");
55 }
56
TEST_F(KmsPlaneLowres,TestPipeCTilingYf)57 TEST_F(KmsPlaneLowres, TestPipeCTilingYf) {
58 runSubTest(testBinaryName, "pipe-C-tiling-yf");
59 }
60
TEST_F(KmsPlaneLowres,TestPipeDTilingNone)61 TEST_F(KmsPlaneLowres, TestPipeDTilingNone) {
62 runSubTest(testBinaryName, "pipe-D-tiling-none");
63 }
64
TEST_F(KmsPlaneLowres,TestPipeDTilingX)65 TEST_F(KmsPlaneLowres, TestPipeDTilingX) {
66 runSubTest(testBinaryName, "pipe-D-tiling-x");
67 }
68
TEST_F(KmsPlaneLowres,TestPipeDTilingY)69 TEST_F(KmsPlaneLowres, TestPipeDTilingY) {
70 runSubTest(testBinaryName, "pipe-D-tiling-y");
71 }
72
TEST_F(KmsPlaneLowres,TestPipeDTilingYf)73 TEST_F(KmsPlaneLowres, TestPipeDTilingYf) {
74 runSubTest(testBinaryName, "pipe-D-tiling-yf");
75 }
76
TEST_F(KmsPlaneLowres,TestPipeETilingNone)77 TEST_F(KmsPlaneLowres, TestPipeETilingNone) {
78 runSubTest(testBinaryName, "pipe-E-tiling-none");
79 }
80
TEST_F(KmsPlaneLowres,TestPipeETilingX)81 TEST_F(KmsPlaneLowres, TestPipeETilingX) {
82 runSubTest(testBinaryName, "pipe-E-tiling-x");
83 }
84
TEST_F(KmsPlaneLowres,TestPipeETilingY)85 TEST_F(KmsPlaneLowres, TestPipeETilingY) {
86 runSubTest(testBinaryName, "pipe-E-tiling-y");
87 }
88
TEST_F(KmsPlaneLowres,TestPipeETilingYf)89 TEST_F(KmsPlaneLowres, TestPipeETilingYf) {
90 runSubTest(testBinaryName, "pipe-E-tiling-yf");
91 }
92
TEST_F(KmsPlaneLowres,TestPipeFTilingNone)93 TEST_F(KmsPlaneLowres, TestPipeFTilingNone) {
94 runSubTest(testBinaryName, "pipe-F-tiling-none");
95 }
96
TEST_F(KmsPlaneLowres,TestPipeFTilingX)97 TEST_F(KmsPlaneLowres, TestPipeFTilingX) {
98 runSubTest(testBinaryName, "pipe-F-tiling-x");
99 }
100
TEST_F(KmsPlaneLowres,TestPipeFTilingY)101 TEST_F(KmsPlaneLowres, TestPipeFTilingY) {
102 runSubTest(testBinaryName, "pipe-F-tiling-y");
103 }
104
TEST_F(KmsPlaneLowres,TestPipeFTilingYf)105 TEST_F(KmsPlaneLowres, TestPipeFTilingYf) {
106 runSubTest(testBinaryName, "pipe-F-tiling-yf");
107 }
108