blob: dc76ddda91141789acd76ad48f5144ad054be59d [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) \
9 -I$(top_srcdir)/$(OS)
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000010
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000011check_PROGRAMS = \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000012 bpf \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000013 caps \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000014 eventfd \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000015 execve \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000016 execveat \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000017 fanotify_mark \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000018 filter-unavailable \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000019 getrandom \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000020 inet-accept-connect-send-recv \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000021 ioctl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000022 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000023 ipc_msg \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000024 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000025 ipc_shm \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000026 memfd_create \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000027 mmap \
28 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +090029 mmsg \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000030 net-accept-connect \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000031 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +000032 netlink_unix_diag \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +000033 oldselect \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000034 pc \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000035 pipe \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +000036 ppoll \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000037 sched_xetattr \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000038 scm_rights \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000039 seccomp \
Dmitry V. Levine837b142015-02-04 02:09:52 +000040 select \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000041 set_ptracer_any \
42 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030043 sigaltstack \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000044 sigreturn \
Masatake YAMATO96821072014-05-14 13:16:29 +090045 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000046 stat \
47 stat32 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000048 statfs \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000049 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000050 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000051 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000052 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000053 umovestr \
54 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000055 unix-pair-send-recv \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000056 utime \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000057 xattr
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000058
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000059filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000060mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin977550d2015-02-27 04:09:56 +000061pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000062stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000063statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000064uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +000065stack_fcall_SOURCES = stack-fcall.c \
66 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000067
Dmitry V. Levin123d4012014-02-02 15:20:11 +000068TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000069 strace-f.test \
70 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +000071 bexecve.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000072 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +000073 caps.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000074 dumpio.test \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +000075 eventfd.test \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000076 execve.test \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000077 execveat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +000078 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000079 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +000080 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000081 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000082 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000083 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000084 ipc_msg.test \
85 ipc_shm.test \
86 ipc_sem.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000087 sched_xetattr.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000088 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000089 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +000090 select.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000091 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030092 sigaltstack.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000093 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000094 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000095 stat32-v.test \
96 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000097 statfs.test \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000098 memfd_create.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000099 mmap.test \
100 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900101 mmsg.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000102 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800103 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000104 net-yy.test \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000105 oldselect.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000106 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000107 pc.test \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000108 ppoll.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000109 sun_path.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000110 umovestr.test \
111 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900112 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000113 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000114 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000115 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000116 uio.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000117 utime.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000118 xattr.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000119 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000120 detach-sleeping.test \
121 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900122 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000123 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900124 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000125
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800126net-fd.log: net.log
127
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000128TEST_LOG_COMPILER = env
129AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000130
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000131EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000132 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000133 dumpio.expected \
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000134 eventfd.expected \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000135 execve.expected \
136 execve-v.expected \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000137 execveat.expected \
138 execveat-v.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000139 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000140 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000141 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000142 getdents.out \
Dmitry V. Levine3e64a12015-02-23 21:47:15 +0000143 getrandom.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000144 ioctl.expected \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000145 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000146 ipc.sh \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000147 memfd_create.expected \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900148 mmsg.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000149 net.expected \
150 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000151 net-yy-accept.awk \
152 net-yy-connect.awk \
Dmitry V. Levinea7ef932015-07-30 08:24:32 +0000153 oldselect.expected \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000154 pipe.expected \
Dmitry V. Levind9fb4502015-07-30 19:46:11 +0000155 ppoll.expected \
156 ppoll-v.expected \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000157 restart_syscall.expected \
158 restart_syscall_unknown.expected \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000159 select.awk \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000160 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300161 sigaltstack.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000162 statfs.expected \
163 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000164 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000165 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000166 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900167 unix-yy-accept.awk \
168 unix-yy-connect.awk \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000169 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000170 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000171
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000172CLEANFILES = $(TESTS:=.tmp)