Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0539b1bd
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看板
提交
0539b1bd
编写于
6月 28, 2022
作者:
F
fengying
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test
Signed-off-by:
N
fengying
<
fengying@kaihongdigi.com
>
上级
d579641f
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
1870 addition
and
0 deletion
+1870
-0
graphic/vkgl/src/khrgles32/core/Khrgles32compressed_format_apiTestCase.cpp
...khrgles32/core/Khrgles32compressed_format_apiTestCase.cpp
+535
-0
graphic/vkgl/src/khrgles32/core/Khrgles32geometry_shader_apiTestCase.cpp
...c/khrgles32/core/Khrgles32geometry_shader_apiTestCase.cpp
+454
-0
graphic/vkgl/src/khrgles32/core/Khrgles32geometry_shader_linkingTestCase.cpp
...rgles32/core/Khrgles32geometry_shader_linkingTestCase.cpp
+373
-0
graphic/vkgl/src/khrgles32/core/Khrgles32tessellation_shader_compilation_and_linking_errorsTestCase.cpp
...llation_shader_compilation_and_linking_errorsTestCase.cpp
+508
-0
未找到文件。
graphic/vkgl/src/khrgles32/core/Khrgles32compressed_format_apiTestCase.cpp
0 → 100644
浏览文件 @
0539b1bd
此差异已折叠。
点击以展开。
graphic/vkgl/src/khrgles32/core/Khrgles32geometry_shader_apiTestCase.cpp
0 → 100644
浏览文件 @
0539b1bd
/*
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000140
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000140 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_sha"
"der.api.createShaderProgramv"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000140 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000140 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000141
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000141 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometr"
"y_shader.api.shader_type"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000141 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000141 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000142
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000142 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry"
"_shader.api.getProgramiv"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000142 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000142 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000143
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000143 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry"
"_shader.api.getProgramiv2"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000143 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000143 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000144
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000144 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry"
"_shader.api.getProgramiv3"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000144 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000144 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000145
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000145 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_"
"shader.api.fs_gs_draw_call"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000145 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000145 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000146
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000146 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_sh"
"ader.api.max_image_uniforms"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000146 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000146 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000147
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000147 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shade"
"r.api.max_shader_storage_blocks"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000147 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000147 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000148
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000148 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_sh"
"ader.api.max_atomic_counters"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000148 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000148 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000149
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000149 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader"
".api.max_atomic_counter_buffers"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000149 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000149 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000150
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000150 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.api"
".pipeline_program_without_active_vs"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000150 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000150 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000151
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000151 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader"
".api.incompatible_draw_call_mode"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000151 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000151 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000152
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000152 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader."
"api.insufficient_emitted_vertices"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000152 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000152 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000153
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000153 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.a"
"pi.program_pipeline_vs_gs_capture"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000153 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000153 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000154
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000154 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.api.draw_"
"primitives_do_not_match_output_primitives"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000154 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000154 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000155
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000155 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader."
"api.draw_calls_while_tf_is_paused"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000155 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000155 end"
;
}
graphic/vkgl/src/khrgles32/core/Khrgles32geometry_shader_linkingTestCase.cpp
0 → 100644
浏览文件 @
0539b1bd
/*
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include "../Khrgles32BaseFunc.h"
#include "../ActsKhrgles320001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000127
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000127 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.l"
"inking.incomplete_program_objects"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000127 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000127 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000128
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000128 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_s"
"hader.linking.incomplete_gs"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000128 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000128 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000129
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000129 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.lin"
"king.invalid_arrayed_input_variables"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000129 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000129 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000130
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000130 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.li"
"nking.vs_gs_variable_type_mismatch"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000130 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000130 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000131
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000131 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.link"
"ing.vs_gs_variable_qualifier_mismatch"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000131 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000131 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000132
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000132 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.linkin"
"g.vs_gs_arrayed_variable_size_mismatch"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000132 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000132 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000133
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000133 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader"
".linking.fragcoord_redeclaration"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000133 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000133 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000134
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000134 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_sha"
"der.linking.location_aliasing"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000134 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000134 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000135
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000135 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.li"
"nking.more_ACs_in_GS_than_supported"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000135 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000135 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000136
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000136 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.lin"
"king.more_ACBs_in_GS_than_supported"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000136 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000136 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000137
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000137 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.link"
"ing.geometry_shader_compilation_fail"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000137 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000137 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000138
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000138 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.linking."
"more_input_vertices_in_GS_than_available"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000138 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000138 end"
;
}
static
HWTEST_F
(
ActsKhrgles320001TestSuite
,
TestCase_000139
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000139 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES32.core.geometry_shader.linki"
"ng.tf_capture_from_gs_and_vs_variables"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles320001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles320001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles320001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles320001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles320001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000139 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000139 end"
;
}
graphic/vkgl/src/khrgles32/core/Khrgles32tessellation_shader_compilation_and_linking_errorsTestCase.cpp
0 → 100644
浏览文件 @
0539b1bd
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录