blob: e25b1b2a19bbdff08e0b5da2facab77f6c1a1edb [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 \
14 fanotify_mark \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000015 filter-unavailable \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000016 getrandom \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000017 inet-accept-connect-send-recv \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000018 ioctl \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000019 ip_mreq \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000020 ipc_msg \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000021 ipc_sem \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000022 ipc_shm \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000023 mmap \
24 mmap64 \
Masatake YAMATO993198d2014-11-07 01:23:27 +090025 mmsg \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000026 net-accept-connect \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000027 netlink_inet_diag \
Dmitry V. Levin6b5df322014-12-25 00:11:40 +000028 netlink_unix_diag \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000029 pc \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000030 pipe \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000031 scm_rights \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000032 seccomp \
Dmitry V. Levine837b142015-02-04 02:09:52 +000033 select \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000034 set_ptracer_any \
35 sigaction \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030036 sigaltstack \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000037 sigreturn \
Masatake YAMATO96821072014-05-14 13:16:29 +090038 stack-fcall \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000039 stat \
40 stat32 \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000041 statfs \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000042 uid \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +000043 uid16 \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000044 uid32 \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000045 uio \
Dmitry V. Levin48321342015-03-31 18:52:57 +000046 umovestr \
47 umovestr2 \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000048 unix-pair-send-recv \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +000049 utime \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +000050 xattr
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000051
Dmitry V. Levin95eaf192015-07-21 10:17:33 +000052filter_unavailable_LDADD = -lpthread
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000053mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin977550d2015-02-27 04:09:56 +000054pc_LDADD = $(dl_LIBS)
Dmitry V. Levin7b010142015-01-07 19:30:37 +000055stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levin4176d532014-09-21 22:42:45 +000056statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levincc3d5912014-04-16 23:28:29 +000057uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
Dmitry V. Levinb0764202014-06-16 21:45:52 +000058stack_fcall_SOURCES = stack-fcall.c \
59 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
Dmitry V. Levin47b0dcc2013-05-07 23:32:01 +000060
Dmitry V. Levin123d4012014-02-02 15:20:11 +000061TESTS = \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000062 strace-f.test \
63 qual_syscall.test \
Dmitry V. Levinaa801922015-02-07 18:48:55 +000064 bexecve.test \
Dmitry V. Levinddb53dd2015-07-25 23:55:51 +000065 bpf.test \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +000066 caps.test \
Dmitry V. Levin495f5252015-02-01 00:20:32 +000067 dumpio.test \
Dmitry V. Levin1ea64732015-01-10 00:08:58 +000068 fanotify_mark.test \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +000069 filter-unavailable.test \
Dmitry V. Levin68d64242014-09-10 00:07:32 +000070 getdents.test \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000071 getrandom.test \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +000072 ioctl.test \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +000073 ip_mreq.test \
Dmitry V. Levin12e24422015-01-12 16:08:59 +000074 ipc_msg.test \
75 ipc_shm.test \
76 ipc_sem.test \
Dmitry V. Levinf23b0972014-05-29 21:35:34 +000077 scm_rights-fd.test \
Dmitry V. Levin485f8fb2015-03-19 00:40:49 +000078 seccomp.test \
Dmitry V. Levine837b142015-02-04 02:09:52 +000079 select.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000080 sigaction.test \
Elvira Khabirova10020ae2015-07-17 04:45:25 +030081 sigaltstack.test \
Dmitry V. Levin30bcb792015-03-04 12:31:18 +000082 sigreturn.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000083 stat.test \
Dmitry V. Levin7b010142015-01-07 19:30:37 +000084 stat32-v.test \
85 stat64-v.test \
Dmitry V. Levin4176d532014-09-21 22:42:45 +000086 statfs.test \
Dmitry V. Levine7d671b2015-03-19 22:03:32 +000087 mmap.test \
88 mmap64.test \
Masatake YAMATO993198d2014-11-07 01:23:27 +090089 mmsg.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +000090 net.test \
Philippe Ombredanne894c7e32014-02-01 09:57:45 -080091 net-fd.test \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +000092 net-yy.test \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +000093 pipe.test \
Dmitry V. Levine96cb622015-02-15 15:52:02 +000094 pc.test \
Dmitry V. Levinc9e24182015-01-29 15:19:21 +000095 sun_path.test \
Dmitry V. Levin48321342015-03-31 18:52:57 +000096 umovestr.test \
97 umovestr2.test \
Masatake YAMATO6077ad82014-12-24 20:59:32 +090098 unix-yy.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +000099 uid.test \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000100 uid16.test \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000101 uid32.test \
Dmitry V. Levincc3d5912014-04-16 23:28:29 +0000102 uio.test \
Dmitry V. Levind27ccca2015-07-15 09:02:17 +0000103 utime.test \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000104 xattr.test \
Dmitry V. Levin772e32b2014-05-29 21:14:14 +0000105 count.test \
Dmitry V. Levin123d4012014-02-02 15:20:11 +0000106 detach-sleeping.test \
107 detach-stopped.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900108 detach-running.test \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000109 restart_syscall.test \
Masatake YAMATO96821072014-05-14 13:16:29 +0900110 strace-k.test
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000111
Philippe Ombredanne894c7e32014-02-01 09:57:45 -0800112net-fd.log: net.log
113
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000114TEST_LOG_COMPILER = env
115AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
Dmitry V. Levinf60347d2013-06-18 15:28:47 +0000116
Dmitry V. Levin226bf1c2015-03-18 19:14:02 +0000117EXTRA_DIST = init.sh run.sh match.awk \
Dmitry V. Levin4b9c68b2014-12-05 00:21:23 +0000118 caps.awk \
Dmitry V. Levin495f5252015-02-01 00:20:32 +0000119 dumpio.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000120 fanotify_mark.expected \
Dmitry V. Levin4b80f342015-06-29 11:57:44 +0000121 filter-unavailable.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000122 getdents.awk \
Dmitry V. Levin7e79a8b2015-02-23 21:42:16 +0000123 getdents.out \
Dmitry V. Levine3e64a12015-02-23 21:47:15 +0000124 getrandom.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000125 ioctl.expected \
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000126 ip_mreq.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000127 ipc.sh \
Masatake YAMATO993198d2014-11-07 01:23:27 +0900128 mmsg.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000129 net.expected \
130 net-fd.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000131 net-yy-accept.awk \
132 net-yy-connect.awk \
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000133 pipe.expected \
Dmitry V. Levin25c804c2015-04-07 21:18:23 +0000134 restart_syscall.expected \
135 restart_syscall_unknown.expected \
Dmitry V. Levine837b142015-02-04 02:09:52 +0000136 select.awk \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000137 sigaction.awk \
Elvira Khabirova10020ae2015-07-17 04:45:25 +0300138 sigaltstack.expected \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000139 statfs.expected \
140 sun_path.expected \
Dmitry V. Levin1da7c952014-12-13 18:24:13 +0000141 uid.awk \
Dmitry V. Levin8f546642015-03-17 17:07:57 +0000142 uio.expected \
Dmitry V. Levin48321342015-03-31 18:52:57 +0000143 umovestr.expected \
Masatake YAMATO6077ad82014-12-24 20:59:32 +0900144 unix-yy-accept.awk \
145 unix-yy-connect.awk \
Dmitry V. Levinb60b2a52015-07-15 00:09:08 +0000146 xattr.expected \
Dmitry V. Levinfdfa7222014-09-23 00:14:04 +0000147 $(TESTS)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +0000148
Dmitry V. Levin107ceb92013-06-18 13:35:29 +0000149CLEANFILES = $(TESTS:=.tmp)