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
261 netlink_netlink_diag \
276 perf_event_open_nonverbose \
277 perf_event_open_unabbrev \
292 prctl-seccomp-filter-v \
293 prctl-seccomp-strict \
310 qual_inject-error-signal \
343 sched_get_priority_mxx \
344 sched_rr_get_interval \
428 unix-pair-send-recv \
429 unix-pair-sendto-recvfrom \
453 # end of check_PROGRAMS
455 attach_f_p_LDADD = -lrt -lpthread $(LDADD)
456 clock_xettime_LDADD = -lrt $(LDADD)
457 count_f_LDADD = -lpthread $(LDADD)
458 filter_unavailable_LDADD = -lpthread $(LDADD)
459 fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
460 fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
461 ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
462 lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
463 mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
464 mq_LDADD = -lrt $(LDADD)
465 mq_sendrecv_LDADD = -lrt $(LDADD)
466 mq_sendrecv_read_LDADD = -lrt $(LDADD)
467 mq_sendrecv_write_LDADD = -lrt $(LDADD)
468 newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
469 pc_LDADD = $(dl_LIBS) $(LDADD)
470 pread64_pwrite64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
471 preadv_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
472 preadv_pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
473 pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
474 stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
475 statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
476 threads_execve_LDADD = -lrt -lpthread $(LDADD)
477 times_LDADD = -lrt $(LDADD)
478 truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
479 uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
481 stack_fcall_SOURCES = stack-fcall.c \
482 stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
487 LIBUNWIND_TESTS = strace-k.test
512 ioctl_sock_gifconf.test \
519 net-yy-netlink.test \
522 netlink_protocol.test \
528 prctl-arg2-intptr.test \
529 prctl-dumpable.test \
532 prctl-pdeathsig.test \
533 prctl-seccomp-filter-v.test \
534 prctl-seccomp-strict.test \
535 prctl-securebits.test \
536 prctl-tid_address.test \
538 pread64-pwrite64.test \
539 qual_fault-exit_group.test \
545 seccomp-strict.test \
557 unix-pair-send-recv.test \
558 unix-pair-sendto-recvfrom.test \
560 # end of DECODER_TESTS
568 detach-running.test \
569 detach-sleeping.test \
570 detach-stopped.test \
571 filter-unavailable.test \
575 options-syntax.test \
577 qual_fault-syntax.test \
579 qual_inject-error-signal.test \
580 qual_inject-retval.test \
581 qual_inject-signal.test \
582 qual_inject-syntax.test \
587 restart_syscall.test \
598 threads-execve.test \
601 TESTS = $(GEN_TESTS) $(DECODER_TESTS) $(MISC_TESTS) $(LIBUNWIND_TESTS)
604 XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
605 XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
606 XFAIL_TESTS_x86_64 = int_0x80.gen.test
607 XFAIL_TESTS_x32 = int_0x80.gen.test
608 XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME)) $(XFAIL_TESTS_$(ARCH))
610 TEST_LOG_COMPILER = env
611 AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) MIPS_ABI=$(MIPS_ABI) $(srcdir)/run.sh
613 @VALGRIND_CHECK_RULES@
614 VALGRIND_FLAGS = --quiet
615 VALGRIND_SUPPRESSIONS_FILES = $(srcdir)/strace.supp
617 EXTRA_DIST = gen_tests.in gen_tests.sh init.sh run.sh match.awk \
623 filter-unavailable.expected \
627 init_delete_module.h \
630 ipc_msgbuf.expected \
636 process_vm_readv_writev.c \
637 pure_executables.list \
638 qual_fault-exit_group.expected \
639 qual_inject-error-signal.expected \
640 qual_inject-signal.expected \
648 sigaltstack.expected \
662 unix-pair-send-recv.expected \
663 unix-pair-sendto-recvfrom.expected \
673 ksysent.h: $(srcdir)/ksysent.sed
674 echo '#include <asm/unistd.h>' | \
675 $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
676 LC_COLLATE=C sed -r -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
680 ksysent.$(OBJEXT): ksysent.h
682 objects = $(filter %.$(OBJEXT),$(SOURCES:.c=.$(OBJEXT)))
685 clean-local: clean-local-check
686 .PHONY: clean-local-check
688 -rm -rf -- $(TESTS:.test=.dir) $(GEN_TESTS:.gen.test=.dir)
690 CLEANFILES = ksysent.h