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 = \
55 print_quoted_string.c \
63 # end of libtests_a_SOURCES
64 libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
65 check_LIBRARIES = libtests.a
248 netlink_netlink_diag \
262 perf_event_open_nonverbose \
264 perf_event_open_unabbrev \
275 prctl-seccomp-filter-v \
276 prctl-seccomp-strict \
319 sched_get_priority_mxx \
320 sched_rr_get_interval \
401 unix-pair-send-recv \
402 unix-pair-sendto-recvfrom \
424 # end of check_PROGRAMS
426 attach_f_p_LDADD = -lrt -lpthread $(LDADD)
427 clock_xettime_LDADD = -lrt $(LDADD)
428 count_f_LDADD = -lpthread $(LDADD)
429 filter_unavailable_LDADD = -lpthread $(LDADD)
430 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
431 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
432 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
433 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
434 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
435 mq_LDADD = -lrt $(LDADD)
436 mq_sendrecv_LDADD = -lrt $(LDADD)
437 mq_sendrecv_read_LDADD = -lrt $(LDADD)
438 mq_sendrecv_write_LDADD = -lrt $(LDADD)
439 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
440 pc_LDADD = $(dl_LIBS) $(LDADD)
441 pread64_pwrite64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
442 preadv_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
443 preadv_pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
444 pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
445 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
446 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
447 threads_execve_LDADD = -lrt -lpthread $(LDADD)
448 times_LDADD = -lrt $(LDADD)
449 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
450 uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
452 stack_fcall_SOURCES = stack-fcall.c \
453 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
456 LIBUNWIND_TESTS = strace-k.test
484 clock_nanosleep.test \
486 copy_file_range.test \
509 fault_injection-exit_group.test \
585 kexec_file_load.test \
594 lookup_dcookie.test \
620 mq_sendrecv-read.test \
621 mq_sendrecv-write.test \
627 net-icmp_filter.test \
631 net-yy-netlink.test \
634 netlink_protocol.test \
645 perf_event_open_nonverbose.test \
646 perf_event_open.test \
647 perf_event_open_unabbrev.test \
655 prctl-dumpable.test \
657 prctl-pdeathsig.test \
658 prctl-seccomp-filter-v.test \
659 prctl-seccomp-strict.test \
660 prctl-securebits.test \
662 pread64-pwrite64.test \
663 preadv-pwritev.test \
664 preadv2-pwritev2.test \
667 process_vm_readv.test \
668 process_vm_writev.test \
675 quotactl-xfs-v.test \
684 recvmmsg-timeout.test \
686 remap_file_pages.test \
693 rt_sigprocmask.test \
694 rt_sigqueueinfo.test \
696 rt_sigtimedwait.test \
697 rt_tgsigqueueinfo.test \
698 sched_get_priority_mxx.test \
699 sched_rr_get_interval.test \
700 sched_xetaffinity.test \
702 sched_xetparam.test \
703 sched_xetscheduler.test \
706 seccomp-filter-v.test \
707 seccomp-filter.test \
708 seccomp-strict.test \
754 sync_file_range.test \
755 sync_file_range2.test \
762 timerfd_xettime.test \
776 unix-pair-send-recv.test \
777 unix-pair-sendto-recvfrom.test \
793 xet_robust_list.test \
798 # end of DECODER_TESTS
806 detach-running.test \
807 detach-sleeping.test \
808 detach-stopped.test \
809 fault_injection.test \
811 filter-unavailable.test \
815 options-syntax.test \
821 restart_syscall.test \
822 signal_receive.test \
833 threads-execve.test \
837 TESTS = $(DECODER_TESTS) $(MISC_TESTS) $(LIBUNWIND_TESTS)
840 XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
841 XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
842 XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME))
844 TEST_LOG_COMPILER = env
845 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) MIPS_ABI=$(MIPS_ABI) $(srcdir)/run.sh
847 @VALGRIND_CHECK_RULES@
848 VALGRIND_FLAGS = --quiet
849 VALGRIND_SUPPRESSIONS_FILES = $(srcdir)/strace.supp
851 EXTRA_DIST = init.sh run.sh match.awk \
857 fault_injection-exit_group.expected \
859 filter-unavailable.expected \
863 init_delete_module.h \
865 ipc_msgbuf.expected \
874 process_vm_readv_writev.c \
881 sigaltstack.expected \
897 unix-pair-send-recv.expected \
898 unix-pair-sendto-recvfrom.expected \
908 ksysent.h: $(srcdir)/ksysent.sed
909 echo '#include <asm/unistd.h>' | \
910 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
911 LC_COLLATE=C sed -r -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
915 BUILT_SOURCES = ksysent.h
916 CLEANFILES = ksysent.h $(TESTS:=.tmp)