]> granicus.if.org Git - strace/blob - tests/Makefile.am
tests: add rt_sigprocmask.test
[strace] / tests / Makefile.am
1 # Automake input for strace tests.
2 #
3 # Copyright (c) 2011-2016 Dmitry V. Levin <ldv@altlinux.org>
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 # 1. Redistributions of source code must retain the above copyright
10 #    notice, this list of conditions and the following disclaimer.
11 # 2. Redistributions in binary form must reproduce the above copyright
12 #    notice, this list of conditions and the following disclaimer in the
13 #    documentation and/or other materials provided with the distribution.
14 # 3. The name of the author may not be used to endorse or promote products
15 #    derived from this software without specific prior written permission.
16 #
17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28 OS = linux
29 ARCH = @arch@
30 MPERS_NAME =
31 ARCH_MFLAGS =
32 AM_CFLAGS = $(WARN_CFLAGS)
33 AM_CPPFLAGS = $(ARCH_MFLAGS) \
34               -I$(builddir) \
35               -I$(top_builddir)/$(OS)/$(ARCH) \
36               -I$(top_srcdir)/$(OS)/$(ARCH) \
37               -I$(top_builddir)/$(OS) \
38               -I$(top_srcdir)/$(OS) \
39               -I$(top_builddir) \
40               -I$(top_srcdir)
41 AM_LDFLAGS = $(ARCH_MFLAGS)
42
43 libtests_a_SOURCES = \
44         error_msg.c \
45         get_page_size.c \
46         hexdump_strdup.c \
47         hexquote_strndup.c \
48         inode_of_sockfd.c \
49         tail_alloc.c \
50         tests.h \
51         tprintf.c \
52         # end of libtests_a_SOURCES
53 libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
54 check_LIBRARIES = libtests.a
55 LDADD = libtests.a
56
57 check_PROGRAMS = \
58         _newselect \
59         adjtimex \
60         aio \
61         alarm \
62         attach-f-p \
63         attach-p-cmd-cmd \
64         attach-p-cmd-p \
65         bpf \
66         caps \
67         clock_nanosleep \
68         clock_xettime \
69         copy_file_range \
70         epoll_create1 \
71         eventfd \
72         execve \
73         execve-v \
74         execveat \
75         execveat-v \
76         fanotify_mark \
77         fcntl \
78         fcntl64 \
79         file_handle \
80         filter-unavailable \
81         fork-f \
82         fstat \
83         fstat64 \
84         fstatat64 \
85         ftruncate \
86         ftruncate64 \
87         getdents \
88         getdents64 \
89         getrandom \
90         getxxid \
91         inet-cmsg \
92         ioctl \
93         ip_mreq \
94         ipc_msg \
95         ipc_msgbuf \
96         ipc_sem \
97         ipc_shm \
98         ksysent \
99         llseek \
100         lseek \
101         lstat \
102         lstat64 \
103         membarrier \
104         memfd_create \
105         mincore \
106         mlock2 \
107         mmap \
108         mmap64 \
109         mmsg \
110         mq \
111         nanosleep \
112         net-accept-connect \
113         net-y-unix \
114         net-yy-inet \
115         net-yy-unix \
116         netlink_inet_diag \
117         netlink_unix_diag \
118         newfstatat \
119         oldselect \
120         pc \
121         personality \
122         pipe \
123         poll \
124         ppoll \
125         pselect6 \
126         readdir \
127         readlink \
128         readlinkat \
129         readv \
130         recvmsg \
131         restart_syscall \
132         rt_sigpending \
133         rt_sigprocmask \
134         rt_sigqueueinfo \
135         sched_xetaffinity \
136         sched_xetattr \
137         scm_rights \
138         seccomp \
139         select \
140         sendfile \
141         sendfile64 \
142         set_ptracer_any \
143         sigaction \
144         sigaltstack \
145         signalfd \
146         sigreturn \
147         splice \
148         stack-fcall \
149         sleep \
150         stat \
151         stat64 \
152         statfs \
153         sysinfo \
154         tee \
155         time \
156         timer_create \
157         timer_xettime \
158         timerfd_xettime \
159         times \
160         times-fail \
161         truncate \
162         truncate64 \
163         uid \
164         uid16 \
165         uid32 \
166         uio \
167         umount \
168         umount2 \
169         umovestr \
170         umovestr2 \
171         unix-pair-send-recv \
172         userfaultfd \
173         utime \
174         utimensat \
175         vfork-f \
176         vmsplice \
177         wait \
178         xattr \
179         xet_robust_list \
180         xetitimer \
181         xetpgid \
182         xettimeofday \
183         # end of check_PROGRAMS
184
185 attach_f_p_LDADD = -lrt -lpthread $(LDADD)
186 clock_xettime_LDADD = -lrt $(LDADD)
187 filter_unavailable_LDADD = -lpthread $(LDADD)
188 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
189 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
190 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
191 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
192 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
193 mq_LDADD = -lrt $(LDADD)
194 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
195 pc_LDADD = $(dl_LIBS) $(LDADD)
196 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
197 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
198 times_LDADD = -lrt $(LDADD)
199 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
200 uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
201 stack_fcall_SOURCES = stack-fcall.c \
202         stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
203
204 if USE_LIBUNWIND
205 LIBUNWIND_TESTS = strace-k.test
206 else
207 LIBUNWIND_TESTS =
208 endif
209
210 TESTS = \
211         strace-f.test \
212         qual_syscall.test \
213         ksysent.test \
214         \
215         _newselect.test \
216         adjtimex.test \
217         aio.test \
218         alarm.test \
219         bexecve.test \
220         bpf.test \
221         caps.test \
222         clock_nanosleep.test \
223         clock_xettime.test \
224         copy_file_range.test \
225         dumpio.test \
226         epoll_create1.test \
227         eventfd.test \
228         execve.test \
229         execve-v.test \
230         execveat.test \
231         execveat-v.test \
232         fanotify_mark.test \
233         fcntl.test \
234         fcntl64.test \
235         file_handle.test \
236         filter-unavailable.test \
237         fork-f.test \
238         fstat.test \
239         fstat64.test \
240         fstatat64.test \
241         ftruncate.test \
242         ftruncate64.test \
243         getdents.test \
244         getdents64.test \
245         getrandom.test \
246         getxxid.test \
247         inet-cmsg.test \
248         ioctl.test \
249         ip_mreq.test \
250         ipc_msg.test \
251         ipc_msgbuf.test \
252         ipc_sem.test \
253         ipc_shm.test \
254         llseek.test \
255         lseek.test \
256         lstat.test \
257         lstat64.test \
258         membarrier.test \
259         memfd_create.test \
260         mincore.test \
261         mlock2.test \
262         mmap.test \
263         mmap64.test \
264         mmsg.test \
265         mq.test \
266         nanosleep.test \
267         net-y-unix.test \
268         net-yy-inet.test \
269         net-yy-unix.test \
270         net.test \
271         newfstatat.test \
272         oldselect.test \
273         pc.test \
274         personality.test \
275         pipe.test \
276         poll.test \
277         ppoll.test \
278         pselect6.test \
279         readdir.test \
280         readlink.test \
281         readlinkat.test \
282         readv.test \
283         recvmsg.test \
284         rt_sigpending.test \
285         rt_sigprocmask.test \
286         rt_sigqueueinfo.test \
287         sched_xetaffinity.test \
288         sched_xetattr.test \
289         scm_rights-fd.test \
290         seccomp.test \
291         select.test \
292         sendfile.test \
293         sendfile64.test \
294         sigaction.test \
295         sigaltstack.test \
296         signalfd.test \
297         sigreturn.test \
298         splice.test \
299         stat.test \
300         stat64.test \
301         statfs.test \
302         sun_path.test \
303         sysinfo.test \
304         tee.test \
305         time.test \
306         timer_create.test \
307         timer_xettime.test \
308         timerfd_xettime.test \
309         times-fail.test \
310         times.test \
311         truncate.test \
312         truncate64.test \
313         uid.test \
314         uid16.test \
315         uid32.test \
316         uio.test \
317         umount.test \
318         umount2.test \
319         umovestr.test \
320         umovestr2.test \
321         userfaultfd.test \
322         utime.test \
323         utimensat.test \
324         vfork-f.test \
325         vmsplice.test \
326         wait.test \
327         xattr.test \
328         xet_robust_list.test \
329         xetitimer.test \
330         xetpgid.test \
331         xettimeofday.test \
332         \
333         count.test \
334         attach-f-p.test \
335         attach-p-cmd.test \
336         detach-sleeping.test \
337         detach-stopped.test \
338         detach-running.test \
339         opipe.test \
340         redirect.test \
341         restart_syscall.test \
342         $(LIBUNWIND_TESTS)
343
344 XFAIL_TESTS_ =
345 XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
346 XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
347 XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME))
348
349 TEST_LOG_COMPILER = env
350 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
351
352 EXTRA_DIST = init.sh run.sh match.awk \
353              caps.awk \
354              dumpio.expected \
355              eventfd.expected \
356              fanotify_mark.expected \
357              filter-unavailable.expected \
358              fstatat.c \
359              fstatx.c \
360              ip_mreq.expected \
361              ipc.sh \
362              ipc_msgbuf.expected \
363              ksysent.sed \
364              lstatx.c \
365              memfd_create.expected \
366              mq.expected \
367              net.expected \
368              oldselect.expected \
369              pipe.expected \
370              ppoll.expected \
371              ppoll-v.expected \
372              sigaction.awk \
373              sigaltstack.expected \
374              signalfd.expected \
375              statfs.expected \
376              statx.sh \
377              struct_flock.c \
378              sun_path.expected \
379              uid.awk \
380              uio.expected \
381              umovestr.expected \
382              wait.expected \
383              xattr.expected \
384              xselect.c \
385              xstatx.c \
386              $(TESTS)
387
388 ksysent.h: $(srcdir)/ksysent.sed
389         echo '#include <asm/unistd.h>' | \
390                 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
391         LC_COLLATE=C sed -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
392         mv -f $@.t2 $@
393         rm -f $@.t1
394
395 BUILT_SOURCES = ksysent.h
396 CLEANFILES = ksysent.h $(TESTS:=.tmp)