From bec172469014679cf84a9145665a2f997e76a82a Mon Sep 17 00:00:00 2001 From: wufan Date: Fri, 26 Aug 2022 17:59:30 +0800 Subject: [PATCH] add part of ltp syscalls testcases Signed-off-by: wufan --- test/kernel_ltp/syscalls/BUILD.gn | 163 ++++++++++++++++++ test/kernel_ltp/syscalls/dup/BUILD.gn | 50 ++++++ test/kernel_ltp/syscalls/dup2/BUILD.gn | 50 ++++++ test/kernel_ltp/syscalls/dup3/BUILD.gn | 25 +++ .../syscalls/epoll_create1/BUILD.gn | 25 +++ test/kernel_ltp/syscalls/epoll_ctl/BUILD.gn | 45 +++++ test/kernel_ltp/syscalls/epoll_wait/BUILD.gn | 43 +++++ test/kernel_ltp/syscalls/eventfd2/BUILD.gn | 33 ++++ test/kernel_ltp/syscalls/execl/BUILD.gn | 26 +++ test/kernel_ltp/syscalls/execle/BUILD.gn | 26 +++ test/kernel_ltp/syscalls/execlp/BUILD.gn | 26 +++ test/kernel_ltp/syscalls/execv/BUILD.gn | 26 +++ test/kernel_ltp/syscalls/execve/BUILD.gn | 52 ++++++ test/kernel_ltp/syscalls/execvp/BUILD.gn | 26 +++ test/kernel_ltp/syscalls/exit/BUILD.gn | 25 +++ test/kernel_ltp/syscalls/exit_group/BUILD.gn | 22 +++ test/kernel_ltp/syscalls/faccessat/BUILD.gn | 21 +++ test/kernel_ltp/syscalls/fadvis/BUILD.gn | 43 +++++ test/kernel_ltp/syscalls/fchdir/BUILD.gn | 30 ++++ test/kernel_ltp/syscalls/fchmodat/BUILD.gn | 21 +++ test/kernel_ltp/syscalls/fchown/BUILD.gn | 45 +++++ test/kernel_ltp/syscalls/fchownat/BUILD.gn | 27 +++ test/kernel_ltp/syscalls/flistxattr/BUILD.gn | 36 ++++ test/kernel_ltp/syscalls/flock/BUILD.gn | 40 +++++ test/kernel_ltp/syscalls/fpathconf/BUILD.gn | 21 +++ test/kernel_ltp/syscalls/fstat/BUILD.gn | 25 +++ test/kernel_ltp/syscalls/futex/BUILD.gn | 90 ++++++++++ test/kernel_ltp/syscalls/getcpu/BUILD.gn | 20 +++ test/kernel_ltp/syscalls/getcwd/BUILD.gn | 35 ++++ .../syscalls/getdomainname/BUILD.gn | 20 +++ test/kernel_ltp/syscalls/geteuid/BUILD.gn | 29 ++++ test/kernel_ltp/syscalls/getgid/BUILD.gn | 27 +++ test/kernel_ltp/syscalls/getgroups/BUILD.gn | 29 ++++ test/kernel_ltp/syscalls/gethostname/BUILD.gn | 22 +++ test/kernel_ltp/syscalls/getitimer/BUILD.gn | 33 ++++ test/kernel_ltp/syscalls/getpagesize/BUILD.gn | 22 +++ test/kernel_ltp/syscalls/getpeername/BUILD.gn | 22 +++ test/kernel_ltp/syscalls/getpgid/BUILD.gn | 27 +++ test/kernel_ltp/syscalls/getpgrp/BUILD.gn | 21 +++ test/kernel_ltp/syscalls/getpid/BUILD.gn | 25 +++ test/kernel_ltp/syscalls/getppid/BUILD.gn | 27 +++ test/kernel_ltp/syscalls/getpriority/BUILD.gn | 29 ++++ test/kernel_ltp/syscalls/getrandom/BUILD.gn | 39 +++++ test/kernel_ltp/syscalls/getresgid/BUILD.gn | 36 ++++ test/kernel_ltp/syscalls/getresuid/BUILD.gn | 36 ++++ test/kernel_ltp/syscalls/getrlimit/BUILD.gn | 33 ++++ test/kernel_ltp/syscalls/getsid/BUILD.gn | 25 +++ test/kernel_ltp/syscalls/getsockname/BUILD.gn | 22 +++ test/kernel_ltp/syscalls/getsockopt/BUILD.gn | 29 ++++ test/kernel_ltp/syscalls/gettid/BUILD.gn | 20 +++ .../kernel_ltp/syscalls/gettimeofday/BUILD.gn | 29 ++++ test/kernel_ltp/syscalls/getuid/BUILD.gn | 27 +++ .../kernel_ltp/syscalls/inotify_init/BUILD.gn | 25 +++ test/kernel_ltp/syscalls/kcmp/BUILD.gn | 30 ++++ test/kernel_ltp/syscalls/keyctl/BUILD.gn | 55 ++++++ test/kernel_ltp/syscalls/lgetxattr/BUILD.gn | 27 +++ test/kernel_ltp/syscalls/listen/BUILD.gn | 20 +++ test/kernel_ltp/syscalls/listxattr/BUILD.gn | 33 ++++ test/kernel_ltp/syscalls/llistxattr/BUILD.gn | 36 ++++ 59 files changed, 1972 insertions(+) create mode 100644 test/kernel_ltp/syscalls/dup/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/dup2/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/dup3/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/epoll_create1/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/epoll_ctl/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/epoll_wait/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/eventfd2/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/execl/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/execle/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/execlp/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/execv/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/execve/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/execvp/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/exit/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/exit_group/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/faccessat/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/fadvis/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/fchdir/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/fchmodat/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/fchown/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/fchownat/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/flistxattr/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/flock/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/fpathconf/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/fstat/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/futex/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getcpu/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getcwd/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getdomainname/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/geteuid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getgid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getgroups/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/gethostname/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getitimer/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getpagesize/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getpeername/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getpgid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getpgrp/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getpid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getppid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getpriority/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getrandom/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getresgid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getresuid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getrlimit/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getsid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getsockname/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getsockopt/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/gettid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/gettimeofday/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/getuid/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/inotify_init/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/kcmp/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/keyctl/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/lgetxattr/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/listen/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/listxattr/BUILD.gn create mode 100644 test/kernel_ltp/syscalls/llistxattr/BUILD.gn diff --git a/test/kernel_ltp/syscalls/BUILD.gn b/test/kernel_ltp/syscalls/BUILD.gn index e3cb23b..0842cb3 100644 --- a/test/kernel_ltp/syscalls/BUILD.gn +++ b/test/kernel_ltp/syscalls/BUILD.gn @@ -122,5 +122,168 @@ group("HatsSyscallsTest") { "creat:creat07_child", "creat:creat08", "creat:creat09", + "dup:dup01", + "dup:dup02", + "dup:dup03", + "dup:dup04", + "dup:dup05", + "dup:dup06", + "dup:dup07", + "dup2:dup201", + "dup2:dup202", + "dup2:dup203", + "dup2:dup204", + "dup2:dup205", + "dup2:dup206", + "dup2:dup207", + "dup3:dup3_01", + "dup3:dup3_02", + "epoll_create1:epoll_create1_01", + "epoll_create1:epoll_create1_02", + "epoll_ctl:epoll_ctl01", + "epoll_ctl:epoll_ctl02", + "epoll_ctl:epoll_ctl03", + "epoll_ctl:epoll_ctl04", + "epoll_ctl:epoll_ctl05", + "epoll_wait:epoll_wait01", + "epoll_wait:epoll_wait02", + "epoll_wait:epoll_wait03", + "epoll_wait:epoll_wait04", + "eventfd2:eventfd2_01", + "eventfd2:eventfd2_02", + "eventfd2:eventfd2_03", + "execl:execl01", + "execl:execl01_child", + "execle:execle01", + "execle:execle01_child", + "execlp:execlp01", + "execlp:execlp01_child", + "execv:execv01", + "execv:execv01_child", + "execve:execve01", + "execve:execve01_child", + "execve:execve02", + "execve:execve03", + "execve:execve04", + "execve:execve05", + "execvp:execvp01", + "execvp:execvp01_child", + "exit:exit01", + "exit:exit02", + "exit_group:exit_group01", + "faccessat:faccessat01", + "fadvis:posix_fadvise01", + "fadvis:posix_fadvise02", + "fadvis:posix_fadvise03", + "fadvis:posix_fadvise04", + "fchdir:fchdir01", + "fchdir:fchdir02", + "fchdir:fchdir03", + "fchmodat:fchmodat01", + "fchown:fchown01", + "fchown:fchown02", + "fchown:fchown03", + "fchown:fchown04", + "fchown:fchown05", + "fchownat:fchownat01", + "fchownat:fchownat02", + "flistxattr:flistxattr01", + "flistxattr:flistxattr02", + "flistxattr:flistxattr03", + "flock:flock01", + "flock:flock02", + "flock:flock03", + "flock:flock04", + "flock:flock06", + "fpathconf:fpathconf01", + "fstat:fstat02", + "fstat:fstat03", + "futex:futex_cmp_requeue01", + "futex:futex_cmp_requeue02", + "futex:futex_wait01", + "futex:futex_wait02", + "futex:futex_wait03", + "futex:futex_wait04", + "futex:futex_wait05", + "futex:futex_wait_bitset01", + "futex:futex_wake01", + "futex:futex_wake02", + "futex:futex_wake03", + "futex:futex_wake04", + "getcpu:getcpu01", + "getcwd:getcwd01", + "getcwd:getcwd02", + "getcwd:getcwd03", + "getcwd:getcwd04", + "getdomainname:getdomainname01", + "geteuid:geteuid01", + "geteuid:geteuid02", + "getgid:getgid01", + "getgid:getgid03", + "getgroups:getgroups01", + "getgroups:getgroups03", + "gethostname:gethostname01", + "getitimer:getitimer01", + "getitimer:getitimer02", + "getitimer:getitimer03", + "getpagesize:getpagesize01", + "getpeername:getpeername01", + "getpgid:getpgid01", + "getpgid:getpgid02", + "getpgrp:getpgrp01", + "getpid:getpid01", + "getpid:getpid02", + "getppid:getppid01", + "getppid:getppid02", + "getpriority:getpriority01", + "getpriority:getpriority02", + "getrandom:getrandom01", + "getrandom:getrandom02", + "getrandom:getrandom03", + "getrandom:getrandom04", + "getresgid:getresgid01", + "getresgid:getresgid02", + "getresgid:getresgid03", + "getresuid:getresuid01", + "getresuid:getresuid02", + "getresuid:getresuid03", + "getrlimit:getrlimit01", + "getrlimit:getrlimit02", + "getrlimit:getrlimit03", + "getsid:getsid01", + "getsid:getsid02", + "getsockname:getsockname01", + "getsockopt:getsockopt01", + "getsockopt:getsockopt02", + "gettid:gettid01", + "gettimeofday:gettimeofday01", + "gettimeofday:gettimeofday02", + "getuid:getuid01", + "getuid:getuid03", + "inotify_init:inotify_init1_01", + "inotify_init:inotify_init1_02", + "kcmp:kcmp01", + "kcmp:kcmp02", + "kcmp:kcmp03", + "keyctl:keyctl01", + "keyctl:keyctl02", + "keyctl:keyctl03", + "keyctl:keyctl04", + "keyctl:keyctl05", + "keyctl:keyctl06", + "keyctl:keyctl07", + "keyctl:keyctl08", + "lgetxattr:lgetxattr01", + "lgetxattr:lgetxattr02", + "listen:listen01", + "listxattr:listxattr01", + "listxattr:listxattr02", + "listxattr:listxattr03", + "llistxattr:llistxattr01", + "llistxattr:llistxattr02", + "llistxattr:llistxattr03", + "llseek:llseek01", + "llseek:llseek02", + "llseek:llseek03", ] } diff --git a/test/kernel_ltp/syscalls/dup/BUILD.gn b/test/kernel_ltp/syscalls/dup/BUILD.gn new file mode 100644 index 0000000..63fb83d --- /dev/null +++ b/test/kernel_ltp/syscalls/dup/BUILD.gn @@ -0,0 +1,50 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("dup01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup/dup01.c" ] +} + +kernel_interface_bin("dup02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup/dup02.c" ] +} + +kernel_interface_bin("dup03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup/dup03.c" ] +} + +kernel_interface_bin("dup04") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup/dup04.c" ] +} + +kernel_interface_bin("dup05") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup/dup05.c" ] +} + +kernel_interface_bin("dup06") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup/dup06.c" ] +} + +kernel_interface_bin("dup07") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup/dup07.c" ] +} diff --git a/test/kernel_ltp/syscalls/dup2/BUILD.gn b/test/kernel_ltp/syscalls/dup2/BUILD.gn new file mode 100644 index 0000000..485373f --- /dev/null +++ b/test/kernel_ltp/syscalls/dup2/BUILD.gn @@ -0,0 +1,50 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("dup201") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup201.c" ] +} + +kernel_interface_bin("dup202") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup202.c" ] +} + +kernel_interface_bin("dup203") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup203.c" ] +} + +kernel_interface_bin("dup204") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup204.c" ] +} + +kernel_interface_bin("dup205") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup205.c" ] +} + +kernel_interface_bin("dup206") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup206.c" ] +} + +kernel_interface_bin("dup207") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup2/dup207.c" ] +} diff --git a/test/kernel_ltp/syscalls/dup3/BUILD.gn b/test/kernel_ltp/syscalls/dup3/BUILD.gn new file mode 100644 index 0000000..526c7bb --- /dev/null +++ b/test/kernel_ltp/syscalls/dup3/BUILD.gn @@ -0,0 +1,25 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("dup3_01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup3/dup3_01.c" ] +} + +kernel_interface_bin("dup3_02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/dup3/dup3_02.c" ] +} diff --git a/test/kernel_ltp/syscalls/epoll_create1/BUILD.gn b/test/kernel_ltp/syscalls/epoll_create1/BUILD.gn new file mode 100644 index 0000000..d07a353 --- /dev/null +++ b/test/kernel_ltp/syscalls/epoll_create1/BUILD.gn @@ -0,0 +1,25 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("epoll_create1_01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c" ] +} + +kernel_interface_bin("epoll_create1_02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/epoll_create1/epoll_create1_02.c" ] +} diff --git a/test/kernel_ltp/syscalls/epoll_ctl/BUILD.gn b/test/kernel_ltp/syscalls/epoll_ctl/BUILD.gn new file mode 100644 index 0000000..cf5b718 --- /dev/null +++ b/test/kernel_ltp/syscalls/epoll_ctl/BUILD.gn @@ -0,0 +1,45 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("epoll_ctl01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/epoll_ctl/epoll_ctl01.c" ] +} + +kernel_interface_bin("epoll_ctl02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/epoll_ctl/epoll_ctl02.c" ] +} + +kernel_interface_bin("epoll_ctl03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/epoll_ctl/epoll_ctl03.c" ] +} + +kernel_interface_bin("epoll_ctl04") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c" ] +} + +kernel_interface_bin("epoll_ctl05") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/epoll_ctl/epoll_ctl05.c" ] +} diff --git a/test/kernel_ltp/syscalls/epoll_wait/BUILD.gn b/test/kernel_ltp/syscalls/epoll_wait/BUILD.gn new file mode 100644 index 0000000..0456502 --- /dev/null +++ b/test/kernel_ltp/syscalls/epoll_wait/BUILD.gn @@ -0,0 +1,43 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("epoll_wait01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/epoll_wait/epoll_wait01.c", + ] +} + +kernel_interface_bin("epoll_wait02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/epoll_wait/epoll_wait02.c", + ] +} + +kernel_interface_bin("epoll_wait03") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/epoll_wait/epoll_wait03.c", + ] +} + +kernel_interface_bin("epoll_wait04") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/epoll_wait/epoll_wait04.c", + ] +} diff --git a/test/kernel_ltp/syscalls/eventfd2/BUILD.gn b/test/kernel_ltp/syscalls/eventfd2/BUILD.gn new file mode 100644 index 0000000..2d775bb --- /dev/null +++ b/test/kernel_ltp/syscalls/eventfd2/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("eventfd2_01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/eventfd2/eventfd2_01.c" ] +} + +kernel_interface_bin("eventfd2_02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/eventfd2/eventfd2_02.c" ] +} + +kernel_interface_bin("eventfd2_03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/eventfd2/eventfd2_03.c" ] +} diff --git a/test/kernel_ltp/syscalls/execl/BUILD.gn b/test/kernel_ltp/syscalls/execl/BUILD.gn new file mode 100644 index 0000000..7db2425 --- /dev/null +++ b/test/kernel_ltp/syscalls/execl/BUILD.gn @@ -0,0 +1,26 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("execl01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execl/execl01.c" ] +} + +kernel_interface_bin("execl01_child") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/execl/execl01_child.c" ] +} diff --git a/test/kernel_ltp/syscalls/execle/BUILD.gn b/test/kernel_ltp/syscalls/execle/BUILD.gn new file mode 100644 index 0000000..2995e17 --- /dev/null +++ b/test/kernel_ltp/syscalls/execle/BUILD.gn @@ -0,0 +1,26 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("execle01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execle/execle01.c" ] +} + +kernel_interface_bin("execle01_child") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/execle/execle01_child.c" ] +} diff --git a/test/kernel_ltp/syscalls/execlp/BUILD.gn b/test/kernel_ltp/syscalls/execlp/BUILD.gn new file mode 100644 index 0000000..f2e1af2 --- /dev/null +++ b/test/kernel_ltp/syscalls/execlp/BUILD.gn @@ -0,0 +1,26 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("execlp01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execlp/execlp01.c" ] +} + +kernel_interface_bin("execlp01_child") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/execlp/execlp01_child.c" ] +} diff --git a/test/kernel_ltp/syscalls/execv/BUILD.gn b/test/kernel_ltp/syscalls/execv/BUILD.gn new file mode 100644 index 0000000..75bd650 --- /dev/null +++ b/test/kernel_ltp/syscalls/execv/BUILD.gn @@ -0,0 +1,26 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("execv01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execv/execv01.c" ] +} + +kernel_interface_bin("execv01_child") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/execv/execv01_child.c" ] +} diff --git a/test/kernel_ltp/syscalls/execve/BUILD.gn b/test/kernel_ltp/syscalls/execve/BUILD.gn new file mode 100644 index 0000000..e6a2a76 --- /dev/null +++ b/test/kernel_ltp/syscalls/execve/BUILD.gn @@ -0,0 +1,52 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("execve01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execve/execve01.c" ] +} + +kernel_interface_bin("execve01_child") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/execve/execve01_child.c" ] +} + +kernel_interface_bin("execve02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execve/execve02.c" ] +} + +kernel_interface_bin("execve03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execve/execve03.c" ] +} + +kernel_interface_bin("execve04") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execve/execve04.c" ] +} + +kernel_interface_bin("execve05") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execve/execve05.c" ] +} + +kernel_interface_bin("execve_child") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/execve/execve_child.c" ] +} diff --git a/test/kernel_ltp/syscalls/execvp/BUILD.gn b/test/kernel_ltp/syscalls/execvp/BUILD.gn new file mode 100644 index 0000000..20de523 --- /dev/null +++ b/test/kernel_ltp/syscalls/execvp/BUILD.gn @@ -0,0 +1,26 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("execvp01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/execvp/execvp01.c" ] +} + +kernel_interface_bin("execvp01_child") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/execvp/execvp01_child.c" ] +} diff --git a/test/kernel_ltp/syscalls/exit/BUILD.gn b/test/kernel_ltp/syscalls/exit/BUILD.gn new file mode 100644 index 0000000..2c590d7 --- /dev/null +++ b/test/kernel_ltp/syscalls/exit/BUILD.gn @@ -0,0 +1,25 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("exit01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/exit/exit01.c" ] +} + +kernel_interface_bin("exit02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/exit/exit02.c" ] +} diff --git a/test/kernel_ltp/syscalls/exit_group/BUILD.gn b/test/kernel_ltp/syscalls/exit_group/BUILD.gn new file mode 100644 index 0000000..1c38707 --- /dev/null +++ b/test/kernel_ltp/syscalls/exit_group/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("exit_group01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/exit_group/exit_group01.c", + ] +} diff --git a/test/kernel_ltp/syscalls/faccessat/BUILD.gn b/test/kernel_ltp/syscalls/faccessat/BUILD.gn new file mode 100644 index 0000000..bd08607 --- /dev/null +++ b/test/kernel_ltp/syscalls/faccessat/BUILD.gn @@ -0,0 +1,21 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("faccessat01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/faccessat/faccessat01.c" ] +} diff --git a/test/kernel_ltp/syscalls/fadvis/BUILD.gn b/test/kernel_ltp/syscalls/fadvis/BUILD.gn new file mode 100644 index 0000000..b1a83cd --- /dev/null +++ b/test/kernel_ltp/syscalls/fadvis/BUILD.gn @@ -0,0 +1,43 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("posix_fadvise01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise01.c", + ] +} + +kernel_interface_bin("posix_fadvise02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise02.c", + ] +} + +kernel_interface_bin("posix_fadvise03") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise03.c", + ] +} + +kernel_interface_bin("posix_fadvise04") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise04.c", + ] +} diff --git a/test/kernel_ltp/syscalls/fchdir/BUILD.gn b/test/kernel_ltp/syscalls/fchdir/BUILD.gn new file mode 100644 index 0000000..7ee2387 --- /dev/null +++ b/test/kernel_ltp/syscalls/fchdir/BUILD.gn @@ -0,0 +1,30 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("fchdir01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchdir/fchdir01.c" ] +} + +kernel_interface_bin("fchdir02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchdir/fchdir02.c" ] +} + +kernel_interface_bin("fchdir03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchdir/fchdir03.c" ] +} diff --git a/test/kernel_ltp/syscalls/fchmodat/BUILD.gn b/test/kernel_ltp/syscalls/fchmodat/BUILD.gn new file mode 100644 index 0000000..59b34bc --- /dev/null +++ b/test/kernel_ltp/syscalls/fchmodat/BUILD.gn @@ -0,0 +1,21 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("fchmodat01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/fchmodat/fchmodat01.c" ] +} diff --git a/test/kernel_ltp/syscalls/fchown/BUILD.gn b/test/kernel_ltp/syscalls/fchown/BUILD.gn new file mode 100644 index 0000000..92e128e --- /dev/null +++ b/test/kernel_ltp/syscalls/fchown/BUILD.gn @@ -0,0 +1,45 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("fchown01") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchown/fchown01.c" ] +} + +kernel_interface_bin("fchown02") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchown/fchown02.c" ] +} + +kernel_interface_bin("fchown03") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchown/fchown03.c" ] +} + +kernel_interface_bin("fchown04") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchown/fchown04.c" ] +} + +kernel_interface_bin("fchown05") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fchown/fchown05.c" ] +} diff --git a/test/kernel_ltp/syscalls/fchownat/BUILD.gn b/test/kernel_ltp/syscalls/fchownat/BUILD.gn new file mode 100644 index 0000000..94b806f --- /dev/null +++ b/test/kernel_ltp/syscalls/fchownat/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("fchownat01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/fchownat/fchownat01.c" ] +} + +kernel_interface_bin("fchownat02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/fchownat/fchownat02.c" ] +} diff --git a/test/kernel_ltp/syscalls/flistxattr/BUILD.gn b/test/kernel_ltp/syscalls/flistxattr/BUILD.gn new file mode 100644 index 0000000..449154f --- /dev/null +++ b/test/kernel_ltp/syscalls/flistxattr/BUILD.gn @@ -0,0 +1,36 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("flistxattr01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/flistxattr/flistxattr01.c", + ] +} + +kernel_interface_bin("flistxattr02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/flistxattr/flistxattr02.c", + ] +} + +kernel_interface_bin("flistxattr03") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/flistxattr/flistxattr03.c", + ] +} diff --git a/test/kernel_ltp/syscalls/flock/BUILD.gn b/test/kernel_ltp/syscalls/flock/BUILD.gn new file mode 100644 index 0000000..7b7fe23 --- /dev/null +++ b/test/kernel_ltp/syscalls/flock/BUILD.gn @@ -0,0 +1,40 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("flock01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/flock/flock01.c" ] +} + +kernel_interface_bin("flock02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/flock/flock02.c" ] +} + +kernel_interface_bin("flock03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/flock/flock03.c" ] +} + +kernel_interface_bin("flock04") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/flock/flock04.c" ] +} + +kernel_interface_bin("flock06") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/flock/flock06.c" ] +} diff --git a/test/kernel_ltp/syscalls/fpathconf/BUILD.gn b/test/kernel_ltp/syscalls/fpathconf/BUILD.gn new file mode 100644 index 0000000..c155b7a --- /dev/null +++ b/test/kernel_ltp/syscalls/fpathconf/BUILD.gn @@ -0,0 +1,21 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("fpathconf01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/fpathconf/fpathconf01.c" ] +} diff --git a/test/kernel_ltp/syscalls/fstat/BUILD.gn b/test/kernel_ltp/syscalls/fstat/BUILD.gn new file mode 100644 index 0000000..a00de62 --- /dev/null +++ b/test/kernel_ltp/syscalls/fstat/BUILD.gn @@ -0,0 +1,25 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("fstat02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fstat/fstat02.c" ] +} + +kernel_interface_bin("fstat03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/fstat/fstat03.c" ] +} diff --git a/test/kernel_ltp/syscalls/futex/BUILD.gn b/test/kernel_ltp/syscalls/futex/BUILD.gn new file mode 100644 index 0000000..ae61b30 --- /dev/null +++ b/test/kernel_ltp/syscalls/futex/BUILD.gn @@ -0,0 +1,90 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("futex_cmp_requeue01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/futex/futex_cmp_requeue01.c", + ] +} + +kernel_interface_bin("futex_cmp_requeue02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/futex/futex_cmp_requeue02.c", + ] +} + +kernel_interface_bin("futex_wait01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wait01.c" ] +} + +kernel_interface_bin("futex_wait02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wait02.c" ] +} + +kernel_interface_bin("futex_wait03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wait03.c" ] +} + +kernel_interface_bin("futex_wait04") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wait04.c" ] +} + +kernel_interface_bin("futex_wait05") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wait05.c" ] +} + +kernel_interface_bin("futex_wait_bitset01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wait_bitset01.c", + ] +} + +kernel_interface_bin("futex_wake01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wake01.c" ] +} + +kernel_interface_bin("futex_wake02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wake02.c" ] +} + +kernel_interface_bin("futex_wake03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wake03.c" ] +} + +kernel_interface_bin("futex_wake04") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/futex/futex_wake04.c" ] +} diff --git a/test/kernel_ltp/syscalls/getcpu/BUILD.gn b/test/kernel_ltp/syscalls/getcpu/BUILD.gn new file mode 100644 index 0000000..1e009c8 --- /dev/null +++ b/test/kernel_ltp/syscalls/getcpu/BUILD.gn @@ -0,0 +1,20 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getcpu01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getcpu/getcpu01.c" ] +} diff --git a/test/kernel_ltp/syscalls/getcwd/BUILD.gn b/test/kernel_ltp/syscalls/getcwd/BUILD.gn new file mode 100644 index 0000000..e175e45 --- /dev/null +++ b/test/kernel_ltp/syscalls/getcwd/BUILD.gn @@ -0,0 +1,35 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getcwd01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getcwd/getcwd01.c" ] +} + +kernel_interface_bin("getcwd02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getcwd/getcwd02.c" ] +} + +kernel_interface_bin("getcwd03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getcwd/getcwd03.c" ] +} + +kernel_interface_bin("getcwd04") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getcwd/getcwd04.c" ] +} diff --git a/test/kernel_ltp/syscalls/getdomainname/BUILD.gn b/test/kernel_ltp/syscalls/getdomainname/BUILD.gn new file mode 100644 index 0000000..72df9e0 --- /dev/null +++ b/test/kernel_ltp/syscalls/getdomainname/BUILD.gn @@ -0,0 +1,20 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getdomainname01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getdomainname/getdomainname01.c" ] +} diff --git a/test/kernel_ltp/syscalls/geteuid/BUILD.gn b/test/kernel_ltp/syscalls/geteuid/BUILD.gn new file mode 100644 index 0000000..6aad024 --- /dev/null +++ b/test/kernel_ltp/syscalls/geteuid/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("geteuid01") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/geteuid/geteuid01.c" ] +} + +kernel_interface_bin("geteuid02") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/geteuid/geteuid02.c" ] +} diff --git a/test/kernel_ltp/syscalls/getgid/BUILD.gn b/test/kernel_ltp/syscalls/getgid/BUILD.gn new file mode 100644 index 0000000..1b67d9d --- /dev/null +++ b/test/kernel_ltp/syscalls/getgid/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getgid01") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getgid/getgid01.c" ] +} + +kernel_interface_bin("getgid03") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getgid/getgid03.c" ] +} diff --git a/test/kernel_ltp/syscalls/getgroups/BUILD.gn b/test/kernel_ltp/syscalls/getgroups/BUILD.gn new file mode 100644 index 0000000..48b83f6 --- /dev/null +++ b/test/kernel_ltp/syscalls/getgroups/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getgroups01") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getgroups/getgroups01.c" ] +} + +kernel_interface_bin("getgroups03") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getgroups/getgroups03.c" ] +} diff --git a/test/kernel_ltp/syscalls/gethostname/BUILD.gn b/test/kernel_ltp/syscalls/gethostname/BUILD.gn new file mode 100644 index 0000000..53c5fa1 --- /dev/null +++ b/test/kernel_ltp/syscalls/gethostname/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("gethostname01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/gethostname/gethostname01.c", + ] +} diff --git a/test/kernel_ltp/syscalls/getitimer/BUILD.gn b/test/kernel_ltp/syscalls/getitimer/BUILD.gn new file mode 100644 index 0000000..1609b96 --- /dev/null +++ b/test/kernel_ltp/syscalls/getitimer/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getitimer01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getitimer/getitimer01.c" ] +} + +kernel_interface_bin("getitimer02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getitimer/getitimer02.c" ] +} + +kernel_interface_bin("getitimer03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getitimer/getitimer03.c" ] +} diff --git a/test/kernel_ltp/syscalls/getpagesize/BUILD.gn b/test/kernel_ltp/syscalls/getpagesize/BUILD.gn new file mode 100644 index 0000000..999fe7f --- /dev/null +++ b/test/kernel_ltp/syscalls/getpagesize/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getpagesize01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/getpagesize/getpagesize01.c", + ] +} diff --git a/test/kernel_ltp/syscalls/getpeername/BUILD.gn b/test/kernel_ltp/syscalls/getpeername/BUILD.gn new file mode 100644 index 0000000..7dc7da5 --- /dev/null +++ b/test/kernel_ltp/syscalls/getpeername/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getpeername01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/getpeername/getpeername01.c", + ] +} diff --git a/test/kernel_ltp/syscalls/getpgid/BUILD.gn b/test/kernel_ltp/syscalls/getpgid/BUILD.gn new file mode 100644 index 0000000..21c1b1b --- /dev/null +++ b/test/kernel_ltp/syscalls/getpgid/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getpgid01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getpgid/getpgid01.c" ] +} + +kernel_interface_bin("getpgid02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getpgid/getpgid02.c" ] +} diff --git a/test/kernel_ltp/syscalls/getpgrp/BUILD.gn b/test/kernel_ltp/syscalls/getpgrp/BUILD.gn new file mode 100644 index 0000000..a12ba82 --- /dev/null +++ b/test/kernel_ltp/syscalls/getpgrp/BUILD.gn @@ -0,0 +1,21 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getpgrp01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getpgrp/getpgrp01.c" ] +} diff --git a/test/kernel_ltp/syscalls/getpid/BUILD.gn b/test/kernel_ltp/syscalls/getpid/BUILD.gn new file mode 100644 index 0000000..4fc4131 --- /dev/null +++ b/test/kernel_ltp/syscalls/getpid/BUILD.gn @@ -0,0 +1,25 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getpid01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getpid/getpid01.c" ] +} + +kernel_interface_bin("getpid02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getpid/getpid02.c" ] +} diff --git a/test/kernel_ltp/syscalls/getppid/BUILD.gn b/test/kernel_ltp/syscalls/getppid/BUILD.gn new file mode 100644 index 0000000..1a0b26a --- /dev/null +++ b/test/kernel_ltp/syscalls/getppid/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getppid01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getppid/getppid01.c" ] +} + +kernel_interface_bin("getppid02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getppid/getppid02.c" ] +} diff --git a/test/kernel_ltp/syscalls/getpriority/BUILD.gn b/test/kernel_ltp/syscalls/getpriority/BUILD.gn new file mode 100644 index 0000000..e5d8d2b --- /dev/null +++ b/test/kernel_ltp/syscalls/getpriority/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getpriority01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/getpriority/getpriority01.c", + ] +} + +kernel_interface_bin("getpriority02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/getpriority/getpriority02.c", + ] +} diff --git a/test/kernel_ltp/syscalls/getrandom/BUILD.gn b/test/kernel_ltp/syscalls/getrandom/BUILD.gn new file mode 100644 index 0000000..92fbacf --- /dev/null +++ b/test/kernel_ltp/syscalls/getrandom/BUILD.gn @@ -0,0 +1,39 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getrandom01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getrandom/getrandom01.c" ] +} + +kernel_interface_bin("getrandom02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getrandom/getrandom02.c" ] +} + +kernel_interface_bin("getrandom03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getrandom/getrandom03.c" ] +} + +kernel_interface_bin("getrandom04") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getrandom/getrandom04.c" ] +} diff --git a/test/kernel_ltp/syscalls/getresgid/BUILD.gn b/test/kernel_ltp/syscalls/getresgid/BUILD.gn new file mode 100644 index 0000000..9704e8b --- /dev/null +++ b/test/kernel_ltp/syscalls/getresgid/BUILD.gn @@ -0,0 +1,36 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getresgid01") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getresgid/getresgid01.c" ] +} + +kernel_interface_bin("getresgid02") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getresgid/getresgid02.c" ] +} + +kernel_interface_bin("getresgid03") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getresgid/getresgid03.c" ] +} diff --git a/test/kernel_ltp/syscalls/getresuid/BUILD.gn b/test/kernel_ltp/syscalls/getresuid/BUILD.gn new file mode 100644 index 0000000..5a09583 --- /dev/null +++ b/test/kernel_ltp/syscalls/getresuid/BUILD.gn @@ -0,0 +1,36 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getresuid01") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getresuid/getresuid01.c" ] +} + +kernel_interface_bin("getresuid02") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getresuid/getresuid02.c" ] +} + +kernel_interface_bin("getresuid03") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getresuid/getresuid03.c" ] +} diff --git a/test/kernel_ltp/syscalls/getrlimit/BUILD.gn b/test/kernel_ltp/syscalls/getrlimit/BUILD.gn new file mode 100644 index 0000000..38f019c --- /dev/null +++ b/test/kernel_ltp/syscalls/getrlimit/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getrlimit01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getrlimit/getrlimit01.c" ] +} + +kernel_interface_bin("getrlimit02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getrlimit/getrlimit02.c" ] +} + +kernel_interface_bin("getrlimit03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/getrlimit/getrlimit03.c" ] +} diff --git a/test/kernel_ltp/syscalls/getsid/BUILD.gn b/test/kernel_ltp/syscalls/getsid/BUILD.gn new file mode 100644 index 0000000..acc2f2b --- /dev/null +++ b/test/kernel_ltp/syscalls/getsid/BUILD.gn @@ -0,0 +1,25 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getsid01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getsid/getsid01.c" ] +} + +kernel_interface_bin("getsid02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getsid/getsid02.c" ] +} diff --git a/test/kernel_ltp/syscalls/getsockname/BUILD.gn b/test/kernel_ltp/syscalls/getsockname/BUILD.gn new file mode 100644 index 0000000..787317c --- /dev/null +++ b/test/kernel_ltp/syscalls/getsockname/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getsockname01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/getsockname/getsockname01.c", + ] +} diff --git a/test/kernel_ltp/syscalls/getsockopt/BUILD.gn b/test/kernel_ltp/syscalls/getsockopt/BUILD.gn new file mode 100644 index 0000000..01afeb9 --- /dev/null +++ b/test/kernel_ltp/syscalls/getsockopt/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getsockopt01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/getsockopt/getsockopt01.c", + ] +} + +kernel_interface_bin("getsockopt02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/getsockopt/getsockopt02.c", + ] +} diff --git a/test/kernel_ltp/syscalls/gettid/BUILD.gn b/test/kernel_ltp/syscalls/gettid/BUILD.gn new file mode 100644 index 0000000..044ca6d --- /dev/null +++ b/test/kernel_ltp/syscalls/gettid/BUILD.gn @@ -0,0 +1,20 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("gettid01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/gettid/gettid01.c" ] +} diff --git a/test/kernel_ltp/syscalls/gettimeofday/BUILD.gn b/test/kernel_ltp/syscalls/gettimeofday/BUILD.gn new file mode 100644 index 0000000..ded7df3 --- /dev/null +++ b/test/kernel_ltp/syscalls/gettimeofday/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("gettimeofday01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/gettimeofday/gettimeofday01.c", + ] +} + +kernel_interface_bin("gettimeofday02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/gettimeofday/gettimeofday02.c", + ] +} diff --git a/test/kernel_ltp/syscalls/getuid/BUILD.gn b/test/kernel_ltp/syscalls/getuid/BUILD.gn new file mode 100644 index 0000000..dee0704 --- /dev/null +++ b/test/kernel_ltp/syscalls/getuid/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("getuid01") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getuid/getuid01.c" ] +} + +kernel_interface_bin("getuid03") { + include_dirs = [ "//third_party/ltp/testcases/kernel/syscalls/utils" ] + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/getuid/getuid03.c" ] +} diff --git a/test/kernel_ltp/syscalls/inotify_init/BUILD.gn b/test/kernel_ltp/syscalls/inotify_init/BUILD.gn new file mode 100644 index 0000000..f1239c8 --- /dev/null +++ b/test/kernel_ltp/syscalls/inotify_init/BUILD.gn @@ -0,0 +1,25 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("inotify_init1_01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/inotify_init/inotify_init1_01.c" ] +} + +kernel_interface_bin("inotify_init1_02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/inotify_init/inotify_init1_02.c" ] +} diff --git a/test/kernel_ltp/syscalls/kcmp/BUILD.gn b/test/kernel_ltp/syscalls/kcmp/BUILD.gn new file mode 100644 index 0000000..d860d6b --- /dev/null +++ b/test/kernel_ltp/syscalls/kcmp/BUILD.gn @@ -0,0 +1,30 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("kcmp01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/kcmp/kcmp01.c" ] +} + +kernel_interface_bin("kcmp02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/kcmp/kcmp02.c" ] +} + +kernel_interface_bin("kcmp03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/kcmp/kcmp03.c" ] +} diff --git a/test/kernel_ltp/syscalls/keyctl/BUILD.gn b/test/kernel_ltp/syscalls/keyctl/BUILD.gn new file mode 100644 index 0000000..75adab2 --- /dev/null +++ b/test/kernel_ltp/syscalls/keyctl/BUILD.gn @@ -0,0 +1,55 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("keyctl01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl01.c" ] +} + +kernel_interface_bin("keyctl02") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl02.c" ] +} + +kernel_interface_bin("keyctl03") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl03.c" ] +} + +kernel_interface_bin("keyctl04") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl04.c" ] +} + +kernel_interface_bin("keyctl05") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl05.c" ] +} + +kernel_interface_bin("keyctl06") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl06.c" ] +} + +kernel_interface_bin("keyctl07") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl07.c" ] +} + +kernel_interface_bin("keyctl08") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/keyctl/keyctl08.c" ] +} diff --git a/test/kernel_ltp/syscalls/lgetxattr/BUILD.gn b/test/kernel_ltp/syscalls/lgetxattr/BUILD.gn new file mode 100644 index 0000000..bdafddb --- /dev/null +++ b/test/kernel_ltp/syscalls/lgetxattr/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("lgetxattr01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/lgetxattr/lgetxattr01.c" ] +} + +kernel_interface_bin("lgetxattr02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/lgetxattr/lgetxattr02.c" ] +} diff --git a/test/kernel_ltp/syscalls/listen/BUILD.gn b/test/kernel_ltp/syscalls/listen/BUILD.gn new file mode 100644 index 0000000..8e8835f --- /dev/null +++ b/test/kernel_ltp/syscalls/listen/BUILD.gn @@ -0,0 +1,20 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("listen01") { + output_dir = "${_output_dir}" + sources = [ "//third_party/ltp/testcases/kernel/syscalls/listen/listen01.c" ] +} diff --git a/test/kernel_ltp/syscalls/listxattr/BUILD.gn b/test/kernel_ltp/syscalls/listxattr/BUILD.gn new file mode 100644 index 0000000..512007f --- /dev/null +++ b/test/kernel_ltp/syscalls/listxattr/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("listxattr01") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/listxattr/listxattr01.c" ] +} + +kernel_interface_bin("listxattr02") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/listxattr/listxattr02.c" ] +} + +kernel_interface_bin("listxattr03") { + output_dir = "${_output_dir}" + sources = + [ "//third_party/ltp/testcases/kernel/syscalls/listxattr/listxattr03.c" ] +} diff --git a/test/kernel_ltp/syscalls/llistxattr/BUILD.gn b/test/kernel_ltp/syscalls/llistxattr/BUILD.gn new file mode 100644 index 0000000..ac39d49 --- /dev/null +++ b/test/kernel_ltp/syscalls/llistxattr/BUILD.gn @@ -0,0 +1,36 @@ +# Copyright (C) 2022 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("//kernel/linux/build/test/kernel_ltp/kernel_interface_template.gni") + +_output_dir = "${root_out_dir}/tests/ltp_testcases/SyscallsTest" + +kernel_interface_bin("llistxattr01") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/llistxattr/llistxattr01.c", + ] +} + +kernel_interface_bin("llistxattr02") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/llistxattr/llistxattr02.c", + ] +} + +kernel_interface_bin("llistxattr03") { + output_dir = "${_output_dir}" + sources = [ + "//third_party/ltp/testcases/kernel/syscalls/llistxattr/llistxattr03.c", + ] +} -- Gitee