# Copyright (c) 2020 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//test/xts/tools/lite/build/suite_lite.gni") open_source_suite("ActsOpenPosixBuildOnlyTest") { suite_name = "acts" exec_command_path = "//third_party/ltp/testcases/open_posix_testsuite/" compiler = rebase_path("${ohos_build_compiler_dir}/bin/${ohos_build_compiler}") prebuild_command = "make clean && make distclean && ./scripts/generate-makefiles.sh $compiler ${ohos_root_path} && make -j -C conformance/definitions" exec_sub_dir = "conformance/definitions" build_args = [ "signal_h/logfile", "pthread_h/logfile", "errno_h/logfile", "mqueue_h/logfile", "time_h/logfile", "unistd_h/logfile", "aio_h/logfile", "sched_h/logfile", ] deps = [":install_patch"] } build_ext_component("install_patch") { exec_path = rebase_path(".", root_build_dir) command = "./../../ltp-patch/patch.sh" }