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

!3863 add khrgles3 testcase pr3

Merge pull request !3863 from 宣东/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_001396, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001396 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.name_hidin"
"g.basic.hidden_name_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_001396 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001396 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001397, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001397 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.name_hiding"
".basic.hidden_name_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_001397 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001397 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001398, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001398 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.name_hidin"
"g.basic.hidden_name_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_001398 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001398 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001399, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001399 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.name_hiding"
".basic.hidden_name_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_001399 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001399 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001400, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001400 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.name_hidin"
"g.basic.hidden_name_3_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_001400 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001400 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001401, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001401 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.name_hiding"
".basic.hidden_name_3_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_001401 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001401 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 "../Khrgles3BaseFunc.h"
#include "../ActsKhrgles30002TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001206, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001206 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preproc"
"essor.builtin.line_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_001206 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001206 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001207, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001207 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preproce"
"ssor.builtin.line_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_001207 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001207 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001208, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001208 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocesso"
"r.builtin.line_and_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_001208 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001208 end";
}
static HWTEST_F(ActsKhrgles30002TestSuite, TestCase_001209, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001209 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor"
".builtin.line_and_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_001209 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001209 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 "../Khrgles3BaseFunc.h"
#include "../ActsKhrgles30001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000968, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000968 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.function_defi"
"nitions.same_object_and_function_param_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000968 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000968 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000969, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000969 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.function_defin"
"itions.same_object_and_function_param_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000969 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000969 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000970, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000970 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.func"
"tion_definitions.complex_func_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000970 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000970 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000971, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000971 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.funct"
"ion_definitions.complex_func_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000971 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000971 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000972, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000972 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.function_defini"
"tions.function_definition_with_comments_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000972 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000972 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000973, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000973 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.preprocessor.function_definit"
"ions.function_definition_with_comments_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000973 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000973 end";
}
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
#include <climits>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "../Khrgles3BaseFunc.h" #include "../Khrgles3BaseFunc.h"
#include "../ActsKhrgles30003TestSuite.h" #include "../ActsKhrgles30003TestSuite.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册