13298bea7Sopenharmony_ci# Copyright (C) 2022 Huawei Device Co., Ltd.
23298bea7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33298bea7Sopenharmony_ci# you may not use this file except in compliance with the License.
43298bea7Sopenharmony_ci# You may obtain a copy of the License at
53298bea7Sopenharmony_ci#
63298bea7Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73298bea7Sopenharmony_ci#
83298bea7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93298bea7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103298bea7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113298bea7Sopenharmony_ci# See the License for the specific language governing permissions and
123298bea7Sopenharmony_ci# limitations under the License.
133298bea7Sopenharmony_ciimport("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni")
143298bea7Sopenharmony_ci
153298bea7Sopenharmony_ci_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest"
163298bea7Sopenharmony_ci
173298bea7Sopenharmony_cikernel_interface_bin("dup201") {
183298bea7Sopenharmony_ci  output_dir = "${_output_dir}"
193298bea7Sopenharmony_ci  sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup201.c" ]
203298bea7Sopenharmony_ci}
213298bea7Sopenharmony_ci
223298bea7Sopenharmony_cikernel_interface_bin("dup202") {
233298bea7Sopenharmony_ci  output_dir = "${_output_dir}"
243298bea7Sopenharmony_ci  sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup202.c" ]
253298bea7Sopenharmony_ci}
263298bea7Sopenharmony_ci
273298bea7Sopenharmony_cikernel_interface_bin("dup203") {
283298bea7Sopenharmony_ci  output_dir = "${_output_dir}"
293298bea7Sopenharmony_ci  sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup203.c" ]
303298bea7Sopenharmony_ci}
313298bea7Sopenharmony_ci
323298bea7Sopenharmony_cikernel_interface_bin("dup204") {
333298bea7Sopenharmony_ci  output_dir = "${_output_dir}"
343298bea7Sopenharmony_ci  sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup204.c" ]
353298bea7Sopenharmony_ci}
363298bea7Sopenharmony_ci
373298bea7Sopenharmony_cikernel_interface_bin("dup205") {
383298bea7Sopenharmony_ci  output_dir = "${_output_dir}"
393298bea7Sopenharmony_ci  sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup205.c" ]
403298bea7Sopenharmony_ci}
413298bea7Sopenharmony_ci
423298bea7Sopenharmony_cikernel_interface_bin("dup206") {
433298bea7Sopenharmony_ci  output_dir = "${_output_dir}"
443298bea7Sopenharmony_ci  sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup206.c" ]
453298bea7Sopenharmony_ci}
463298bea7Sopenharmony_ci
473298bea7Sopenharmony_cikernel_interface_bin("dup207") {
483298bea7Sopenharmony_ci  output_dir = "${_output_dir}"
493298bea7Sopenharmony_ci  sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup207.c" ]
503298bea7Sopenharmony_ci}
51