1# Copyright (c) 2020 - 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//test/xts/tools/lite/build/suite_lite.gni") 15 16open_source_suite("ActsOpenPosixBuildOnlyTest") { 17 suite_name = "acts" 18 exec_command_path = "//third_party/ltp/testcases/open_posix_testsuite/" 19 compiler = 20 rebase_path("${ohos_build_compiler_dir}/bin/${ohos_build_compiler}") 21 sysroot_path = rebase_path(ohos_current_sysroot) 22 arch_cflags = string_join(" ", target_arch_cflags) 23 prebuild_command = "make clean && make distclean && ./scripts/generate-makefiles.sh $compiler ${ohos_root_path} ${sysroot_path} \"${arch_cflags}\" && make -j -C conformance/definitions" 24 exec_sub_dir = "conformance/definitions" 25 build_args = [ 26 "signal_h/logfile", 27 "pthread_h/logfile", 28 "errno_h/logfile", 29 "mqueue_h/logfile", 30 "time_h/logfile", 31 "unistd_h/logfile", 32 "aio_h/logfile", 33 "sched_h/logfile", 34 ] 35 deps = [ ":install_patch" ] 36} 37 38build_ext_component("install_patch") { 39 exec_path = rebase_path(".", root_build_dir) 40 command = "./../../ltp-patch/patch.sh" 41} 42