Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
827e0606
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 1 年 前同步成功
通知
456
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
827e0606
编写于
8月 05, 2021
作者:
O
openharmony_ci
提交者:
Gitee
8月 05, 2021
浏览文件
操作
浏览文件
下载
差异文件
!514 修复license
Merge pull request !514 from lnlan/fix_stl
上级
78e8d866
a23b491f
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
384 addition
and
183 deletion
+384
-183
testsuites/kernel/sample/kernel_base/core/BUILD.gn
testsuites/kernel/sample/kernel_base/core/BUILD.gn
+58
-30
testsuites/kernel/sample/kernel_base/ipc/BUILD.gn
testsuites/kernel/sample/kernel_base/ipc/BUILD.gn
+62
-34
testsuites/kernel/sample/kernel_extend/cpup/BUILD.gn
testsuites/kernel/sample/kernel_extend/cpup/BUILD.gn
+42
-16
testsuites/kernel/sample/posix/BUILD.gn
testsuites/kernel/sample/posix/BUILD.gn
+111
-83
testsuites/unittest/IO/full/IO_test_ppoll_001.cpp
testsuites/unittest/IO/full/IO_test_ppoll_001.cpp
+3
-2
testsuites/unittest/IO/full/IO_test_ppoll_002.cpp
testsuites/unittest/IO/full/IO_test_ppoll_002.cpp
+3
-2
testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp
testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp
+3
-2
testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp
testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp
+3
-2
testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp
testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp
+3
-2
testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp
testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp
+3
-2
testsuites/unittest/fs/jffs/smoke/It_vfs_jffs_103.cpp
testsuites/unittest/fs/jffs/smoke/It_vfs_jffs_103.cpp
+31
-0
testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_010.cpp
testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_010.cpp
+2
-2
testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_103.cpp
testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_103.cpp
+1
-0
testsuites/unittest/fs/proc/proc.mk
testsuites/unittest/fs/proc/proc.mk
+28
-0
testsuites/unittest/security/capability/BUILD.gn
testsuites/unittest/security/capability/BUILD.gn
+31
-6
未找到文件。
testsuites/kernel/sample/kernel_base/core/BUILD.gn
浏览文件 @
827e0606
static_library("test_core") {
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static_library("test_core") {
sources = [
sources = [
"task/It_los_task.c",
"swtmr/It_los_swtmr.c",
"hwi/It_smp_hwi.c",
"hwi/It_smp_hwi.c",
"hwi_nesting/It_hwi_nesting.c",
"hwi_nesting/It_hwi_nesting.c",
"swtmr/It_los_swtmr.c",
"task/It_los_task.c",
]
]
if (LOSCFG_TEST_SMOKE) {
if (LOSCFG_TEST_SMOKE) {
sources += [
sources += [
"swtmr/smoke/It_los_swtmr_053.c",
"swtmr/smoke/It_los_swtmr_058.c",
"task/smoke/It_los_task_045.c",
"task/smoke/It_los_task_045.c",
"task/smoke/It_los_task_046.c",
"task/smoke/It_los_task_046.c",
"task/smoke/It_los_task_049.c",
"task/smoke/It_los_task_049.c",
...
@@ -19,8 +49,6 @@ static_library("test_core") {
...
@@ -19,8 +49,6 @@ static_library("test_core") {
"task/smoke/It_los_task_101.c",
"task/smoke/It_los_task_101.c",
"task/smoke/It_los_task_105.c",
"task/smoke/It_los_task_105.c",
"task/smoke/It_los_task_timeslice_001.c",
"task/smoke/It_los_task_timeslice_001.c",
"swtmr/smoke/It_los_swtmr_053.c",
"swtmr/smoke/It_los_swtmr_058.c",
]
]
}
}
include_dirs = [
include_dirs = [
...
...
testsuites/kernel/sample/kernel_base/ipc/BUILD.gn
浏览文件 @
827e0606
static_library("test_ipc") {
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static_library("test_ipc") {
sources = [
sources = [
"sem/It_los_sem.c",
"event/It_los_event.c",
"event/It_los_event.c",
"mux/It_los_mux.c",
"mux/It_los_mux.c",
"queue/It_los_queue.c",
"queue/It_los_queue.c",
"sem/It_los_sem.c",
]
]
if (LOSCFG_TEST_SMOKE) {
if (LOSCFG_TEST_SMOKE) {
sources += [
sources += [
"sem/smoke/It_los_sem_001.c",
"sem/smoke/It_los_sem_003.c",
"sem/smoke/It_los_sem_006.c",
"event/smoke/It_los_event_031.c",
"event/smoke/It_los_event_031.c",
"event/smoke/It_los_event_035.c",
"event/smoke/It_los_event_035.c",
"event/smoke/It_los_event_036.c",
"event/smoke/It_los_event_036.c",
...
@@ -25,6 +50,9 @@ static_library("test_ipc") {
...
@@ -25,6 +50,9 @@ static_library("test_ipc") {
"queue/smoke/It_los_queue_100.c",
"queue/smoke/It_los_queue_100.c",
"queue/smoke/It_los_queue_105.c",
"queue/smoke/It_los_queue_105.c",
"queue/smoke/It_los_queue_head_002.c",
"queue/smoke/It_los_queue_head_002.c",
"sem/smoke/It_los_sem_001.c",
"sem/smoke/It_los_sem_003.c",
"sem/smoke/It_los_sem_006.c",
]
]
}
}
include_dirs = [
include_dirs = [
...
...
testsuites/kernel/sample/kernel_extend/cpup/BUILD.gn
浏览文件 @
827e0606
static_library("test_cpup") {
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
sources = [
static_library("test_cpup") {
"It_extend_cpup.c",
sources = [ "It_extend_cpup.c" ]
]
if (LOSCFG_TEST_SMOKE) {
if (LOSCFG_TEST_SMOKE) {
sources += [
sources += [
...
...
testsuites/kernel/sample/posix/BUILD.gn
浏览文件 @
827e0606
static_library("test_posix") {
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static_library("test_posix") {
sources = [
sources = [
"mem/It_posix_mem.c",
"mqueue/It_posix_queue.c",
"mqueue/It_posix_queue.c",
"mutex/It_posix_mutex.c",
"mutex/It_posix_mutex.c",
"sem/It_posix_sem.c",
"pthread/It_posix_pthread.c",
"pthread/It_posix_pthread.c",
"swtmr/It_posix_swtmr.c",
"sched/It_posix_sched.c",
"sched/It_posix_sched.c",
"mem/It_posix_mem.c",
"sem/It_posix_sem.c",
"smp/It_posix_smp.c",
"smp/It_posix_smp_001.c",
"smp/It_posix_smp_001.c",
"smp/It_posix_smp_002.c",
"smp/It_posix_smp_002.c",
"smp/It_posix_smp_003.c",
"smp/It_posix_smp_003.c",
...
@@ -26,11 +54,14 @@ static_library("test_posix") {
...
@@ -26,11 +54,14 @@ static_library("test_posix") {
"smp/It_posix_smp_016.c",
"smp/It_posix_smp_016.c",
"smp/It_posix_smp_017.c",
"smp/It_posix_smp_017.c",
"smp/It_posix_smp_018.c",
"smp/It_posix_smp_018.c",
"smp/It_posix_smp
.c",
"swtmr/It_posix_swtmr
.c",
]
]
if (LOSCFG_TEST_SMOKE) {
if (LOSCFG_TEST_SMOKE) {
sources += [
sources += [
"mem/smoke/It_posix_mem_001.c",
"mem/smoke/It_posix_mem_002.c",
"mem/smoke/It_posix_mem_003.c",
"mqueue/smoke/It_posix_queue_001.c",
"mqueue/smoke/It_posix_queue_001.c",
"mqueue/smoke/It_posix_queue_003.c",
"mqueue/smoke/It_posix_queue_003.c",
"mqueue/smoke/It_posix_queue_028.c",
"mqueue/smoke/It_posix_queue_028.c",
...
@@ -42,8 +73,6 @@ static_library("test_posix") {
...
@@ -42,8 +73,6 @@ static_library("test_posix") {
"mutex/smoke/It_posix_mutex_016.c",
"mutex/smoke/It_posix_mutex_016.c",
"mutex/smoke/It_posix_mutex_019.c",
"mutex/smoke/It_posix_mutex_019.c",
"mutex/smoke/It_posix_mutex_020.c",
"mutex/smoke/It_posix_mutex_020.c",
"sem/smoke/It_posix_sem_001.c",
"sem/smoke/It_posix_sem_002.c",
"pthread/smoke/It_posix_pthread_003.c",
"pthread/smoke/It_posix_pthread_003.c",
"pthread/smoke/It_posix_pthread_004.c",
"pthread/smoke/It_posix_pthread_004.c",
"pthread/smoke/It_posix_pthread_005.c",
"pthread/smoke/It_posix_pthread_005.c",
...
@@ -54,6 +83,8 @@ static_library("test_posix") {
...
@@ -54,6 +83,8 @@ static_library("test_posix") {
"pthread/smoke/It_posix_pthread_020.c",
"pthread/smoke/It_posix_pthread_020.c",
"pthread/smoke/It_posix_pthread_021.c",
"pthread/smoke/It_posix_pthread_021.c",
"pthread/smoke/It_posix_pthread_022.c",
"pthread/smoke/It_posix_pthread_022.c",
"sem/smoke/It_posix_sem_001.c",
"sem/smoke/It_posix_sem_002.c",
"swtmr/smoke/It_posix_swtmr_001.c",
"swtmr/smoke/It_posix_swtmr_001.c",
"swtmr/smoke/It_posix_swtmr_013.c",
"swtmr/smoke/It_posix_swtmr_013.c",
"swtmr/smoke/It_posix_swtmr_046.c",
"swtmr/smoke/It_posix_swtmr_046.c",
...
@@ -66,9 +97,6 @@ static_library("test_posix") {
...
@@ -66,9 +97,6 @@ static_library("test_posix") {
"swtmr/smoke/It_posix_swtmr_103.c",
"swtmr/smoke/It_posix_swtmr_103.c",
"swtmr/smoke/It_posix_swtmr_105.c",
"swtmr/smoke/It_posix_swtmr_105.c",
"swtmr/smoke/It_posix_swtmr_106.c",
"swtmr/smoke/It_posix_swtmr_106.c",
"mem/smoke/It_posix_mem_001.c",
"mem/smoke/It_posix_mem_002.c",
"mem/smoke/It_posix_mem_003.c",
]
]
}
}
...
...
testsuites/unittest/IO/full/IO_test_ppoll_001.cpp
浏览文件 @
827e0606
/*
/*
* Copyright (c) 20
21-2021,
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 20
13-2019
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 202
1-2021,
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 202
0-2021
Huawei Device Co., Ltd. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_test_IO.h"
#include "It_test_IO.h"
#include <poll.h>
#include <poll.h>
#include "signal.h"
#include "signal.h"
...
...
testsuites/unittest/IO/full/IO_test_ppoll_002.cpp
浏览文件 @
827e0606
/*
/*
* Copyright (c) 20
21-2021,
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 20
13-2019
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 202
1-2021,
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 202
0-2021
Huawei Device Co., Ltd. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_test_IO.h"
#include "It_test_IO.h"
#include "time.h"
#include "time.h"
#include "signal.h"
#include "signal.h"
...
...
testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp
浏览文件 @
827e0606
/*
/*
* Copyright (c) 201
9-2021,
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 201
3-2019
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021
,
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_fs_jffs.h"
#include "It_fs_jffs.h"
#include "sys/stat.h"
#include "sys/stat.h"
...
...
testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp
浏览文件 @
827e0606
/*
/*
* Copyright (c) 201
9-2021,
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 201
3-2019
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021
,
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_fs_jffs.h"
#include "It_fs_jffs.h"
#include <fcntl.h>
#include <fcntl.h>
#include "sys/stat.h"
#include "sys/stat.h"
...
...
testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp
浏览文件 @
827e0606
/*
/*
* Copyright (c) 201
9-2021,
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 201
3-2019
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021
,
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_fs_jffs.h"
#include "It_fs_jffs.h"
#include <stdlib.h>
#include <stdlib.h>
#include "fcntl.h"
#include "fcntl.h"
...
...
testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp
浏览文件 @
827e0606
/*
/*
* Copyright (c) 201
9-2021,
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 201
3-2019
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021
,
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_fs_jffs.h"
#include "It_fs_jffs.h"
#include <stdlib.h>
#include <stdlib.h>
#include "fcntl.h"
#include "fcntl.h"
...
...
testsuites/unittest/fs/jffs/smoke/It_vfs_jffs_103.cpp
浏览文件 @
827e0606
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors may be used
* to endorse or promote products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "It_vfs_jffs.h"
#include "It_vfs_jffs.h"
static
UINT32
testcase
(
VOID
)
static
UINT32
testcase
(
VOID
)
...
...
testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_010.cpp
浏览文件 @
827e0606
/*
/*
* Copyright (c) 2013-2019
,
Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021
,
Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* are permitted provided that the following conditions are met:
...
...
testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_103.cpp
浏览文件 @
827e0606
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_fs_jffs.h"
#include "It_fs_jffs.h"
#define TEST_STRLEN 30
#define TEST_STRLEN 30
...
...
testsuites/unittest/fs/proc/proc.mk
浏览文件 @
827e0606
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SRC_MODULES
:=
fs/proc
SRC_MODULES
:=
fs/proc
...
...
testsuites/unittest/security/capability/BUILD.gn
浏览文件 @
827e0606
# Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//build/lite/config/test.gni")
import("//build/lite/config/test.gni")
import("../../config.gni")
import("../../config.gni")
...
@@ -13,12 +41,9 @@ sources_entry = [
...
@@ -13,12 +41,9 @@ sources_entry = [
"security_capability_test.cpp",
"security_capability_test.cpp",
]
]
sources_smoke = [
sources_smoke = [ "smoke/cap_test_001.cpp" ]
"smoke/cap_test_001.cpp",
]
sources_full = [
sources_full = []
]
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_security_capability_unittest_door") {
unittest("liteos_a_security_capability_unittest_door") {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录