diff --git a/graphic/vkgl/src/khrgles2/texture_3d/Khrgles2filtering_sizesTestCase.cpp b/graphic/vkgl/src/khrgles2/texture_3d/Khrgles2filtering_sizesTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..8dd537bda8bd23762506be127f0412d359b586df --- /dev/null +++ b/graphic/vkgl/src/khrgles2/texture_3d/Khrgles2filtering_sizesTestCase.cpp @@ -0,0 +1,832 @@ +/* + * 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 +#include "../Khrgles2BaseFunc.h" +#include "../ActsKhrgles20001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000021, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000021 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filt" + "ering.sizes.4x8x8_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000021 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000021 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000022, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000022 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.fil" + "tering.sizes.4x8x8_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000022 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000022 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000023, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000023 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.s" + "izes.4x8x8_nearest_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000023 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000023 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000024, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000024 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.s" + "izes.4x8x8_linear_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000024 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000024 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000025, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000025 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.s" + "izes.4x8x8_nearest_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000025 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000025 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000026, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000026 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering." + "sizes.4x8x8_linear_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000026 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000026 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000027, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000027 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filte" + "ring.sizes.32x64x16_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000027 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000027 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000028, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000028 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filte" + "ring.sizes.32x64x16_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000028 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000028 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000029, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000029 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.siz" + "es.32x64x16_nearest_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000029 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000029 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000030, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000030 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.si" + "zes.32x64x16_linear_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000030 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000030 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000031, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000031 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.si" + "zes.32x64x16_nearest_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000031 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000031 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000032, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000032 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.si" + "zes.32x64x16_linear_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000032 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000032 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000033, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000033 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filter" + "ing.sizes.128x32x64_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000033 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000033 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000034, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000034 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filte" + "ring.sizes.128x32x64_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000034 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000034 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000035, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000035 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.siz" + "es.128x32x64_nearest_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000035 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000035 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000036, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000036 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.siz" + "es.128x32x64_linear_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000036 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000036 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000037, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000037 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.siz" + "es.128x32x64_nearest_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000037 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000037 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000038, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000038 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.si" + "zes.128x32x64_linear_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000038 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000038 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000039, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000039 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filt" + "ering.sizes.3x7x5_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000039 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000039 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000040, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000040 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.fil" + "tering.sizes.3x7x5_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000040 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000040 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000041, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000041 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.s" + "izes.3x7x5_nearest_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000041 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000041 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000042, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000042 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.s" + "izes.3x7x5_linear_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000042 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000042 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000043, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000043 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.s" + "izes.3x7x5_nearest_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000043 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000043 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000044, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000044 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering." + "sizes.3x7x5_linear_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000044 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000044 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000045, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000045 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filte" + "ring.sizes.63x63x63_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000045 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000045 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000046, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000046 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filte" + "ring.sizes.63x63x63_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000046 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000046 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000047, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000047 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.siz" + "es.63x63x63_nearest_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000047 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000047 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000048, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000048 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.si" + "zes.63x63x63_linear_mipmap_nearest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000048 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000048 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000049, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000049 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.si" + "zes.63x63x63_nearest_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000049 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000049 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000050, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000050 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.filtering.si" + "zes.63x63x63_linear_mipmap_linear", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000050 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000050 end"; +} diff --git a/graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_compressed_textureTestCase.cpp b/graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_compressed_textureTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..a60b73eddd05fddf451aeed0f8e8939ce35c3c8d --- /dev/null +++ b/graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_compressed_textureTestCase.cpp @@ -0,0 +1,832 @@ +/* + * 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 +#include "../Khrgles2BaseFunc.h" +#include "../ActsKhrgles20001TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000382, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000382 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_4x4_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000382 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000382 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000383, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000383 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_5x4_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000383 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000383 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000384, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000384 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_5x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000384 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000384 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000385, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000385 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_6x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000385 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000385 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000386, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000386 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_6x6_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000386 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000386 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000387, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000387 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_8x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000387 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000387 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000388, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000388 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_8x6_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000388 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000388 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000389, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000389 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compres" + "sed_texture.rgba_astc_8x8_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000389 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000389 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000390, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000390 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compress" + "ed_texture.rgba_astc_10x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000390 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000390 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000391, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000391 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compress" + "ed_texture.rgba_astc_10x6_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000391 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000391 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000392, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000392 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compress" + "ed_texture.rgba_astc_10x8_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000392 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000392 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000393, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000393 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compress" + "ed_texture.rgba_astc_10x10_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000393 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000393 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000394, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000394 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compress" + "ed_texture.rgba_astc_12x10_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000394 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000394 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000395, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000395 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compress" + "ed_texture.rgba_astc_12x12_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000395 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000395 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000396, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000396 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_4x4_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000396 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000396 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000397, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000397 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_5x4_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000397 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000397 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000398, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000398 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_5x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000398 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000398 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000399, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000399 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_6x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000399 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000399 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000400, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000400 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_6x6_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000400 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000400 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000401, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000401 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_8x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000401 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000401 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000402, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000402 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_8x6_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000402 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000402 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000403, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000403 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.srgb8_alpha8_astc_8x8_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000403 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000403 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000404, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000404 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_" + "texture.sgb8_alpha8_astc_10x5_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000404 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000404 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000405, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000405 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_t" + "exture.srgb8_alpha8_astc_10x6_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000405 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000405 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000406, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000406 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_t" + "exture.srgb8_alpha8_astc_10x8_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000406 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000406 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000407, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000407 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_t" + "exture.srgb8_alpha8_astc_10x10_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000407 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000407 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000408, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000408 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_t" + "exture.srgb8_alpha8_astc_12x10_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000408 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000408 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000409, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000409 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_t" + "exture.srgb8_alpha8_astc_12x12_khr", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000409 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000409 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000410, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000410 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_te" + "xture.negative_compressed_tex_image", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000410 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000410 end"; +} + +static HWTEST_F(ActsKhrgles20001TestSuite, TestCase_000411, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_000411 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "KHR-GLES2.texture_3d.compressed_text" + "ure.negative_compressed_tex_sub_image", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsKhrgles20001TestSuite::runResult.numPassed += result.numPassed; + ActsKhrgles20001TestSuite::runResult.numFailed += result.numFailed; + ActsKhrgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsKhrgles20001TestSuite::runResult.numWarnings += result.numWarnings; + ActsKhrgles20001TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_000411 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_000411 end"; +}