diff --git a/testsuites/kernel/sample/kernel_base/core/BUILD.gn b/testsuites/kernel/sample/kernel_base/core/BUILD.gn index e441507cd9e92e1841167cd0b01034ac2689d331..7302e05f80178c86f05bec7519ecf359d0f23e98 100644 --- a/testsuites/kernel/sample/kernel_base/core/BUILD.gn +++ b/testsuites/kernel/sample/kernel_base/core/BUILD.gn @@ -1,35 +1,63 @@ -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. - sources = [ - "task/It_los_task.c", - "swtmr/It_los_swtmr.c", - "hwi/It_smp_hwi.c", - "hwi_nesting/It_hwi_nesting.c", - ] +static_library("test_core") { + sources = [ + "hwi/It_smp_hwi.c", + "hwi_nesting/It_hwi_nesting.c", + "swtmr/It_los_swtmr.c", + "task/It_los_task.c", + ] - if (LOSCFG_TEST_SMOKE) { - sources += [ - "task/smoke/It_los_task_045.c", - "task/smoke/It_los_task_046.c", - "task/smoke/It_los_task_049.c", - "task/smoke/It_los_task_081.c", - "task/smoke/It_los_task_089.c", - "task/smoke/It_los_task_097.c", - "task/smoke/It_los_task_099.c", - "task/smoke/It_los_task_101.c", - "task/smoke/It_los_task_105.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/", - "task", - "swtmr", - "hwi", - "hwi_nesting", + if (LOSCFG_TEST_SMOKE) { + 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_046.c", + "task/smoke/It_los_task_049.c", + "task/smoke/It_los_task_081.c", + "task/smoke/It_los_task_089.c", + "task/smoke/It_los_task_097.c", + "task/smoke/It_los_task_099.c", + "task/smoke/It_los_task_101.c", + "task/smoke/It_los_task_105.c", + "task/smoke/It_los_task_timeslice_001.c", ] + } + include_dirs = [ + "../../../include/", + "task", + "swtmr", + "hwi", + "hwi_nesting", + ] - cflags = [ "-Wno-error" ] + cflags = [ "-Wno-error" ] } diff --git a/testsuites/kernel/sample/kernel_base/ipc/BUILD.gn b/testsuites/kernel/sample/kernel_base/ipc/BUILD.gn index e8844f445335d3257d7fd78762cdf0b321b4d370..df7789dde59abe6941b7d1b8baa5899464d8dafc 100644 --- a/testsuites/kernel/sample/kernel_base/ipc/BUILD.gn +++ b/testsuites/kernel/sample/kernel_base/ipc/BUILD.gn @@ -1,39 +1,67 @@ -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. - sources = [ - "sem/It_los_sem.c", - "event/It_los_event.c", - "mux/It_los_mux.c", - "queue/It_los_queue.c", - ] +static_library("test_ipc") { + sources = [ + "event/It_los_event.c", + "mux/It_los_mux.c", + "queue/It_los_queue.c", + "sem/It_los_sem.c", + ] - if (LOSCFG_TEST_SMOKE) { - 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_035.c", - "event/smoke/It_los_event_036.c", - "event/smoke/It_los_event_041.c", - "mux/smoke/It_los_mutex_001.c", - "mux/smoke/It_los_mutex_002.c", - "mux/smoke/It_los_mutex_003.c", - "mux/smoke/It_los_mutex_004.c", - "queue/smoke/It_los_queue_001.c", - "queue/smoke/It_los_queue_097.c", - "queue/smoke/It_los_queue_100.c", - "queue/smoke/It_los_queue_105.c", - "queue/smoke/It_los_queue_head_002.c", - ] - } - include_dirs = [ - "../../../include/", - "sem", - "event", - "mux", - "queue", + if (LOSCFG_TEST_SMOKE) { + sources += [ + "event/smoke/It_los_event_031.c", + "event/smoke/It_los_event_035.c", + "event/smoke/It_los_event_036.c", + "event/smoke/It_los_event_041.c", + "mux/smoke/It_los_mutex_001.c", + "mux/smoke/It_los_mutex_002.c", + "mux/smoke/It_los_mutex_003.c", + "mux/smoke/It_los_mutex_004.c", + "queue/smoke/It_los_queue_001.c", + "queue/smoke/It_los_queue_097.c", + "queue/smoke/It_los_queue_100.c", + "queue/smoke/It_los_queue_105.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/", + "sem", + "event", + "mux", + "queue", + ] - cflags = [ "-Wno-error" ] + cflags = [ "-Wno-error" ] } diff --git a/testsuites/kernel/sample/kernel_extend/cpup/BUILD.gn b/testsuites/kernel/sample/kernel_extend/cpup/BUILD.gn index 124579770a997f2e3b9a411e2fc7c4ee2a7a45a5..940980df7c095c10782142f0054526bc4e1a8ef6 100644 --- a/testsuites/kernel/sample/kernel_extend/cpup/BUILD.gn +++ b/testsuites/kernel/sample/kernel_extend/cpup/BUILD.gn @@ -1,21 +1,47 @@ +# 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_cpup") { + sources = [ "It_extend_cpup.c" ] - sources = [ - "It_extend_cpup.c", + if (LOSCFG_TEST_SMOKE) { + sources += [ + "smoke/It_extend_cpup_001.c", + "smoke/It_extend_cpup_002.c", ] + } - if (LOSCFG_TEST_SMOKE) { - sources += [ - "smoke/It_extend_cpup_001.c", - "smoke/It_extend_cpup_002.c", - ] - } - - include_dirs = [ - "../../../include/", - "./", - "../../../../kernel/extended/include", - ] + include_dirs = [ + "../../../include/", + "./", + "../../../../kernel/extended/include", + ] - cflags = [ "-Wno-error" ] -} \ No newline at end of file + cflags = [ "-Wno-error" ] +} diff --git a/testsuites/kernel/sample/posix/BUILD.gn b/testsuites/kernel/sample/posix/BUILD.gn index 109c3b06b71003c196ae4c61f4794dd8b15f8936..f9fc77b83df88cb230b26112827de4d224add8e8 100644 --- a/testsuites/kernel/sample/posix/BUILD.gn +++ b/testsuites/kernel/sample/posix/BUILD.gn @@ -1,89 +1,117 @@ +# 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 = [ + "mem/It_posix_mem.c", + "mqueue/It_posix_queue.c", + "mutex/It_posix_mutex.c", + "pthread/It_posix_pthread.c", + "sched/It_posix_sched.c", + "sem/It_posix_sem.c", + "smp/It_posix_smp.c", + "smp/It_posix_smp_001.c", + "smp/It_posix_smp_002.c", + "smp/It_posix_smp_003.c", + "smp/It_posix_smp_004.c", + "smp/It_posix_smp_005.c", + "smp/It_posix_smp_006.c", + "smp/It_posix_smp_007.c", + "smp/It_posix_smp_008.c", + "smp/It_posix_smp_009.c", + "smp/It_posix_smp_010.c", + "smp/It_posix_smp_011.c", + "smp/It_posix_smp_012.c", + "smp/It_posix_smp_013.c", + "smp/It_posix_smp_014.c", + "smp/It_posix_smp_015.c", + "smp/It_posix_smp_016.c", + "smp/It_posix_smp_017.c", + "smp/It_posix_smp_018.c", + "swtmr/It_posix_swtmr.c", + ] - sources = [ - "mqueue/It_posix_queue.c", - "mutex/It_posix_mutex.c", - "sem/It_posix_sem.c", - "pthread/It_posix_pthread.c", - "swtmr/It_posix_swtmr.c", - "sched/It_posix_sched.c", - "mem/It_posix_mem.c", - "smp/It_posix_smp_001.c", - "smp/It_posix_smp_002.c", - "smp/It_posix_smp_003.c", - "smp/It_posix_smp_004.c", - "smp/It_posix_smp_005.c", - "smp/It_posix_smp_006.c", - "smp/It_posix_smp_007.c", - "smp/It_posix_smp_008.c", - "smp/It_posix_smp_009.c", - "smp/It_posix_smp_010.c", - "smp/It_posix_smp_011.c", - "smp/It_posix_smp_012.c", - "smp/It_posix_smp_013.c", - "smp/It_posix_smp_014.c", - "smp/It_posix_smp_015.c", - "smp/It_posix_smp_016.c", - "smp/It_posix_smp_017.c", - "smp/It_posix_smp_018.c", - "smp/It_posix_smp.c", + if (LOSCFG_TEST_SMOKE) { + 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_003.c", + "mqueue/smoke/It_posix_queue_028.c", + "mqueue/smoke/It_posix_queue_062.c", + "mutex/smoke/It_posix_mutex_001.c", + "mutex/smoke/It_posix_mutex_007.c", + "mutex/smoke/It_posix_mutex_012.c", + "mutex/smoke/It_posix_mutex_015.c", + "mutex/smoke/It_posix_mutex_016.c", + "mutex/smoke/It_posix_mutex_019.c", + "mutex/smoke/It_posix_mutex_020.c", + "pthread/smoke/It_posix_pthread_003.c", + "pthread/smoke/It_posix_pthread_004.c", + "pthread/smoke/It_posix_pthread_005.c", + "pthread/smoke/It_posix_pthread_006.c", + "pthread/smoke/It_posix_pthread_009.c", + "pthread/smoke/It_posix_pthread_018.c", + "pthread/smoke/It_posix_pthread_019.c", + "pthread/smoke/It_posix_pthread_020.c", + "pthread/smoke/It_posix_pthread_021.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_013.c", + "swtmr/smoke/It_posix_swtmr_046.c", + "swtmr/smoke/It_posix_swtmr_047.c", + "swtmr/smoke/It_posix_swtmr_049.c", + "swtmr/smoke/It_posix_swtmr_055.c", + "swtmr/smoke/It_posix_swtmr_065.c", + "swtmr/smoke/It_posix_swtmr_067.c", + "swtmr/smoke/It_posix_swtmr_101.c", + "swtmr/smoke/It_posix_swtmr_103.c", + "swtmr/smoke/It_posix_swtmr_105.c", + "swtmr/smoke/It_posix_swtmr_106.c", ] + } - if (LOSCFG_TEST_SMOKE) { - sources += [ - "mqueue/smoke/It_posix_queue_001.c", - "mqueue/smoke/It_posix_queue_003.c", - "mqueue/smoke/It_posix_queue_028.c", - "mqueue/smoke/It_posix_queue_062.c", - "mutex/smoke/It_posix_mutex_001.c", - "mutex/smoke/It_posix_mutex_007.c", - "mutex/smoke/It_posix_mutex_012.c", - "mutex/smoke/It_posix_mutex_015.c", - "mutex/smoke/It_posix_mutex_016.c", - "mutex/smoke/It_posix_mutex_019.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_004.c", - "pthread/smoke/It_posix_pthread_005.c", - "pthread/smoke/It_posix_pthread_006.c", - "pthread/smoke/It_posix_pthread_009.c", - "pthread/smoke/It_posix_pthread_018.c", - "pthread/smoke/It_posix_pthread_019.c", - "pthread/smoke/It_posix_pthread_020.c", - "pthread/smoke/It_posix_pthread_021.c", - "pthread/smoke/It_posix_pthread_022.c", - "swtmr/smoke/It_posix_swtmr_001.c", - "swtmr/smoke/It_posix_swtmr_013.c", - "swtmr/smoke/It_posix_swtmr_046.c", - "swtmr/smoke/It_posix_swtmr_047.c", - "swtmr/smoke/It_posix_swtmr_049.c", - "swtmr/smoke/It_posix_swtmr_055.c", - "swtmr/smoke/It_posix_swtmr_065.c", - "swtmr/smoke/It_posix_swtmr_067.c", - "swtmr/smoke/It_posix_swtmr_101.c", - "swtmr/smoke/It_posix_swtmr_103.c", - "swtmr/smoke/It_posix_swtmr_105.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", - ] - } - - include_dirs = [ - "../../../compat/posix/src", - "../../include", - "mem", - "mqueue", - "mutex", - "pthread", - "sched", - "sem", - "smp", - "swtmr", - ] + include_dirs = [ + "../../../compat/posix/src", + "../../include", + "mem", + "mqueue", + "mutex", + "pthread", + "sched", + "sem", + "smp", + "swtmr", + ] - cflags = [ "-Wno-error" ] + cflags = [ "-Wno-error" ] } diff --git a/testsuites/unittest/IO/full/IO_test_ppoll_001.cpp b/testsuites/unittest/IO/full/IO_test_ppoll_001.cpp index 69c5b310be5aeae3e1c9307d7fba34e7bc2d4fbb..9fe63c98000db6b38454df4df886be899340ee5d 100644 --- a/testsuites/unittest/IO/full/IO_test_ppoll_001.cpp +++ b/testsuites/unittest/IO/full/IO_test_ppoll_001.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021-2021, Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2021-2021, Huawei Device 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: @@ -28,6 +28,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include "It_test_IO.h" #include #include "signal.h" diff --git a/testsuites/unittest/IO/full/IO_test_ppoll_002.cpp b/testsuites/unittest/IO/full/IO_test_ppoll_002.cpp index 0beab11728e4a0bc326d572f4f056335d0dceae0..ae52d92710cf69e4a455a1b687223514bb8ddb6c 100644 --- a/testsuites/unittest/IO/full/IO_test_ppoll_002.cpp +++ b/testsuites/unittest/IO/full/IO_test_ppoll_002.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021-2021, Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2021-2021, Huawei Device 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: @@ -28,6 +28,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include "It_test_IO.h" #include "time.h" #include "signal.h" diff --git a/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp b/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp index 3b4ffb0baa32ffd592ec05b8bbfddda535371938..4c3f7e2fc6eab1d042696ec9506c75d06cb5a3a8 100644 --- a/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp +++ b/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2019-2021, Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021, Huawei Device 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: @@ -28,6 +28,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include "It_fs_jffs.h" #include "sys/stat.h" diff --git a/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp b/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp index 692f725ae2d8703b1366db052cc4989a63d989d0..1a5715306af731f94b00594babba4fc21c1a613b 100644 --- a/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp +++ b/testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2019-2021, Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021, Huawei Device 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: @@ -28,6 +28,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include "It_fs_jffs.h" #include #include "sys/stat.h" diff --git a/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp b/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp index 9e3efc5cc3bd41ef767b3dd416c6af043c062c6d..3d30bb75875d3ec6484ef513c01f9f7b527b0b39 100644 --- a/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp +++ b/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2019-2021, Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021, Huawei Device 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: @@ -28,6 +28,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include "It_fs_jffs.h" #include #include "fcntl.h" diff --git a/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp b/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp index 9014ee0d1891a6b6cacb5e22169a5d7a5f6d2738..1b1531702201743ef0667363a3086214225ca952 100644 --- a/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp +++ b/testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2019-2021, Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021, Huawei Device 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: @@ -28,6 +28,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include "It_fs_jffs.h" #include #include "fcntl.h" diff --git a/testsuites/unittest/fs/jffs/smoke/It_vfs_jffs_103.cpp b/testsuites/unittest/fs/jffs/smoke/It_vfs_jffs_103.cpp index 3deef21bf9b4309032d4bc51c4aaee90a3fa75a7..bab3d04e5097b8c6ec2e5a689568238b1b3e33a8 100644 --- a/testsuites/unittest/fs/jffs/smoke/It_vfs_jffs_103.cpp +++ b/testsuites/unittest/fs/jffs/smoke/It_vfs_jffs_103.cpp @@ -1,3 +1,34 @@ +/* + * 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" static UINT32 testcase(VOID) diff --git a/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_010.cpp b/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_010.cpp index 883630d3bbc5f15a8bb4f981eabf782a315562b5..baf0d2ae304eb080100eb39009baf3b402d92fdd 100644 --- a/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_010.cpp +++ b/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_010.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021, Huawei Device 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: diff --git a/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_103.cpp b/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_103.cpp index 9c8f3045fdab30521fa022c4dbf3cf86bc2e93c4..7fccbf425cd39feb96d92a6bc1f1899575e782f5 100644 --- a/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_103.cpp +++ b/testsuites/unittest/fs/jffs/smoke/it_test_fs_jffs_103.cpp @@ -28,6 +28,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include "It_fs_jffs.h" #define TEST_STRLEN 30 diff --git a/testsuites/unittest/fs/proc/proc.mk b/testsuites/unittest/fs/proc/proc.mk index 9e43eaf45ff1baefec7fde7795c57466641acf50..e5f355013d4e0a7d3ab855cebf25f02bc8c596ae 100644 --- a/testsuites/unittest/fs/proc/proc.mk +++ b/testsuites/unittest/fs/proc/proc.mk @@ -1,3 +1,31 @@ +# 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 diff --git a/testsuites/unittest/security/capability/BUILD.gn b/testsuites/unittest/security/capability/BUILD.gn index 307ba77710ccb3a8758d00fed0dc9844fb45cf61..031b03d6a93166a8d3de60c84e846a3a65bd4d52 100644 --- a/testsuites/unittest/security/capability/BUILD.gn +++ b/testsuites/unittest/security/capability/BUILD.gn @@ -1,4 +1,32 @@ -# 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("../../config.gni") @@ -13,12 +41,9 @@ sources_entry = [ "security_capability_test.cpp", ] -sources_smoke = [ - "smoke/cap_test_001.cpp", -] +sources_smoke = [ "smoke/cap_test_001.cpp" ] -sources_full = [ -] +sources_full = [] if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) { unittest("liteos_a_security_capability_unittest_door") {