1 # Automake input for strace tests.
3 # Copyright (c) 2011-2016 Dmitry V. Levin <ldv@altlinux.org>
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
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.
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.
32 AM_CFLAGS = $(WARN_CFLAGS)
33 AM_CPPFLAGS = $(ARCH_MFLAGS) \
35 -I$(top_builddir)/$(OS)/$(ARCH) \
36 -I$(top_srcdir)/$(OS)/$(ARCH) \
37 -I$(top_builddir)/$(OS) \
38 -I$(top_srcdir)/$(OS) \
41 AM_LDFLAGS = $(ARCH_MFLAGS)
43 libtests_a_SOURCES = \
50 # end of libtests_a_SOURCES
51 libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
52 check_LIBRARIES = libtests.a
82 inet-accept-connect-send-recv \
151 unix-pair-send-recv \
161 # end of check_PROGRAMS
163 clock_xettime_LDADD = -lrt $(LDADD)
164 filter_unavailable_LDADD = -lpthread $(LDADD)
165 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
166 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
167 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
168 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
169 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
170 mq_LDADD = -lrt $(LDADD)
171 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
172 pc_LDADD = $(dl_LIBS) $(LDADD)
173 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
174 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
175 times_LDADD = -lrt $(LDADD)
176 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
177 uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
178 stack_fcall_SOURCES = stack-fcall.c \
179 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
182 LIBUNWIND_TESTS = strace-k.test
198 clock_nanosleep.test \
209 filter-unavailable.test \
252 rt_sigqueueinfo.test \
253 sched_xetaffinity.test \
272 timerfd_xettime.test \
292 xet_robust_list.test \
297 detach-sleeping.test \
298 detach-stopped.test \
299 detach-running.test \
300 restart_syscall.test \
304 XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
305 XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
306 XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME))
310 TEST_LOG_COMPILER = env
311 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
313 EXTRA_DIST = init.sh run.sh match.awk \
320 execveat-v.expected \
321 fanotify_mark.expected \
322 filter-unavailable.expected \
327 ipc_msgbuf.expected \
330 memfd_create.expected \
341 sigaltstack.expected \
351 unix-yy-connect.awk \
358 ksysent.h: $(srcdir)/ksysent.sed
359 echo '#include <asm/unistd.h>' | \
360 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dD - > $@.t1
361 LC_COLLATE=C sed -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
365 BUILT_SOURCES = ksysent.h
366 CLEANFILES = ksysent.h $(TESTS:=.tmp)