blob: e699086ffa086bd150578a96ae9494a4beaa3191 [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. Levin9d4c8922015-09-17 21:57:22 +000018 clock_xettime \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +000019 epoll_create1 \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000020 eventfd \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000021 execve \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000022 execveat \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000023 fanotify_mark \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000024 filter-unavailable \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000025 getrandom \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000026 inet-accept-connect-send-recv \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000027 ioctl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000028 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000029 ipc_msg \
Elvira Khabirovab7699b52015-08-03 12:40:46 +030030 ipc_msgbuf \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000031 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000032 ipc_shm \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000033 memfd_create \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000034 mmap \
35 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +090036 mmsg \
Elvira Khabirova422f7932015-08-19 05:28:48 +030037 mq \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000038 net-accept-connect \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000039 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +000040 netlink_unix_diag \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +000041 oldselect \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000042 pc \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000043 pipe \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +000044 ppoll \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +000045 pselect6 \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +020046 readlink \
47 readlinkat \
Dmitry V. Levin640623c2015-09-18 11:27:11 +000048 restart_syscall \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +030049 rt_sigqueueinfo \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000050 sched_xetattr \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000051 scm_rights \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000052 seccomp \
Dmitry V. Levine837b142015-02-04 02:09:52 +000053 select \
Dmitry V. Levin49182852015-08-19 01:25:39 +000054 sendfile \
55 sendfile64 \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000056 set_ptracer_any \
57 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030058 sigaltstack \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +000059 signalfd \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000060 sigreturn \
Masatake YAMATO96821072014-05-14 13:16:29 +090061 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000062 stat \
63 stat32 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000064 statfs \
Elvira Khabirova22d997e2015-08-03 06:30:49 +030065 sysinfo \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +000066 time \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +000067 timer_create \
Dmitry V. Levin13140982015-09-17 18:25:12 +000068 timer_xettime \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +000069 timerfd_xettime \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030070 times \
Elvira Khabirova9d77b562015-08-21 00:09:32 +030071 times-fail \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000072 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000073 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000074 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000075 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000076 umovestr \
77 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000078 unix-pair-send-recv \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000079 utime \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +000080 utimensat \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +000081 wait \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000082 xattr \
83 xet_robust_list \
Dmitry V. Levin12431f72015-09-17 20:44:22 +000084 xetitimer \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +000085 # end of check_PROGRAMS
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000086
Dmitry V. Levin9d4c8922015-09-17 21:57:22 +000087clock_xettime_LDADD = -lrt
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000088filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000089mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Elvira Khabirova422f7932015-08-19 05:28:48 +030090mq_LDADD = -lrt
Dmitry V. Levin977550d2015-02-27 04:09:56 +000091pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000092stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000093statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +030094times_LDADD = -lrt
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000095uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +000096stack_fcall_SOURCES = stack-fcall.c \
97 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000098
Dmitry V. Levin123d4012014-02-02 15:20:11 +000099TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000100 strace-f.test \
101 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +0000102 bexecve.test \
Dmitry V. Levindad1eef2015-09-16 21:58:36 +0000103 adjtimex.test \
Dmitry V. Levin13c21732015-08-26 12:49:07 +0000104 aio.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +0000105 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000106 caps.test \
Dmitry V. Levin9d4c8922015-09-17 21:57:22 +0000107 clock_xettime.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000108 dumpio.test \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000109 epoll_create1.test \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000110 eventfd.test \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000111 execve.test \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000112 execveat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000113 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000114 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +0000115 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +0000116 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000117 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000118 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000119 ipc_msg.test \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300120 ipc_msgbuf.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +0000121 ipc_shm.test \
122 ipc_sem.test \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300123 mq.test \
Dmitry V. Levin77a1b6b2015-09-15 02:14:38 +0000124 pselect6.test \
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +0200125 readlink.test \
126 readlinkat.test \
Elvira Khabirova3b7674c2015-08-21 18:49:14 +0300127 rt_sigqueueinfo.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +0000128 sched_xetattr.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +0000129 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +0000130 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000131 select.test \
Dmitry V. Levin49182852015-08-19 01:25:39 +0000132 sendfile.test \
133 sendfile64.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000134 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300135 sigaltstack.test \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000136 signalfd.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +0000137 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000138 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +0000139 stat32-v.test \
140 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +0000141 statfs.test \
Elvira Khabirova22d997e2015-08-03 06:30:49 +0300142 sysinfo.test \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000143 memfd_create.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +0000144 mmap.test \
145 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900146 mmsg.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000147 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800148 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000149 net-yy.test \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000150 oldselect.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000151 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000152 pc.test \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000153 ppoll.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000154 sun_path.test \
Dmitry V. Levinf9b455c2015-08-18 13:25:36 +0000155 time.test \
Dmitry V. Levinb8f0c922015-09-16 16:31:43 +0000156 timer_create.test \
Dmitry V. Levin13140982015-09-17 18:25:12 +0000157 timer_xettime.test \
Dmitry V. Levin79cafcd2015-09-17 20:05:20 +0000158 timerfd_xettime.test \
Eugene Syromyatnikov7a036052015-08-04 15:52:55 +0300159 times.test \
Elvira Khabirova9d77b562015-08-21 00:09:32 +0300160 times-fail.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000161 umovestr.test \
162 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900163 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000164 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000165 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000166 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000167 uio.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000168 utime.test \
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000169 utimensat.test \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000170 wait.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000171 xattr.test \
Dmitry V. Levin41b9fac2015-08-18 19:21:36 +0000172 xet_robust_list.test \
Dmitry V. Levin12431f72015-09-17 20:44:22 +0000173 xetitimer.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000174 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000175 detach-sleeping.test \
176 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900177 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000178 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900179 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000180
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800181net-fd.log: net.log
182
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000183TEST_LOG_COMPILER = env
184AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000185
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000186EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000187 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000188 dumpio.expected \
Dmitry V. Levinbf62c1b2015-08-01 23:04:32 +0000189 epoll_create1.expected \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000190 eventfd.expected \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000191 execve.expected \
192 execve-v.expected \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000193 execveat.expected \
194 execveat-v.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000195 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000196 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000197 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000198 getdents.out \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000199 ioctl.expected \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000200 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000201 ipc.sh \
Elvira Khabirovab7699b52015-08-03 12:40:46 +0300202 ipc_msgbuf.expected \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000203 memfd_create.expected \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900204 mmsg.expected \
Elvira Khabirova422f7932015-08-19 05:28:48 +0300205 mq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000206 net.expected \
207 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000208 net-yy-accept.awk \
209 net-yy-connect.awk \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000210 oldselect.expected \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000211 pipe.expected \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000212 ppoll.expected \
213 ppoll-v.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000214 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300215 sigaltstack.expected \
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000216 signalfd.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000217 statfs.expected \
218 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000219 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000220 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000221 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900222 unix-yy-accept.awk \
223 unix-yy-connect.awk \
Dmitry V. Levincde9ef72015-07-15 01:50:27 +0000224 wait.expected \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000225 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000226 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000227
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000228CLEANFILES = $(TESTS:=.tmp)