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

!3850 add khrgles31 testcast part6

Merge pull request !3850 from hanxiang/master
/*
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include <ctime>
#include "Khrgles31BaseFunc.h"
#include "ActsKhrgles310001TestSuite.h"
namespace OHOS {
using namespace std;
using namespace testing::ext;
time_t ActsKhrgles310001TestSuite::starttime;
time_t ActsKhrgles310001TestSuite::endtime;
FuncRunResult ActsKhrgles310001TestSuite::runResult;
// Preset action of the test suite, which is executed before the first test case
void ActsKhrgles310001TestSuite::SetUpTestCase(void)
{
time(&starttime);
RegistPackage();
runResult.numPassed = 0;
runResult.numFailed = 0;
runResult.numNotSupported = 0;
runResult.numWarnings = 0;
runResult.numWaived = 0;
}
// Test suite cleanup action, which is executed after the last test case
void ActsKhrgles310001TestSuite::TearDownTestCase(void)
{
time(&endtime);
printf("Test run totals --- Passed[%d]\n", runResult.numPassed);
printf("Test run totals --- Failed[%d]\n", runResult.numFailed);
printf("Test run totals --- Notsupport[%d]\n", runResult.numNotSupported);
printf("Test run totals --- Warnings[%d]\n", runResult.numWarnings);
printf("Test run totals --- Waved[%d]\n", runResult.numWaived);
printf("testmain end --- COST TIME[%lld]\n", (endtime-starttime));
}
// Preset action of the test case
void ActsKhrgles310001TestSuite::SetUp()
{
}
// Cleanup action of the test case
void ActsKhrgles310001TestSuite::TearDown()
{
}
}
\ No newline at end of file
/*
* 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.
*/
#ifndef KHRGLES31_TESTCASE_H
#define KHRGLES31_TESTCASE_H
#include <gtest/gtest.h>
#include "Khrgles31BaseFunc.h"
namespace OHOS {
class ActsKhrgles310001TestSuite : public testing::Test {
public:
static time_t starttime;
static time_t endtime;
static FuncRunResult runResult;
protected:
// Preset action of the test suite, which is executed before the first test case
static void SetUpTestCase(void);
// Test suite cleanup action, which is executed after the last test case
static void TearDownTestCase(void);
// Preset action of the test case
virtual void SetUp();
// Cleanup action of the test case
virtual void TearDown();
};
} // namespace OHOS
#endif // KHRGLES31_TESTCASE_H
\ No newline at end of file
/*
* 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 <ctime>
#include "Khrgles31BaseFunc.h"
#include "ActsKhrgles310002TestSuite.h"
namespace OHOS {
using namespace std;
using namespace testing::ext;
time_t ActsKhrgles310002TestSuite::starttime;
time_t ActsKhrgles310002TestSuite::endtime;
FuncRunResult ActsKhrgles310002TestSuite::runResult;
// Preset action of the test suite, which is executed before the first test case
void ActsKhrgles310002TestSuite::SetUpTestCase(void)
{
time(&starttime);
RegistPackage();
runResult.numPassed = 0;
runResult.numFailed = 0;
runResult.numNotSupported = 0;
runResult.numWarnings = 0;
runResult.numWaived = 0;
}
// Test suite cleanup action, which is executed after the last test case
void ActsKhrgles310002TestSuite::TearDownTestCase(void)
{
time(&endtime);
printf("Test run totals --- Passed[%d]\n", runResult.numPassed);
printf("Test run totals --- Failed[%d]\n", runResult.numFailed);
printf("Test run totals --- Notsupport[%d]\n", runResult.numNotSupported);
printf("Test run totals --- Warnings[%d]\n", runResult.numWarnings);
printf("Test run totals --- Waved[%d]\n", runResult.numWaived);
printf("testmain end --- COST TIME[%lld]\n", (endtime-starttime));
}
// Preset action of the test case
void ActsKhrgles310002TestSuite::SetUp()
{
}
// Cleanup action of the test case
void ActsKhrgles310002TestSuite::TearDown()
{
}
}
\ No newline at end of file
/*
* 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.
*/
#ifndef KHRGLES31_TESTCASE_H
#define KHRGLES31_TESTCASE_H
#include <gtest/gtest.h>
#include "Khrgles31BaseFunc.h"
namespace OHOS {
class ActsKhrgles310002TestSuite : public testing::Test {
public:
static time_t starttime;
static time_t endtime;
static FuncRunResult runResult;
protected:
// Preset action of the test suite, which is executed before the first test case
static void SetUpTestCase(void);
// Test suite cleanup action, which is executed after the last test case
static void TearDownTestCase(void);
// Preset action of the test case
virtual void SetUp();
// Cleanup action of the test case
virtual void TearDown();
};
} // namespace OHOS
#endif // KHRGLES31_TESTCASE_H
\ No newline at end of file
/*
* 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 <ctime>
#include "Khrgles31BaseFunc.h"
#include "ActsKhrgles310003TestSuite.h"
namespace OHOS {
using namespace std;
using namespace testing::ext;
time_t ActsKhrgles310003TestSuite::starttime;
time_t ActsKhrgles310003TestSuite::endtime;
FuncRunResult ActsKhrgles310003TestSuite::runResult;
// Preset action of the test suite, which is executed before the first test case
void ActsKhrgles310003TestSuite::SetUpTestCase(void)
{
time(&starttime);
RegistPackage();
runResult.numPassed = 0;
runResult.numFailed = 0;
runResult.numNotSupported = 0;
runResult.numWarnings = 0;
runResult.numWaived = 0;
}
// Test suite cleanup action, which is executed after the last test case
void ActsKhrgles310003TestSuite::TearDownTestCase(void)
{
time(&endtime);
printf("Test run totals --- Passed[%d]\n", runResult.numPassed);
printf("Test run totals --- Failed[%d]\n", runResult.numFailed);
printf("Test run totals --- Notsupport[%d]\n", runResult.numNotSupported);
printf("Test run totals --- Warnings[%d]\n", runResult.numWarnings);
printf("Test run totals --- Waved[%d]\n", runResult.numWaived);
printf("testmain end --- COST TIME[%lld]\n", (endtime-starttime));
}
// Preset action of the test case
void ActsKhrgles310003TestSuite::SetUp()
{
}
// Cleanup action of the test case
void ActsKhrgles310003TestSuite::TearDown()
{
}
}
\ No newline at end of file
/*
* 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.
*/
#ifndef KHRGLES31_TESTCASE_H
#define KHRGLES31_TESTCASE_H
#include <gtest/gtest.h>
#include "Khrgles31BaseFunc.h"
namespace OHOS {
class ActsKhrgles310003TestSuite : public testing::Test {
public:
static time_t starttime;
static time_t endtime;
static FuncRunResult runResult;
protected:
// Preset action of the test suite, which is executed before the first test case
static void SetUpTestCase(void);
// Test suite cleanup action, which is executed after the last test case
static void TearDownTestCase(void);
// Preset action of the test case
virtual void SetUp();
// Cleanup action of the test case
virtual void TearDown();
};
} // namespace OHOS
#endif // KHRGLES31_TESTCASE_H
\ No newline at end of file
/*
* 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 <ctime>
#include "Khrgles31BaseFunc.h"
#include "ActsKhrgles310004TestSuite.h"
namespace OHOS {
using namespace std;
using namespace testing::ext;
time_t ActsKhrgles310004TestSuite::starttime;
time_t ActsKhrgles310004TestSuite::endtime;
FuncRunResult ActsKhrgles310004TestSuite::runResult;
// Preset action of the test suite, which is executed before the first test case
void ActsKhrgles310004TestSuite::SetUpTestCase(void)
{
time(&starttime);
RegistPackage();
runResult.numPassed = 0;
runResult.numFailed = 0;
runResult.numNotSupported = 0;
runResult.numWarnings = 0;
runResult.numWaived = 0;
}
// Test suite cleanup action, which is executed after the last test case
void ActsKhrgles310004TestSuite::TearDownTestCase(void)
{
time(&endtime);
printf("Test run totals --- Passed[%d]\n", runResult.numPassed);
printf("Test run totals --- Failed[%d]\n", runResult.numFailed);
printf("Test run totals --- Notsupport[%d]\n", runResult.numNotSupported);
printf("Test run totals --- Warnings[%d]\n", runResult.numWarnings);
printf("Test run totals --- Waved[%d]\n", runResult.numWaived);
printf("testmain end --- COST TIME[%lld]\n", (endtime-starttime));
}
// Preset action of the test case
void ActsKhrgles310004TestSuite::SetUp()
{
}
// Cleanup action of the test case
void ActsKhrgles310004TestSuite::TearDown()
{
}
}
\ No newline at end of file
/*
* 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.
*/
#ifndef KHRGLES31_TESTCASE_H
#define KHRGLES31_TESTCASE_H
#include <gtest/gtest.h>
#include "Khrgles31BaseFunc.h"
namespace OHOS {
class ActsKhrgles310004TestSuite : public testing::Test {
public:
static time_t starttime;
static time_t endtime;
static FuncRunResult runResult;
protected:
// Preset action of the test suite, which is executed before the first test case
static void SetUpTestCase(void);
// Test suite cleanup action, which is executed after the last test case
static void TearDownTestCase(void);
// Preset action of the test case
virtual void SetUp();
// Cleanup action of the test case
virtual void TearDown();
};
} // namespace OHOS
#endif // KHRGLES31_TESTCASE_H
\ No newline at end of file
/*
* 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 <ctime>
#include "Khrgles31BaseFunc.h"
#include "ActsKhrgles31TestSuite.h"
namespace OHOS {
using namespace std;
using namespace testing::ext;
time_t ActsKhrgles31TestSuite::starttime;
time_t ActsKhrgles31TestSuite::endtime;
FuncRunResult ActsKhrgles31TestSuite::runResult;
// Preset action of the test suite, which is executed before the first test case
void ActsKhrgles31TestSuite::SetUpTestCase(void)
{
time(&starttime);
RegistPackage();
runResult.numPassed = 0;
runResult.numFailed = 0;
runResult.numNotSupported = 0;
runResult.numWarnings = 0;
runResult.numWaived = 0;
}
// Test suite cleanup action, which is executed after the last test case
void ActsKhrgles31TestSuite::TearDownTestCase(void)
{
time(&endtime);
printf("Test run totals --- Passed[%d]\n", runResult.numPassed);
printf("Test run totals --- Failed[%d]\n", runResult.numFailed);
printf("Test run totals --- Notsupport[%d]\n", runResult.numNotSupported);
printf("Test run totals --- Warnings[%d]\n", runResult.numWarnings);
printf("Test run totals --- Waved[%d]\n", runResult.numWaived);
printf("testmain end --- COST TIME[%lld]\n", (endtime-starttime));
}
// Preset action of the test case
void ActsKhrgles31TestSuite::SetUp()
{
}
// Cleanup action of the test case
void ActsKhrgles31TestSuite::TearDown()
{
}
}
\ No newline at end of file
/*
* 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.
*/
#ifndef KHRGLES31_TESTCASE_H
#define KHRGLES31_TESTCASE_H
#include <gtest/gtest.h>
#include "Khrgles31BaseFunc.h"
namespace OHOS {
class ActsKhrgles31TestSuite : public testing::Test {
public:
static time_t starttime;
static time_t endtime;
static FuncRunResult runResult;
protected:
// Preset action of the test suite, which is executed before the first test case
static void SetUpTestCase(void);
// Test suite cleanup action, which is executed after the last test case
static void TearDownTestCase(void);
// Preset action of the test case
virtual void SetUp();
// Cleanup action of the test case
virtual void TearDown();
};
} // namespace OHOS
#endif // KHRGLES31_TESTCASE_H
\ No newline at end of file
/*
* 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 "tcuDefs.hpp"
#include "tcuCommandLine.hpp"
#include "tcuPlatform.hpp"
#include "ActsApp.h"
#include "tcuResource.hpp"
#include "tcuTestLog.hpp"
#include "tcuTestSessionExecutor.hpp"
#include "deUniquePtr.hpp"
#include "external/openglcts/modules/common/glcConfigPackage.hpp"
#include "external/openglcts/modules/common/glcTestPackage.hpp"
#include "external/openglcts/modules/gles2/es2cTestPackage.hpp"
#include "external/openglcts/modules/gles32/es32cTestPackage.hpp"
#include "external/openglcts/modules/gles31/es31cTestPackage.hpp"
#include "external/openglcts/modules/gles3/es3cTestPackage.hpp"
#include "external/openglcts/modules/glesext/esextcTestPackage.hpp"
#include "external/openglcts/modules/common/glcSingleConfigTestPackage.hpp"
#include "modules/gles2/tes2TestPackage.hpp"
#include "modules/gles3/tes3TestPackage.hpp"
#include "modules/gles31/tes31TestPackage.hpp"
#include "ohos_context_i.h"
#include "Khrgles31BaseFunc.h"
static tcu::TestPackage* createKhrgles31Package(tcu::TestContext& testCtx)
{
return new es31cts::ES31TestPackage(testCtx, "KHR-KHRGLES31");
}
void RegistPackage(void)
{
tcu::TestPackageRegistry *registry = tcu::TestPackageRegistry::getSingleton();
registry->registerPackage("KHR-GLES31", createKhrgles31Package);
}
FuncRunResult RunTestKHRGLES(int argc, const char** argv)
{
FuncRunResult runResult;
try {
tcu::CommandLine cmdLine(argc, argv);
tcu::DirArchive archive(cmdLine.getArchiveDir());
de::UniquePtr<tcu::Platform> platform(createOhosPlatform());
de::UniquePtr<tcu::ActsApp> app(new tcu::ActsApp(*platform, archive, tcutestlog, cmdLine));
for (;;) {
if (!app->iterate()) {
break;
};
};
runResult.isComplete = app->getResult().isComplete;
runResult.numPassed = app->getResult().numPassed;
runResult.numExecuted = app->getResult().numExecuted;
runResult.numFailed = app->getResult().numFailed;
runResult.numNotSupported = app->getResult().numNotSupported;
runResult.numWarnings = app->getResult().numWarnings;
runResult.numWaived = app->getResult().numWaived;
} catch (const std::exception &e) {
tcu::die("%s", e.what());
};
return runResult;
}
\ No newline at end of file
/*
* 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.
*/
#ifndef KHRGLES31_FUNC_H
#define KHRGLES31_FUNC_H
struct FuncRunResult {
int numExecuted; // !< Total number of cases executed.
int numPassed; // !< Number of cases passed.
int numFailed; // !< Number of cases failed.
int numNotSupported; // !< Number of cases not supported.
int numWarnings; // !< Number of QualityWarning / CompatibilityWarning results.
int numWaived; // !< Number of waived tests.
bool isComplete; // !< Is run complete.
};
void RegistPackage(void);
FuncRunResult RunTestKHRGLES(int argc, const char** argv);
#endif // KHRGLES31_FUNC_H
\ No newline at end of file
# 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.
import("//test/xts/acts/graphic/vkglcts/comm.gni")
config("deqp_platform_ohos_config") {
cflags_cc = deqp_common_cflags_cc
cflags_cc += [
# "-Wno-conversion",
# "-Wno-unused-function",
"-Wno-unused-parameter",
]
defines = deqp_common_defines
# defines -=["DE_PTR_SIZE=8"]
defines += [
"DE_PTR_SIZE=4",
"_XOPEN_SOURCE=600",
]
}
ohos_static_library("libkhrgles31func0001") {
sources = common_src
sources += [ "../Khrgles31BaseFunc.cpp" ]
include_dirs = common_include
deps = common_depends
external_deps = [
"hilog_native:libhilog",
"multimedia_image_standard:image_native",
]
lib_dirs = [ "//third_party/VK-GL-CTS/outlibs" ]
libs = [ "png" ]
configs = [ ":deqp_platform_ohos_config" ]
public_deps = [ "//foundation/ace/ace_engine/build/external_config/flutter/skia:ace_skia_ohos" ]
}
ohos_moduletest_suite("ActsKhrgles31TestSuite0001") {
sources = [
"../ActsKhrgles310001TestSuite.cpp",
"../core/Khrgles31base_rgba32fTestCase.cpp",
"../core/Khrgles31base_rgba8TestCase.cpp",
"../core/Khrgles31base_rgba8iTestCase.cpp",
"../core/Khrgles31base_rgba8uiTestCase.cpp",
"../core/Khrgles31centroid_rgba32fTestCase.cpp",
"../core/Khrgles31centroid_rgba8TestCase.cpp",
"../core/Khrgles31centroid_rgba8iTestCase.cpp",
"../core/Khrgles31centroid_rgba8uiTestCase.cpp",
"../core/Khrgles31core_constant_expressionsTestCase.cpp",
"../core/Khrgles31core_constant_expressionsTestCase1.cpp",
"../core/Khrgles31core_constant_expressionsTestCase10.cpp",
"../core/Khrgles31core_constant_expressionsTestCase11.cpp",
"../core/Khrgles31core_constant_expressionsTestCase12.cpp",
"../core/Khrgles31core_constant_expressionsTestCase2.cpp",
"../core/Khrgles31core_constant_expressionsTestCase3.cpp",
"../core/Khrgles31core_constant_expressionsTestCase4.cpp",
"../core/Khrgles31core_constant_expressionsTestCase5.cpp",
"../core/Khrgles31core_constant_expressionsTestCase6.cpp",
"../core/Khrgles31core_constant_expressionsTestCase7.cpp",
"../core/Khrgles31core_constant_expressionsTestCase8.cpp",
"../core/Khrgles31core_constant_expressionsTestCase9.cpp",
"../core/Khrgles31core_layout_bindingTestCase.cpp",
"../core/Khrgles31core_sepshaderobjsTestCase.cpp",
"../core/Khrgles31core_shader_atomic_countersTestCase.cpp",
"../core/Khrgles31core_shader_integer_mixTestCase.cpp",
"../core/Khrgles31core_texture_gatherTestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_check_rgba32fTestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_check_rgba8TestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_check_rgba8iTestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_check_rgba8uiTestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_rgba32fTestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_rgba8TestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_rgba8iTestCase.cpp",
"../core/Khrgles31interpolate_at_centroid_rgba8uiTestCase.cpp",
"../core/Khrgles31interpolate_at_offset_check_rgba32fTestCase.cpp",
"../core/Khrgles31interpolate_at_offset_check_rgba8TestCase.cpp",
"../core/Khrgles31interpolate_at_offset_check_rgba8iTestCase.cpp",
"../core/Khrgles31interpolate_at_offset_check_rgba8uiTestCase.cpp",
"../core/Khrgles31interpolate_at_offset_rgba32fTestCase.cpp",
"../core/Khrgles31interpolate_at_offset_rgba8TestCase.cpp",
"../core/Khrgles31interpolate_at_offset_rgba8iTestCase.cpp",
"../core/Khrgles31interpolate_at_offset_rgba8uiTestCase.cpp",
"../core/Khrgles31interpolate_at_sample_check_rgba32fTestCase.cpp",
"../core/Khrgles31interpolate_at_sample_check_rgba8TestCase.cpp",
"../core/Khrgles31interpolate_at_sample_check_rgba8iTestCase.cpp",
"../core/Khrgles31interpolate_at_sample_check_rgba8uiTestCase.cpp",
"../core/Khrgles31interpolate_at_sample_rgba32fTestCase.cpp",
"../core/Khrgles31interpolate_at_sample_rgba8TestCase.cpp",
"../core/Khrgles31interpolate_at_sample_rgba8iTestCase.cpp",
"../core/Khrgles31interpolate_at_sample_rgba8uiTestCase.cpp",
"../core/Khrgles31position_fixedTestCase.cpp",
"../core/Khrgles31position_non-fixedTestCase.cpp",
"../core/Khrgles31render_rgba32fTestCase.cpp",
"../core/Khrgles31render_rgba8TestCase.cpp",
"../core/Khrgles31render_rgba8iTestCase.cpp",
"../core/Khrgles31render_rgba8uiTestCase.cpp",
"../core/Khrgles31rgba32f_samples_0TestCase.cpp",
"../core/Khrgles31rgba32f_samples_1TestCase.cpp",
"../core/Khrgles31rgba32f_samples_2TestCase.cpp",
"../core/Khrgles31rgba32f_samples_4TestCase.cpp",
"../core/Khrgles31rgba32f_samples_8TestCase.cpp",
"../core/Khrgles31rgba8_samples_0TestCase.cpp",
"../core/Khrgles31rgba8_samples_1TestCase.cpp",
"../core/Khrgles31rgba8_samples_2TestCase.cpp",
"../core/Khrgles31rgba8_samples_4TestCase.cpp",
"../core/Khrgles31rgba8_samples_8TestCase.cpp",
"../core/Khrgles31rgba8i_samples_0TestCase.cpp",
"../core/Khrgles31rgba8i_samples_1TestCase.cpp",
"../core/Khrgles31rgba8i_samples_2TestCase.cpp",
"../core/Khrgles31rgba8i_samples_4TestCase.cpp",
"../core/Khrgles31rgba8i_samples_8TestCase.cpp",
"../core/Khrgles31rgba8ui_samples_0TestCase.cpp",
"../core/Khrgles31rgba8ui_samples_1TestCase.cpp",
"../core/Khrgles31rgba8ui_samples_2TestCase.cpp",
"../core/Khrgles31rgba8ui_samples_4TestCase.cpp",
"../core/Khrgles31rgba8ui_samples_8TestCase.cpp",
"../core/Khrgles31sample_rgba32fTestCase.cpp",
"../core/Khrgles31sample_rgba8TestCase.cpp",
"../core/Khrgles31sample_rgba8iTestCase.cpp",
"../core/Khrgles31sample_rgba8uiTestCase.cpp",
"../core/Khrgles31sample_shading_apiTestCase.cpp",
"../core/Khrgles31sample_variables_verificationTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_bitCountTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_bitfieldExtractTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_bitfieldInsertTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_bitfieldReverseTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_findLSBTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_findMSBTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_frexpTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_imulExtendedTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_ldexpTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_packSnorm4x8TestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_packUnorm4x8TestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_uaddCarryTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_umulExtendedTestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_unpackSnorm4x8TestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_unpackUnorm4x8TestCase.cpp",
"../core/Khrgles31shader_bitfield_operation_usubBorrowTestCase.cpp",
"../core/Khrgles31shader_multisample_interpolation_apiTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_APIDependenciesTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_APIGLGetActiveUniformTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_APIGLGetMultisamplefvTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_APIGLGetTexLevelParameterifvTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_APIGLTexStorage2DMultisampleTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_APIGLTexStorage3DMultisampleTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_FunctionalTestsTestCase.cpp",
"../core/Khrgles31texture_storage_multisample_GLCoverageTestCase.cpp",
]
include_dirs = [ "//test/xts/acts/graphic/vkglcts/src" ]
deps = [ ":libkhrgles31func0001" ]
cflags = [ "-Wno-error" ]
}
{
"description": "Config for ActsKhrgles31TestSuite0001 test cases",
"driver": {
"module-name": "ActsKhrgles31TestSuite0001",
"native-test-timeout": "120000",
"native-test-device-path": "/data/local/tmp",
"runtime-hint": "100s",
"type": "CppTest"
},
"kits": [
{
"pre-push" : [
],
"post-push" : [
"chmod -R 777 /data/local/tmp/*",
"mkdir /data/local/tmp/gl_cts",
"tar zxvf /data/local/tmp/gl_cts.tar.gz -C /data/local/tmp/gl_cts",
"cp -r /data/local/tmp/gl_cts/data/gles2 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles3 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles31 /data/local/tmp"
],
"push": [
"ActsKhrgles31TestSuite0001->/data/local/tmp/ActsKhrgles31TestSuite0001",
"../../../common/common/librosen_context.z.so->/system/lib",
"gl_cts.tar.gz->/data/local/tmp/gl_cts.tar.gz"
],
"type": "PushKit"
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /data/test",
"cd /data/local/tmp"
]
}
]
}
\ No newline at end of file
# 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.
import("//test/xts/acts/graphic/vkglcts/comm.gni")
config("deqp_platform_ohos_config") {
cflags_cc = deqp_common_cflags_cc
cflags_cc += [
# "-Wno-conversion",
# "-Wno-unused-function",
"-Wno-unused-parameter",
]
defines = deqp_common_defines
# defines -=["DE_PTR_SIZE=8"]
defines += [
"DE_PTR_SIZE=4",
"_XOPEN_SOURCE=600",
]
}
ohos_static_library("libkhrgles31func0002") {
sources = common_src
sources += [ "../Khrgles31BaseFunc.cpp" ]
include_dirs = common_include
deps = common_depends
external_deps = [
"hilog_native:libhilog",
"multimedia_image_standard:image_native",
]
lib_dirs = [ "//third_party/VK-GL-CTS/outlibs" ]
libs = [ "png" ]
configs = [ ":deqp_platform_ohos_config" ]
public_deps = [ "//foundation/ace/ace_engine/build/external_config/flutter/skia:ace_skia_ohos" ]
}
ohos_moduletest_suite("ActsKhrgles31TestSuite0002") {
sources = [
"../ActsKhrgles310002TestSuite.cpp",
"../core/Khrgles31blend_equation_advanced_BlendEquationSeparateTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_MRTTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_blend_allTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_blend_specificTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_coherentTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_extension_directiveTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_mismatching_qualifierTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_missing_qualifierTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_preprocessorTestCase.cpp",
"../core/Khrgles31blend_equation_advanced_test_coherencyTestCase.cpp",
"../core/Khrgles31core_compute_shaderTestCase.cpp",
"../core/Khrgles31core_shader_macrosTestCase.cpp",
"../core/Khrgles31core_shader_storage_buffer_objectTestCase.cpp",
"../core/Khrgles31core_shader_storage_buffer_objectTestCase1.cpp",
"../core/Khrgles31core_vertex_attrib_bindingTestCase.cpp",
]
include_dirs = [ "//test/xts/acts/graphic/vkglcts/src" ]
deps = [ ":libkhrgles31func0002" ]
cflags = [ "-Wno-error" ]
}
{
"description": "Config for ActsKhrgles31TestSuite0002 test cases",
"driver": {
"module-name": "ActsKhrgles31TestSuite0002",
"native-test-timeout": "120000",
"native-test-device-path": "/data/local/tmp",
"runtime-hint": "100s",
"type": "CppTest"
},
"kits": [
{
"pre-push" : [
],
"post-push" : [
"chmod -R 777 /data/local/tmp/*",
"mkdir /data/local/tmp/gl_cts",
"tar zxvf /data/local/tmp/gl_cts.tar.gz -C /data/local/tmp/gl_cts",
"cp -r /data/local/tmp/gl_cts/data/gles2 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles3 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles31 /data/local/tmp"
],
"push": [
"ActsKhrgles31TestSuite0002->/data/local/tmp/ActsKhrgles31TestSuite0002",
"../../../common/common/librosen_context.z.so->/system/lib",
"gl_cts.tar.gz->/data/local/tmp/gl_cts.tar.gz"
],
"type": "PushKit"
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /data/test",
"cd /data/local/tmp"
]
}
]
}
\ No newline at end of file
# 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.
import("//test/xts/acts/graphic/vkglcts/comm.gni")
config("deqp_platform_ohos_config") {
cflags_cc = deqp_common_cflags_cc
cflags_cc += [
# "-Wno-conversion",
# "-Wno-unused-function",
"-Wno-unused-parameter",
]
defines = deqp_common_defines
# defines -=["DE_PTR_SIZE=8"]
defines += [
"DE_PTR_SIZE=4",
"_XOPEN_SOURCE=600",
]
}
ohos_static_library("libkhrgles31func0003") {
sources = common_src
sources += [ "../Khrgles31BaseFunc.cpp" ]
include_dirs = common_include
deps = common_depends
external_deps = [
"hilog_native:libhilog",
"multimedia_image_standard:image_native",
]
lib_dirs = [ "//third_party/VK-GL-CTS/outlibs" ]
libs = [ "png" ]
configs = [ ":deqp_platform_ohos_config" ]
public_deps = [ "//foundation/ace/ace_engine/build/external_config/flutter/skia:ace_skia_ohos" ]
}
ohos_moduletest_suite("ActsKhrgles31TestSuite0003") {
sources = [
"../ActsKhrgles310003TestSuite.cpp",
"../core/Khrgles31compressed_format_apiTestCase.cpp",
"../core/Khrgles31compressed_format_formatTestCase.cpp",
"../core/Khrgles31core_arrays_of_arraysTestCase.cpp",
"../core/Khrgles31core_draw_buffers_indexedTestCase.cpp",
"../core/Khrgles31core_draw_indirectTestCase.cpp",
"../core/Khrgles31core_explicit_uniform_locationTestCase.cpp",
"../core/Khrgles31core_framebuffer_completenessTestCase.cpp",
"../core/Khrgles31core_framebuffer_no_attachmentsTestCase.cpp",
"../core/Khrgles31core_gpu_shader5TestCase.cpp",
"../core/Khrgles31core_nearest_edgeTestCase.cpp",
"../core/Khrgles31core_polygon_offset_clampTestCase.cpp",
"../core/Khrgles31core_program_interface_queryTestCase.cpp",
"../core/Khrgles31core_shader_group_voteTestCase.cpp",
"../core/Khrgles31core_shader_image_load_storeTestCase.cpp",
"../core/Khrgles31core_shader_image_sizeTestCase.cpp",
"../core/Khrgles31core_texture_border_clampTestCase.cpp",
"../core/Khrgles31core_texture_bufferTestCase.cpp",
"../core/Khrgles31core_texture_cube_map_arrayTestCase.cpp",
"../core/Khrgles31core_viewport_arrayTestCase.cpp",
"../core/Khrgles31geometry_shader_adjacencyTestCase.cpp",
"../core/Khrgles31geometry_shader_apiTestCase.cpp",
"../core/Khrgles31geometry_shader_blittingTestCase.cpp",
"../core/Khrgles31geometry_shader_clippingTestCase.cpp",
"../core/Khrgles31geometry_shader_constant_variablesTestCase.cpp",
"../core/Khrgles31geometry_shader_inputTestCase.cpp",
"../core/Khrgles31geometry_shader_layered_fboTestCase.cpp",
"../core/Khrgles31geometry_shader_layered_framebufferTestCase.cpp",
"../core/Khrgles31geometry_shader_layered_renderingTestCase.cpp",
"../core/Khrgles31geometry_shader_layered_rendering_boundary_conditionTestCase.cpp",
"../core/Khrgles31geometry_shader_layered_rendering_fbo_no_attachmentTestCase.cpp",
"../core/Khrgles31geometry_shader_limitsTestCase.cpp",
"../core/Khrgles31geometry_shader_linkingTestCase.cpp",
"../core/Khrgles31geometry_shader_nonarray_inputTestCase.cpp",
"../core/Khrgles31geometry_shader_outputTestCase.cpp",
"../core/Khrgles31geometry_shader_primitive_counterTestCase.cpp",
"../core/Khrgles31geometry_shader_primitive_queriesTestCase.cpp",
"../core/Khrgles31geometry_shader_program_resourceTestCase.cpp",
"../core/Khrgles31geometry_shader_qualifiersTestCase.cpp",
"../core/Khrgles31internalformat_copy_tex_imageTestCase.cpp",
"../core/Khrgles31internalformat_renderbufferTestCase.cpp",
"../core/Khrgles31internalformat_texture2dTestCase.cpp",
"../core/Khrgles31rendering_renderingTestCase.cpp",
"../core/Khrgles31tessellation_shader_compilation_and_linking_errorsTestCase.cpp",
"../core/Khrgles31tessellation_shader_singleTestCase.cpp",
"../core/Khrgles31tessellation_shader_tessellation_control_to_tessellation_evaluationTestCase.cpp",
"../core/Khrgles31tessellation_shader_tessellation_invarianceTestCase.cpp",
"../core/Khrgles31tessellation_shader_tessellation_shader_point_modeTestCase.cpp",
"../core/Khrgles31tessellation_shader_tessellation_shader_quads_tessellationTestCase.cpp",
"../core/Khrgles31tessellation_shader_tessellation_shader_tc_barriersTestCase.cpp",
"../core/Khrgles31tessellation_shader_tessellation_shader_tessellationTestCase.cpp",
"../core/Khrgles31tessellation_shader_tessellation_shader_triangles_tessellationTestCase.cpp",
"../core/Khrgles31tessellation_shader_vertexTestCase.cpp",
"../core/Khrgles31tessellation_shader_windingTestCase.cpp",
"../core/Khrgles31teximage2d_r11g11b10fTestCase.cpp",
"../core/Khrgles31teximage2d_r16fTestCase.cpp",
"../core/Khrgles31teximage2d_r16iTestCase.cpp",
"../core/Khrgles31teximage2d_r16uiTestCase.cpp",
"../core/Khrgles31teximage2d_r32fTestCase.cpp",
"../core/Khrgles31teximage2d_r32iTestCase.cpp",
"../core/Khrgles31teximage2d_r32uiTestCase.cpp",
"../core/Khrgles31teximage2d_r8TestCase.cpp",
"../core/Khrgles31teximage2d_r8iTestCase.cpp",
"../core/Khrgles31teximage2d_r8snormTestCase.cpp",
"../core/Khrgles31teximage2d_r8uiTestCase.cpp",
"../core/Khrgles31teximage2d_rg16fTestCase.cpp",
"../core/Khrgles31teximage2d_rg16iTestCase.cpp",
"../core/Khrgles31teximage2d_rg16uiTestCase.cpp",
"../core/Khrgles31teximage2d_rg32fTestCase.cpp",
"../core/Khrgles31teximage2d_rg32iTestCase.cpp",
"../core/Khrgles31teximage2d_rg32uiTestCase.cpp",
"../core/Khrgles31teximage2d_rg8TestCase.cpp",
"../core/Khrgles31teximage2d_rg8iTestCase.cpp",
"../core/Khrgles31teximage2d_rg8snormTestCase.cpp",
"../core/Khrgles31teximage2d_rg8uiTestCase.cpp",
"../core/Khrgles31teximage2d_rgb10a2TestCase.cpp",
"../core/Khrgles31teximage2d_rgb10a2uiTestCase.cpp",
"../core/Khrgles31teximage2d_rgb16fTestCase.cpp",
"../core/Khrgles31teximage2d_rgb16iTestCase.cpp",
"../core/Khrgles31teximage2d_rgb16uiTestCase.cpp",
"../core/Khrgles31teximage2d_rgb32fTestCase.cpp",
"../core/Khrgles31teximage2d_rgb32iTestCase.cpp",
"../core/Khrgles31teximage2d_rgb32uiTestCase.cpp",
"../core/Khrgles31teximage2d_rgb565TestCase.cpp",
"../core/Khrgles31teximage2d_rgb5a1TestCase.cpp",
"../core/Khrgles31teximage2d_rgb8TestCase.cpp",
"../core/Khrgles31teximage2d_rgb8iTestCase.cpp",
"../core/Khrgles31teximage2d_rgb8snormTestCase.cpp",
"../core/Khrgles31teximage2d_rgb8uiTestCase.cpp",
"../core/Khrgles31teximage2d_rgba16fTestCase.cpp",
"../core/Khrgles31teximage2d_rgba16iTestCase.cpp",
"../core/Khrgles31teximage2d_rgba16uiTestCase.cpp",
"../core/Khrgles31teximage2d_rgba32fTestCase.cpp",
"../core/Khrgles31teximage2d_rgba32iTestCase.cpp",
"../core/Khrgles31teximage2d_rgba32uiTestCase.cpp",
"../core/Khrgles31teximage2d_rgba4TestCase.cpp",
"../core/Khrgles31teximage2d_rgba8TestCase.cpp",
"../core/Khrgles31teximage2d_rgba8iTestCase.cpp",
"../core/Khrgles31teximage2d_rgba8snormTestCase.cpp",
"../core/Khrgles31teximage2d_rgba8uiTestCase.cpp",
"../core/Khrgles31teximage3d_r8TestCase.cpp",
]
include_dirs = [ "//test/xts/acts/graphic/vkglcts/src" ]
deps = [ ":libkhrgles31func0003" ]
cflags = [ "-Wno-error" ]
}
{
"description": "Config for ActsKhrgles31TestSuite0003 test cases",
"driver": {
"module-name": "ActsKhrgles31TestSuite0003",
"native-test-timeout": "120000",
"native-test-device-path": "/data/local/tmp",
"runtime-hint": "100s",
"type": "CppTest"
},
"kits": [
{
"pre-push" : [
],
"post-push" : [
"chmod -R 777 /data/local/tmp/*",
"mkdir /data/local/tmp/gl_cts",
"tar zxvf /data/local/tmp/gl_cts.tar.gz -C /data/local/tmp/gl_cts",
"cp -r /data/local/tmp/gl_cts/data/gles2 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles3 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles31 /data/local/tmp"
],
"push": [
"ActsKhrgles31TestSuite0003->/data/local/tmp/ActsKhrgles31TestSuite0003",
"../../../common/common/librosen_context.z.so->/system/lib",
"gl_cts.tar.gz->/data/local/tmp/gl_cts.tar.gz"
],
"type": "PushKit"
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /data/test",
"cd /data/local/tmp"
]
}
]
}
\ No newline at end of file
# 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.
import("//test/xts/acts/graphic/vkglcts/comm.gni")
config("deqp_platform_ohos_config") {
cflags_cc = deqp_common_cflags_cc
cflags_cc += [
# "-Wno-conversion",
# "-Wno-unused-function",
"-Wno-unused-parameter",
]
defines = deqp_common_defines
# defines -=["DE_PTR_SIZE=8"]
defines += [
"DE_PTR_SIZE=4",
"_XOPEN_SOURCE=600",
]
}
ohos_static_library("libkhrgles31func0004") {
sources = common_src
sources += [ "../Khrgles31BaseFunc.cpp" ]
include_dirs = common_include
deps = common_depends
external_deps = [
"hilog_native:libhilog",
"multimedia_image_standard:image_native",
]
lib_dirs = [ "//third_party/VK-GL-CTS/outlibs" ]
libs = [ "png" ]
configs = [ ":deqp_platform_ohos_config" ]
public_deps = [ "//foundation/ace/ace_engine/build/external_config/flutter/skia:ace_skia_ohos" ]
}
ohos_moduletest_suite("ActsKhrgles31TestSuite0004") {
sources = [
"../ActsKhrgles310004TestSuite.cpp",
"../core/Khrgles31teximage3d_r11g11b10fTestCase.cpp",
"../core/Khrgles31teximage3d_r16fTestCase.cpp",
"../core/Khrgles31teximage3d_r16iTestCase.cpp",
"../core/Khrgles31teximage3d_r16uiTestCase.cpp",
"../core/Khrgles31teximage3d_r32fTestCase.cpp",
"../core/Khrgles31teximage3d_r32iTestCase.cpp",
"../core/Khrgles31teximage3d_r32uiTestCase.cpp",
"../core/Khrgles31teximage3d_r8iTestCase.cpp",
"../core/Khrgles31teximage3d_r8snormTestCase.cpp",
"../core/Khrgles31teximage3d_r8uiTestCase.cpp",
"../core/Khrgles31teximage3d_rg16fTestCase.cpp",
"../core/Khrgles31teximage3d_rg16iTestCase.cpp",
"../core/Khrgles31teximage3d_rg16uiTestCase.cpp",
"../core/Khrgles31teximage3d_rg32fTestCase.cpp",
"../core/Khrgles31teximage3d_rg32iTestCase.cpp",
"../core/Khrgles31teximage3d_rg32uiTestCase.cpp",
"../core/Khrgles31teximage3d_rg8TestCase.cpp",
"../core/Khrgles31teximage3d_rg8iTestCase.cpp",
"../core/Khrgles31teximage3d_rg8snormTestCase.cpp",
"../core/Khrgles31teximage3d_rg8uiTestCase.cpp",
"../core/Khrgles31teximage3d_rgb10a2TestCase.cpp",
"../core/Khrgles31teximage3d_rgb10a2uiTestCase.cpp",
"../core/Khrgles31teximage3d_rgb16fTestCase.cpp",
"../core/Khrgles31teximage3d_rgb16iTestCase.cpp",
"../core/Khrgles31teximage3d_rgb16uiTestCase.cpp",
"../core/Khrgles31teximage3d_rgb32fTestCase.cpp",
"../core/Khrgles31teximage3d_rgb32iTestCase.cpp",
"../core/Khrgles31teximage3d_rgb32uiTestCase.cpp",
"../core/Khrgles31teximage3d_rgb565TestCase.cpp",
"../core/Khrgles31teximage3d_rgb5a1TestCase.cpp",
"../core/Khrgles31teximage3d_rgb8TestCase.cpp",
"../core/Khrgles31teximage3d_rgb8iTestCase.cpp",
"../core/Khrgles31teximage3d_rgb8snormTestCase.cpp",
"../core/Khrgles31teximage3d_rgb8uiTestCase.cpp",
"../core/Khrgles31teximage3d_rgba16fTestCase.cpp",
"../core/Khrgles31teximage3d_rgba16iTestCase.cpp",
"../core/Khrgles31teximage3d_rgba16uiTestCase.cpp",
"../core/Khrgles31teximage3d_rgba32fTestCase.cpp",
"../core/Khrgles31teximage3d_rgba32iTestCase.cpp",
"../core/Khrgles31teximage3d_rgba32uiTestCase.cpp",
"../core/Khrgles31teximage3d_rgba4TestCase.cpp",
"../core/Khrgles31teximage3d_rgba8TestCase.cpp",
"../core/Khrgles31teximage3d_rgba8iTestCase.cpp",
"../core/Khrgles31teximage3d_rgba8snormTestCase.cpp",
"../core/Khrgles31teximage3d_rgba8uiTestCase.cpp",
"../shaders/Khrgles31shaders_aggressive_optimizationsTestCase.cpp",
"../shaders/Khrgles31shaders_layout_locationTestCase.cpp",
"../shaders/Khrgles31shaders_negativeTestCase.cpp",
]
include_dirs = [ "//test/xts/acts/graphic/vkglcts/src" ]
deps = [ ":libkhrgles31func0004" ]
cflags = [ "-Wno-error" ]
}
{
"description": "Config for ActsKhrgles31TestSuite0004 test cases",
"driver": {
"module-name": "ActsKhrgles31TestSuite0004",
"native-test-timeout": "120000",
"native-test-device-path": "/data/local/tmp",
"runtime-hint": "100s",
"type": "CppTest"
},
"kits": [
{
"pre-push" : [
],
"post-push" : [
"chmod -R 777 /data/local/tmp/*",
"mkdir /data/local/tmp/gl_cts",
"tar zxvf /data/local/tmp/gl_cts.tar.gz -C /data/local/tmp/gl_cts",
"cp -r /data/local/tmp/gl_cts/data/gles2 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles3 /data/local/tmp",
"cp -r /data/local/tmp/gl_cts/data/gles31 /data/local/tmp"
],
"push": [
"ActsKhrgles31TestSuite0004->/data/local/tmp/ActsKhrgles31TestSuite0004",
"../../../common/common/librosen_context.z.so->/system/lib",
"gl_cts.tar.gz->/data/local/tmp/gl_cts.tar.gz"
],
"type": "PushKit"
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /data/test",
"cd /data/local/tmp"
]
}
]
}
\ No newline at end of file
/*
* 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 "../Khrgles31BaseFunc.h"
#include "../ActsKhrgles310004TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003457, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003457 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressive"
"_optimizations.sin_float_vert",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003457 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003457 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003458, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003458 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressive"
"_optimizations.sin_float_frag",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003458 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003458 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003459, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003459 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.sin_vec2_vert",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003459 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003459 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003460, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003460 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.sin_vec2_frag",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003460 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003460 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003461, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003461 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.sin_vec3_vert",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003461 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003461 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003462, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003462 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.sin_vec3_frag",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003462 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003462 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003463, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003463 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressive"
"_optimizations.cos_float_vert",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003463 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003463 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003464, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003464 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressive"
"_optimizations.cos_float_frag",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003464 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003464 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003465, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003465 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.cos_vec2_vert",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003465 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003465 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003466, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003466 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.cos_vec2_frag",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003466 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003466 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003467, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003467 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.cos_vec3_vert",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003467 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003467 end";
}
static HWTEST_F(ActsKhrgles310004TestSuite, TestCase_003468, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003468 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.shaders.aggressiv"
"e_optimizations.cos_vec3_frag",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003468 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003468 end";
}
......@@ -13,7 +13,6 @@
* limitations under the License.
*/
#include <climits>
#include <gtest/gtest.h>
#include "../Khrgles31BaseFunc.h"
#include "../ActsKhrgles310004TestSuite.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册