Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
dbd87d49
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看板
提交
dbd87d49
编写于
6月 27, 2022
作者:
Z
zhangchao
提交者:
xuping
6月 27, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test
Signed-off-by:
N
zhangchao
<
zhangchao@kaihongdigi.com
>
上级
c6389c26
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
1958 addition
and
0 deletion
+1958
-0
graphic/vkgl/src/khrgles31/core/Khrgles31interpolate_at_sample_check_rgba32fTestCase.cpp
.../Khrgles31interpolate_at_sample_check_rgba32fTestCase.cpp
+103
-0
graphic/vkgl/src/khrgles31/core/Khrgles31rgba32f_samples_4TestCase.cpp
...src/khrgles31/core/Khrgles31rgba32f_samples_4TestCase.cpp
+265
-0
graphic/vkgl/src/khrgles31/core/Khrgles31rgba32f_samples_8TestCase.cpp
...src/khrgles31/core/Khrgles31rgba32f_samples_8TestCase.cpp
+265
-0
graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r8TestCase.cpp
...kgl/src/khrgles31/core/Khrgles31teximage3d_r8TestCase.cpp
+292
-0
graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r8iTestCase.cpp
...gl/src/khrgles31/core/Khrgles31teximage3d_r8iTestCase.cpp
+292
-0
graphic/vkgl/src/khrgles31/core/Khrgles31texture_storage_multisample_APIGLGetMultisamplefvTestCase.cpp
...ure_storage_multisample_APIGLGetMultisamplefvTestCase.cpp
+265
-0
graphic/vkgl/src/khrgles31/core/Khrgles31texture_storage_multisample_APIGLTexStorage3DMultisampleTestCase.cpp
...rage_multisample_APIGLTexStorage3DMultisampleTestCase.cpp
+265
-0
graphic/vkgl/src/khrgles31/core/Khrgles31texture_storage_multisample_FunctionalTestsTestCase.cpp
...31texture_storage_multisample_FunctionalTestsTestCase.cpp
+211
-0
未找到文件。
graphic/vkgl/src/khrgles31/core/Khrgles31interpolate_at_sample_check_rgba32fTestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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 "../ActsKhrgles310001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000718
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000718 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.shader_multisample_interpolation.r"
"ender.interpolate_at_sample_check.rgba32f.samples_1"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000718 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000718 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000719
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000719 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.shader_multisample_interpolation.r"
"ender.interpolate_at_sample_check.rgba32f.samples_2"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000719 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000719 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000720
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000720 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.shader_multisample_interpolation.r"
"ender.interpolate_at_sample_check.rgba32f.samples_4"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000720 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000720 end"
;
}
graphic/vkgl/src/khrgles31/core/Khrgles31rgba32f_samples_4TestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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 "../ActsKhrgles310001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000300
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000300 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variables"
".mask.rgba32f.samples_4.mask_zero"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000300 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000300 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000301
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000301 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000301 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000301 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000302
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000302 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_1"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000302 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000302 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000303
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000303 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_2"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000303 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000303 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000304
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000304 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_3"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000304 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000304 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000305
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000305 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_4"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000305 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000305 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000306
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000306 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_5"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000306 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000306 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000307
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000307 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_6"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000307 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000307 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000308
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000308 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_4.mask_7"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000308 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000308 end"
;
}
graphic/vkgl/src/khrgles31/core/Khrgles31rgba32f_samples_8TestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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 "../ActsKhrgles310001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000309
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000309 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variables"
".mask.rgba32f.samples_8.mask_zero"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000309 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000309 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000310
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000310 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000310 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000310 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000311
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000311 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_1"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000311 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000311 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000312
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000312 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_2"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000312 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000312 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000313
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000313 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_3"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000313 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000313 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000314
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000314 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_4"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000314 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000314 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000315
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000315 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_5"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000315 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000315 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000316
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000316 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_6"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000316 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000316 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000317
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000317 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.sample_variable"
"s.mask.rgba32f.samples_8.mask_7"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000317 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000317 end"
;
}
graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r8TestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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 "../ActsKhrgles310003TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_002995
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002995 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstora"
"gemodes.teximage3d.r8.0_0_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002995 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_002995 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_002996
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002996 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstora"
"gemodes.teximage3d.r8.1_0_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002996 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_002996 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_002997
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002997 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8.16_0_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002997 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_002997 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_002998
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002998 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstora"
"gemodes.teximage3d.r8.1_1_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002998 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_002998 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_002999
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002999 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8.16_1_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_002999 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_002999 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_003000
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003000 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8.16_16_0"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003000 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003000 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_003001
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003001 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstora"
"gemodes.teximage3d.r8.1_1_1"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003001 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003001 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_003002
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003002 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8.16_1_1"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003002 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003002 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_003003
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003003 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8.16_16_1"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003003 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003003 end"
;
}
static
HWTEST_F
(
ActsKhrgles310003TestSuite
,
TestCase_003004
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003004 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8.16_16_4"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310003TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310003TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310003TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310003TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310003TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003004 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003004 end"
;
}
graphic/vkgl/src/khrgles31/core/Khrgles31teximage3d_r8iTestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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_003045
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003045 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8i.0_0_0"
,
"--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_003045 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003045 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003046
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003046 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8i.1_0_0"
,
"--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_003046 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003046 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003047
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003047 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8i.16_0_0"
,
"--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_003047 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003047 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003048
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003048 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8i.1_1_0"
,
"--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_003048 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003048 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003049
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003049 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8i.16_1_0"
,
"--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_003049 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003049 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003050
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003050 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorage"
"modes.teximage3d.r8i.16_16_0"
,
"--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_003050 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003050 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003051
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003051 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8i.1_1_1"
,
"--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_003051 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003051 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003052
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003052 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorag"
"emodes.teximage3d.r8i.16_1_1"
,
"--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_003052 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003052 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003053
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003053 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorage"
"modes.teximage3d.r8i.16_16_1"
,
"--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_003053 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003053 end"
;
}
static
HWTEST_F
(
ActsKhrgles310004TestSuite
,
TestCase_003054
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_003054 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.pixelstorage"
"modes.teximage3d.r8i.16_16_4"
,
"--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_003054 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_003054 end"
;
}
graphic/vkgl/src/khrgles31/core/Khrgles31texture_storage_multisample_APIGLGetMultisamplefvTestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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 "../ActsKhrgles310001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000021
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000021 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisamplefv.m"
"ultisample_texture_get_multisamplefv_index_equal_gl_samples_rejected"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000021 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000021 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000022
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000022 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisamplefv.mu"
"ltisample_texture_get_multisamplefv_index_greater_gl_samples_rejected"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000022 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000022 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000023
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000023 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisample"
"fv.multisample_texture_get_multisamplefv_invalid_pname_rejected"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000023 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000023 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000024
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000024 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisamplefv"
".multisample_texture_get_multisamplefv_null_val_arguments_accepted"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000024 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000024 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000025
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000025 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisamplefv.mu"
"ltisample_texture_get_multisamplefv_sample_position_values_validation"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000025 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000025 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000026
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000026 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetM"
"ultisamplefv.multisample_texture_sample_maski_getters"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000026 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000026 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000027
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000027 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisamplefv.mult"
"isample_texture_sample_maski_index_lower_than_gl_max_sample_mask_words"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000027 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000027 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000028
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000028 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisamplefv.m"
"ultisample_texture_sample_maski_index_equal_gl_max_sample_mask_words"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000028 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000028 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000029
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000029 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLGetMultisamplefv.mu"
"ltisample_texture_sample_maski_index_greater_gl_max_sample_mask_words"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000029 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000029 end"
;
}
graphic/vkgl/src/khrgles31/core/Khrgles31texture_storage_multisample_APIGLTexStorage3DMultisampleTestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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 "../ActsKhrgles310001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000012
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000012 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage3DMult"
"isample.invalid_texture_sizes_are_rejected_valid_are_accepted_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000012 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000012 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000013
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000013 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage"
"3DMultisample.multisample_texture_tex_storage_3d_zero_sample"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000013 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000013 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000014
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000014 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage3DMultisamp"
"le.non_color_depth_stencil_renderable_internalformats_are_rejected_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000014 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000014 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000015
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000015 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage3DMultisample.requests_to_"
"set_up_multisample_color_textures_with_unsupported_number_of_samples_are_rejected_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000015 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000015 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000016
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000016 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage3DMultisample.requests_to_"
"set_up_multisample_depth_textures_with_unsupported_number_of_samples_are_rejected_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000016 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000016 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000017
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000017 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage3DMultisample.requests_to_s"
"et_up_multisample_stencil_textures_with_unsupported_number_of_samples_are_rejected_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000017 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000017 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000018
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000018 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage3DMultisample.reques"
"ts_to_set_up_multisample_textures_with_valid_and_invalid_number_of_samples_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000018 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000018 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000019
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000019 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStorage"
"3DMultisample.texture_2D_multisample_target_is_rejected_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000019 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000019 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000020
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000020 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.APIGLTexStor"
"age3DMultisample.valid_internalformats_are_accepted_test"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000020 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000020 end"
;
}
graphic/vkgl/src/khrgles31/core/Khrgles31texture_storage_multisample_FunctionalTestsTestCase.cpp
0 → 100644
浏览文件 @
dbd87d49
/*
* 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 "../ActsKhrgles310001TestSuite.h"
using
namespace
std
;
using
namespace
testing
::
ext
;
using
namespace
OHOS
;
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000053
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000053 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.Functio"
"nalTests.multisampled_fbo_to_singlesampled_fbo_blit"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000053 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000053 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000054
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000054 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.Funct"
"ionalTests.blitting_multisampled_depth_attachment"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000054 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000054 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000055
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000055 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.Functi"
"onalTests.blitting_multisampled_integer_attachment"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000055 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000055 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000056
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000056 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.Functi"
"onalTests.blitting_to_multisampled_fbo_is_forbidden"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000056 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000056 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000057
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000057 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.FunctionalTests.verif"
"y_sample_masking_for_non_integer_color_renderable_internalformats"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000057 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000057 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000058
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000058 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.Fu"
"nctionalTests.texture_size_in_fragment_shaders"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000058 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000058 end"
;
}
static
HWTEST_F
(
ActsKhrgles310001TestSuite
,
TestCase_000059
,
Function
|
MediumTest
|
Level2
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000059 start"
;
int
argc
=
3
;
const
char
*
argv
[
3
]
=
{
"."
,
"--deqp-case="
"KHR-GLES31.core.texture_storage_multisample.F"
"unctionalTests.texture_size_in_vertex_shaders"
,
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult
result
=
RunTestKHRGLES
(
argc
,
argv
);
ActsKhrgles310001TestSuite
::
runResult
.
numPassed
+=
result
.
numPassed
;
ActsKhrgles310001TestSuite
::
runResult
.
numFailed
+=
result
.
numFailed
;
ActsKhrgles310001TestSuite
::
runResult
.
numNotSupported
+=
result
.
numNotSupported
;
ActsKhrgles310001TestSuite
::
runResult
.
numWarnings
+=
result
.
numWarnings
;
ActsKhrgles310001TestSuite
::
runResult
.
numWaived
+=
result
.
numWaived
;
if
(
result
.
numNotSupported
==
1
)
{
GTEST_LOG_
(
INFO
)
<<
"TestCase_000059 notsupport!"
;
}
else
if
(
result
.
isComplete
)
{
EXPECT_TRUE
(
result
.
isComplete
);
EXPECT_TRUE
(
result
.
numPassed
==
1
);
};
GTEST_LOG_
(
INFO
)
<<
"TestCase_000059 end"
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录