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 = \
53 print_quoted_string.c \
60 # end of libtests_a_SOURCES
61 libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
62 check_LIBRARIES = libtests.a
215 netlink_netlink_diag \
230 prctl-seccomp-filter-v \
231 prctl-seccomp-strict \
261 sched_get_priority_mxx \
262 sched_rr_get_interval \
339 unix-pair-send-recv \
360 # end of check_PROGRAMS
362 attach_f_p_LDADD = -lrt -lpthread $(LDADD)
363 clock_xettime_LDADD = -lrt $(LDADD)
364 count_f_LDADD = -lpthread $(LDADD)
365 filter_unavailable_LDADD = -lpthread $(LDADD)
366 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
367 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
368 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
369 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
370 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
371 mq_LDADD = -lrt $(LDADD)
372 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
373 pc_LDADD = $(dl_LIBS) $(LDADD)
374 pread64_pwrite64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
375 preadv_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
376 preadv_pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
377 pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
378 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
379 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
380 times_LDADD = -lrt $(LDADD)
381 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
382 uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
384 stack_fcall_SOURCES = stack-fcall.c \
385 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
388 LIBUNWIND_TESTS = strace-k.test
414 clock_nanosleep.test \
416 copy_file_range.test \
531 net-icmp_filter.test \
535 net-yy-netlink.test \
538 netlink_protocol.test \
550 prctl-seccomp-filter-v.test \
551 prctl-seccomp-strict.test \
552 pread64-pwrite64.test \
553 preadv-pwritev.test \
554 preadv2-pwritev2.test \
567 recvmmsg-timeout.test \
569 remap_file_pages.test \
575 rt_sigprocmask.test \
576 rt_sigqueueinfo.test \
578 rt_sigtimedwait.test \
579 rt_tgsigqueueinfo.test \
580 sched_get_priority_mxx.test \
581 sched_rr_get_interval.test \
582 sched_xetaffinity.test \
584 sched_xetparam.test \
585 sched_xetscheduler.test \
588 seccomp-filter-v.test \
589 seccomp-filter.test \
590 seccomp-strict.test \
633 sync_file_range.test \
634 sync_file_range2.test \
641 timerfd_xettime.test \
669 xet_robust_list.test \
674 # end of DECODER_TESTS
682 detach-running.test \
683 detach-sleeping.test \
684 detach-stopped.test \
686 filter-unavailable.test \
693 restart_syscall.test \
694 signal_receive.test \
707 TESTS = $(DECODER_TESTS) $(MISC_TESTS) $(LIBUNWIND_TESTS)
710 XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
711 XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
712 XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME))
714 TEST_LOG_COMPILER = env
715 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
717 EXTRA_DIST = init.sh run.sh match.awk \
722 fanotify_mark.expected \
723 filter-unavailable.expected \
729 ipc_msgbuf.expected \
732 memfd_create.expected \
744 sigaltstack.expected \
767 ksysent.h: $(srcdir)/ksysent.sed
768 echo '#include <asm/unistd.h>' | \
769 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
770 LC_COLLATE=C sed -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
774 BUILT_SOURCES = ksysent.h
775 CLEANFILES = ksysent.h $(TESTS:=.tmp)