blob: 2e734bb62eb367f8396973581281335ab766eadd [file] [log] [blame]
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +00001# Automake input for strace tests.
Dmitry V. Levin38a34c92015-12-17 17:56:48 +00002#
Dmitry V. Levin10eab9d2016-01-01 23:09:02 +00003# Copyright (c) 2011-2016 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin38a34c92015-12-17 17:56:48 +00004# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14# 3. The name of the author may not be used to endorse or promote products
15# derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +000027
Dmitry V. Levin25c804c2015-04-07 21:18:23 +000028OS = linux
29ARCH = @arch@
Dmitry V. Levin10eab9d2016-01-01 23:09:02 +000030MPERS_NAME =
Dmitry V. Levin860b3a62015-12-08 00:14:10 +000031ARCH_MFLAGS =
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000032AM_CFLAGS = $(WARN_CFLAGS)
Dmitry V. Levin860b3a62015-12-08 00:14:10 +000033AM_CPPFLAGS = $(ARCH_MFLAGS) \
Dmitry V. Levinbab4ef42015-12-10 02:06:25 +000034 -I$(builddir) \
Dmitry V. Levin860b3a62015-12-08 00:14:10 +000035 -I$(top_builddir)/$(OS)/$(ARCH) \
Dmitry V. Levin0f4ad302015-02-22 02:13:04 +000036 -I$(top_srcdir)/$(OS)/$(ARCH) \
37 -I$(top_builddir)/$(OS) \
Dmitry V. Levincf3ecbd2015-08-26 22:50:58 +000038 -I$(top_srcdir)/$(OS) \
39 -I$(top_builddir) \
40 -I$(top_srcdir)
Dmitry V. Levin860b3a62015-12-08 00:14:10 +000041AM_LDFLAGS = $(ARCH_MFLAGS)
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000042
Dmitry V. Levin87e6b232016-01-02 12:05:14 +000043libtests_a_SOURCES = \
Dmitry V. Levin87e6b232016-01-02 12:05:14 +000044 error_msg.c \
Dmitry V. Levin590b2402016-01-20 05:26:43 +000045 get_page_size.c \
46 hexdump_strdup.c \
Dmitry V. Levin7637b1d2016-02-04 01:59:35 +000047 hexquote_strndup.c \
Dmitry V. Levine3649202016-01-25 22:20:40 +000048 inode_of_sockfd.c \
Dmitry V. Levinc1f1cc12016-04-13 22:38:17 +000049 overflowuid.c \
JayRJoshi17654da2016-03-23 19:04:15 +053050 print_quoted_string.c \
Dmitry V. Levin87e6b232016-01-02 12:05:14 +000051 tail_alloc.c \
52 tests.h \
Dmitry V. Levin536a0352016-01-20 02:06:59 +000053 tprintf.c \
Dmitry V. Levin87e6b232016-01-02 12:05:14 +000054 # end of libtests_a_SOURCES
55libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
56check_LIBRARIES = libtests.a
57LDADD = libtests.a
58
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000059check_PROGRAMS = \
Dmitry V. Levin69b73072015-12-08 17:38:12 +000060 _newselect \
Fei Jie275d1352016-03-09 14:07:06 +080061 acct \
Dmitry V. Levindad1eef2015-09-16 21:58:36 +000062 adjtimex \
Dmitry V. Levin13c21732015-08-26 12:49:07 +000063 aio \
Dmitry V. Levin7c059542016-02-14 16:56:58 +000064 alarm \
Dmitry V. Levin62046542016-02-09 04:16:41 +000065 attach-f-p \
Dmitry V. Levinfa8c2862016-01-22 14:37:14 +000066 attach-p-cmd-cmd \
67 attach-p-cmd-p \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000068 bpf \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000069 caps \
Anchit Jain1b5d1cb2016-03-07 16:27:43 +053070 chmod \
Dmitry V. Levin4ccdbd62016-04-15 23:03:29 +000071 chown \
Dmitry V. Levinf559a872016-04-15 23:03:29 +000072 chown32 \
Fei Jied82b0d82016-03-31 16:06:52 +080073 chroot \
Dmitry V. Levinc648b4a2015-09-18 14:24:51 +000074 clock_nanosleep \
Dmitry V. Levin9d4c8922015-09-17 21:57:22 +000075 clock_xettime \
Dmitry V. Levinc1f99f52016-02-13 03:45:32 +000076 copy_file_range \
Dmitry V. Levinb3890282016-02-22 23:42:23 +000077 count-f \
Fei Jie8346e632016-03-25 17:47:14 +080078 creat \
Fei Jieab917ae2016-03-10 10:41:31 +080079 dup \
80 dup2 \
81 dup3 \
Fei Jiebbdd23c2016-04-08 15:59:14 +080082 epoll_create \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +000083 epoll_create1 \
Fei Jie258a2252016-04-08 15:59:15 +080084 epoll_ctl \
Fei Jiec75e2c22016-04-08 15:59:16 +080085 epoll_wait \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000086 eventfd \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000087 execve \
Dmitry V. Levin23168c12016-02-07 14:37:53 +000088 execve-v \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000089 execveat \
Dmitry V. Levin23168c12016-02-07 14:37:53 +000090 execveat-v \
Fei Jiee2975b62016-03-25 17:47:15 +080091 faccessat \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000092 fanotify_mark \
Fabien Siron61ac8ee2016-03-10 10:29:32 +000093 fchmod \
Dmitry V. Levinbaeff232016-04-02 13:13:16 +000094 fchmodat \
Dmitry V. Levine6828b12016-04-17 22:24:41 +000095 fchown \
Dmitry V. Levin96492b22016-04-17 22:24:41 +000096 fchown32 \
Dmitry V. Levin35e97a72016-04-02 14:07:02 +000097 fchownat \
Dmitry V. Levin21547022015-12-05 00:52:01 +000098 fcntl \
99 fcntl64 \
Fei Jie4c4ab0f2016-03-31 16:06:51 +0800100 fdatasync \
Dmitry V. Levin4b3a1702015-11-22 21:29:32 +0000101 file_handle \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000102 filter-unavailable \
Fei Jieb824f982016-03-15 16:38:34 +0800103 flock \
Dmitry V. Levin78db0f22015-12-30 23:00:43 +0000104 fork-f \
Dmitry V. Levinc8638272015-12-05 00:02:44 +0000105 fstat \
106 fstat64 \
Dmitry V. Levinb0e61152015-12-02 01:02:39 +0000107 fstatat64 \
Fei Jie16c078e2016-03-31 16:06:50 +0800108 fsync \
Dmitry V. Levinc1bb87a2015-12-01 00:02:45 +0000109 ftruncate \
Dmitry V. Levin431d63c2015-12-01 00:32:40 +0000110 ftruncate64 \
JayRJoshi39ab1202016-03-23 19:08:35 +0530111 getcwd \
Dmitry V. Levin7528a0b2015-11-19 16:39:32 +0000112 getdents \
113 getdents64 \
Dmitry V. Levin5e9944d2016-04-19 01:59:52 +0000114 getgroups \
115 getgroups32 \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000116 getrandom \
Dmitry V. Levin91119e52016-04-19 17:42:51 +0000117 getresgid \
Dmitry V. Levin7f3da2f2016-04-19 17:45:26 +0000118 getresgid32 \
Dmitry V. Levinfbe1a9e2016-04-19 17:30:23 +0000119 getresuid \
Dmitry V. Levindcc66602016-04-19 17:34:00 +0000120 getresuid32 \
Fei Jie5204dbd2016-02-19 09:57:33 +0800121 getrusage \
Dmitry V. Levin2720a612016-01-09 00:06:06 +0000122 getxxid \
Dmitry V. Levin1f111cf2015-11-21 03:03:54 +0300123 inet-cmsg \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000124 ioctl \
Fei Jie2e069fc2016-04-19 15:38:32 +0800125 ioperm \
Fei Jie1eb00512016-04-19 15:38:33 +0800126 iopl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000127 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000128 ipc_msg \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300129 ipc_msgbuf \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000130 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000131 ipc_shm \
Dmitry V. Levinbab4ef42015-12-10 02:06:25 +0000132 ksysent \
Dmitry V. Levin408420f2016-04-16 23:02:27 +0000133 lchown \
Dmitry V. Levin11f98f22016-04-16 23:02:27 +0000134 lchown32 \
Fei Jie7a158a12016-04-06 14:18:48 +0800135 linkat \
Dmitry V. Levin9db07972015-12-01 00:59:26 +0000136 llseek \
137 lseek \
Dmitry V. Levin38e37682015-12-05 00:03:02 +0000138 lstat \
139 lstat64 \
Dmitry V. Levin2aec1e62015-11-15 02:29:29 +0000140 membarrier \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000141 memfd_create \
Dmitry V. Levindfea1da2016-01-29 01:51:54 +0000142 mincore \
Fei Jiec4a30f12016-04-06 14:18:51 +0800143 mkdirat \
Fei Jie0ebe67b2016-03-25 17:47:13 +0800144 mknod \
Dmitry V. Levin0d0a50a2015-11-15 02:35:57 +0000145 mlock2 \
Dmitry V. Levincb6f9972016-04-09 23:34:18 +0000146 mlockall \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +0000147 mmap \
148 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900149 mmsg \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300150 mq \
Dmitry V. Levin593602c2015-09-18 02:18:03 +0000151 nanosleep \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000152 net-accept-connect \
Dmitry V. Levin751fcb82016-02-02 19:48:46 +0000153 net-y-unix \
Dmitry V. Levin9d15ec72016-01-26 22:03:22 +0000154 net-yy-inet \
Dmitry V. Levin6124cd92016-01-25 22:20:54 +0000155 net-yy-unix \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000156 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +0000157 netlink_unix_diag \
Dmitry V. Levinb0e61152015-12-02 01:02:39 +0000158 newfstatat \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000159 oldselect \
Dmitry V. Levinf09a4742016-03-28 00:15:15 +0000160 open \
Katerina Koukiou65980262016-03-25 21:40:12 +0200161 openat \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000162 pc \
Dmitry V. Levinf7423af2015-12-25 00:52:42 +0000163 personality \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000164 pipe \
Dmitry V. Levin446e5b12016-02-16 00:52:43 +0000165 poll \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000166 ppoll \
Dmitry V. Levin18180612016-04-11 15:16:30 +0000167 prctl-seccomp-filter-v \
Dmitry V. Levinc1aa7372016-04-11 15:06:28 +0000168 prctl-seccomp-strict \
Dmitry V. Levin9f3a6af2016-04-02 01:08:24 +0000169 pread64-pwrite64 \
Dmitry V. Levind4611512016-03-30 03:54:21 +0000170 preadv \
Dmitry V. Levin3f6ebce2016-03-31 00:01:58 +0000171 preadv-pwritev \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +0000172 pselect6 \
Dmitry V. Levind4611512016-03-30 03:54:21 +0000173 pwritev \
Dmitry V. Levin2aa9b322016-04-03 16:37:43 +0000174 read-write \
Dmitry V. Levin4f461582015-11-19 19:04:32 +0000175 readdir \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +0200176 readlink \
177 readlinkat \
Dmitry V. Levin05a0af62016-01-20 00:17:02 +0000178 readv \
Dmitry V. Levin93c9d1c2016-01-20 03:26:37 +0000179 recvmsg \
Fei Jiea4128a72016-03-01 16:55:36 +0800180 rename \
Fei Jie896479d2016-03-25 17:47:16 +0800181 renameat\
Dmitry V. Levin640623c2015-09-18 11:27:11 +0000182 restart_syscall \
Dmitry V. Levin11656202016-02-18 00:08:30 +0000183 rt_sigpending \
Dmitry V. Levinf09b7c42016-02-18 03:21:30 +0000184 rt_sigprocmask \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +0300185 rt_sigqueueinfo \
Dmitry V. Levin9649ac12016-02-19 16:07:43 +0000186 rt_sigsuspend \
Dmitry V. Levin49faae92016-02-19 03:27:09 +0000187 rt_sigtimedwait \
Dmitry V. Levin11d623f2016-02-17 05:24:43 +0000188 rt_tgsigqueueinfo \
Fei Jie1eed5942016-03-10 17:12:23 +0800189 sched_get_priority_mxx \
Dmitry V. Levin6bf08e32016-01-07 00:31:33 +0000190 sched_xetaffinity \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +0000191 sched_xetattr \
Fei Jieea5c7b52016-03-10 17:12:24 +0800192 sched_xetparam \
Fei Jiec3fb92c2016-03-15 16:38:17 +0800193 sched_xetscheduler \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000194 scm_rights \
Dmitry V. Levinc2523e02016-04-12 00:20:03 +0000195 seccomp-filter \
Dmitry V. Levin6ba947f2016-04-12 00:05:43 +0000196 seccomp-filter-v \
Dmitry V. Levinb19945b2016-04-11 15:09:09 +0000197 seccomp-strict \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000198 select \
Fei Jief22db4e2016-04-18 15:10:53 +0800199 semop \
Dmitry V. Levin49182852015-08-19 01:25:39 +0000200 sendfile \
201 sendfile64 \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000202 set_ptracer_any \
Dmitry V. Levinfba762d2016-04-18 16:08:38 +0000203 setfsgid \
Dmitry V. Levinf1849892016-04-18 16:10:07 +0000204 setfsgid32 \
Dmitry V. Levin281e4572016-04-18 15:59:28 +0000205 setfsuid \
Dmitry V. Levin2def3d42016-04-18 16:03:51 +0000206 setfsuid32 \
Dmitry V. Levincf273012016-04-18 13:45:36 +0000207 setgid \
Dmitry V. Levin6511b2d2016-04-18 13:46:47 +0000208 setgid32 \
Dmitry V. Levin5e9944d2016-04-19 01:59:52 +0000209 setgroups \
210 setgroups32 \
Fei Jiea067b8d2016-03-31 16:06:49 +0800211 sethostname \
Dmitry V. Levin28d02ea2016-04-18 14:38:04 +0000212 setregid \
Dmitry V. Levin7d7dfbe2016-04-18 14:38:57 +0000213 setregid32 \
Dmitry V. Levin4f6d95d2016-04-18 15:22:34 +0000214 setresgid \
Dmitry V. Levinfa7c9882016-04-18 15:23:56 +0000215 setresgid32 \
Dmitry V. Levin0eac88a2016-04-18 15:16:53 +0000216 setresuid \
Dmitry V. Levin2b42d8e2016-04-18 15:19:27 +0000217 setresuid32 \
Dmitry V. Levine6d84732016-04-18 14:34:31 +0000218 setreuid \
Dmitry V. Levin619a96a2016-04-18 14:36:42 +0000219 setreuid32 \
Dmitry V. Levinaa399262016-04-18 13:24:26 +0000220 setuid \
Dmitry V. Levin8f0e41a2016-04-18 13:41:25 +0000221 setuid32 \
Fei Jie39a33b12016-04-18 15:10:54 +0800222 shmxt \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000223 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300224 sigaltstack \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000225 signalfd \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +0000226 sigreturn \
Dmitry V. Levind9e4ff72016-04-11 15:04:08 +0000227 sleep \
Dmitry V. Levin16a52b42016-02-13 22:31:30 +0000228 splice \
Masatake YAMATO96821072014-05-14 13:16:29 +0900229 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +0000230 stat \
Dmitry V. Levin144a9db2015-12-05 00:03:49 +0000231 stat64 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +0000232 statfs \
Fei Jie93faa4c2016-04-06 14:18:50 +0800233 swap \
Fei Jiebff70d42016-04-19 15:38:34 +0800234 symlinkat \
Dmitry V. Levin5b2d2572016-04-06 00:02:08 +0000235 sync_file_range \
236 sync_file_range2 \
Elvira Khabirova22d997e2015-08-03 06:30:49 +0300237 sysinfo \
Fei Jie9a883712016-03-25 17:46:19 +0800238 syslog \
Dmitry V. Levin6c932542016-02-13 22:42:52 +0000239 tee \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +0000240 time \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +0000241 timer_create \
Dmitry V. Levin13140982015-09-17 18:25:12 +0000242 timer_xettime \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +0000243 timerfd_xettime \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +0300244 times \
Elvira Khabirova9d77b562015-08-21 00:09:32 +0300245 times-fail \
Dmitry V. Levinc1bb87a2015-12-01 00:02:45 +0000246 truncate \
Dmitry V. Levin431d63c2015-12-01 00:32:40 +0000247 truncate64 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000248 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000249 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000250 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000251 uio \
Fei Jieeee34762016-03-01 16:55:37 +0800252 umask \
Dmitry V. Levin08a17832015-12-07 00:06:35 +0000253 umount \
254 umount2 \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000255 umovestr \
256 umovestr2 \
Fei Jie68a58a32016-03-01 16:55:35 +0800257 uname \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000258 unix-pair-send-recv \
Dmitry V. Levind9e4ff72016-04-11 15:04:08 +0000259 unlinkat \
Dmitry V. Levina6ebdb12015-11-15 02:22:44 +0000260 userfaultfd \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000261 utime \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000262 utimensat \
Dmitry V. Levin78db0f22015-12-30 23:00:43 +0000263 vfork-f \
Dmitry V. Levin13870c52016-02-13 23:18:15 +0000264 vmsplice \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000265 wait \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000266 xattr \
267 xet_robust_list \
Dmitry V. Levin12431f72015-09-17 20:44:22 +0000268 xetitimer \
Dmitry V. Levin669f8cf2016-02-14 17:14:15 +0000269 xetpgid \
Fei Jie032a9a42016-03-17 17:30:45 +0800270 xetpriority \
Dmitry V. Levinf57edf42015-09-18 16:15:49 +0000271 xettimeofday \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000272 # end of check_PROGRAMS
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000273
Dmitry V. Levin62046542016-02-09 04:16:41 +0000274attach_f_p_LDADD = -lrt -lpthread $(LDADD)
Dmitry V. Levin87e6b232016-01-02 12:05:14 +0000275clock_xettime_LDADD = -lrt $(LDADD)
Dmitry V. Levinb3890282016-02-22 23:42:23 +0000276count_f_LDADD = -lpthread $(LDADD)
Dmitry V. Levin87e6b232016-01-02 12:05:14 +0000277filter_unavailable_LDADD = -lpthread $(LDADD)
Dmitry V. Levin77c0cde2015-12-08 00:24:53 +0000278fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
279fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
280ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
281lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
282mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin87e6b232016-01-02 12:05:14 +0000283mq_LDADD = -lrt $(LDADD)
Dmitry V. Levin77c0cde2015-12-08 00:24:53 +0000284newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin87e6b232016-01-02 12:05:14 +0000285pc_LDADD = $(dl_LIBS) $(LDADD)
Dmitry V. Levin9f3a6af2016-04-02 01:08:24 +0000286pread64_pwrite64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levind4611512016-03-30 03:54:21 +0000287preadv_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin3f6ebce2016-03-31 00:01:58 +0000288preadv_pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levind4611512016-03-30 03:54:21 +0000289pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin77c0cde2015-12-08 00:24:53 +0000290stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
291statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin87e6b232016-01-02 12:05:14 +0000292times_LDADD = -lrt $(LDADD)
Dmitry V. Levin77c0cde2015-12-08 00:24:53 +0000293truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
294uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levind4611512016-03-30 03:54:21 +0000295
Dmitry V. Levinb0764202014-06-16 21:45:52 +0000296stack_fcall_SOURCES = stack-fcall.c \
297 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +0000298
Dmitry V. Levin10eab9d2016-01-01 23:09:02 +0000299if USE_LIBUNWIND
300LIBUNWIND_TESTS = strace-k.test
301else
302LIBUNWIND_TESTS =
303endif
304
Dmitry V. Levinf7f7e602016-03-23 23:07:02 +0000305DECODER_TESTS = \
Dmitry V. Levin69b73072015-12-08 17:38:12 +0000306 _newselect.test \
Fei Jie275d1352016-03-09 14:07:06 +0800307 acct.test \
Dmitry V. Levindad1eef2015-09-16 21:58:36 +0000308 adjtimex.test \
Dmitry V. Levin13c21732015-08-26 12:49:07 +0000309 aio.test \
Dmitry V. Levin7c059542016-02-14 16:56:58 +0000310 alarm.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +0000311 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000312 caps.test \
Anchit Jain1b5d1cb2016-03-07 16:27:43 +0530313 chmod.test \
Dmitry V. Levin4ccdbd62016-04-15 23:03:29 +0000314 chown.test \
Dmitry V. Levinf559a872016-04-15 23:03:29 +0000315 chown32.test \
Fei Jied82b0d82016-03-31 16:06:52 +0800316 chroot.test \
Dmitry V. Levinc648b4a2015-09-18 14:24:51 +0000317 clock_nanosleep.test \
Dmitry V. Levin9d4c8922015-09-17 21:57:22 +0000318 clock_xettime.test \
Dmitry V. Levinc1f99f52016-02-13 03:45:32 +0000319 copy_file_range.test \
Fei Jie8346e632016-03-25 17:47:14 +0800320 creat.test \
Fei Jieab917ae2016-03-10 10:41:31 +0800321 dup.test \
322 dup2.test \
323 dup3.test \
Fei Jiebbdd23c2016-04-08 15:59:14 +0800324 epoll_create.test \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000325 epoll_create1.test \
Fei Jie258a2252016-04-08 15:59:15 +0800326 epoll_ctl.test \
Fei Jiec75e2c22016-04-08 15:59:16 +0800327 epoll_wait.test \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000328 eventfd.test \
Dmitry V. Levin23168c12016-02-07 14:37:53 +0000329 execve-v.test \
Dmitry V. Levind9e4ff72016-04-11 15:04:08 +0000330 execve.test \
Dmitry V. Levin23168c12016-02-07 14:37:53 +0000331 execveat-v.test \
Dmitry V. Levind9e4ff72016-04-11 15:04:08 +0000332 execveat.test \
Fei Jiee2975b62016-03-25 17:47:15 +0800333 faccessat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000334 fanotify_mark.test \
Fabien Siron61ac8ee2016-03-10 10:29:32 +0000335 fchmod.test \
Dmitry V. Levinbaeff232016-04-02 13:13:16 +0000336 fchmodat.test \
Dmitry V. Levine6828b12016-04-17 22:24:41 +0000337 fchown.test \
Dmitry V. Levin96492b22016-04-17 22:24:41 +0000338 fchown32.test \
Dmitry V. Levin35e97a72016-04-02 14:07:02 +0000339 fchownat.test \
Dmitry V. Levin21547022015-12-05 00:52:01 +0000340 fcntl.test \
341 fcntl64.test \
Fei Jie4c4ab0f2016-03-31 16:06:51 +0800342 fdatasync.test \
Dmitry V. Levin4b3a1702015-11-22 21:29:32 +0000343 file_handle.test \
Fei Jieb824f982016-03-15 16:38:34 +0800344 flock.test \
Dmitry V. Levinc8638272015-12-05 00:02:44 +0000345 fstat.test \
346 fstat64.test \
Dmitry V. Levinb0e61152015-12-02 01:02:39 +0000347 fstatat64.test \
Fei Jie16c078e2016-03-31 16:06:50 +0800348 fsync.test \
Dmitry V. Levinc1bb87a2015-12-01 00:02:45 +0000349 ftruncate.test \
Dmitry V. Levin431d63c2015-12-01 00:32:40 +0000350 ftruncate64.test \
JayRJoshi39ab1202016-03-23 19:08:35 +0530351 getcwd.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +0000352 getdents.test \
Dmitry V. Levin7528a0b2015-11-19 16:39:32 +0000353 getdents64.test \
Dmitry V. Levin5e9944d2016-04-19 01:59:52 +0000354 getgroups.test \
355 getgroups32.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000356 getrandom.test \
Dmitry V. Levin91119e52016-04-19 17:42:51 +0000357 getresgid.test \
Dmitry V. Levin7f3da2f2016-04-19 17:45:26 +0000358 getresgid32.test \
Dmitry V. Levinfbe1a9e2016-04-19 17:30:23 +0000359 getresuid.test \
Dmitry V. Levindcc66602016-04-19 17:34:00 +0000360 getresuid32.test \
Fei Jie5204dbd2016-02-19 09:57:33 +0800361 getrusage.test \
Dmitry V. Levin2720a612016-01-09 00:06:06 +0000362 getxxid.test \
Dmitry V. Levin1f111cf2015-11-21 03:03:54 +0300363 inet-cmsg.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000364 ioctl.test \
Fei Jie2e069fc2016-04-19 15:38:32 +0800365 ioperm.test \
Fei Jie1eb00512016-04-19 15:38:33 +0800366 iopl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000367 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000368 ipc_msg.test \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300369 ipc_msgbuf.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000370 ipc_sem.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000371 ipc_shm.test \
Dmitry V. Levin408420f2016-04-16 23:02:27 +0000372 lchown.test \
Dmitry V. Levin11f98f22016-04-16 23:02:27 +0000373 lchown32.test \
Fei Jie7a158a12016-04-06 14:18:48 +0800374 linkat.test \
Dmitry V. Levin9db07972015-12-01 00:59:26 +0000375 llseek.test \
376 lseek.test \
Dmitry V. Levin38e37682015-12-05 00:03:02 +0000377 lstat.test \
378 lstat64.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000379 membarrier.test \
380 memfd_create.test \
Dmitry V. Levindfea1da2016-01-29 01:51:54 +0000381 mincore.test \
Fei Jiec4a30f12016-04-06 14:18:51 +0800382 mkdirat.test \
Fei Jie0ebe67b2016-03-25 17:47:13 +0800383 mknod.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000384 mlock2.test \
Dmitry V. Levincb6f9972016-04-09 23:34:18 +0000385 mlockall.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000386 mmap.test \
387 mmap64.test \
388 mmsg.test \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300389 mq.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000390 nanosleep.test \
Dmitry V. Levin751fcb82016-02-02 19:48:46 +0000391 net-y-unix.test \
Dmitry V. Levin9d15ec72016-01-26 22:03:22 +0000392 net-yy-inet.test \
Dmitry V. Levin6124cd92016-01-25 22:20:54 +0000393 net-yy-unix.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000394 net.test \
395 newfstatat.test \
396 oldselect.test \
Dmitry V. Levinf09a4742016-03-28 00:15:15 +0000397 open.test \
Katerina Koukiou65980262016-03-25 21:40:12 +0200398 openat.test \
Dmitry V. Levinf7423af2015-12-25 00:52:42 +0000399 personality.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000400 pipe.test \
Dmitry V. Levin446e5b12016-02-16 00:52:43 +0000401 poll.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000402 ppoll.test \
Dmitry V. Levin18180612016-04-11 15:16:30 +0000403 prctl-seccomp-filter-v.test \
Dmitry V. Levinc1aa7372016-04-11 15:06:28 +0000404 prctl-seccomp-strict.test \
Dmitry V. Levin9f3a6af2016-04-02 01:08:24 +0000405 pread64-pwrite64.test \
Dmitry V. Levin3f6ebce2016-03-31 00:01:58 +0000406 preadv-pwritev.test \
Dmitry V. Levind9e4ff72016-04-11 15:04:08 +0000407 preadv.test \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +0000408 pselect6.test \
Dmitry V. Levind4611512016-03-30 03:54:21 +0000409 pwritev.test \
Dmitry V. Levin2aa9b322016-04-03 16:37:43 +0000410 read-write.test \
Dmitry V. Levin4f461582015-11-19 19:04:32 +0000411 readdir.test \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +0200412 readlink.test \
413 readlinkat.test \
Dmitry V. Levin05a0af62016-01-20 00:17:02 +0000414 readv.test \
Dmitry V. Levin93c9d1c2016-01-20 03:26:37 +0000415 recvmsg.test \
Fei Jiea4128a72016-03-01 16:55:36 +0800416 rename.test \
Fei Jie896479d2016-03-25 17:47:16 +0800417 renameat.test \
Dmitry V. Levin11656202016-02-18 00:08:30 +0000418 rt_sigpending.test \
Dmitry V. Levinf09b7c42016-02-18 03:21:30 +0000419 rt_sigprocmask.test \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +0300420 rt_sigqueueinfo.test \
Dmitry V. Levin9649ac12016-02-19 16:07:43 +0000421 rt_sigsuspend.test \
Dmitry V. Levin49faae92016-02-19 03:27:09 +0000422 rt_sigtimedwait.test \
Dmitry V. Levin11d623f2016-02-17 05:24:43 +0000423 rt_tgsigqueueinfo.test \
Fei Jie1eed5942016-03-10 17:12:23 +0800424 sched_get_priority_mxx.test \
Dmitry V. Levin6bf08e32016-01-07 00:31:33 +0000425 sched_xetaffinity.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +0000426 sched_xetattr.test \
Fei Jieea5c7b52016-03-10 17:12:24 +0800427 sched_xetparam.test \
Fei Jiec3fb92c2016-03-15 16:38:17 +0800428 sched_xetscheduler.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000429 scm_rights-fd.test \
Dmitry V. Levin6ba947f2016-04-12 00:05:43 +0000430 seccomp-filter-v.test \
Dmitry V. Levinc2523e02016-04-12 00:20:03 +0000431 seccomp-filter.test \
Dmitry V. Levinb19945b2016-04-11 15:09:09 +0000432 seccomp-strict.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000433 select.test \
Fei Jief22db4e2016-04-18 15:10:53 +0800434 semop.test \
Dmitry V. Levin49182852015-08-19 01:25:39 +0000435 sendfile.test \
436 sendfile64.test \
Dmitry V. Levinfba762d2016-04-18 16:08:38 +0000437 setfsgid.test \
Dmitry V. Levinf1849892016-04-18 16:10:07 +0000438 setfsgid32.test \
Dmitry V. Levin281e4572016-04-18 15:59:28 +0000439 setfsuid.test \
Dmitry V. Levin2def3d42016-04-18 16:03:51 +0000440 setfsuid32.test \
Dmitry V. Levincf273012016-04-18 13:45:36 +0000441 setgid.test \
Dmitry V. Levin6511b2d2016-04-18 13:46:47 +0000442 setgid32.test \
Dmitry V. Levin5e9944d2016-04-19 01:59:52 +0000443 setgroups.test \
444 setgroups32.test \
Fei Jiea067b8d2016-03-31 16:06:49 +0800445 sethostname.test \
Dmitry V. Levin28d02ea2016-04-18 14:38:04 +0000446 setregid.test \
Dmitry V. Levin7d7dfbe2016-04-18 14:38:57 +0000447 setregid32.test \
Dmitry V. Levin4f6d95d2016-04-18 15:22:34 +0000448 setresgid.test \
Dmitry V. Levinfa7c9882016-04-18 15:23:56 +0000449 setresgid32.test \
Dmitry V. Levin0eac88a2016-04-18 15:16:53 +0000450 setresuid.test \
Dmitry V. Levin2b42d8e2016-04-18 15:19:27 +0000451 setresuid32.test \
Dmitry V. Levine6d84732016-04-18 14:34:31 +0000452 setreuid.test \
Dmitry V. Levin619a96a2016-04-18 14:36:42 +0000453 setreuid32.test \
Dmitry V. Levinaa399262016-04-18 13:24:26 +0000454 setuid.test \
Dmitry V. Levin8f0e41a2016-04-18 13:41:25 +0000455 setuid32.test \
Fei Jie39a33b12016-04-18 15:10:54 +0800456 shmxt.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000457 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300458 sigaltstack.test \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000459 signalfd.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +0000460 sigreturn.test \
Dmitry V. Levin16a52b42016-02-13 22:31:30 +0000461 splice.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000462 stat.test \
Dmitry V. Levin144a9db2015-12-05 00:03:49 +0000463 stat64.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +0000464 statfs.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000465 sun_path.test \
Fei Jie93faa4c2016-04-06 14:18:50 +0800466 swap.test \
Fei Jiebff70d42016-04-19 15:38:34 +0800467 symlinkat.test \
Dmitry V. Levin5b2d2572016-04-06 00:02:08 +0000468 sync_file_range.test \
469 sync_file_range2.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000470 sysinfo.test \
Fei Jie9a883712016-03-25 17:46:19 +0800471 syslog.test \
Dmitry V. Levin6c932542016-02-13 22:42:52 +0000472 tee.test \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +0000473 time.test \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +0000474 timer_create.test \
Dmitry V. Levin13140982015-09-17 18:25:12 +0000475 timer_xettime.test \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +0000476 timerfd_xettime.test \
Elvira Khabirova9d77b562015-08-21 00:09:32 +0300477 times-fail.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000478 times.test \
Dmitry V. Levinc1bb87a2015-12-01 00:02:45 +0000479 truncate.test \
Dmitry V. Levin431d63c2015-12-01 00:32:40 +0000480 truncate64.test \
Dmitry V. Levin718990f2015-12-08 17:33:52 +0000481 uid.test \
482 uid16.test \
483 uid32.test \
484 uio.test \
Fei Jieeee34762016-03-01 16:55:37 +0800485 umask.test \
Dmitry V. Levin08a17832015-12-07 00:06:35 +0000486 umount.test \
487 umount2.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000488 umovestr.test \
489 umovestr2.test \
Fei Jie68a58a32016-03-01 16:55:35 +0800490 uname.test \
Fei Jie41cd6572016-04-06 14:18:49 +0800491 unlinkat.test \
Dmitry V. Levina6ebdb12015-11-15 02:22:44 +0000492 userfaultfd.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000493 utime.test \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000494 utimensat.test \
Dmitry V. Levin13870c52016-02-13 23:18:15 +0000495 vmsplice.test \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000496 wait.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000497 xattr.test \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000498 xet_robust_list.test \
Dmitry V. Levin12431f72015-09-17 20:44:22 +0000499 xetitimer.test \
Dmitry V. Levin669f8cf2016-02-14 17:14:15 +0000500 xetpgid.test \
Fei Jie032a9a42016-03-17 17:30:45 +0800501 xetpriority.test \
Dmitry V. Levinf57edf42015-09-18 16:15:49 +0000502 xettimeofday.test \
Dmitry V. Levinf7f7e602016-03-23 23:07:02 +0000503 # end of DECODER_TESTS
504
505MISC_TESTS = \
Dmitry V. Levin62046542016-02-09 04:16:41 +0000506 attach-f-p.test \
Dmitry V. Levinfa8c2862016-01-22 14:37:14 +0000507 attach-p-cmd.test \
Dmitry V. Levinf7f7e602016-03-23 23:07:02 +0000508 bexecve.test \
509 count-f.test \
510 count.test \
511 detach-running.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000512 detach-sleeping.test \
513 detach-stopped.test \
Dmitry V. Levinf7f7e602016-03-23 23:07:02 +0000514 dumpio.test \
515 filter-unavailable.test \
516 fork-f.test \
517 ksysent.test \
Dmitry V. Levin7469e252016-02-05 01:19:37 +0000518 opipe.test \
Dmitry V. Levinf7f7e602016-03-23 23:07:02 +0000519 pc.test \
520 qual_syscall.test \
Dmitry V. Levina88c72e2016-02-08 16:47:40 +0000521 redirect.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000522 restart_syscall.test \
Dmitry V. Levina08d03f2016-03-24 00:31:23 +0000523 strace-T.test \
Dmitry V. Levinf7f7e602016-03-23 23:07:02 +0000524 strace-f.test \
Dmitry V. Levine10ab4c2016-03-24 01:27:03 +0000525 strace-r.test \
Dmitry V. Levinac2c43e2016-03-24 00:59:32 +0000526 strace-t.test \
Dmitry V. Levine4d110d2016-03-24 01:03:31 +0000527 strace-tt.test \
Dmitry V. Levin534a3922016-03-24 01:10:02 +0000528 strace-ttt.test \
Dmitry V. Levinf7f7e602016-03-23 23:07:02 +0000529 vfork-f.test \
530 # end of MISC_TESTS
531
532TESTS = $(DECODER_TESTS) $(MISC_TESTS) $(LIBUNWIND_TESTS)
Dmitry V. Levin10eab9d2016-01-01 23:09:02 +0000533
534XFAIL_TESTS_ =
535XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
536XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
537XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME))
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000538
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000539TEST_LOG_COMPILER = env
540AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000541
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000542EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000543 caps.awk \
Dmitry V. Levinb3890282016-02-22 23:42:23 +0000544 count-f.expected \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000545 dumpio.expected \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000546 eventfd.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000547 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000548 filter-unavailable.expected \
Dmitry V. Levinb0e61152015-12-02 01:02:39 +0000549 fstatat.c \
Dmitry V. Levinc8638272015-12-05 00:02:44 +0000550 fstatx.c \
Dmitry V. Levinfbe1a9e2016-04-19 17:30:23 +0000551 getresugid.c \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000552 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000553 ipc.sh \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300554 ipc_msgbuf.expected \
Dmitry V. Levinbab4ef42015-12-10 02:06:25 +0000555 ksysent.sed \
Dmitry V. Levin38e37682015-12-05 00:03:02 +0000556 lstatx.c \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000557 memfd_create.expected \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300558 mq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000559 net.expected \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000560 oldselect.expected \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000561 pipe.expected \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000562 ppoll.expected \
563 ppoll-v.expected \
Dmitry V. Levin281e4572016-04-18 15:59:28 +0000564 setfsugid.c \
Dmitry V. Levine6d84732016-04-18 14:34:31 +0000565 setreugid.c \
Dmitry V. Levin0eac88a2016-04-18 15:16:53 +0000566 setresugid.c \
Dmitry V. Levinaa399262016-04-18 13:24:26 +0000567 setugid.c \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000568 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300569 sigaltstack.expected \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000570 signalfd.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000571 statfs.expected \
Dmitry V. Levincc2baf32015-12-05 00:01:56 +0000572 statx.sh \
Dmitry V. Levina08d03f2016-03-24 00:31:23 +0000573 strace-T.expected \
Dmitry V. Levine10ab4c2016-03-24 01:27:03 +0000574 strace-r.expected \
Dmitry V. Levin21547022015-12-05 00:52:01 +0000575 struct_flock.c \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000576 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000577 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000578 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000579 umovestr.expected \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000580 wait.expected \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000581 xattr.expected \
Dmitry V. Levin4ccdbd62016-04-15 23:03:29 +0000582 xchownx.c \
Dmitry V. Levin69b73072015-12-08 17:38:12 +0000583 xselect.c \
Dmitry V. Levincc2baf32015-12-05 00:01:56 +0000584 xstatx.c \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000585 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000586
Dmitry V. Levinbab4ef42015-12-10 02:06:25 +0000587ksysent.h: $(srcdir)/ksysent.sed
588 echo '#include <asm/unistd.h>' | \
Michael Shigorinf20304b2016-02-17 18:55:28 +0300589 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
Dmitry V. Levinbab4ef42015-12-10 02:06:25 +0000590 LC_COLLATE=C sed -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
591 mv -f $@.t2 $@
592 rm -f $@.t1
593
594BUILT_SOURCES = ksysent.h
595CLEANFILES = ksysent.h $(TESTS:=.tmp)