10d163575Sopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd. All rights reserved. 20d163575Sopenharmony_ci# 30d163575Sopenharmony_ci# Redistribution and use in source and binary forms, with or without modification, 40d163575Sopenharmony_ci# are permitted provided that the following conditions are met: 50d163575Sopenharmony_ci# 60d163575Sopenharmony_ci# 1. Redistributions of source code must retain the above copyright notice, this list of 70d163575Sopenharmony_ci# conditions and the following disclaimer. 80d163575Sopenharmony_ci# 90d163575Sopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright notice, this list 100d163575Sopenharmony_ci# of conditions and the following disclaimer in the documentation and/or other materials 110d163575Sopenharmony_ci# provided with the distribution. 120d163575Sopenharmony_ci# 130d163575Sopenharmony_ci# 3. Neither the name of the copyright holder nor the names of its contributors may be used 140d163575Sopenharmony_ci# to endorse or promote products derived from this software without specific prior written 150d163575Sopenharmony_ci# permission. 160d163575Sopenharmony_ci# 170d163575Sopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 180d163575Sopenharmony_ci# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 190d163575Sopenharmony_ci# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 200d163575Sopenharmony_ci# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 210d163575Sopenharmony_ci# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 220d163575Sopenharmony_ci# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 230d163575Sopenharmony_ci# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 240d163575Sopenharmony_ci# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 250d163575Sopenharmony_ci# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 260d163575Sopenharmony_ci# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 270d163575Sopenharmony_ci# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 280d163575Sopenharmony_ci 290d163575Sopenharmony_ciimport("//build/lite/config/test.gni") 300d163575Sopenharmony_ci 310d163575Sopenharmony_cifuzztest("liteos_a_user_fuzz_test") { 320d163575Sopenharmony_ci output_extension = "bin" 330d163575Sopenharmony_ci sources = [ 340d163575Sopenharmony_ci "adjtime_fuzzer.cpp", 350d163575Sopenharmony_ci "chroot_fuzzer.cpp", 360d163575Sopenharmony_ci "clone_fuzzer.cpp", 370d163575Sopenharmony_ci "epoll_create_fuzzer.cpp", 380d163575Sopenharmony_ci "epoll_ctl_fuzzer.cpp", 390d163575Sopenharmony_ci "epoll_wait_fuzzer.cpp", 400d163575Sopenharmony_ci "fesetenv_fuzzer.cpp", 410d163575Sopenharmony_ci "getrlimit_fuzzer.cpp", 420d163575Sopenharmony_ci "main.cpp", 430d163575Sopenharmony_ci "mlock_fuzzer.cpp", 440d163575Sopenharmony_ci "mlockall_fuzzer.cpp", 450d163575Sopenharmony_ci "posix_spawn_file_actions_addchdir_np_fuzzer.cpp", 460d163575Sopenharmony_ci "posix_spawn_file_actions_adddup2_fuzzer.cpp", 470d163575Sopenharmony_ci "posix_spawn_file_actions_addfchdir_np_fuzzer.cpp", 480d163575Sopenharmony_ci "posix_spawn_file_actions_addopen_fuzzer.cpp", 490d163575Sopenharmony_ci "posix_spawn_file_actions_destroy_fuzzer.cpp", 500d163575Sopenharmony_ci "posix_spawn_file_actions_init_fuzzer.cpp", 510d163575Sopenharmony_ci "posix_spawn_fuzzer.cpp", 520d163575Sopenharmony_ci "posix_spawnattr_destroy_fuzzer.cpp", 530d163575Sopenharmony_ci "posix_spawnattr_getflags_fuzzer.cpp", 540d163575Sopenharmony_ci "posix_spawnattr_getpgroup_fuzzer.cpp", 550d163575Sopenharmony_ci "posix_spawnattr_getschedparam_fuzzer.cpp", 560d163575Sopenharmony_ci "posix_spawnattr_getschedpolicy_fuzzer.cpp", 570d163575Sopenharmony_ci "posix_spawnattr_getsigdefault_fuzzer.cpp", 580d163575Sopenharmony_ci "posix_spawnattr_getsigmask_fuzzer.cpp", 590d163575Sopenharmony_ci "posix_spawnattr_init_fuzzer.cpp", 600d163575Sopenharmony_ci "posix_spawnattr_setflags_fuzzer.cpp", 610d163575Sopenharmony_ci "posix_spawnattr_setpgroup_fuzzer.cpp", 620d163575Sopenharmony_ci "posix_spawnattr_setschedparam_fuzzer.cpp", 630d163575Sopenharmony_ci "posix_spawnattr_setschedpolicy_fuzzer.cpp", 640d163575Sopenharmony_ci "posix_spawnattr_setsigdefault_fuzzer.cpp", 650d163575Sopenharmony_ci "posix_spawnattr_setsigmask_fuzzer.cpp", 660d163575Sopenharmony_ci "posix_spawnp_fuzzer.cpp", 670d163575Sopenharmony_ci "pthread_mutex_consistent_fuzzer.cpp", 680d163575Sopenharmony_ci "pthread_mutex_getprioceiling_fuzzer.cpp", 690d163575Sopenharmony_ci "pthread_mutexattr_setprotocol_fuzzer.cpp", 700d163575Sopenharmony_ci "pthread_mutexattr_setrobust_fuzzer.cpp", 710d163575Sopenharmony_ci "pthread_mutexattr_settype_fuzzer.cpp", 720d163575Sopenharmony_ci "pthread_setconcurrency_fuzzer.cpp", 730d163575Sopenharmony_ci "readlink_fuzzer.cpp", 740d163575Sopenharmony_ci "readlinkat_fuzzer.cpp", 750d163575Sopenharmony_ci "sem_open_fuzzer.cpp", 760d163575Sopenharmony_ci "sethostname_fuzzer.cpp", 770d163575Sopenharmony_ci "setns_fuzzer.cpp", 780d163575Sopenharmony_ci "syslog_fuzzer.cpp", 790d163575Sopenharmony_ci "system_fuzzer.cpp", 800d163575Sopenharmony_ci "times_fuzzer.cpp", 810d163575Sopenharmony_ci "unshare_fuzzer.cpp", 820d163575Sopenharmony_ci ] 830d163575Sopenharmony_ci include_dirs = [] 840d163575Sopenharmony_ci deps = [] 850d163575Sopenharmony_ci} 860d163575Sopenharmony_cigroup("liteos_a_fuzztest") { 870d163575Sopenharmony_ci deps = [ ":liteos_a_user_fuzz_test" ] 880d163575Sopenharmony_ci} 89