1# Copyright (c) 2022-2023 Huawei Device Co., Ltd. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without modification,
4# are permitted provided that the following conditions are met:
5#
6# 1. Redistributions of source code must retain the above copyright notice, this list of
7#    conditions and the following disclaimer.
8#
9# 2. Redistributions in binary form must reproduce the above copyright notice, this list
10#    of conditions and the following disclaimer in the documentation and/or other materials
11#    provided with the distribution.
12#
13# 3. Neither the name of the copyright holder nor the names of its contributors may be used
14#    to endorse or promote products derived from this software without specific prior written
15#    permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29import("//build/lite/config/test.gni")
30
31fuzztest("liteos_a_user_fuzz_test") {
32  output_extension = "bin"
33  sources = [
34    "adjtime_fuzzer.cpp",
35    "chroot_fuzzer.cpp",
36    "clone_fuzzer.cpp",
37    "epoll_create_fuzzer.cpp",
38    "epoll_ctl_fuzzer.cpp",
39    "epoll_wait_fuzzer.cpp",
40    "fesetenv_fuzzer.cpp",
41    "getrlimit_fuzzer.cpp",
42    "main.cpp",
43    "mlock_fuzzer.cpp",
44    "mlockall_fuzzer.cpp",
45    "posix_spawn_file_actions_addchdir_np_fuzzer.cpp",
46    "posix_spawn_file_actions_adddup2_fuzzer.cpp",
47    "posix_spawn_file_actions_addfchdir_np_fuzzer.cpp",
48    "posix_spawn_file_actions_addopen_fuzzer.cpp",
49    "posix_spawn_file_actions_destroy_fuzzer.cpp",
50    "posix_spawn_file_actions_init_fuzzer.cpp",
51    "posix_spawn_fuzzer.cpp",
52    "posix_spawnattr_destroy_fuzzer.cpp",
53    "posix_spawnattr_getflags_fuzzer.cpp",
54    "posix_spawnattr_getpgroup_fuzzer.cpp",
55    "posix_spawnattr_getschedparam_fuzzer.cpp",
56    "posix_spawnattr_getschedpolicy_fuzzer.cpp",
57    "posix_spawnattr_getsigdefault_fuzzer.cpp",
58    "posix_spawnattr_getsigmask_fuzzer.cpp",
59    "posix_spawnattr_init_fuzzer.cpp",
60    "posix_spawnattr_setflags_fuzzer.cpp",
61    "posix_spawnattr_setpgroup_fuzzer.cpp",
62    "posix_spawnattr_setschedparam_fuzzer.cpp",
63    "posix_spawnattr_setschedpolicy_fuzzer.cpp",
64    "posix_spawnattr_setsigdefault_fuzzer.cpp",
65    "posix_spawnattr_setsigmask_fuzzer.cpp",
66    "posix_spawnp_fuzzer.cpp",
67    "pthread_mutex_consistent_fuzzer.cpp",
68    "pthread_mutex_getprioceiling_fuzzer.cpp",
69    "pthread_mutexattr_setprotocol_fuzzer.cpp",
70    "pthread_mutexattr_setrobust_fuzzer.cpp",
71    "pthread_mutexattr_settype_fuzzer.cpp",
72    "pthread_setconcurrency_fuzzer.cpp",
73    "readlink_fuzzer.cpp",
74    "readlinkat_fuzzer.cpp",
75    "sem_open_fuzzer.cpp",
76    "sethostname_fuzzer.cpp",
77    "setns_fuzzer.cpp",
78    "syslog_fuzzer.cpp",
79    "system_fuzzer.cpp",
80    "times_fuzzer.cpp",
81    "unshare_fuzzer.cpp",
82  ]
83  include_dirs = []
84  deps = []
85}
86group("liteos_a_fuzztest") {
87  deps = [ ":liteos_a_user_fuzz_test" ]
88}
89