]> granicus.if.org Git - strace/blob - tests/Makefile.am
Add copyright headers to some files which lack them
[strace] / tests / Makefile.am
1 # Automake input for strace tests.
2 #
3 # Copyright (c) 2011-2015 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 ARCH_MFLAGS =
31 AM_CFLAGS = $(WARN_CFLAGS)
32 AM_CPPFLAGS = $(ARCH_MFLAGS) \
33               -I$(builddir) \
34               -I$(top_builddir)/$(OS)/$(ARCH) \
35               -I$(top_srcdir)/$(OS)/$(ARCH) \
36               -I$(top_builddir)/$(OS) \
37               -I$(top_srcdir)/$(OS) \
38               -I$(top_builddir) \
39               -I$(top_srcdir)
40 AM_LDFLAGS = $(ARCH_MFLAGS)
41
42 check_PROGRAMS = \
43         _newselect \
44         adjtimex \
45         aio \
46         bpf \
47         caps \
48         clock_nanosleep \
49         clock_xettime \
50         epoll_create1 \
51         eventfd \
52         execve \
53         execveat \
54         fanotify_mark \
55         fcntl \
56         fcntl64 \
57         file_handle \
58         filter-unavailable \
59         fstat \
60         fstat64 \
61         fstatat64 \
62         ftruncate \
63         ftruncate64 \
64         getdents \
65         getdents64 \
66         getrandom \
67         inet-accept-connect-send-recv \
68         inet-cmsg \
69         ioctl \
70         ip_mreq \
71         ipc_msg \
72         ipc_msgbuf \
73         ipc_sem \
74         ipc_shm \
75         ksysent \
76         llseek \
77         lseek \
78         lstat \
79         lstat64 \
80         membarrier \
81         memfd_create \
82         mlock2 \
83         mmap \
84         mmap64 \
85         mmsg \
86         mq \
87         nanosleep \
88         net-accept-connect \
89         netlink_inet_diag \
90         netlink_unix_diag \
91         newfstatat \
92         oldselect \
93         pc \
94         pipe \
95         ppoll \
96         pselect6 \
97         readdir \
98         readlink \
99         readlinkat \
100         restart_syscall \
101         rt_sigqueueinfo \
102         sched_xetattr \
103         scm_rights \
104         seccomp \
105         select \
106         sendfile \
107         sendfile64 \
108         set_ptracer_any \
109         sigaction \
110         sigaltstack \
111         signalfd \
112         sigreturn \
113         stack-fcall \
114         stat \
115         stat64 \
116         statfs \
117         sysinfo \
118         time \
119         timer_create \
120         timer_xettime \
121         timerfd_xettime \
122         times \
123         times-fail \
124         truncate \
125         truncate64 \
126         uid \
127         uid16 \
128         uid32 \
129         uio \
130         umount \
131         umount2 \
132         umovestr \
133         umovestr2 \
134         unix-pair-send-recv \
135         userfaultfd \
136         utime \
137         utimensat \
138         wait \
139         xattr \
140         xet_robust_list \
141         xetitimer \
142         xettimeofday \
143         # end of check_PROGRAMS
144
145 clock_xettime_LDADD = -lrt
146 filter_unavailable_LDADD = -lpthread
147 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
148 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
149 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
150 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
151 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
152 mq_LDADD = -lrt
153 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
154 pc_LDADD = $(dl_LIBS)
155 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
156 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
157 times_LDADD = -lrt
158 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
159 uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
160 stack_fcall_SOURCES = stack-fcall.c \
161         stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
162
163 TESTS = \
164         strace-f.test \
165         qual_syscall.test \
166         ksysent.test \
167         \
168         _newselect.test \
169         adjtimex.test \
170         aio.test \
171         bexecve.test \
172         bpf.test \
173         caps.test \
174         clock_nanosleep.test \
175         clock_xettime.test \
176         dumpio.test \
177         epoll_create1.test \
178         eventfd.test \
179         execve.test \
180         execveat.test \
181         fanotify_mark.test \
182         fcntl.test \
183         fcntl64.test \
184         file_handle.test \
185         filter-unavailable.test \
186         fstat.test \
187         fstat64.test \
188         fstatat64.test \
189         ftruncate.test \
190         ftruncate64.test \
191         getdents.test \
192         getdents64.test \
193         getrandom.test \
194         inet-cmsg.test \
195         ioctl.test \
196         ip_mreq.test \
197         ipc_msg.test \
198         ipc_msgbuf.test \
199         ipc_sem.test \
200         ipc_shm.test \
201         llseek.test \
202         lseek.test \
203         lstat.test \
204         lstat64.test \
205         membarrier.test \
206         memfd_create.test \
207         mlock2.test \
208         mmap.test \
209         mmap64.test \
210         mmsg.test \
211         mq.test \
212         nanosleep.test \
213         net-fd.test \
214         net-yy.test \
215         net.test \
216         newfstatat.test \
217         oldselect.test \
218         pc.test \
219         pipe.test \
220         ppoll.test \
221         pselect6.test \
222         readdir.test \
223         readlink.test \
224         readlinkat.test \
225         rt_sigqueueinfo.test \
226         sched_xetattr.test \
227         scm_rights-fd.test \
228         seccomp.test \
229         select.test \
230         sendfile.test \
231         sendfile64.test \
232         sigaction.test \
233         sigaltstack.test \
234         signalfd.test \
235         sigreturn.test \
236         stat.test \
237         stat64.test \
238         statfs.test \
239         sun_path.test \
240         sysinfo.test \
241         time.test \
242         timer_create.test \
243         timer_xettime.test \
244         timerfd_xettime.test \
245         times-fail.test \
246         times.test \
247         truncate.test \
248         truncate64.test \
249         uid.test \
250         uid16.test \
251         uid32.test \
252         uio.test \
253         umount.test \
254         umount2.test \
255         umovestr.test \
256         umovestr2.test \
257         unix-yy.test \
258         userfaultfd.test \
259         utime.test \
260         utimensat.test \
261         wait.test \
262         xattr.test \
263         xet_robust_list.test \
264         xetitimer.test \
265         xettimeofday.test \
266         \
267         count.test \
268         detach-sleeping.test \
269         detach-stopped.test \
270         detach-running.test \
271         restart_syscall.test \
272         strace-k.test
273
274 net-fd.log: net.log
275
276 TEST_LOG_COMPILER = env
277 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
278
279 EXTRA_DIST = init.sh run.sh match.awk \
280              caps.awk \
281              dumpio.expected \
282              epoll_create1.expected \
283              eventfd.expected \
284              execve.expected \
285              execve-v.expected \
286              execveat.expected \
287              execveat-v.expected \
288              fanotify_mark.expected \
289              filter-unavailable.expected \
290              fstatat.c \
291              fstatx.c \
292              ip_mreq.expected \
293              ipc.sh \
294              ipc_msgbuf.expected \
295              ksysent.sed \
296              lstatx.c \
297              memfd_create.expected \
298              mmsg.expected \
299              mq.expected \
300              net.expected \
301              net-fd.expected \
302              net-yy-accept.awk \
303              net-yy-connect.awk \
304              oldselect.expected \
305              pipe.expected \
306              ppoll.expected \
307              ppoll-v.expected \
308              sigaction.awk \
309              sigaltstack.expected \
310              signalfd.expected \
311              statfs.expected \
312              statx.sh \
313              struct_flock.c \
314              sun_path.expected \
315              uid.awk \
316              uio.expected \
317              umovestr.expected \
318              unix-yy-accept.awk \
319              unix-yy-connect.awk \
320              wait.expected \
321              xattr.expected \
322              xselect.c \
323              xstatx.c \
324              $(TESTS)
325
326 ksysent.h: $(srcdir)/ksysent.sed
327         echo '#include <asm/unistd.h>' | \
328                 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dD - > $@.t1
329         LC_COLLATE=C sed -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
330         mv -f $@.t2 $@
331         rm -f $@.t1
332
333 BUILT_SOURCES = ksysent.h
334 CLEANFILES = ksysent.h $(TESTS:=.tmp)