提交 baa53cc2 编写于 作者: W wangshi

add depq2 testcase

Signed-off-by: Nwangshi <wangshi@kaihongdigi.com>
上级 152770c0
/*
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include "../Deqpgles2BaseFunc.h"
#include "../ActsDeqpgles20001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000026, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000026 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional"
".clip_control.initial",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000026 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000026 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000027, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000027 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional."
"clip_control.modify_get",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000027 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000027 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000028, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000028 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functiona"
"l.clip_control.errors",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000028 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000028 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000029, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000029 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functiona"
"l.clip_control.origin",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000029 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000029 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000030, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000030 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clip_c"
"ontrol.depth_mode_zero_to_one",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000030 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000030 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000031, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000031 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clip_c"
"ontrol.depth_mode_one_to_one",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000031 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000031 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000032, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000032 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.c"
"lip_control.face_culling",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000032 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000032 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000033, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000033 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.cli"
"p_control.viewport_bounds",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000033 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000033 end";
}
/*
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include "../Deqpgles2BaseFunc.h"
#include "../ActsDeqpgles20001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000053, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000053 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.d"
"epth_stencil_clear.depth",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000053 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000053 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000054, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000054 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_"
"stencil_clear.depth_scissored",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000054 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000054 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000055, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000055 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_sten"
"cil_clear.depth_scissored_masked",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000055 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000055 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000056, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000056 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.de"
"pth_stencil_clear.stencil",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000056 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000056 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000057, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000057 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_"
"stencil_clear.stencil_masked",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000057 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000057 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000058, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000058 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_s"
"tencil_clear.stencil_scissored",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000058 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000058 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000059, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000059 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_stenc"
"il_clear.stencil_scissored_masked",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000059 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000059 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000060, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000060 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth"
"_stencil_clear.depth_stencil",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000060 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000060 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000061, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000061 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_ste"
"ncil_clear.depth_stencil_masked",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000061 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000061 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000062, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000062 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_sten"
"cil_clear.depth_stencil_scissored",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000062 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000062 end";
}
static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000063, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000063 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.depth_stencil_"
"clear.depth_stencil_scissored_masked",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000063 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000063 end";
}
/*
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include "../Deqpgles2BaseFunc.h"
#include "../ActsDeqpgles20017TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016303, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016303 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.pol"
"ygon_offset.default_enable",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016303 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016303 end";
}
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016304, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016304 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.polygon_offs"
"et.default_displacement_with_units",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016304 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016304 end";
}
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016305, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016305 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.polygon_o"
"ffset.default_render_with_factor",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016305 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016305 end";
}
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016306, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016306 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.polygon"
"_offset.default_factor_0_slope",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016306 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016306 end";
}
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016307, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016307 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.pol"
"ygon_offset.fixed16_enable",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016307 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016307 end";
}
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016308, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016308 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.polygon_offs"
"et.fixed16_displacement_with_units",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016308 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016308 end";
}
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016309, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016309 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.polygon_o"
"ffset.fixed16_render_with_factor",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016309 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016309 end";
}
static HWTEST_F(ActsDeqpgles20017TestSuite, TestCase_016310, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016310 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.polygon"
"_offset.fixed16_factor_0_slope",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20017TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20017TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20017TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20017TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20017TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_016310 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016310 end";
}
/*
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include "../Deqpgles2BaseFunc.h"
#include "../ActsDeqpgles20016TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015249, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015249 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.read"
"_pixels.rgba_ubyte_align_1",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015249 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015249 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015250, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015250 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.read"
"_pixels.rgba_ubyte_align_2",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015250 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015250 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015251, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015251 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.read"
"_pixels.rgba_ubyte_align_4",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015251 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015251 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015252, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015252 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.read"
"_pixels.rgba_ubyte_align_8",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015252 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015252 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015253, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015253 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.re"
"ad_pixels.choose_align_1",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015253 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015253 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015254, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015254 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.re"
"ad_pixels.choose_align_2",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015254 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015254 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015255, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015255 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.re"
"ad_pixels.choose_align_4",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015255 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015255 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015256, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015256 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.re"
"ad_pixels.choose_align_8",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_015256 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015256 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册