blob: 24e255ebcd4edb03a9872304bbcebec80331e399 [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. Levin13c21732015-08-26 12:49:07 +000014 aio \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000015 bpf \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000016 caps \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +000017 epoll_create1 \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000018 eventfd \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000019 execve \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000020 execveat \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000021 fanotify_mark \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000022 filter-unavailable \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000023 getrandom \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000024 inet-accept-connect-send-recv \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000025 ioctl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000026 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000027 ipc_msg \
Elvira Khabirovab7699b52015-08-03 12:40:46 +030028 ipc_msgbuf \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000029 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000030 ipc_shm \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000031 memfd_create \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000032 mmap \
33 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +090034 mmsg \
Elvira Khabirova422f7932015-08-19 05:28:48 +030035 mq \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000036 net-accept-connect \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000037 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +000038 netlink_unix_diag \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +000039 oldselect \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000040 pc \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000041 pipe \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +000042 ppoll \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +020043 readlink \
44 readlinkat \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +030045 rt_sigqueueinfo \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000046 sched_xetattr \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000047 scm_rights \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000048 seccomp \
Dmitry V. Levine837b142015-02-04 02:09:52 +000049 select \
Dmitry V. Levin49182852015-08-19 01:25:39 +000050 sendfile \
51 sendfile64 \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000052 set_ptracer_any \
53 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030054 sigaltstack \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +000055 signalfd \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000056 sigreturn \
Masatake YAMATO96821072014-05-14 13:16:29 +090057 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000058 stat \
59 stat32 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000060 statfs \
Elvira Khabirova22d997e2015-08-03 06:30:49 +030061 sysinfo \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +000062 time \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030063 times \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000064 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000065 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000066 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000067 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000068 umovestr \
69 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000070 unix-pair-send-recv \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000071 utime \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +000072 utimensat \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +000073 wait \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000074 xattr \
75 xet_robust_list \
76 # end of check_PROGRAMS
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000077
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000078filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000079mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Elvira Khabirova422f7932015-08-19 05:28:48 +030080mq_LDADD = -lrt
Dmitry V. Levin977550d2015-02-27 04:09:56 +000081pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000082stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000083statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030084times_LDADD = -lrt
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000085uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +000086stack_fcall_SOURCES = stack-fcall.c \
87 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000088
Dmitry V. Levin123d4012014-02-02 15:20:11 +000089TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000090 strace-f.test \
91 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +000092 bexecve.test \
Dmitry V. Levin13c21732015-08-26 12:49:07 +000093 aio.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000094 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +000095 caps.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000096 dumpio.test \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +000097 epoll_create1.test \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000098 eventfd.test \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000099 execve.test \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000100 execveat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000101 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000102 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +0000103 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000104 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000105 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000106 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000107 ipc_msg.test \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300108 ipc_msgbuf.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000109 ipc_shm.test \
110 ipc_sem.test \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300111 mq.test \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +0200112 readlink.test \
113 readlinkat.test \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +0300114 rt_sigqueueinfo.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +0000115 sched_xetattr.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000116 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +0000117 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000118 select.test \
Dmitry V. Levin49182852015-08-19 01:25:39 +0000119 sendfile.test \
120 sendfile64.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000121 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300122 sigaltstack.test \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000123 signalfd.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +0000124 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000125 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +0000126 stat32-v.test \
127 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +0000128 statfs.test \
Elvira Khabirova22d997e2015-08-03 06:30:49 +0300129 sysinfo.test \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000130 memfd_create.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +0000131 mmap.test \
132 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900133 mmsg.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000134 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800135 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000136 net-yy.test \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000137 oldselect.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000138 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000139 pc.test \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000140 ppoll.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000141 sun_path.test \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +0000142 time.test \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +0300143 times.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000144 umovestr.test \
145 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900146 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000147 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000148 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000149 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000150 uio.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000151 utime.test \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000152 utimensat.test \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000153 wait.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000154 xattr.test \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000155 xet_robust_list.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000156 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000157 detach-sleeping.test \
158 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900159 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000160 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900161 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000162
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800163net-fd.log: net.log
164
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000165TEST_LOG_COMPILER = env
166AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000167
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000168EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000169 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000170 dumpio.expected \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000171 epoll_create1.expected \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000172 eventfd.expected \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000173 execve.expected \
174 execve-v.expected \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000175 execveat.expected \
176 execveat-v.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000177 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000178 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000179 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000180 getdents.out \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000181 ioctl.expected \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000182 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000183 ipc.sh \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300184 ipc_msgbuf.expected \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000185 memfd_create.expected \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900186 mmsg.expected \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300187 mq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000188 net.expected \
189 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000190 net-yy-accept.awk \
191 net-yy-connect.awk \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000192 oldselect.expected \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000193 pipe.expected \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000194 ppoll.expected \
195 ppoll-v.expected \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000196 restart_syscall.expected \
197 restart_syscall_unknown.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000198 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300199 sigaltstack.expected \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000200 signalfd.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000201 statfs.expected \
202 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000203 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000204 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000205 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900206 unix-yy-accept.awk \
207 unix-yy-connect.awk \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000208 wait.expected \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000209 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000210 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000211
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000212CLEANFILES = $(TESTS:=.tmp)