未验证 提交 7d89c90d 编写于 作者: O openharmony_ci 提交者: Gitee

!3866 add khrgles3 testcase pr4

Merge pull request !3866 from wshikh/master
/*
* 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 "../Khrgles3BaseFunc.h"
#include "../ActsKhrgles30002TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001032, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001032 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor."
"predefined_macros.version_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001032 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001032 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001033, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001033 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.p"
"redefined_macros.version_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001033 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001033 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001034, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001034 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor."
"predefined_macros.gl_es_1_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001034 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001034 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001035, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001035 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.p"
"redefined_macros.gl_es_1_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001035 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001035 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001036, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001036 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor."
"predefined_macros.gl_es_2_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001036 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001036 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001037, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001037 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.p"
"redefined_macros.gl_es_2_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001037 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001037 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001038, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001038 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor."
"predefined_macros.line_1_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001038 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001038 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001039, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001039 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.p"
"redefined_macros.line_1_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001039 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001039 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001040, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001040 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor"
".predefined_macros.file_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001040 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001040 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001041, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001041 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor."
"predefined_macros.file_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001041 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001041 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001042, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001042 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.p"
"redefined_macros.if_gl_es_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001042 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001042 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001043, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001043 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.pr"
"edefined_macros.if_gl_es_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001043 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001043 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001044, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001044 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.pr"
"edefined_macros.if_version_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001044 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001044 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001045, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001045 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.pre"
"defined_macros.if_version_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001045 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001045 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001046, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001046 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.predefi"
"ned_macros.invalid_token_pasting_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001046 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001046 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001047, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001047 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.predefin"
"ed_macros.invalid_token_pasting_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001047 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001047 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册