blob: 2eb31330a8db252281fe85f68cba42bf8930cf5a [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. Levin4ff687b2015-07-27 10:02:33 +000014 execve \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000015 execveat \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000016 fanotify_mark \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000017 filter-unavailable \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000018 getrandom \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000019 inet-accept-connect-send-recv \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000020 ioctl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000021 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000022 ipc_msg \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000023 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000024 ipc_shm \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000025 memfd_create \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000026 mmap \
27 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +090028 mmsg \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000029 net-accept-connect \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000030 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +000031 netlink_unix_diag \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000032 pc \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000033 pipe \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000034 sched_xetattr \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000035 scm_rights \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000036 seccomp \
Dmitry V. Levine837b142015-02-04 02:09:52 +000037 select \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000038 set_ptracer_any \
39 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030040 sigaltstack \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000041 sigreturn \
Masatake YAMATO96821072014-05-14 13:16:29 +090042 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000043 stat \
44 stat32 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000045 statfs \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000046 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000047 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000048 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000049 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000050 umovestr \
51 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000052 unix-pair-send-recv \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000053 utime \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000054 xattr
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000055
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000056filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000057mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin977550d2015-02-27 04:09:56 +000058pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000059stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000060statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000061uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +000062stack_fcall_SOURCES = stack-fcall.c \
63 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000064
Dmitry V. Levin123d4012014-02-02 15:20:11 +000065TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000066 strace-f.test \
67 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +000068 bexecve.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000069 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +000070 caps.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000071 dumpio.test \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +000072 execve.test \
Dmitry V. Levin7c221012015-07-26 11:06:53 +000073 execveat.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +000074 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000075 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +000076 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000077 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000078 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000079 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000080 ipc_msg.test \
81 ipc_shm.test \
82 ipc_sem.test \
Dmitry V. Levin3456bcc2015-07-29 07:59:56 +000083 sched_xetattr.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000084 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000085 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +000086 select.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000087 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030088 sigaltstack.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000089 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000090 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000091 stat32-v.test \
92 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000093 statfs.test \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +000094 memfd_create.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000095 mmap.test \
96 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +090097 mmsg.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000098 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -080099 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000100 net-yy.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000101 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +0000102 pc.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +0000103 sun_path.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000104 umovestr.test \
105 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900106 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000107 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000108 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000109 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000110 uio.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000111 utime.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000112 xattr.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000113 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000114 detach-sleeping.test \
115 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900116 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000117 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900118 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000119
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800120net-fd.log: net.log
121
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000122TEST_LOG_COMPILER = env
123AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000124
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000125EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000126 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000127 dumpio.expected \
Dmitry V. Levin4ff687b2015-07-27 10:02:33 +0000128 execve.expected \
129 execve-v.expected \
Dmitry V. Levin7c221012015-07-26 11:06:53 +0000130 execveat.expected \
131 execveat-v.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000132 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000133 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000134 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000135 getdents.out \
Dmitry V. Levine3e64a12015-02-23 21:47:15 +0000136 getrandom.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000137 ioctl.expected \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000138 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000139 ipc.sh \
Dmitry V. Levin95b84ea2015-07-28 23:03:41 +0000140 memfd_create.expected \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900141 mmsg.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000142 net.expected \
143 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000144 net-yy-accept.awk \
145 net-yy-connect.awk \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000146 pipe.expected \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000147 restart_syscall.expected \
148 restart_syscall_unknown.expected \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000149 select.awk \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000150 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300151 sigaltstack.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000152 statfs.expected \
153 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000154 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000155 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000156 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900157 unix-yy-accept.awk \
158 unix-yy-connect.awk \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000159 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000160 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000161
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000162CLEANFILES = $(TESTS:=.tmp)