提交 06513755 编写于 作者: J jiangyuan 提交者: dengrong

add testcase

Signed-off-by: Njiangyuan <jiangyuan@kaihongdigi.com>
上级 ec07d489
/*
* 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_001028, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001028 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.cop"
"y_image.r32i_texture",
"--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_001028 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001028 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001029, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001029 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.copy"
"_image.r32ui_texture",
"--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_001029 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001029 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_000319, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000319 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.draw_b"
"uffers_indexed.coverage",
"--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_000319 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000319 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000320, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000320 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.draw_buff"
"ers_indexed.default_state",
"--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_000320 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000320 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000321, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000321 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.draw_b"
"uffers_indexed.set_get",
"--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_000321 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000321 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000322, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000322 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.draw_buf"
"fers_indexed.color_masks",
"--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_000322 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000322 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000323, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000323 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.draw_b"
"uffers_indexed.blending",
"--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_000323 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000323 end";
}
static HWTEST_F(ActsKhrgles320001TestSuite, TestCase_000324, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000324 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.draw_b"
"uffers_indexed.negative",
"--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_000324 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000324 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 "../ActsKhrgles320002TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001147, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001147 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.near"
"est_edge.offset_left",
"--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_001147 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001147 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001148, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001148 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.near"
"est_edge.offset_right",
"--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_001148 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001148 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 "../ActsKhrgles320002TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001026, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001026 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.separable_pr"
"ograms_tf.tessellation_active",
"--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_001026 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001026 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001027, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001027 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.separable_"
"programs_tf.geometry_active",
"--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_001027 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001027 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 "../ActsKhrgles320002TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001021, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001021 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.shader_macros."
"fragment_precision_high_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_001021 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001021 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001022, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001022 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.shader_macros.f"
"ragment_precision_high_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_001022 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001022 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001023, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001023 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.shader_macros.f"
"ragment_precision_high_geometry",
"--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_001023 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001023 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001024, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001024 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.shader_macros.fra"
"gment_precision_high_tess_control",
"--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_001024 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001024 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001025, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001025 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.shader_macros.f"
"ragment_precision_high_tess_eval",
"--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_001025 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001025 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 "../ActsKhrgles320002TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001167, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001167 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility."
"texsubimage_format_rgba4_unsigned_byte",
"--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_001167 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001167 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001168, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001168 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility.t"
"exsubimage_format_rgb5_a1_unsigned_byte",
"--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_001168 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001168 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001169, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001169 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility.tex"
"subimage_format_rgb5_a1_unsigned_int_10_a2",
"--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_001169 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001169 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001170, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001170 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibi"
"lity.texsubimage_format_r16f_float",
"--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_001170 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001170 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001171, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001171 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibil"
"ity.texsubimage_format_rg16f_float",
"--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_001171 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001171 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001172, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001172 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibil"
"ity.texsubimage_format_rgb16f_float",
"--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_001172 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001172 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001173, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001173 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibili"
"ty.texsubimage_format_rgba16f_float",
"--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_001173 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001173 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001174, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001174 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility.tex"
"subimage_format_r11f_g11f_b10f_half_float",
"--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_001174 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001174 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001175, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001175 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility."
"texsubimage_format_r11f_g11f_b10f_float",
"--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_001175 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001175 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001176, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001176 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility"
".texsubimage_format_rgb9_e5_half_float",
"--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_001176 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001176 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001177, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001177 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibili"
"ty.texsubimage_format_rgb9_e5_float",
"--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_001177 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001177 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001178, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001178 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility."
"texsubimage_format_rgb565_unsigned_byte",
"--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_001178 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001178 end";
}
static HWTEST_F(ActsKhrgles320002TestSuite, TestCase_001179, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_001179 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES32.core.texture_compatibility.t"
"exsubimage_format_depth_component16_uint",
"--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_001179 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_001179 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册