提交 acadcaba 编写于 作者: B bayanxing

add depq2 testcase

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 d31cb216
/*
* 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_016030, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016030 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_pos_x_pos_y_pos_z_and_pos_x_neg_y_neg_z",
"--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_016030 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016030 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016031, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016031 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_pos_x_pos_y_pos_z_and_neg_x_pos_y_neg_z",
"--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_016031 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016031 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016032, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016032 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_neg_x_pos_y_pos_z_and_neg_x_neg_y_neg_z",
"--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_016032 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016032 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016033, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016033 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_neg_x_pos_y_pos_z_and_pos_x_neg_y_neg_z",
"--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_016033 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016033 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016034, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016034 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_neg_x_pos_y_pos_z_and_pos_x_pos_y_neg_z",
"--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_016034 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016034 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016035, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016035 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_neg_x_neg_y_neg_z_and_pos_x_neg_y_neg_z",
"--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_016035 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016035 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016036, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016036 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_neg_x_neg_y_neg_z_and_neg_x_pos_y_neg_z",
"--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_016036 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016036 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016037, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016037 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_pos_x_neg_y_neg_z_and_pos_x_pos_y_neg_z",
"--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_016037 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016037 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_016038, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_016038 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.clipping.triangle_vertex.cli"
"p_two.clip_pos_x_pos_y_neg_z_and_neg_x_pos_y_neg_z",
"--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_016038 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_016038 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册