提交 9a3b5e91 编写于 作者: L linhuixia 提交者: wanghuaxin

testcase

Signed-off-by: Nlinhuixia <linhuixia@kaihongdigi.com>
上级 3748f23e
/*
* 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_015134, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015134 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.a"
"ssigned.unused_uniforms.float_vec4_vertex",
"--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_015134 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015134 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015135, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015135 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.as"
"signed.unused_uniforms.float_vec4_fragment",
"--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_015135 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015135 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015136, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015136 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value."
"assigned.unused_uniforms.float_vec4_both",
"--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_015136 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015136 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015137, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015137 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value."
"assigned.unused_uniforms.mat4_mat2_vertex",
"--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_015137 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015137 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015138, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015138 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.a"
"ssigned.unused_uniforms.mat4_mat2_fragment",
"--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_015138 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015138 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015139, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015139 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value"
".assigned.unused_uniforms.mat4_mat2_both",
"--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_015139 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015139 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015140, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015140 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value."
"assigned.unused_uniforms.int_ivec4_vertex",
"--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_015140 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015140 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015141, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015141 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.a"
"ssigned.unused_uniforms.int_ivec4_fragment",
"--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_015141 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015141 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015142, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015142 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value"
".assigned.unused_uniforms.int_ivec4_both",
"--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_015142 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015142 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015143, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015143 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.a"
"ssigned.unused_uniforms.bool_bvec4_vertex",
"--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_015143 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015143 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015144, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015144 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.as"
"signed.unused_uniforms.bool_bvec4_fragment",
"--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_015144 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015144 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015145, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015145 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value."
"assigned.unused_uniforms.bool_bvec4_both",
"--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_015145 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015145 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015146, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015146 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.assign"
"ed.unused_uniforms.sampler2D_samplerCube_vertex",
"--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_015146 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015146 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015147, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015147 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.assigne"
"d.unused_uniforms.sampler2D_samplerCube_fragment",
"--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_015147 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015147 end";
}
static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015148, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_015148 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.uniform_api.value.assig"
"ned.unused_uniforms.sampler2D_samplerCube_both",
"--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_015148 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_015148 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册