Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6da97f18
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6da97f18
编写于
6月 24, 2022
作者:
L
lilinjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add khrgles2case
Signed-off-by:
N
lilinjian
<
lilinjian@kaihongdigi.com
>
上级
58d6aea3
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
1148 addition
and
0 deletion
+1148
-0
graphic/vkgl/src/khrgles2/core/Khrgles2internalformat_renderbufferTestCase.cpp
...les2/core/Khrgles2internalformat_renderbufferTestCase.cpp
+282
-0
graphic/vkgl/src/khrgles2/shaders/Khrgles2shaders_aggressive_optimizationsTestCase.cpp
...ders/Khrgles2shaders_aggressive_optimizationsTestCase.cpp
+359
-0
graphic/vkgl/src/khrgles2/shaders/Khrgles2shaders_negativeTestCase.cpp
...src/khrgles2/shaders/Khrgles2shaders_negativeTestCase.cpp
+79
-0
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2filtering_formatsTestCase.cpp
...khrgles2/texture_3d/Khrgles2filtering_formatsTestCase.cpp
+191
-0
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_copy_sub_imageTestCase.cpp
.../texture_3d/Khrgles2texture_3d_copy_sub_imageTestCase.cpp
+79
-0
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_framebuffer_textureTestCase.cpp
...ure_3d/Khrgles2texture_3d_framebuffer_textureTestCase.cpp
+79
-0
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_sub_imageTestCase.cpp
...gles2/texture_3d/Khrgles2texture_3d_sub_imageTestCase.cpp
+79
-0
未找到文件。
graphic/vkgl/src/khrgles2/core/Khrgles2internalformat_renderbufferTestCase.cpp
0 → 100644
浏览文件 @
6da97f18
/*
* 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 <climits>
#include <gtest/gtest.h>
#include "../Khrgles2BaseFunc.hpp"
#include "../ActsKhrgles20001TestSuite.hpp"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000463
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgba8 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.rgba8"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgba8 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgba8 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000464
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgb8 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.rgb8"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgb8 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgb8 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000465
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index1_oes start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.stencil_index1_oes"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index1_oes Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index1_oes end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000466
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index4_oes start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.stencil_index4_oes"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index4_oes Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index4_oes end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000467
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index8 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.stencil_index8"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index8 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.stencil_index8 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000468
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component16 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.depth_component16"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component16 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component16 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000469
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component24 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.depth_component24"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component24 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component24 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000470
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component32 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.depth_component32"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component32 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth_component32 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000471
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth24_stencil8 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.depth24_stencil8"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth24_stencil8 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.depth24_stencil8 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000472
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgb5_a1 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.core.internalformat.renderbuffer.rgb5_a1"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgb5_a1 Unavaliable!"
;
}
else
if
(
result
.
isComplete
==
true
)
{
EXPECT_TRUE
(
result
.
isComplete
==
true
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.core.internalformat.renderbuffer.rgb5_a1 end"
;
}
graphic/vkgl/src/khrgles2/shaders/Khrgles2shaders_aggressive_optimizationsTestCase.cpp
0 → 100644
浏览文件 @
6da97f18
/*
* 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 <climits>
#include <gtest/gtest.h>
#include "../Khrgles2BaseFunc.hpp"
#include "../ActsKhrgles20001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000003
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_float_vert start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.sin_float_vert"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_float_vert notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_float_vert end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000004
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_float_frag start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.sin_float_frag"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_float_frag notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_float_frag end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000005
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_vert start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_vert"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_vert notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_vert end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000006
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_frag start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_frag"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_frag notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec2_frag end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000007
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_vert start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_vert"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_vert notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_vert end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000008
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_frag start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_frag"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_frag notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.sin_vec3_frag end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000009
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_float_vert start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.cos_float_vert"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_float_vert notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_float_vert end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000010
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_float_frag start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.cos_float_frag"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_float_frag notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_float_frag end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000011
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_vert start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_vert"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_vert notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_vert end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000012
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_frag start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_frag"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_frag notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec2_frag end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000013
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_vert start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_vert"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_vert notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_vert end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000014
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_frag start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_frag"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_frag notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.aggressive_optimizations.cos_vec3_frag end"
;
}
graphic/vkgl/src/khrgles2/shaders/Khrgles2shaders_negativeTestCase.cpp
0 → 100644
浏览文件 @
6da97f18
/*
* 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 <climits>
#include <gtest/gtest.h>
#include "../Khrgles2BaseFunc.hpp"
#include "../ActsKhrgles20001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000001
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.negative.initialize start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.negative.initialize"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.negative.initialize notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.negative.initialize end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000002
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.negative.constant_sequence start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.shaders.negative.constant_sequence"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.negative.constant_sequence notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.shaders.negative.constant_sequence end"
;
}
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2filtering_formatsTestCase.cpp
0 → 100644
浏览文件 @
6da97f18
/*
* 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 <climits>
#include <gtest/gtest.h>
#include "../Khrgles2BaseFunc.hpp"
#include "../ActsKhrgles20001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000015
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000016
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.filtering.formats.rgba8_linear"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000017
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_nearest start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_nearest"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_nearest notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_nearest end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000018
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_nearest start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_nearest"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_nearest notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_nearest end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000019
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_linear start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_linear"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_linear notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_nearest_mipmap_linear end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000020
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_linear start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_linear"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_linear notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.filtering.formats.rgba8_linear_mipmap_linear end"
;
}
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_copy_sub_imageTestCase.cpp
0 → 100644
浏览文件 @
6da97f18
/*
* 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 <climits>
#include <gtest/gtest.h>
#include "../Khrgles2BaseFunc.hpp"
#include "../ActsKhrgles20001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000378
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.copy_sub_image.rgba start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.copy_sub_image.rgba"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.copy_sub_image.rgba notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.copy_sub_image.rgba end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000379
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.copy_sub_image.negative start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.copy_sub_image.negative"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.copy_sub_image.negative notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.copy_sub_image.negative end"
;
}
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_framebuffer_textureTestCase.cpp
0 → 100644
浏览文件 @
6da97f18
/*
* 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 <climits>
#include <gtest/gtest.h>
#include "../Khrgles2BaseFunc.hpp"
#include "../ActsKhrgles20001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000380
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.framebuffer_texture.rgba start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.framebuffer_texture.rgba"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.framebuffer_texture.rgba notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.framebuffer_texture.rgba end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000381
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.framebuffer_texture.negative start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.framebuffer_texture.negative"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.framebuffer_texture.negative notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.framebuffer_texture.negative end"
;
}
graphic/vkgl/src/khrgles2/texture_3d/Khrgles2texture_3d_sub_imageTestCase.cpp
0 → 100644
浏览文件 @
6da97f18
/*
* 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 <climits>
#include <gtest/gtest.h>
#include "../Khrgles2BaseFunc.hpp"
#include "../ActsKhrgles20001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000376
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.sub_image.rgba8 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.sub_image.rgba8"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.sub_image.rgba8 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.sub_image.rgba8 end"
;
}
static
HWTEST_F
(
ActsKhrgles20001TestSuite
,
TestCase_000377
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.sub_image.negative start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case=KHR-GLES2.texture_3d.sub_image.negative"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles20001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles20001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles20001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles20001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles20001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.sub_image.negative notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
}
GTEST_LOG_
(
INFO
)
<<
"KHR-GLES2.texture_3d.sub_image.negative end"
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录