提交 779f2bbf 编写于 作者: W wangshi

add depq2 testcase

Signed-off-by: Nwangshi <wangshi@kaihongdigi.com>
上级 a7ef558c
/*
* 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_013926, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013926 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.att"
"ribute_location.bind.float",
"--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_013926 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013926 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013927, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013927 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.att"
"ribute_location.bind.vec2",
"--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_013927 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013927 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013928, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013928 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.att"
"ribute_location.bind.vec3",
"--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_013928 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013928 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013929, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013929 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.att"
"ribute_location.bind.vec4",
"--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_013929 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013929 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013930, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013930 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.att"
"ribute_location.bind.mat2",
"--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_013930 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013930 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013931, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013931 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.att"
"ribute_location.bind.mat3",
"--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_013931 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013931 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013932, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013932 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.att"
"ribute_location.bind.mat4",
"--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_013932 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013932 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 "../ActsDeqpgles20014TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013957, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013957 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attrib"
"ute_location.bind_hole.float",
"--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_013957 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013957 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013958, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013958 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attri"
"bute_location.bind_hole.vec2",
"--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_013958 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013958 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013959, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013959 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attri"
"bute_location.bind_hole.vec3",
"--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_013959 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013959 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013960, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013960 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attri"
"bute_location.bind_hole.vec4",
"--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_013960 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013960 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013961, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013961 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attri"
"bute_location.bind_hole.mat2",
"--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_013961 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013961 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013962, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013962 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attri"
"bute_location.bind_hole.mat3",
"--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_013962 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013962 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013963, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013963 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attri"
"bute_location.bind_hole.mat4",
"--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_013963 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013963 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 "../ActsDeqpgles20014TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013933, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013933 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute_l"
"ocation.bind_max_attributes.float",
"--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_013933 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013933 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013934, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013934 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute_"
"location.bind_max_attributes.vec2",
"--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_013934 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013934 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013935, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013935 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute_"
"location.bind_max_attributes.vec3",
"--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_013935 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013935 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013936, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013936 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute_"
"location.bind_max_attributes.vec4",
"--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_013936 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013936 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013937, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013937 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute_"
"location.bind_max_attributes.mat2",
"--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_013937 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013937 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013938, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013938 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute_"
"location.bind_max_attributes.mat3",
"--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_013938 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013938 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013939, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013939 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute_"
"location.bind_max_attributes.mat4",
"--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_013939 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013939 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 "../ActsDeqpgles20014TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013969, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013969 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute"
"_location.bind_relink_hole.float",
"--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_013969 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013969 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013970, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013970 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute"
"_location.bind_relink_hole.vec2",
"--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_013970 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013970 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013971, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013971 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute"
"_location.bind_relink_hole.vec3",
"--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_013971 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013971 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013972, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013972 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute"
"_location.bind_relink_hole.vec4",
"--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_013972 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013972 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013973, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013973 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute"
"_location.bind_relink_hole.mat2",
"--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_013973 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013973 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013974, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013974 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute"
"_location.bind_relink_hole.mat3",
"--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_013974 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013974 end";
}
static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013975, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_013975 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES2.functional.attribute"
"_location.bind_relink_hole.mat4",
"--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_013975 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_013975 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册