提交 61b93f12 编写于 作者: L liucaicheng
上级 5ee93498
......@@ -13,7 +13,6 @@
* limitations under the License.
*/
#include <climits>
#include <gtest/gtest.h>
#include "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320002TestSuite.h"
......
/*
* 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 "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320002TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001137, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001137 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.ext_texture_shadow_lod.t"
"extureoffset.sampler2darrayshadow_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001137 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001137 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001138, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001138 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.ext_texture_shadow_lod.te"
"xtureoffset.sampler2darrayshadow_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001138 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001138 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001139, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001139 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.ext_texture_shadow_lod.text"
"ureoffset.sampler2darrayshadow_bias_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320002TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320002TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320002TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320002TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320002TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_001139 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001139 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 "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000097, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000097 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.geometry_shad"
"er.blitting.layered_nonlayered",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000097 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000097 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000098, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000098 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.geometry_shad"
"er.blitting.nonlayered_layered",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000098 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000098 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000099, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000099 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.geometry_sha"
"der.blitting.layered_layered",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000099 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000099 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 "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000113, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000113 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.geometry_shader.primi"
"tive_queries.primitive_queries_points",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000113 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000113 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000114, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000114 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.geometry_shader.prim"
"itive_queries.primitive_queries_lines",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000114 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000114 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000115, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000115 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.geometry_shader.primit"
"ive_queries.primitive_queries_triangles",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000115 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000115 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 "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000210, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000210 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_shader.tesse"
"llation_shader_point_mode.point_rendering",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000210 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000210 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000211, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000211 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_shader.tessell"
"ation_shader_point_mode.points_verification",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000211 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000211 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 "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000195, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000195 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_shader.tessellat"
"ion_shader_quads_tessellation.degenerate_case",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000195 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000195 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000196, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000196 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_shader.tessellation_shade"
"r_quads_tessellation.inner_tessellation_level_rounding",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000196 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000196 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 "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000212, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000212 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_shader.tessellatio"
"n_shader_tc_barriers.barrier_guarded_read_calls",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000212 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000212 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000213, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000213 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_shader.tessellatio"
"n_shader_tc_barriers.barrier_guarded_write_calls",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000213 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000213 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000214, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000214 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_shader.tessellation_s"
"hader_tc_barriers.barrier_guarded_read_write_calls",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000214 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000214 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 "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000186, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000186 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation_"
"shader.vertex.vertex_ordering",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000186 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000186 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000187, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000187 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.tessellation"
"_shader.vertex.vertex_spacing",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles320001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles320001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles320001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles320001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles320001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000187 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000187 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册