blob: 5aae4bd0af4481d3028d832cf50d242eb2f15a65 [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. Levinc648b4a2015-09-18 14:24:51 +000018 clock_nanosleep \
Dmitry V. Levin9d4c8922015-09-17 21:57:22 +000019 clock_xettime \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +000020 epoll_create1 \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000021 eventfd \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000022 execve \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000023 execveat \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000024 fanotify_mark \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000025 filter-unavailable \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000026 getrandom \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000027 inet-accept-connect-send-recv \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000028 ioctl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000029 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000030 ipc_msg \
Elvira Khabirovab7699b52015-08-03 12:40:46 +030031 ipc_msgbuf \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000032 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000033 ipc_shm \
Dmitry V. Levin2aec1e62015-11-15 02:29:29 +000034 membarrier \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000035 memfd_create \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000036 mmap \
37 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +090038 mmsg \
Elvira Khabirova422f7932015-08-19 05:28:48 +030039 mq \
Dmitry V. Levin593602c2015-09-18 02:18:03 +000040 nanosleep \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000041 net-accept-connect \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000042 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +000043 netlink_unix_diag \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +000044 oldselect \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000045 pc \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000046 pipe \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +000047 ppoll \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +000048 pselect6 \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +020049 readlink \
50 readlinkat \
Dmitry V. Levin640623c2015-09-18 11:27:11 +000051 restart_syscall \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +030052 rt_sigqueueinfo \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000053 sched_xetattr \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000054 scm_rights \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000055 seccomp \
Dmitry V. Levine837b142015-02-04 02:09:52 +000056 select \
Dmitry V. Levin49182852015-08-19 01:25:39 +000057 sendfile \
58 sendfile64 \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000059 set_ptracer_any \
60 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030061 sigaltstack \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +000062 signalfd \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000063 sigreturn \
Masatake YAMATO96821072014-05-14 13:16:29 +090064 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000065 stat \
66 stat32 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000067 statfs \
Elvira Khabirova22d997e2015-08-03 06:30:49 +030068 sysinfo \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +000069 time \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +000070 timer_create \
Dmitry V. Levin13140982015-09-17 18:25:12 +000071 timer_xettime \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +000072 timerfd_xettime \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030073 times \
Elvira Khabirova9d77b562015-08-21 00:09:32 +030074 times-fail \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000075 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000076 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000077 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000078 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000079 umovestr \
80 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000081 unix-pair-send-recv \
Dmitry V. Levina6ebdb12015-11-15 02:22:44 +000082 userfaultfd \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000083 utime \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +000084 utimensat \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +000085 wait \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000086 xattr \
87 xet_robust_list \
Dmitry V. Levin12431f72015-09-17 20:44:22 +000088 xetitimer \
Dmitry V. Levinf57edf42015-09-18 16:15:49 +000089 xettimeofday \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000090 # end of check_PROGRAMS
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000091
Dmitry V. Levin9d4c8922015-09-17 21:57:22 +000092clock_xettime_LDADD = -lrt
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000093filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000094mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Elvira Khabirova422f7932015-08-19 05:28:48 +030095mq_LDADD = -lrt
Dmitry V. Levin977550d2015-02-27 04:09:56 +000096pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000097stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000098statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030099times_LDADD = -lrt
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000100uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +0000101stack_fcall_SOURCES = stack-fcall.c \
102 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +0000103
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000104TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000105 strace-f.test \
106 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +0000107 bexecve.test \
Dmitry V. Levindad1eef2015-09-16 21:58:36 +0000108 adjtimex.test \
Dmitry V. Levin13c21732015-08-26 12:49:07 +0000109 aio.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +0000110 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000111 caps.test \
Dmitry V. Levinc648b4a2015-09-18 14:24:51 +0000112 clock_nanosleep.test \
Dmitry V. Levin9d4c8922015-09-17 21:57:22 +0000113 clock_xettime.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000114 dumpio.test \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000115 epoll_create1.test \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000116 eventfd.test \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000117 execve.test \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000118 execveat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000119 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000120 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +0000121 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000122 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000123 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000124 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000125 ipc_msg.test \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300126 ipc_msgbuf.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000127 ipc_shm.test \
128 ipc_sem.test \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300129 mq.test \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +0000130 pselect6.test \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +0200131 readlink.test \
132 readlinkat.test \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +0300133 rt_sigqueueinfo.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +0000134 sched_xetattr.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000135 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +0000136 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000137 select.test \
Dmitry V. Levin49182852015-08-19 01:25:39 +0000138 sendfile.test \
139 sendfile64.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000140 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300141 sigaltstack.test \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000142 signalfd.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +0000143 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000144 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +0000145 stat32-v.test \
146 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +0000147 statfs.test \
Elvira Khabirova22d997e2015-08-03 06:30:49 +0300148 sysinfo.test \
Dmitry V. Levin2aec1e62015-11-15 02:29:29 +0000149 membarrier.test \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000150 memfd_create.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +0000151 mmap.test \
152 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900153 mmsg.test \
Dmitry V. Levin593602c2015-09-18 02:18:03 +0000154 nanosleep.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000155 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800156 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000157 net-yy.test \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000158 oldselect.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000159 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000160 pc.test \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000161 ppoll.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000162 sun_path.test \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +0000163 time.test \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +0000164 timer_create.test \
Dmitry V. Levin13140982015-09-17 18:25:12 +0000165 timer_xettime.test \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +0000166 timerfd_xettime.test \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +0300167 times.test \
Elvira Khabirova9d77b562015-08-21 00:09:32 +0300168 times-fail.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000169 umovestr.test \
170 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900171 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000172 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000173 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000174 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000175 uio.test \
Dmitry V. Levina6ebdb12015-11-15 02:22:44 +0000176 userfaultfd.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000177 utime.test \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000178 utimensat.test \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000179 wait.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000180 xattr.test \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000181 xet_robust_list.test \
Dmitry V. Levin12431f72015-09-17 20:44:22 +0000182 xetitimer.test \
Dmitry V. Levinf57edf42015-09-18 16:15:49 +0000183 xettimeofday.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000184 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000185 detach-sleeping.test \
186 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900187 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000188 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900189 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000190
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800191net-fd.log: net.log
192
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000193TEST_LOG_COMPILER = env
194AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000195
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000196EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000197 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000198 dumpio.expected \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000199 epoll_create1.expected \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000200 eventfd.expected \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000201 execve.expected \
202 execve-v.expected \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000203 execveat.expected \
204 execveat-v.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000205 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000206 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000207 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000208 getdents.out \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000209 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000210 ipc.sh \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300211 ipc_msgbuf.expected \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000212 memfd_create.expected \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900213 mmsg.expected \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300214 mq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000215 net.expected \
216 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000217 net-yy-accept.awk \
218 net-yy-connect.awk \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000219 oldselect.expected \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000220 pipe.expected \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000221 ppoll.expected \
222 ppoll-v.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000223 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300224 sigaltstack.expected \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000225 signalfd.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000226 statfs.expected \
227 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000228 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000229 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000230 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900231 unix-yy-accept.awk \
232 unix-yy-connect.awk \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000233 wait.expected \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000234 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000235 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000236
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000237CLEANFILES = $(TESTS:=.tmp)