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 = \
54 print_quoted_string.c \
62 # end of libtests_a_SOURCES
63 libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
64 check_LIBRARIES = libtests.a
236 netlink_netlink_diag \
252 prctl-seccomp-filter-v \
253 prctl-seccomp-strict \
292 sched_get_priority_mxx \
293 sched_rr_get_interval \
372 unix-pair-send-recv \
373 unix-pair-sendto-recvfrom \
394 # end of check_PROGRAMS
396 attach_f_p_LDADD = -lrt -lpthread $(LDADD)
397 clock_xettime_LDADD = -lrt $(LDADD)
398 count_f_LDADD = -lpthread $(LDADD)
399 filter_unavailable_LDADD = -lpthread $(LDADD)
400 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
401 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
402 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
403 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
404 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
405 mq_LDADD = -lrt $(LDADD)
406 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
407 pc_LDADD = $(dl_LIBS) $(LDADD)
408 pread64_pwrite64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
409 preadv_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
410 preadv_pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
411 pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
412 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
413 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
414 times_LDADD = -lrt $(LDADD)
415 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
416 uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
418 stack_fcall_SOURCES = stack-fcall.c \
419 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
422 LIBUNWIND_TESTS = strace-k.test
450 clock_nanosleep.test \
452 copy_file_range.test \
554 lookup_dcookie.test \
584 net-icmp_filter.test \
588 net-yy-netlink.test \
591 netlink_protocol.test \
599 perf_event_open.test \
604 prctl-seccomp-filter-v.test \
605 prctl-seccomp-strict.test \
606 pread64-pwrite64.test \
607 preadv-pwritev.test \
608 preadv2-pwritev2.test \
611 process_vm_readv.test \
612 process_vm_writev.test \
619 quotactl-xfs-v.test \
628 recvmmsg-timeout.test \
630 remap_file_pages.test \
637 rt_sigprocmask.test \
638 rt_sigqueueinfo.test \
640 rt_sigtimedwait.test \
641 rt_tgsigqueueinfo.test \
642 sched_get_priority_mxx.test \
643 sched_rr_get_interval.test \
644 sched_xetaffinity.test \
646 sched_xetparam.test \
647 sched_xetscheduler.test \
650 seccomp-filter-v.test \
651 seccomp-filter.test \
652 seccomp-strict.test \
697 sync_file_range.test \
698 sync_file_range2.test \
705 timerfd_xettime.test \
719 unix-pair-send-recv.test \
720 unix-pair-sendto-recvfrom.test \
735 xet_robust_list.test \
740 # end of DECODER_TESTS
748 detach-running.test \
749 detach-sleeping.test \
750 detach-stopped.test \
751 filter-unavailable.test \
759 restart_syscall.test \
760 signal_receive.test \
773 TESTS = $(DECODER_TESTS) $(MISC_TESTS) $(LIBUNWIND_TESTS)
776 XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
777 XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
778 XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME))
780 TEST_LOG_COMPILER = env
781 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) MIPS_ABI=$(MIPS_ABI) $(srcdir)/run.sh
783 EXTRA_DIST = init.sh run.sh match.awk \
789 filter-unavailable.expected \
793 init_delete_module.h \
795 ipc_msgbuf.expected \
804 process_vm_readv_writev.c \
811 sigaltstack.expected \
825 unix-pair-send-recv.expected \
826 unix-pair-sendto-recvfrom.expected \
836 ksysent.h: $(srcdir)/ksysent.sed
837 echo '#include <asm/unistd.h>' | \
838 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
839 LC_COLLATE=C sed -r -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
843 BUILT_SOURCES = ksysent.h
844 CLEANFILES = ksysent.h $(TESTS:=.tmp)