提交 65ff61f7 编写于 作者: Z zhanghongdong 提交者: wanghuaxin

testcase

Signed-off-by: Nzhanghongdong <zhanghongdong@kaihongdigi.com>
上级 e1fa9554
/*
* 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 "../ActsDeqpgles20007TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006480, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006480 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.mediump_float_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006480 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006480 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006481, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006481 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.ge"
"ometric.faceforward.mediump_float_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006481 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006481 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006482, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006482 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator."
"geometric.faceforward.highp_float_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006482 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006482 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006483, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006483 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.highp_float_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006483 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006483 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006484, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006484 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.mediump_vec2_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006484 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006484 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006485, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006485 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.ge"
"ometric.faceforward.mediump_vec2_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006485 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006485 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006486, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006486 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator."
"geometric.faceforward.highp_vec2_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006486 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006486 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006487, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006487 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.highp_vec2_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006487 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006487 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006488, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006488 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.mediump_vec3_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006488 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006488 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006489, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006489 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.ge"
"ometric.faceforward.mediump_vec3_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006489 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006489 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006490, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006490 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator."
"geometric.faceforward.highp_vec3_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006490 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006490 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006491, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006491 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.highp_vec3_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006491 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006491 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006492, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006492 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.mediump_vec4_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006492 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006492 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006493, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006493 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.ge"
"ometric.faceforward.mediump_vec4_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006493 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006493 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006494, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006494 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator."
"geometric.faceforward.highp_vec4_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006494 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006494 end";
}
static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006495, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_006495 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.shaders.operator.g"
"eometric.faceforward.highp_vec4_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_006495 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_006495 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册