提交 60795239 编写于 作者: W wangshi

add depq2 testcase

Signed-off-by: Nwangshi <wangshi@kaihongdigi.com>
上级 711e58f1
/*
* 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 "../ActsDeqpgles20014TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013647, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013647 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.neg"
"ative_api.fragment.scissor",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013647 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013647 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013648, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013648 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negat"
"ive_api.fragment.depth_func",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013648 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013648 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013649, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013649 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.nega"
"tive_api.fragment.viewport",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013649 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013649 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013650, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013650 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negati"
"ve_api.fragment.stencil_func",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013650 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013650 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013651, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013651 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negative_a"
"pi.fragment.stencil_func_separate",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013651 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013651 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013652, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013652 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negat"
"ive_api.fragment.stencil_op",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013652 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013652 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013653, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013653 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negative_"
"api.fragment.stencil_op_separate",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013653 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013653 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013654, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013654 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negative_a"
"pi.fragment.stencil_mask_separate",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013654 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013654 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013655, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013655 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negativ"
"e_api.fragment.blend_equation",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013655 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013655 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013656, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013656 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negative_ap"
"i.fragment.blend_equation_separate",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013656 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013656 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013657, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013657 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negative_"
"api.fragment.blend_func_separate",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013657 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013657 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013658, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013658 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negat"
"ive_api.fragment.blend_func",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013658 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013658 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013659, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013659 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.nega"
"tive_api.fragment.cull_face",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013659 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013659 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013660, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013660 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negat"
"ive_api.fragment.front_face",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013660 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013660 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013661, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013661 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.negat"
"ive_api.fragment.line_width",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_013661 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013661 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册