提交 6bea506c 编写于 作者: W wangshi

add depq3 testcase

Signed-off-by: Nwangshi <wangshi@kaihongdigi.com>
上级 be09898c
/*
* 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 "../Deqpgles3BaseFunc.h"
#include "../ActsDeqpgles30030TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030123, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030123 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_fun"
"c_dst_func.reverse_subtract_one_minus_constant_alpha_constant_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030123 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030123 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030124, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030124 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_func_dst"
"_func.reverse_subtract_one_minus_constant_alpha_one_minus_constant_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030124 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030124 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030125, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030125 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_func_"
"dst_func.reverse_subtract_one_minus_constant_alpha_src_alpha_saturate",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030125 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030125 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030126, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030126 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation"
"_src_func_dst_func.reverse_subtract_src_alpha_saturate_zero",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030126 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030126 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030127, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030127 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation"
"_src_func_dst_func.reverse_subtract_src_alpha_saturate_one",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030127 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030127 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030128, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030128 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_sr"
"c_func_dst_func.reverse_subtract_src_alpha_saturate_src_color",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030128 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030128 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030129, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030129 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_fun"
"c_dst_func.reverse_subtract_src_alpha_saturate_one_minus_src_color",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030129 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030129 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030130, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030130 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_sr"
"c_func_dst_func.reverse_subtract_src_alpha_saturate_dst_color",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030130 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030130 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030131, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030131 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_fun"
"c_dst_func.reverse_subtract_src_alpha_saturate_one_minus_dst_color",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030131 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030131 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030132, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030132 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_sr"
"c_func_dst_func.reverse_subtract_src_alpha_saturate_src_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030132 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030132 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030133, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030133 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_fun"
"c_dst_func.reverse_subtract_src_alpha_saturate_one_minus_src_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030133 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030133 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030134, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030134 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_sr"
"c_func_dst_func.reverse_subtract_src_alpha_saturate_dst_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030134 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030134 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030135, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030135 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_fun"
"c_dst_func.reverse_subtract_src_alpha_saturate_one_minus_dst_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030135 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030135 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030136, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030136 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_"
"func_dst_func.reverse_subtract_src_alpha_saturate_constant_color",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030136 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030136 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030137, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030137 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_func_"
"dst_func.reverse_subtract_src_alpha_saturate_one_minus_constant_color",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030137 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030137 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030138, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030138 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_"
"func_dst_func.reverse_subtract_src_alpha_saturate_constant_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030138 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030138 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030139, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030139 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_func_"
"dst_func.reverse_subtract_src_alpha_saturate_one_minus_constant_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030139 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030139 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030140, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030140 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.equation_src_fu"
"nc_dst_func.reverse_subtract_src_alpha_saturate_src_alpha_saturate",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030140 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030140 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030141, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030141 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend"
".fbo_srgb.equation_src_func_dst_func.min",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030141 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030141 end";
}
static HWTEST_F(ActsDeqpgles30030TestSuite, TestCase_030142, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_030142 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"dEQP-GLES3.functional.fragment_ops.blend"
".fbo_srgb.equation_src_func_dst_func.max",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsDeqpgles30030TestSuite::runResult.numPassed += result.numPassed;
ActsDeqpgles30030TestSuite::runResult.numFailed += result.numFailed;
ActsDeqpgles30030TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsDeqpgles30030TestSuite::runResult.numWarnings += result.numWarnings;
ActsDeqpgles30030TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_030142 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_030142 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册