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 = \
56 print_quoted_string.c \
65 # end of libtests_a_SOURCES
66 libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
67 check_LIBRARIES = libtests.a
70 include pure_executables.am
72 check_PROGRAMS = $(PURE_EXECUTABLES) \
100 netlink_netlink_diag \
104 perf_event_open_nonverbose \
105 perf_event_open_unabbrev \
107 prctl-seccomp-filter-v \
108 prctl-seccomp-strict \
111 qual_inject-error-signal \
127 unix-pair-send-recv \
128 unix-pair-sendto-recvfrom \
132 # end of check_PROGRAMS
134 attach_f_p_LDADD = -lrt -lpthread $(LDADD)
135 clock_xettime_LDADD = -lrt $(LDADD)
136 count_f_LDADD = -lpthread $(LDADD)
137 filter_unavailable_LDADD = -lpthread $(LDADD)
138 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
139 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
140 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
141 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
142 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
143 mq_LDADD = -lrt $(LDADD)
144 mq_sendrecv_LDADD = -lrt $(LDADD)
145 mq_sendrecv_read_LDADD = -lrt $(LDADD)
146 mq_sendrecv_write_LDADD = -lrt $(LDADD)
147 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
148 pc_LDADD = $(dl_LIBS) $(LDADD)
149 pread64_pwrite64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
150 preadv_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
151 preadv_pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
152 pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
153 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
154 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
155 threads_execve_LDADD = -lrt -lpthread $(LDADD)
156 times_LDADD = -lrt $(LDADD)
157 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
158 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
166 LIBUNWIND_TESTS = strace-k.test
191 ioctl_sock_gifconf.test \
198 net-yy-netlink.test \
206 prctl-arg2-intptr.test \
207 prctl-dumpable.test \
210 prctl-pdeathsig.test \
211 prctl-seccomp-filter-v.test \
212 prctl-seccomp-strict.test \
213 prctl-securebits.test \
214 prctl-tid_address.test \
216 pread64-pwrite64.test \
217 qual_fault-exit_group.test \
223 seccomp-strict.test \
234 unix-pair-send-recv.test \
235 unix-pair-sendto-recvfrom.test \
236 # end of DECODER_TESTS
244 detach-running.test \
245 detach-sleeping.test \
246 detach-stopped.test \
247 filter-unavailable.test \
251 options-syntax.test \
253 qual_fault-syntax.test \
255 qual_inject-error-signal.test \
256 qual_inject-retval.test \
257 qual_inject-signal.test \
258 qual_inject-syntax.test \
263 restart_syscall.test \
274 threads-execve.test \
277 TESTS = $(GEN_TESTS) $(DECODER_TESTS) $(MISC_TESTS) $(LIBUNWIND_TESTS)
280 XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
281 XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
282 XFAIL_TESTS_x86_64 = int_0x80.gen.test
283 XFAIL_TESTS_x32 = int_0x80.gen.test
284 XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME)) $(XFAIL_TESTS_$(ARCH))
286 TEST_LOG_COMPILER = env
287 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) MIPS_ABI=$(MIPS_ABI) $(srcdir)/run.sh
289 @VALGRIND_CHECK_RULES@
290 VALGRIND_FLAGS = --quiet
291 VALGRIND_SUPPRESSIONS_FILES = $(srcdir)/strace.supp
299 filter-unavailable.expected \
302 gen_pure_executables.sh \
307 init_delete_module.h \
310 ipc_msgbuf.expected \
317 process_vm_readv_writev.c \
318 pure_executables.list \
319 qual_fault-exit_group.expected \
320 qual_inject-error-signal.expected \
321 qual_inject-signal.expected \
330 sigaltstack.expected \
344 unix-pair-send-recv.expected \
345 unix-pair-sendto-recvfrom.expected \
356 ksysent.h: $(srcdir)/ksysent.sed
357 echo '#include <asm/unistd.h>' | \
358 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
359 LC_COLLATE=C sed -r -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
363 ksysent.$(OBJEXT): ksysent.h
365 objects = $(filter %.$(OBJEXT),$(SOURCES:.c=.$(OBJEXT)))
368 clean-local: clean-local-check
369 .PHONY: clean-local-check
371 -rm -rf -- $(TESTS:.test=.dir) $(GEN_TESTS:.gen.test=.dir)
373 CLEANFILES = ksysent.h