blob: 5ae29e489228b7e92c6977b529b46b70ed7c9a20 [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 \
Elvira Khabirova9d77b562015-08-21 00:09:32 +030064 times-fail \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000065 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000066 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000067 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000068 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000069 umovestr \
70 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000071 unix-pair-send-recv \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000072 utime \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +000073 utimensat \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +000074 wait \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000075 xattr \
76 xet_robust_list \
77 # end of check_PROGRAMS
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000078
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000079filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000080mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Elvira Khabirova422f7932015-08-19 05:28:48 +030081mq_LDADD = -lrt
Dmitry V. Levin977550d2015-02-27 04:09:56 +000082pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000083stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000084statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030085times_LDADD = -lrt
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000086uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +000087stack_fcall_SOURCES = stack-fcall.c \
88 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000089
Dmitry V. Levin123d4012014-02-02 15:20:11 +000090TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000091 strace-f.test \
92 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +000093 bexecve.test \
Dmitry V. Levin13c21732015-08-26 12:49:07 +000094 aio.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000095 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +000096 caps.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000097 dumpio.test \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +000098 epoll_create1.test \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000099 eventfd.test \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000100 execve.test \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000101 execveat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000102 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000103 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +0000104 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000105 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000106 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000107 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000108 ipc_msg.test \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300109 ipc_msgbuf.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000110 ipc_shm.test \
111 ipc_sem.test \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300112 mq.test \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +0200113 readlink.test \
114 readlinkat.test \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +0300115 rt_sigqueueinfo.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +0000116 sched_xetattr.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000117 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +0000118 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000119 select.test \
Dmitry V. Levin49182852015-08-19 01:25:39 +0000120 sendfile.test \
121 sendfile64.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000122 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300123 sigaltstack.test \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000124 signalfd.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +0000125 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000126 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +0000127 stat32-v.test \
128 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +0000129 statfs.test \
Elvira Khabirova22d997e2015-08-03 06:30:49 +0300130 sysinfo.test \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000131 memfd_create.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +0000132 mmap.test \
133 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900134 mmsg.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000135 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800136 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000137 net-yy.test \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000138 oldselect.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000139 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000140 pc.test \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000141 ppoll.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000142 sun_path.test \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +0000143 time.test \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +0300144 times.test \
Elvira Khabirova9d77b562015-08-21 00:09:32 +0300145 times-fail.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000146 umovestr.test \
147 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900148 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000149 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000150 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000151 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000152 uio.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000153 utime.test \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000154 utimensat.test \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000155 wait.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000156 xattr.test \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000157 xet_robust_list.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000158 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000159 detach-sleeping.test \
160 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900161 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000162 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900163 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000164
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800165net-fd.log: net.log
166
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000167TEST_LOG_COMPILER = env
168AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000169
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000170EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000171 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000172 dumpio.expected \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000173 epoll_create1.expected \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000174 eventfd.expected \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000175 execve.expected \
176 execve-v.expected \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000177 execveat.expected \
178 execveat-v.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000179 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000180 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000181 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000182 getdents.out \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000183 ioctl.expected \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000184 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000185 ipc.sh \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300186 ipc_msgbuf.expected \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000187 memfd_create.expected \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900188 mmsg.expected \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300189 mq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000190 net.expected \
191 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000192 net-yy-accept.awk \
193 net-yy-connect.awk \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000194 oldselect.expected \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000195 pipe.expected \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000196 ppoll.expected \
197 ppoll-v.expected \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000198 restart_syscall.expected \
199 restart_syscall_unknown.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000200 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300201 sigaltstack.expected \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000202 signalfd.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000203 statfs.expected \
204 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000205 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000206 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000207 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900208 unix-yy-accept.awk \
209 unix-yy-connect.awk \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000210 wait.expected \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000211 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000212 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000213
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000214CLEANFILES = $(TESTS:=.tmp)