blob: 266705731ba532e7713dd9123672c85d4de3c328 [file] [log] [blame]
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +00001# Automake input for strace tests.
2
Dmitry V. Levin25c804c2015-04-07 21:18:23 +00003OS = linux
4ARCH = @arch@
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +00005AM_CFLAGS = $(WARN_CFLAGS)
Dmitry V. Levin0f4ad302015-02-22 02:13:04 +00006AM_CPPFLAGS = -I$(top_builddir)/$(OS)/$(ARCH) \
7 -I$(top_srcdir)/$(OS)/$(ARCH) \
8 -I$(top_builddir)/$(OS) \
Dmitry V. Levincf3ecbd2015-08-26 22:50:58 +00009 -I$(top_srcdir)/$(OS) \
10 -I$(top_builddir) \
11 -I$(top_srcdir)
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000012
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000013check_PROGRAMS = \
Dmitry V. Levindad1eef2015-09-16 21:58:36 +000014 adjtimex \
Dmitry V. Levin13c21732015-08-26 12:49:07 +000015 aio \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000016 bpf \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000017 caps \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +000018 epoll_create1 \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000019 eventfd \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000020 execve \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000021 execveat \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000022 fanotify_mark \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000023 filter-unavailable \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000024 getrandom \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000025 inet-accept-connect-send-recv \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000026 ioctl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000027 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000028 ipc_msg \
Elvira Khabirovab7699b52015-08-03 12:40:46 +030029 ipc_msgbuf \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000030 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000031 ipc_shm \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000032 memfd_create \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000033 mmap \
34 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +090035 mmsg \
Elvira Khabirova422f7932015-08-19 05:28:48 +030036 mq \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000037 net-accept-connect \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000038 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +000039 netlink_unix_diag \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +000040 oldselect \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000041 pc \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000042 pipe \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +000043 ppoll \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +000044 pselect6 \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +020045 readlink \
46 readlinkat \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +030047 rt_sigqueueinfo \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000048 sched_xetattr \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000049 scm_rights \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000050 seccomp \
Dmitry V. Levine837b142015-02-04 02:09:52 +000051 select \
Dmitry V. Levin49182852015-08-19 01:25:39 +000052 sendfile \
53 sendfile64 \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000054 set_ptracer_any \
55 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030056 sigaltstack \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +000057 signalfd \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000058 sigreturn \
Masatake YAMATO96821072014-05-14 13:16:29 +090059 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000060 stat \
61 stat32 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000062 statfs \
Elvira Khabirova22d997e2015-08-03 06:30:49 +030063 sysinfo \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +000064 time \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +000065 timer_create \
Dmitry V. Levin13140982015-09-17 18:25:12 +000066 timer_xettime \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +000067 timerfd_xettime \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030068 times \
Elvira Khabirova9d77b562015-08-21 00:09:32 +030069 times-fail \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000070 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000071 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000072 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000073 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000074 umovestr \
75 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000076 unix-pair-send-recv \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000077 utime \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +000078 utimensat \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +000079 wait \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000080 xattr \
81 xet_robust_list \
Dmitry V. Levin12431f72015-09-17 20:44:22 +000082 xetitimer \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000083 # end of check_PROGRAMS
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000084
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000085filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000086mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Elvira Khabirova422f7932015-08-19 05:28:48 +030087mq_LDADD = -lrt
Dmitry V. Levin977550d2015-02-27 04:09:56 +000088pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000089stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000090statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030091times_LDADD = -lrt
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000092uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +000093stack_fcall_SOURCES = stack-fcall.c \
94 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000095
Dmitry V. Levin123d4012014-02-02 15:20:11 +000096TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000097 strace-f.test \
98 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +000099 bexecve.test \
Dmitry V. Levindad1eef2015-09-16 21:58:36 +0000100 adjtimex.test \
Dmitry V. Levin13c21732015-08-26 12:49:07 +0000101 aio.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +0000102 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000103 caps.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000104 dumpio.test \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000105 epoll_create1.test \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000106 eventfd.test \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000107 execve.test \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000108 execveat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000109 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000110 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +0000111 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000112 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000113 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000114 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000115 ipc_msg.test \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300116 ipc_msgbuf.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000117 ipc_shm.test \
118 ipc_sem.test \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300119 mq.test \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +0000120 pselect6.test \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +0200121 readlink.test \
122 readlinkat.test \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +0300123 rt_sigqueueinfo.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +0000124 sched_xetattr.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000125 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +0000126 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000127 select.test \
Dmitry V. Levin49182852015-08-19 01:25:39 +0000128 sendfile.test \
129 sendfile64.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000130 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300131 sigaltstack.test \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000132 signalfd.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +0000133 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000134 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +0000135 stat32-v.test \
136 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +0000137 statfs.test \
Elvira Khabirova22d997e2015-08-03 06:30:49 +0300138 sysinfo.test \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000139 memfd_create.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +0000140 mmap.test \
141 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900142 mmsg.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000143 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800144 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000145 net-yy.test \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000146 oldselect.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000147 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000148 pc.test \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000149 ppoll.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000150 sun_path.test \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +0000151 time.test \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +0000152 timer_create.test \
Dmitry V. Levin13140982015-09-17 18:25:12 +0000153 timer_xettime.test \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +0000154 timerfd_xettime.test \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +0300155 times.test \
Elvira Khabirova9d77b562015-08-21 00:09:32 +0300156 times-fail.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000157 umovestr.test \
158 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900159 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000160 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000161 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000162 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000163 uio.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000164 utime.test \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000165 utimensat.test \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000166 wait.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000167 xattr.test \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000168 xet_robust_list.test \
Dmitry V. Levin12431f72015-09-17 20:44:22 +0000169 xetitimer.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000170 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000171 detach-sleeping.test \
172 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900173 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000174 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900175 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000176
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800177net-fd.log: net.log
178
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000179TEST_LOG_COMPILER = env
180AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000181
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000182EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000183 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000184 dumpio.expected \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000185 epoll_create1.expected \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000186 eventfd.expected \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000187 execve.expected \
188 execve-v.expected \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000189 execveat.expected \
190 execveat-v.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000191 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000192 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000193 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000194 getdents.out \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000195 ioctl.expected \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000196 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000197 ipc.sh \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300198 ipc_msgbuf.expected \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000199 memfd_create.expected \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900200 mmsg.expected \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300201 mq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000202 net.expected \
203 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000204 net-yy-accept.awk \
205 net-yy-connect.awk \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000206 oldselect.expected \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000207 pipe.expected \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000208 ppoll.expected \
209 ppoll-v.expected \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000210 restart_syscall.expected \
211 restart_syscall_unknown.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000212 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300213 sigaltstack.expected \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000214 signalfd.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000215 statfs.expected \
216 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000217 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000218 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000219 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900220 unix-yy-accept.awk \
221 unix-yy-connect.awk \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000222 wait.expected \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000223 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000224 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000225
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000226CLEANFILES = $(TESTS:=.tmp)