strace/tests/Makefile.am

441 lines
10 KiB
Makefile
Raw Normal View History

# Automake input for strace tests.
#
# Copyright (c) 2011-2016 Dmitry V. Levin <ldv@altlinux.org>
2017-05-22 20:14:52 +03:00
# Copyright (c) 2011-2017 The strace developers.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OS = linux
ARCH = @arch@
NATIVE_ARCH = @arch_native@
MPERS_NAME =
MPERS_CC_FLAGS =
ARCH_MFLAGS =
AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS = $(ARCH_MFLAGS) \
-I$(builddir) \
-I$(top_builddir)/$(OS)/$(ARCH) \
-I$(top_srcdir)/$(OS)/$(ARCH) \
-I$(top_builddir)/$(OS) \
-I$(top_srcdir)/$(OS) \
-I$(top_builddir) \
-I$(top_srcdir)
AM_LDFLAGS = $(ARCH_MFLAGS)
libtests_a_SOURCES = \
create_nl_socket.c \
errno2name.c \
error_msg.c \
fill_memory.c \
get_page_size.c \
get_sigset_size.c \
hexdump_strdup.c \
hexquote_strndup.c \
ifindex.c \
inode_of_sockfd.c \
libmmsg.c \
libsocketcall.c \
overflowuid.c \
pipe_maxfd.c \
print_quoted_string.c \
print_time.c \
printflags.c \
printxval.c \
signal2name.c \
skip_unavailable.c \
sprintrc.c \
tail_alloc.c \
test_netlink.h \
test_nlattr.h \
test_printpath.c \
test_printstrn.c \
test_ucopy.c \
test_ucopy.h \
tests.h \
tprintf.c \
# end of libtests_a_SOURCES
libtests_a_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
check_LIBRARIES = libtests.a
LDADD = libtests.a
include pure_executables.am
check_PROGRAMS = $(PURE_EXECUTABLES) \
answer \
attach-f-p \
attach-f-p-cmd \
attach-p-cmd-cmd \
attach-p-cmd-p \
block_reset_raise_run \
caps-abbrev \
check_sigblock \
check_sigign \
clone_parent \
clone_ptrace \
count-f \
execve-v \
execveat-v \
filter-unavailable \
fork-f \
getpid \
getppid \
gettid \
int_0x80 \
ioctl_dm-v \
ioctl_evdev-v \
ioctl_loop-nv \
ioctl_loop-v \
ioctl_nsfs \
ioctl_rtc-v \
is_linux_mips_n64 \
ksysent \
list_sigaction_signum \
mmsg-silent \
mmsg_name-v \
msg_control-v \
net-accept-connect \
netlink_inet_diag \
netlink_netlink_diag \
netlink_unix_diag \
nsyscalls \
nsyscalls-d \
pc \
perf_event_open_nonverbose \
perf_event_open_unabbrev \
ppoll-v \
prctl-seccomp-filter-v \
prctl-seccomp-strict \
print_maxfd \
qual_fault \
qual_inject-error-signal \
qual_inject-retval \
qual_inject-signal \
qual_signal \
quotactl-v \
quotactl-xfs-v \
redirect-fds \
restart_syscall \
run_expect_termsig \
scm_rights \
seccomp-filter-v \
seccomp-strict \
set_ptracer_any \
set_sigblock \
set_sigign \
signal_receive \
sleep \
stack-fcall \
stack-fcall-mangled \
threads-execve \
unblock_reset_raise \
unix-pair-send-recv \
unix-pair-sendto-recvfrom \
vfork-f \
wait4-v \
waitid-v \
zeroargc \
# end of check_PROGRAMS
attach_f_p_LDADD = -lrt -lpthread $(LDADD)
clock_xettime_LDADD = -lrt $(LDADD)
count_f_LDADD = -lpthread $(LDADD)
filter_unavailable_LDADD = -lpthread $(LDADD)
fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
mq_LDADD = -lrt $(LDADD)
mq_sendrecv_LDADD = -lrt $(LDADD)
mq_sendrecv_read_LDADD = -lrt $(LDADD)
mq_sendrecv_write_LDADD = -lrt $(LDADD)
newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
pc_LDADD = $(dl_LIBS) $(LDADD)
pread64_pwrite64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
preadv_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
preadv_pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
pwritev_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
threads_execve_LDADD = -lrt -lpthread $(LDADD)
times_LDADD = -lrt $(LDADD)
truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64
stack_fcall_SOURCES = stack-fcall.c \
stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
stack_fcall_mangled_SOURCES = stack-fcall-mangled.c \
stack-fcall-mangled-0.c stack-fcall-mangled-1.c \
stack-fcall-mangled-2.c stack-fcall-mangled-3.c
tests: tabulate stereotypical test scripts Convert test scripts that follow simple testing patterns to a table. Generate all these scripts from gen_tests.in file using gen_tests.sh script at bootstrap time. The largest set of test scripts has been converted using the following command: grep -l ^run_strace_match_diff *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' || sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f" done The second largest set of test scripts has been converted using the following command: grep -l srcdir= *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Fvq srcdir= || sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f" done * tests/gen_tests.in: New file. * tests/gen_tests.sh: New file. * bootstrap: Invoke it. * tests/.gitignore: Add *.gen.test and gen_tests.am. * tests/_newselect.test: Remove. * tests/accept.test: Ditto. * tests/accept4.test: Ditto. * tests/access.test: Ditto. * tests/acct.test: Ditto. * tests/add_key.test: Ditto. * tests/adjtimex.test: Ditto. * tests/aio.test: Ditto. * tests/alarm.test: Ditto. * tests/bpf.test: Ditto. * tests/btrfs.test: Ditto. * tests/chmod.test: Ditto. * tests/chown.test: Ditto. * tests/chown32.test: Ditto. * tests/chroot.test: Ditto. * tests/clock_adjtime.test: Ditto. * tests/clock_nanosleep.test: Ditto. * tests/clock_xettime.test: Ditto. * tests/copy_file_range.test: Ditto. * tests/creat.test: Ditto. * tests/delete_module.test: Ditto. * tests/dup.test: Ditto. * tests/dup2.test: Ditto. * tests/dup3.test: Ditto. * tests/epoll_create.test: Ditto. * tests/epoll_create1.test: Ditto. * tests/epoll_ctl.test: Ditto. * tests/epoll_pwait.test: Ditto. * tests/epoll_wait.test: Ditto. * tests/erestartsys.test: Ditto. * tests/execveat-v.test: Ditto. * tests/execveat.test: Ditto. * tests/faccessat.test: Ditto. * tests/fadvise64_64.test: Ditto. * tests/fallocate.test: Ditto. * tests/fanotify_init.test: Ditto. * tests/fanotify_mark.test: Ditto. * tests/fchdir.test: Ditto. * tests/fchmod.test: Ditto. * tests/fchmodat.test: Ditto. * tests/fchown.test: Ditto. * tests/fchown32.test: Ditto. * tests/fchownat.test: Ditto. * tests/fcntl.test: Ditto. * tests/fcntl64.test: Ditto. * tests/fdatasync.test: Ditto. * tests/file_handle.test: Ditto. * tests/file_ioctl.test: Ditto. * tests/finit_module.test: Ditto. * tests/flock.test: Ditto. * tests/fork-f.test: Ditto. * tests/fstat64.test: Ditto. * tests/fstatat64.test: Ditto. * tests/fstatfs.test: Ditto. * tests/fstatfs64.test: Ditto. * tests/fsync.test: Ditto. * tests/ftruncate.test: Ditto. * tests/ftruncate64.test: Ditto. * tests/futimesat.test: Ditto. * tests/get_mempolicy.test: Ditto. * tests/getcpu.test: Ditto. * tests/getcwd.test: Ditto. * tests/getdents.test: Ditto. * tests/getdents64.test: Ditto. * tests/getegid.test: Ditto. * tests/getegid32.test: Ditto. * tests/geteuid.test: Ditto. * tests/geteuid32.test: Ditto. * tests/getgid.test: Ditto. * tests/getgid32.test: Ditto. * tests/getgroups.test: Ditto. * tests/getgroups32.test: Ditto. * tests/getpeername.test: Ditto. * tests/getpgrp.test: Ditto. * tests/getrandom.test: Ditto. * tests/getresgid.test: Ditto. * tests/getresgid32.test: Ditto. * tests/getresuid.test: Ditto. * tests/getresuid32.test: Ditto. * tests/getrlimit.test: Ditto. * tests/getrusage.test: Ditto. * tests/getsid.test: Ditto. * tests/getsockname.test: Ditto. * tests/getuid32.test: Ditto. * tests/getxxid.test: Ditto. * tests/inet-cmsg.test: Ditto. * tests/init_module.test: Ditto. * tests/inotify.test: Ditto. * tests/inotify_init1.test: Ditto. * tests/int_0x80.test: Ditto. * tests/ioctl_block.test: Ditto. * tests/ioctl_evdev.test: Ditto. * tests/ioctl_loop.test: Ditto. * tests/ioctl_mtd.test: Ditto. * tests/ioctl_rtc.test: Ditto. * tests/ioctl_scsi.test: Ditto. * tests/ioctl_sg_io_v3.test: Ditto. * tests/ioctl_sg_io_v4.test: Ditto. * tests/ioctl_uffdio.test: Ditto. * tests/ioctl_v4l2.test: Ditto. * tests/ioperm.test: Ditto. * tests/iopl.test: Ditto. * tests/ioprio.test: Ditto. * tests/ip_mreq.test: Ditto. * tests/ipc.test: Ditto. * tests/ipc_msg.test: Ditto. * tests/ipc_sem.test: Ditto. * tests/ipc_shm.test: Ditto. * tests/kcmp.test: Ditto. * tests/kexec_file_load.test: Ditto. * tests/kexec_load.test: Ditto. * tests/keyctl.test: Ditto. * tests/kill.test: Ditto. * tests/lchown.test: Ditto. * tests/lchown32.test: Ditto. * tests/link.test: Ditto. * tests/linkat.test: Ditto. * tests/lookup_dcookie.test: Ditto. * tests/lstat.test: Ditto. * tests/lstat64.test: Ditto. * tests/mbind.test: Ditto. * tests/membarrier.test: Ditto. * tests/memfd_create.test: Ditto. * tests/migrate_pages.test: Ditto. * tests/mincore.test: Ditto. * tests/mkdir.test: Ditto. * tests/mkdirat.test: Ditto. * tests/mknod.test: Ditto. * tests/mknodat.test: Ditto. * tests/mlock.test: Ditto. * tests/mlock2.test: Ditto. * tests/mlockall.test: Ditto. * tests/mmap64.test: Ditto. * tests/mmsg-silent.test: Ditto. * tests/mmsg.test: Ditto. * tests/mmsg_name-v.test: Ditto. * tests/mmsg_name.test: Ditto. * tests/mount.test: Ditto. * tests/move_pages.test: Ditto. * tests/mq.test: Ditto. * tests/mq_sendrecv-read.test: Ditto. * tests/mq_sendrecv-write.test: Ditto. * tests/mq_sendrecv.test: Ditto. * tests/msg_control-v.test: Ditto. * tests/msg_control.test: Ditto. * tests/msg_name.test: Ditto. * tests/munlockall.test: Ditto. * tests/nanosleep.test: Ditto. * tests/net-icmp_filter.test: Ditto. * tests/net-sockaddr.test: Ditto. * tests/newfstatat.test: Ditto. * tests/old_mmap.test: Ditto. * tests/oldfstat.test: Ditto. * tests/oldlstat.test: Ditto. * tests/oldstat.test: Ditto. * tests/open.test: Ditto. * tests/openat.test: Ditto. * tests/pause.test: Ditto. * tests/perf_event_open.test: Ditto. * tests/perf_event_open_nonverbose.test: Ditto. * tests/perf_event_open_unabbrev.test: Ditto. * tests/pipe2.test: Ditto. * tests/pkey_alloc.test: Ditto. * tests/pkey_free.test: Ditto. * tests/pkey_mprotect.test: Ditto. * tests/ppoll-v.test: Ditto. * tests/ppoll.test: Ditto. * tests/preadv-pwritev.test: Ditto. * tests/preadv.test: Ditto. * tests/preadv2-pwritev2.test: Ditto. * tests/printstr.test: Ditto. * tests/prlimit64.test: Ditto. * tests/process_vm_readv.test: Ditto. * tests/process_vm_writev.test: Ditto. * tests/pselect6.test: Ditto. * tests/ptrace.test: Ditto. * tests/pwritev.test: Ditto. * tests/quotactl-v.test: Ditto. * tests/quotactl-xfs-v.test: Ditto. * tests/quotactl-xfs.test: Ditto. * tests/quotactl.test: Ditto. * tests/readahead.test: Ditto. * tests/readdir.test: Ditto. * tests/readlink.test: Ditto. * tests/readlinkat.test: Ditto. * tests/reboot.test: Ditto. * tests/recvfrom.test: Ditto. * tests/recvmmsg-timeout.test: Ditto. * tests/recvmsg.test: Ditto. * tests/remap_file_pages.test: Ditto. * tests/rename.test: Ditto. * tests/renameat.test: Ditto. * tests/renameat2.test: Ditto. * tests/request_key.test: Ditto. * tests/rmdir.test: Ditto. * tests/rt_sigpending.test: Ditto. * tests/rt_sigprocmask.test: Ditto. * tests/rt_sigqueueinfo.test: Ditto. * tests/rt_sigreturn.test: Ditto. * tests/rt_sigsuspend.test: Ditto. * tests/rt_sigtimedwait.test: Ditto. * tests/rt_tgsigqueueinfo.test: Ditto. * tests/sched_get_priority_mxx.test: Ditto. * tests/sched_rr_get_interval.test: Ditto. * tests/sched_xetaffinity.test: Ditto. * tests/sched_xetattr.test: Ditto. * tests/sched_xetparam.test: Ditto. * tests/sched_xetscheduler.test: Ditto. * tests/sched_yield.test: Ditto. * tests/seccomp-filter-v.test: Ditto. * tests/seccomp-filter.test: Ditto. * tests/select.test: Ditto. * tests/semop.test: Ditto. * tests/sendfile.test: Ditto. * tests/sendfile64.test: Ditto. * tests/set_mempolicy.test: Ditto. * tests/setdomainname.test: Ditto. * tests/setfsgid.test: Ditto. * tests/setfsgid32.test: Ditto. * tests/setfsuid.test: Ditto. * tests/setfsuid32.test: Ditto. * tests/setgid.test: Ditto. * tests/setgid32.test: Ditto. * tests/setgroups.test: Ditto. * tests/setgroups32.test: Ditto. * tests/sethostname.test: Ditto. * tests/setns.test: Ditto. * tests/setregid.test: Ditto. * tests/setregid32.test: Ditto. * tests/setresgid.test: Ditto. * tests/setresgid32.test: Ditto. * tests/setresuid.test: Ditto. * tests/setresuid32.test: Ditto. * tests/setreuid.test: Ditto. * tests/setreuid32.test: Ditto. * tests/setrlimit.test: Ditto. * tests/setuid.test: Ditto. * tests/setuid32.test: Ditto. * tests/shutdown.test: Ditto. * tests/siginfo.test: Ditto. * tests/signal_receive.test: Ditto. * tests/signalfd4.test: Ditto. * tests/sigreturn.test: Ditto. * tests/socketcall.test: Ditto. * tests/splice.test: Ditto. * tests/stat.test: Ditto. * tests/stat64.test: Ditto. * tests/statfs64.test: Ditto. * tests/statx.sh: Ditto. * tests/statx.test: Ditto. * tests/swap.test: Ditto. * tests/symlink.test: Ditto. * tests/symlinkat.test: Ditto. * tests/sync.test: Ditto. * tests/sync_file_range.test: Ditto. * tests/sync_file_range2.test: Ditto. * tests/sysinfo.test: Ditto. * tests/syslog.test: Ditto. * tests/tee.test: Ditto. * tests/time.test: Ditto. * tests/timer_create.test: Ditto. * tests/timer_xettime.test: Ditto. * tests/timerfd_xettime.test: Ditto. * tests/times-fail.test: Ditto. * tests/times.test: Ditto. * tests/truncate.test: Ditto. * tests/truncate64.test: Ditto. * tests/ugetrlimit.test: Ditto. * tests/umask.test: Ditto. * tests/umoven-illptr.test: Ditto. * tests/umovestr-illptr.test: Ditto. * tests/umovestr3.test: Ditto. * tests/unlink.test: Ditto. * tests/unlinkat.test: Ditto. * tests/unshare.test: Ditto. * tests/userfaultfd.test: Ditto. * tests/ustat.test: Ditto. * tests/utime.test: Ditto. * tests/utimes.test: Ditto. * tests/vfork-f.test: Ditto. * tests/vhangup.test: Ditto. * tests/vmsplice.test: Ditto. * tests/wait4-v.test: Ditto. * tests/wait4.test: Ditto. * tests/waitid-v.test: Ditto. * tests/waitid.test: Ditto. * tests/waitpid.test: Ditto. * tests/xattr-strings.test: Ditto. * tests/xet_robust_list.test: Ditto. * tests/xetitimer.test: Ditto. * tests/xetpgid.test: Ditto. * tests/xetpriority.test: Ditto. * tests/xettimeofday.test: Ditto. * tests/Makefile.am (DECODER_TESTS, MISC_TESTS): Remove them. Include gen_tests.am. (TESTS): Add $(GEN_TESTS). (XFAIL_TESTS_x86_64, XFAIL_TESTS_x32): Rename int_0x80.test to int_0x80.gen.test. (EXTRA_DIST): Add gen_tests.in and gen_tests.sh, remove statx.sh. (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
2017-04-05 03:37:54 +03:00
include gen_tests.am
if USE_LIBUNWIND
LIBUNWIND_TESTS = strace-k.test
if USE_DEMANGLE
LIBUNWIND_TESTS += strace-k-demangle.test
endif
else
LIBUNWIND_TESTS =
endif
DECODER_TESTS = \
brk.test \
btrfs-v.test \
btrfs-vw.test \
btrfs-w.test \
caps-abbrev.test \
caps.test \
eventfd.test \
execve-v.test \
execve.test \
fadvise64.test \
futex.test \
getuid.test \
ioctl: take all 32 bits of ioctl commands into account Historically, only 16 bits (8-bit number and 8-bit type) of 32-bit ioctl commands were used for decoding, which was the source for numerous annoying collisions like this: ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, MGSL_IOCGPARAMS or MMTIMER_GETRES or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0x7fffd47f7338) = -1 ENOTTY (Inappropriate ioctl for device) The solution is to use all 32 bits for decoding, not just "number" and "type", but also "size" and "direction". As some architectures override defaults that come from asm-generic/ and provide alternative definitions for some ioctl commands, we support per-architecture ioctl definitions and merge them with common definitions at build time. During the merge, we used to keep both generic and architecture-specific definitions, now architecture-specific definitions have precedence over generic ones -- ioctlsort omits definitions from asm-generic/ for those ioctl names that have different definitions in asm/. Additional bits of "direction" are architecture specific -- the number of bits and their values differ between architectures. To reduce architecture differences in the source code, we keep "direction" in symbolic form and compile it in ioctlsort. Additional bits of "size" are also architecture specific -- not only the number of bits differ between architectures, but sizes of many types depend on sizeof(long). To reduce architecture differences in the source code, we keep 32-bit and 64-bit versions of common ioctl definitions, and use the appropriate version for each architecture and personality. To implement this, the tools for generating ioctl definitions from kernel headers have been rewritten, and the source format of ioctl definitions has been extended. The final ioctlent*.h files that are included by syscall.c are now generated from source ioctls_inc*.h and ioctls_arch*.h files at build time with ioctlsort. * ioctl.c (ioctl_lookup): Use all 32 bits of ioctl command code. * ioctlsort.c: Rewritten. * linux/32/ioctls_inc.h: New file. * linux/64/ioctls_inc.h: New file. * linux/aarch64/ioctls_arch0.h: New file. * linux/aarch64/ioctls_arch1.h: New file. * linux/aarch64/ioctls_inc0.h: New file. * linux/aarch64/ioctls_inc1.h: New file. * linux/alpha/ioctls_arch0.h: New file. * linux/alpha/ioctls_inc0.h: New file. * linux/arc/ioctls_arch0.h: New file. * linux/arc/ioctls_inc0.h: New file. * linux/arm/ioctls_arch0.h: New file. * linux/arm/ioctls_inc0.h: New file. * linux/avr32/ioctls_arch0.h: New file. * linux/avr32/ioctls_inc0.h: New file. * linux/bfin/ioctls_arch0.h: New file. * linux/bfin/ioctls_inc0.h: New file. * linux/hppa/ioctls_arch0.h: New file. * linux/hppa/ioctls_inc0.h: New file. * linux/i386/ioctls_arch0.h: New file. * linux/i386/ioctls_inc0.h: New file. * linux/ia64/ioctls_arch0.h: New file. * linux/ia64/ioctls_inc0.h: New file. * linux/m68k/ioctls_arch0.h: New file. * linux/m68k/ioctls_inc0.h: New file. * linux/metag/ioctls_arch0.h: New file. * linux/metag/ioctls_inc0.h: New file. * linux/microblaze/ioctls_arch0.h: New file. * linux/microblaze/ioctls_inc0.h: New file. * linux/mips/ioctls_arch0.h: New file. * linux/mips/ioctls_inc0.h: New file. * linux/or1k/ioctls_arch0.h: New file. * linux/or1k/ioctls_inc0.h: New file. * linux/powerpc/ioctls_arch0.h: New file. * linux/powerpc/ioctls_inc0.h: New file. * linux/powerpc64/ioctls_arch0.h: New file. * linux/powerpc64/ioctls_arch1.h: New file. * linux/powerpc64/ioctls_inc0.h: New file. * linux/powerpc64/ioctls_inc1.h: New file. * linux/s390/ioctls_arch0.h: New file. * linux/s390/ioctls_inc0.h: New file. * linux/s390x/ioctls_arch0.h: New file. * linux/s390x/ioctls_inc0.h: New file. * linux/sh/ioctls_arch0.h: New file. * linux/sh/ioctls_inc0.h: New file. * linux/sh64/ioctls_arch0.h: New file. * linux/sh64/ioctls_inc0.h: New file. * linux/sparc/ioctls_arch0.h: New file. * linux/sparc/ioctls_inc0.h: New file. * linux/sparc64/ioctls_arch0.h: New file. * linux/sparc64/ioctls_arch2.h: New file. * linux/sparc64/ioctls_inc0.h: New file. * linux/sparc64/ioctls_inc2.h: New file. * linux/tile/ioctls_arch0.h: New file. * linux/tile/ioctls_arch1.h: New file. * linux/tile/ioctls_inc0.h: New file. * linux/tile/ioctls_inc1.h: New file. * linux/x32/ioctls_arch0.h: New file. * linux/x32/ioctls_arch1.h: New file. * linux/x32/ioctls_inc0.h: New file. * linux/x32/ioctls_inc1.h: New file. * linux/x86_64/ioctls_arch0.h: New file. * linux/x86_64/ioctls_arch1.h: New file. * linux/x86_64/ioctls_inc0.h: New file. * linux/x86_64/ioctls_inc1.h: New file. * linux/xtensa/ioctls_arch0.h: New file. * linux/xtensa/ioctls_inc0.h: New file. * linux/aarch64/ioctlent.h.in: Remove. * linux/aarch64/ioctlent1.h: Remove. * linux/alpha/ioctlent.h.in: Remove. * linux/arc/ioctlent.h.in: Remove. * linux/arm/ioctlent.h.in: Remove. * linux/avr32/ioctlent.h.in: Remove. * linux/bfin/ioctlent.h.in: Remove. * linux/hppa/ioctlent.h.in: Remove. * linux/i386/ioctlent.h.in: Remove. * linux/ia64/ioctlent.h.in: Remove. * linux/ioctlent.h.in: Remove. * linux/ioctlent.sh: Remove. * linux/m68k/ioctlent.h.in: Remove. * linux/metag/ioctlent.h.in: Remove. * linux/microblaze/ioctlent.h.in: Remove. * linux/mips/ioctlent.h.in: Remove. * linux/mips/ioctlent.sh: Remove. * linux/or1k/ioctlent.h.in: Remove. * linux/powerpc/ioctlent.h.in: Remove. * linux/powerpc64/ioctlent.h: Remove. * linux/powerpc64/ioctlent1.h: Remove. * linux/s390/ioctlent.h.in: Remove. * linux/s390x/ioctlent.h.in: Remove. * linux/sh/ioctlent.h.in: Remove. * linux/sh64/ioctlent.h.in: Remove. * linux/sparc/ioctlent.h.in: Remove. * linux/sparc64/ioctlent.h.in: Remove. * linux/sparc64/ioctlent2.h: Remove. * linux/tile/ioctlent.h.in: Remove. * linux/tile/ioctlent1.h: Remove. * linux/x32/ioctlent.h.in: Remove. * linux/x32/ioctlent1.h: Remove. * linux/x86_64/ioctlent.h.in: Remove. * linux/x86_64/ioctlent1.h: Remove. * linux/xtensa/ioctlent.h.in: Remove. * linux/x86_64/ioctlent2.h: Include ioctlent0.h instead of ioctlent.h. * syscall.c (struct_ioctlent ioctlent0): Likewise. * Makefile.am: Remove all ioctlent-related definitions. Define the list of ioctlent*.h files that have to be generated by presence of $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h files. Add rules for ioctlent*.h files generation. (EXTRA_DIST): Update. * maint/ioctls_gen.sh: New file. * maint/ioctls_hex.sh: New file. * maint/ioctls_sym.sh: New file. * maint/print_ioctlent.c: New file. * HACKING-scripts: Update for ioctlent.sh -> ioctls_gen.sh migration. * .gitignore: Add ioctlent[012].h and ioctls_all[012].h. * configure.ac (AC_CHECK_HEADERS): Add linux/hiddev.h and linux/mmtimer.h for tests. * tests/ioctl.c: New file. * tests/ioctl.test: New test. * tests/Makefile.am (check_PROGRAMS): Add ioctl. (TESTS): Add ioctl.test. * tests/.gitignore: Add ioctl.
2015-01-19 20:02:16 +03:00
ioctl.test \
ioctl_dm-v.test \
ioctl_dm.test \
ioctl_kvm_run.test \
ioctl_loop-nv.test \
ioctl_nsfs.test \
ioctl_sock_gifconf.test \
ipc_msgbuf.test \
llseek.test \
lseek.test \
mmap.test \
net-y-unix.test \
net-yy-inet.test \
net-yy-netlink.test \
net-yy-unix.test \
net.test \
netlink_sock_diag.test \
nsyscalls.test \
nsyscalls-d.test \
nsyscalls-nd.test \
oldselect.test \
personality.test \
pipe.test \
poll-P.test \
poll.test \
prctl-arg2-intptr.test \
prctl-dumpable.test \
prctl-name.test \
prctl-no-args.test \
prctl-pdeathsig.test \
prctl-seccomp-filter-v.test \
prctl-seccomp-strict.test \
prctl-securebits.test \
prctl-tid_address.test \
prctl-tsc.test \
qual_fault-exit_group.test \
readv.test \
rt_sigaction.test \
scm_rights-fd.test \
seccomp-strict.test \
sigaltstack.test \
sun_path.test \
xet_thread_area_x86.test \
uio.test \
umount.test \
umount2.test \
umovestr.test \
umovestr2.test \
uname.test \
unix-pair-send-recv.test \
unix-pair-sendto-recvfrom.test \
# end of DECODER_TESTS
MISC_TESTS = \
attach-f-p.test \
attach-p-cmd.test \
bexecve.test \
clone_parent.test \
clone_ptrace.test \
count-f.test \
count.test \
detach-running.test \
detach-sleeping.test \
detach-stopped.test \
filter-unavailable.test \
filtering_fd-syntax.test \
filtering_syscall-syntax.test \
fflush.test \
get_regs.test \
interactive_block.test \
ksysent.test \
opipe.test \
options-syntax.test \
pc.test \
printpath-umovestr-legacy.test \
printstrn-umoven-legacy.test \
qual_fault-syntax.test \
qual_fault.test \
qual_inject-error-signal.test \
qual_inject-retval.test \
qual_inject-signal.test \
qual_inject-syntax.test \
qual_signal.test \
qual_syscall.test \
redirect-fds.test \
redirect.test \
restart_syscall.test \
sigblock.test \
sigign.test \
strace-C.test \
strace-E.test \
strace-S.test \
strace-T.test \
strace-V.test \
strace-ff.test \
strace-r.test \
strace-t.test \
strace-tt.test \
strace-ttt.test \
termsig.test \
threads-execve.test \
# end of MISC_TESTS
tests: tabulate stereotypical test scripts Convert test scripts that follow simple testing patterns to a table. Generate all these scripts from gen_tests.in file using gen_tests.sh script at bootstrap time. The largest set of test scripts has been converted using the following command: grep -l ^run_strace_match_diff *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' || sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f" done The second largest set of test scripts has been converted using the following command: grep -l srcdir= *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Fvq srcdir= || sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f" done * tests/gen_tests.in: New file. * tests/gen_tests.sh: New file. * bootstrap: Invoke it. * tests/.gitignore: Add *.gen.test and gen_tests.am. * tests/_newselect.test: Remove. * tests/accept.test: Ditto. * tests/accept4.test: Ditto. * tests/access.test: Ditto. * tests/acct.test: Ditto. * tests/add_key.test: Ditto. * tests/adjtimex.test: Ditto. * tests/aio.test: Ditto. * tests/alarm.test: Ditto. * tests/bpf.test: Ditto. * tests/btrfs.test: Ditto. * tests/chmod.test: Ditto. * tests/chown.test: Ditto. * tests/chown32.test: Ditto. * tests/chroot.test: Ditto. * tests/clock_adjtime.test: Ditto. * tests/clock_nanosleep.test: Ditto. * tests/clock_xettime.test: Ditto. * tests/copy_file_range.test: Ditto. * tests/creat.test: Ditto. * tests/delete_module.test: Ditto. * tests/dup.test: Ditto. * tests/dup2.test: Ditto. * tests/dup3.test: Ditto. * tests/epoll_create.test: Ditto. * tests/epoll_create1.test: Ditto. * tests/epoll_ctl.test: Ditto. * tests/epoll_pwait.test: Ditto. * tests/epoll_wait.test: Ditto. * tests/erestartsys.test: Ditto. * tests/execveat-v.test: Ditto. * tests/execveat.test: Ditto. * tests/faccessat.test: Ditto. * tests/fadvise64_64.test: Ditto. * tests/fallocate.test: Ditto. * tests/fanotify_init.test: Ditto. * tests/fanotify_mark.test: Ditto. * tests/fchdir.test: Ditto. * tests/fchmod.test: Ditto. * tests/fchmodat.test: Ditto. * tests/fchown.test: Ditto. * tests/fchown32.test: Ditto. * tests/fchownat.test: Ditto. * tests/fcntl.test: Ditto. * tests/fcntl64.test: Ditto. * tests/fdatasync.test: Ditto. * tests/file_handle.test: Ditto. * tests/file_ioctl.test: Ditto. * tests/finit_module.test: Ditto. * tests/flock.test: Ditto. * tests/fork-f.test: Ditto. * tests/fstat64.test: Ditto. * tests/fstatat64.test: Ditto. * tests/fstatfs.test: Ditto. * tests/fstatfs64.test: Ditto. * tests/fsync.test: Ditto. * tests/ftruncate.test: Ditto. * tests/ftruncate64.test: Ditto. * tests/futimesat.test: Ditto. * tests/get_mempolicy.test: Ditto. * tests/getcpu.test: Ditto. * tests/getcwd.test: Ditto. * tests/getdents.test: Ditto. * tests/getdents64.test: Ditto. * tests/getegid.test: Ditto. * tests/getegid32.test: Ditto. * tests/geteuid.test: Ditto. * tests/geteuid32.test: Ditto. * tests/getgid.test: Ditto. * tests/getgid32.test: Ditto. * tests/getgroups.test: Ditto. * tests/getgroups32.test: Ditto. * tests/getpeername.test: Ditto. * tests/getpgrp.test: Ditto. * tests/getrandom.test: Ditto. * tests/getresgid.test: Ditto. * tests/getresgid32.test: Ditto. * tests/getresuid.test: Ditto. * tests/getresuid32.test: Ditto. * tests/getrlimit.test: Ditto. * tests/getrusage.test: Ditto. * tests/getsid.test: Ditto. * tests/getsockname.test: Ditto. * tests/getuid32.test: Ditto. * tests/getxxid.test: Ditto. * tests/inet-cmsg.test: Ditto. * tests/init_module.test: Ditto. * tests/inotify.test: Ditto. * tests/inotify_init1.test: Ditto. * tests/int_0x80.test: Ditto. * tests/ioctl_block.test: Ditto. * tests/ioctl_evdev.test: Ditto. * tests/ioctl_loop.test: Ditto. * tests/ioctl_mtd.test: Ditto. * tests/ioctl_rtc.test: Ditto. * tests/ioctl_scsi.test: Ditto. * tests/ioctl_sg_io_v3.test: Ditto. * tests/ioctl_sg_io_v4.test: Ditto. * tests/ioctl_uffdio.test: Ditto. * tests/ioctl_v4l2.test: Ditto. * tests/ioperm.test: Ditto. * tests/iopl.test: Ditto. * tests/ioprio.test: Ditto. * tests/ip_mreq.test: Ditto. * tests/ipc.test: Ditto. * tests/ipc_msg.test: Ditto. * tests/ipc_sem.test: Ditto. * tests/ipc_shm.test: Ditto. * tests/kcmp.test: Ditto. * tests/kexec_file_load.test: Ditto. * tests/kexec_load.test: Ditto. * tests/keyctl.test: Ditto. * tests/kill.test: Ditto. * tests/lchown.test: Ditto. * tests/lchown32.test: Ditto. * tests/link.test: Ditto. * tests/linkat.test: Ditto. * tests/lookup_dcookie.test: Ditto. * tests/lstat.test: Ditto. * tests/lstat64.test: Ditto. * tests/mbind.test: Ditto. * tests/membarrier.test: Ditto. * tests/memfd_create.test: Ditto. * tests/migrate_pages.test: Ditto. * tests/mincore.test: Ditto. * tests/mkdir.test: Ditto. * tests/mkdirat.test: Ditto. * tests/mknod.test: Ditto. * tests/mknodat.test: Ditto. * tests/mlock.test: Ditto. * tests/mlock2.test: Ditto. * tests/mlockall.test: Ditto. * tests/mmap64.test: Ditto. * tests/mmsg-silent.test: Ditto. * tests/mmsg.test: Ditto. * tests/mmsg_name-v.test: Ditto. * tests/mmsg_name.test: Ditto. * tests/mount.test: Ditto. * tests/move_pages.test: Ditto. * tests/mq.test: Ditto. * tests/mq_sendrecv-read.test: Ditto. * tests/mq_sendrecv-write.test: Ditto. * tests/mq_sendrecv.test: Ditto. * tests/msg_control-v.test: Ditto. * tests/msg_control.test: Ditto. * tests/msg_name.test: Ditto. * tests/munlockall.test: Ditto. * tests/nanosleep.test: Ditto. * tests/net-icmp_filter.test: Ditto. * tests/net-sockaddr.test: Ditto. * tests/newfstatat.test: Ditto. * tests/old_mmap.test: Ditto. * tests/oldfstat.test: Ditto. * tests/oldlstat.test: Ditto. * tests/oldstat.test: Ditto. * tests/open.test: Ditto. * tests/openat.test: Ditto. * tests/pause.test: Ditto. * tests/perf_event_open.test: Ditto. * tests/perf_event_open_nonverbose.test: Ditto. * tests/perf_event_open_unabbrev.test: Ditto. * tests/pipe2.test: Ditto. * tests/pkey_alloc.test: Ditto. * tests/pkey_free.test: Ditto. * tests/pkey_mprotect.test: Ditto. * tests/ppoll-v.test: Ditto. * tests/ppoll.test: Ditto. * tests/preadv-pwritev.test: Ditto. * tests/preadv.test: Ditto. * tests/preadv2-pwritev2.test: Ditto. * tests/printstr.test: Ditto. * tests/prlimit64.test: Ditto. * tests/process_vm_readv.test: Ditto. * tests/process_vm_writev.test: Ditto. * tests/pselect6.test: Ditto. * tests/ptrace.test: Ditto. * tests/pwritev.test: Ditto. * tests/quotactl-v.test: Ditto. * tests/quotactl-xfs-v.test: Ditto. * tests/quotactl-xfs.test: Ditto. * tests/quotactl.test: Ditto. * tests/readahead.test: Ditto. * tests/readdir.test: Ditto. * tests/readlink.test: Ditto. * tests/readlinkat.test: Ditto. * tests/reboot.test: Ditto. * tests/recvfrom.test: Ditto. * tests/recvmmsg-timeout.test: Ditto. * tests/recvmsg.test: Ditto. * tests/remap_file_pages.test: Ditto. * tests/rename.test: Ditto. * tests/renameat.test: Ditto. * tests/renameat2.test: Ditto. * tests/request_key.test: Ditto. * tests/rmdir.test: Ditto. * tests/rt_sigpending.test: Ditto. * tests/rt_sigprocmask.test: Ditto. * tests/rt_sigqueueinfo.test: Ditto. * tests/rt_sigreturn.test: Ditto. * tests/rt_sigsuspend.test: Ditto. * tests/rt_sigtimedwait.test: Ditto. * tests/rt_tgsigqueueinfo.test: Ditto. * tests/sched_get_priority_mxx.test: Ditto. * tests/sched_rr_get_interval.test: Ditto. * tests/sched_xetaffinity.test: Ditto. * tests/sched_xetattr.test: Ditto. * tests/sched_xetparam.test: Ditto. * tests/sched_xetscheduler.test: Ditto. * tests/sched_yield.test: Ditto. * tests/seccomp-filter-v.test: Ditto. * tests/seccomp-filter.test: Ditto. * tests/select.test: Ditto. * tests/semop.test: Ditto. * tests/sendfile.test: Ditto. * tests/sendfile64.test: Ditto. * tests/set_mempolicy.test: Ditto. * tests/setdomainname.test: Ditto. * tests/setfsgid.test: Ditto. * tests/setfsgid32.test: Ditto. * tests/setfsuid.test: Ditto. * tests/setfsuid32.test: Ditto. * tests/setgid.test: Ditto. * tests/setgid32.test: Ditto. * tests/setgroups.test: Ditto. * tests/setgroups32.test: Ditto. * tests/sethostname.test: Ditto. * tests/setns.test: Ditto. * tests/setregid.test: Ditto. * tests/setregid32.test: Ditto. * tests/setresgid.test: Ditto. * tests/setresgid32.test: Ditto. * tests/setresuid.test: Ditto. * tests/setresuid32.test: Ditto. * tests/setreuid.test: Ditto. * tests/setreuid32.test: Ditto. * tests/setrlimit.test: Ditto. * tests/setuid.test: Ditto. * tests/setuid32.test: Ditto. * tests/shutdown.test: Ditto. * tests/siginfo.test: Ditto. * tests/signal_receive.test: Ditto. * tests/signalfd4.test: Ditto. * tests/sigreturn.test: Ditto. * tests/socketcall.test: Ditto. * tests/splice.test: Ditto. * tests/stat.test: Ditto. * tests/stat64.test: Ditto. * tests/statfs64.test: Ditto. * tests/statx.sh: Ditto. * tests/statx.test: Ditto. * tests/swap.test: Ditto. * tests/symlink.test: Ditto. * tests/symlinkat.test: Ditto. * tests/sync.test: Ditto. * tests/sync_file_range.test: Ditto. * tests/sync_file_range2.test: Ditto. * tests/sysinfo.test: Ditto. * tests/syslog.test: Ditto. * tests/tee.test: Ditto. * tests/time.test: Ditto. * tests/timer_create.test: Ditto. * tests/timer_xettime.test: Ditto. * tests/timerfd_xettime.test: Ditto. * tests/times-fail.test: Ditto. * tests/times.test: Ditto. * tests/truncate.test: Ditto. * tests/truncate64.test: Ditto. * tests/ugetrlimit.test: Ditto. * tests/umask.test: Ditto. * tests/umoven-illptr.test: Ditto. * tests/umovestr-illptr.test: Ditto. * tests/umovestr3.test: Ditto. * tests/unlink.test: Ditto. * tests/unlinkat.test: Ditto. * tests/unshare.test: Ditto. * tests/userfaultfd.test: Ditto. * tests/ustat.test: Ditto. * tests/utime.test: Ditto. * tests/utimes.test: Ditto. * tests/vfork-f.test: Ditto. * tests/vhangup.test: Ditto. * tests/vmsplice.test: Ditto. * tests/wait4-v.test: Ditto. * tests/wait4.test: Ditto. * tests/waitid-v.test: Ditto. * tests/waitid.test: Ditto. * tests/waitpid.test: Ditto. * tests/xattr-strings.test: Ditto. * tests/xet_robust_list.test: Ditto. * tests/xetitimer.test: Ditto. * tests/xetpgid.test: Ditto. * tests/xetpriority.test: Ditto. * tests/xettimeofday.test: Ditto. * tests/Makefile.am (DECODER_TESTS, MISC_TESTS): Remove them. Include gen_tests.am. (TESTS): Add $(GEN_TESTS). (XFAIL_TESTS_x86_64, XFAIL_TESTS_x32): Rename int_0x80.test to int_0x80.gen.test. (EXTRA_DIST): Add gen_tests.in and gen_tests.sh, remove statx.sh. (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
2017-04-05 03:37:54 +03:00
TESTS = $(GEN_TESTS) $(DECODER_TESTS) $(MISC_TESTS) $(LIBUNWIND_TESTS)
XFAIL_TESTS_ =
XFAIL_TESTS_m32 = $(LIBUNWIND_TESTS)
XFAIL_TESTS_mx32 = $(LIBUNWIND_TESTS)
tests: tabulate stereotypical test scripts Convert test scripts that follow simple testing patterns to a table. Generate all these scripts from gen_tests.in file using gen_tests.sh script at bootstrap time. The largest set of test scripts has been converted using the following command: grep -l ^run_strace_match_diff *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' || sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f" done The second largest set of test scripts has been converted using the following command: grep -l srcdir= *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Fvq srcdir= || sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f" done * tests/gen_tests.in: New file. * tests/gen_tests.sh: New file. * bootstrap: Invoke it. * tests/.gitignore: Add *.gen.test and gen_tests.am. * tests/_newselect.test: Remove. * tests/accept.test: Ditto. * tests/accept4.test: Ditto. * tests/access.test: Ditto. * tests/acct.test: Ditto. * tests/add_key.test: Ditto. * tests/adjtimex.test: Ditto. * tests/aio.test: Ditto. * tests/alarm.test: Ditto. * tests/bpf.test: Ditto. * tests/btrfs.test: Ditto. * tests/chmod.test: Ditto. * tests/chown.test: Ditto. * tests/chown32.test: Ditto. * tests/chroot.test: Ditto. * tests/clock_adjtime.test: Ditto. * tests/clock_nanosleep.test: Ditto. * tests/clock_xettime.test: Ditto. * tests/copy_file_range.test: Ditto. * tests/creat.test: Ditto. * tests/delete_module.test: Ditto. * tests/dup.test: Ditto. * tests/dup2.test: Ditto. * tests/dup3.test: Ditto. * tests/epoll_create.test: Ditto. * tests/epoll_create1.test: Ditto. * tests/epoll_ctl.test: Ditto. * tests/epoll_pwait.test: Ditto. * tests/epoll_wait.test: Ditto. * tests/erestartsys.test: Ditto. * tests/execveat-v.test: Ditto. * tests/execveat.test: Ditto. * tests/faccessat.test: Ditto. * tests/fadvise64_64.test: Ditto. * tests/fallocate.test: Ditto. * tests/fanotify_init.test: Ditto. * tests/fanotify_mark.test: Ditto. * tests/fchdir.test: Ditto. * tests/fchmod.test: Ditto. * tests/fchmodat.test: Ditto. * tests/fchown.test: Ditto. * tests/fchown32.test: Ditto. * tests/fchownat.test: Ditto. * tests/fcntl.test: Ditto. * tests/fcntl64.test: Ditto. * tests/fdatasync.test: Ditto. * tests/file_handle.test: Ditto. * tests/file_ioctl.test: Ditto. * tests/finit_module.test: Ditto. * tests/flock.test: Ditto. * tests/fork-f.test: Ditto. * tests/fstat64.test: Ditto. * tests/fstatat64.test: Ditto. * tests/fstatfs.test: Ditto. * tests/fstatfs64.test: Ditto. * tests/fsync.test: Ditto. * tests/ftruncate.test: Ditto. * tests/ftruncate64.test: Ditto. * tests/futimesat.test: Ditto. * tests/get_mempolicy.test: Ditto. * tests/getcpu.test: Ditto. * tests/getcwd.test: Ditto. * tests/getdents.test: Ditto. * tests/getdents64.test: Ditto. * tests/getegid.test: Ditto. * tests/getegid32.test: Ditto. * tests/geteuid.test: Ditto. * tests/geteuid32.test: Ditto. * tests/getgid.test: Ditto. * tests/getgid32.test: Ditto. * tests/getgroups.test: Ditto. * tests/getgroups32.test: Ditto. * tests/getpeername.test: Ditto. * tests/getpgrp.test: Ditto. * tests/getrandom.test: Ditto. * tests/getresgid.test: Ditto. * tests/getresgid32.test: Ditto. * tests/getresuid.test: Ditto. * tests/getresuid32.test: Ditto. * tests/getrlimit.test: Ditto. * tests/getrusage.test: Ditto. * tests/getsid.test: Ditto. * tests/getsockname.test: Ditto. * tests/getuid32.test: Ditto. * tests/getxxid.test: Ditto. * tests/inet-cmsg.test: Ditto. * tests/init_module.test: Ditto. * tests/inotify.test: Ditto. * tests/inotify_init1.test: Ditto. * tests/int_0x80.test: Ditto. * tests/ioctl_block.test: Ditto. * tests/ioctl_evdev.test: Ditto. * tests/ioctl_loop.test: Ditto. * tests/ioctl_mtd.test: Ditto. * tests/ioctl_rtc.test: Ditto. * tests/ioctl_scsi.test: Ditto. * tests/ioctl_sg_io_v3.test: Ditto. * tests/ioctl_sg_io_v4.test: Ditto. * tests/ioctl_uffdio.test: Ditto. * tests/ioctl_v4l2.test: Ditto. * tests/ioperm.test: Ditto. * tests/iopl.test: Ditto. * tests/ioprio.test: Ditto. * tests/ip_mreq.test: Ditto. * tests/ipc.test: Ditto. * tests/ipc_msg.test: Ditto. * tests/ipc_sem.test: Ditto. * tests/ipc_shm.test: Ditto. * tests/kcmp.test: Ditto. * tests/kexec_file_load.test: Ditto. * tests/kexec_load.test: Ditto. * tests/keyctl.test: Ditto. * tests/kill.test: Ditto. * tests/lchown.test: Ditto. * tests/lchown32.test: Ditto. * tests/link.test: Ditto. * tests/linkat.test: Ditto. * tests/lookup_dcookie.test: Ditto. * tests/lstat.test: Ditto. * tests/lstat64.test: Ditto. * tests/mbind.test: Ditto. * tests/membarrier.test: Ditto. * tests/memfd_create.test: Ditto. * tests/migrate_pages.test: Ditto. * tests/mincore.test: Ditto. * tests/mkdir.test: Ditto. * tests/mkdirat.test: Ditto. * tests/mknod.test: Ditto. * tests/mknodat.test: Ditto. * tests/mlock.test: Ditto. * tests/mlock2.test: Ditto. * tests/mlockall.test: Ditto. * tests/mmap64.test: Ditto. * tests/mmsg-silent.test: Ditto. * tests/mmsg.test: Ditto. * tests/mmsg_name-v.test: Ditto. * tests/mmsg_name.test: Ditto. * tests/mount.test: Ditto. * tests/move_pages.test: Ditto. * tests/mq.test: Ditto. * tests/mq_sendrecv-read.test: Ditto. * tests/mq_sendrecv-write.test: Ditto. * tests/mq_sendrecv.test: Ditto. * tests/msg_control-v.test: Ditto. * tests/msg_control.test: Ditto. * tests/msg_name.test: Ditto. * tests/munlockall.test: Ditto. * tests/nanosleep.test: Ditto. * tests/net-icmp_filter.test: Ditto. * tests/net-sockaddr.test: Ditto. * tests/newfstatat.test: Ditto. * tests/old_mmap.test: Ditto. * tests/oldfstat.test: Ditto. * tests/oldlstat.test: Ditto. * tests/oldstat.test: Ditto. * tests/open.test: Ditto. * tests/openat.test: Ditto. * tests/pause.test: Ditto. * tests/perf_event_open.test: Ditto. * tests/perf_event_open_nonverbose.test: Ditto. * tests/perf_event_open_unabbrev.test: Ditto. * tests/pipe2.test: Ditto. * tests/pkey_alloc.test: Ditto. * tests/pkey_free.test: Ditto. * tests/pkey_mprotect.test: Ditto. * tests/ppoll-v.test: Ditto. * tests/ppoll.test: Ditto. * tests/preadv-pwritev.test: Ditto. * tests/preadv.test: Ditto. * tests/preadv2-pwritev2.test: Ditto. * tests/printstr.test: Ditto. * tests/prlimit64.test: Ditto. * tests/process_vm_readv.test: Ditto. * tests/process_vm_writev.test: Ditto. * tests/pselect6.test: Ditto. * tests/ptrace.test: Ditto. * tests/pwritev.test: Ditto. * tests/quotactl-v.test: Ditto. * tests/quotactl-xfs-v.test: Ditto. * tests/quotactl-xfs.test: Ditto. * tests/quotactl.test: Ditto. * tests/readahead.test: Ditto. * tests/readdir.test: Ditto. * tests/readlink.test: Ditto. * tests/readlinkat.test: Ditto. * tests/reboot.test: Ditto. * tests/recvfrom.test: Ditto. * tests/recvmmsg-timeout.test: Ditto. * tests/recvmsg.test: Ditto. * tests/remap_file_pages.test: Ditto. * tests/rename.test: Ditto. * tests/renameat.test: Ditto. * tests/renameat2.test: Ditto. * tests/request_key.test: Ditto. * tests/rmdir.test: Ditto. * tests/rt_sigpending.test: Ditto. * tests/rt_sigprocmask.test: Ditto. * tests/rt_sigqueueinfo.test: Ditto. * tests/rt_sigreturn.test: Ditto. * tests/rt_sigsuspend.test: Ditto. * tests/rt_sigtimedwait.test: Ditto. * tests/rt_tgsigqueueinfo.test: Ditto. * tests/sched_get_priority_mxx.test: Ditto. * tests/sched_rr_get_interval.test: Ditto. * tests/sched_xetaffinity.test: Ditto. * tests/sched_xetattr.test: Ditto. * tests/sched_xetparam.test: Ditto. * tests/sched_xetscheduler.test: Ditto. * tests/sched_yield.test: Ditto. * tests/seccomp-filter-v.test: Ditto. * tests/seccomp-filter.test: Ditto. * tests/select.test: Ditto. * tests/semop.test: Ditto. * tests/sendfile.test: Ditto. * tests/sendfile64.test: Ditto. * tests/set_mempolicy.test: Ditto. * tests/setdomainname.test: Ditto. * tests/setfsgid.test: Ditto. * tests/setfsgid32.test: Ditto. * tests/setfsuid.test: Ditto. * tests/setfsuid32.test: Ditto. * tests/setgid.test: Ditto. * tests/setgid32.test: Ditto. * tests/setgroups.test: Ditto. * tests/setgroups32.test: Ditto. * tests/sethostname.test: Ditto. * tests/setns.test: Ditto. * tests/setregid.test: Ditto. * tests/setregid32.test: Ditto. * tests/setresgid.test: Ditto. * tests/setresgid32.test: Ditto. * tests/setresuid.test: Ditto. * tests/setresuid32.test: Ditto. * tests/setreuid.test: Ditto. * tests/setreuid32.test: Ditto. * tests/setrlimit.test: Ditto. * tests/setuid.test: Ditto. * tests/setuid32.test: Ditto. * tests/shutdown.test: Ditto. * tests/siginfo.test: Ditto. * tests/signal_receive.test: Ditto. * tests/signalfd4.test: Ditto. * tests/sigreturn.test: Ditto. * tests/socketcall.test: Ditto. * tests/splice.test: Ditto. * tests/stat.test: Ditto. * tests/stat64.test: Ditto. * tests/statfs64.test: Ditto. * tests/statx.sh: Ditto. * tests/statx.test: Ditto. * tests/swap.test: Ditto. * tests/symlink.test: Ditto. * tests/symlinkat.test: Ditto. * tests/sync.test: Ditto. * tests/sync_file_range.test: Ditto. * tests/sync_file_range2.test: Ditto. * tests/sysinfo.test: Ditto. * tests/syslog.test: Ditto. * tests/tee.test: Ditto. * tests/time.test: Ditto. * tests/timer_create.test: Ditto. * tests/timer_xettime.test: Ditto. * tests/timerfd_xettime.test: Ditto. * tests/times-fail.test: Ditto. * tests/times.test: Ditto. * tests/truncate.test: Ditto. * tests/truncate64.test: Ditto. * tests/ugetrlimit.test: Ditto. * tests/umask.test: Ditto. * tests/umoven-illptr.test: Ditto. * tests/umovestr-illptr.test: Ditto. * tests/umovestr3.test: Ditto. * tests/unlink.test: Ditto. * tests/unlinkat.test: Ditto. * tests/unshare.test: Ditto. * tests/userfaultfd.test: Ditto. * tests/ustat.test: Ditto. * tests/utime.test: Ditto. * tests/utimes.test: Ditto. * tests/vfork-f.test: Ditto. * tests/vhangup.test: Ditto. * tests/vmsplice.test: Ditto. * tests/wait4-v.test: Ditto. * tests/wait4.test: Ditto. * tests/waitid-v.test: Ditto. * tests/waitid.test: Ditto. * tests/waitpid.test: Ditto. * tests/xattr-strings.test: Ditto. * tests/xet_robust_list.test: Ditto. * tests/xetitimer.test: Ditto. * tests/xetpgid.test: Ditto. * tests/xetpriority.test: Ditto. * tests/xettimeofday.test: Ditto. * tests/Makefile.am (DECODER_TESTS, MISC_TESTS): Remove them. Include gen_tests.am. (TESTS): Add $(GEN_TESTS). (XFAIL_TESTS_x86_64, XFAIL_TESTS_x32): Rename int_0x80.test to int_0x80.gen.test. (EXTRA_DIST): Add gen_tests.in and gen_tests.sh, remove statx.sh. (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
2017-04-05 03:37:54 +03:00
XFAIL_TESTS_x86_64 = int_0x80.gen.test
XFAIL_TESTS_x32 = int_0x80.gen.test
XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME)) $(XFAIL_TESTS_$(ARCH))
TEST_LOG_COMPILER = env
AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) STRACE_NATIVE_ARCH=$(NATIVE_ARCH) \
MIPS_ABI=$(MIPS_ABI) $(srcdir)/run.sh
@VALGRIND_CHECK_RULES@
VALGRIND_FLAGS = --quiet
VALGRIND_SUPPRESSIONS_FILES = $(abs_srcdir)/strace.supp
EXTRA_DIST = \
attach-p-cmd.h \
caps-abbrev.awk \
caps.awk \
clock.in \
count-f.expected \
eventfd.expected \
fadvise.h \
filter-unavailable.expected \
fstatat.c \
fstatx.c \
gen_pure_executables.sh \
gen_tests.in \
gen_tests.sh \
getresugid.c \
init.sh \
init_delete_module.h \
ioctl-v.sh \
ipc.sh \
ipc_msgbuf.expected \
ksysent.sed \
lstatx.c \
match.awk \
net.expected \
netlink_sock_diag-v.sh \
oldselect.expected \
pipe.expected \
print_user_desc.c \
process_vm_readv_writev.c \
pure_executables.list \
qual_fault-exit_group.expected \
qual_inject-error-signal.expected \
qual_inject-signal.expected \
quotactl.h \
regex.in \
rt_sigaction.awk \
run.sh \
sched.in \
scno_tampering.sh \
setfsugid.c \
setresugid.c \
setreugid.c \
setugid.c \
sigaltstack.expected \
sockname.c \
stack-fcall.h \
strace-C.expected \
strace-E.expected \
strace-T.expected \
strace-ff.expected \
strace-k-demangle.test \
strace-k.test \
strace-r.expected \
strace.supp \
struct_flock.c \
sun_path.expected \
syntax.sh \
Implement -e trace=%fstat option linux/*/syscallent*.h part is updated automatically by: sed -i -e '/TSTA.*fx\?stat/ s/TSTA,/TFST|&/' \ -e 's/\(TD|TF|TFST|TSTA,\)[[:space:]]/\1/' linux/*/syscallent*.h * sysent.h (TRACE_FSTAT): New macro. * syscall.c: Alias TFST to TRACE_FSTAT around syscallent.h inclusion. * qualify.c (lookup_class): Add TRACE_FSTAT for "%fstat". * strace.1 (.SS Filtering): Add information about %fstat syscall class. * NEWS: Mention this change. * linux/32/syscallent.h (fstat64, fstatat64): Add TFST flag. * linux/64/syscallent.h (fstat, newfstatat): Likewise. * linux/aarch64/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/arm/syscallent.h (fstat, fstat64, fstatat64, oldfstat): Likewise. * linux/bfin/syscallent.h: Likewise. * linux/crisv10/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/avr32/syscallent.h (fstat, fstat64, fstatat64): Likewise. * linux/hppa/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * linux/alpha/syscallent.h (fstat, fstat64, fstatat64, osf_fstat, osf_old_fstat): Likewise. * linux/powerpc64/syscallent.h (fstat, newfstatat, oldfstat): Likewise. * linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_oldfstat, posix_fstat, svr4_fstat, sysv_fstat): Likewise. * tests/gen_tests.in (trace_fstat): New entry. * tests/trace_fstat.in: New file. * tests/Makefile.am (EXTRA_DIST): Add it. * tests/ksysent.c (TFST): New macro, defined to 0. * tests/nsyscalls.c: Likewise.
2017-04-18 02:52:58 +03:00
trace_fstat.in \
Implement -e trace=%fstatfs option linux/*/syscallent*.h part is updated automatically by: sed -i 's/TD,[[:space:]]\([[:space:]]*SEN.*[_"]fstatv\?fs\)/TD|TFSF,\1/' \ linux/*/syscallent*.h * sysent.h (TRACE_FSTATFS): New macro. * syscall.c: Alias TFSF to TRACE_FSTATFS around syscallent.h inclusion. * qualify.c (lookup_class): Add SCHED_FSTATFS for "%fstatfs". * strace.1 (.SS Filtering): Add information about %fstatfs syscall class. * NEWS: Mention this change. * linux/32/syscallent.h (fstatfs64): Add TFSF flag. * linux/64/syscallent.h (fstatfs): Likewise. * linux/aarch64/syscallent.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/arm/syscallent.h (fstatfs, fstatfs64): Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/crisv10/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * linux/alpha/syscallent.h (ofs_fstatfs, osf_fstatfs64): Likewise. * linux/mips/syscallent-compat.h (*_fstatfs, *_fstatvfs): Likewise. * tests/gen_tests.in (trace_fstatfs): New entry. * tests/trace_fstatfs.in: New file. * tests/Makefile.am (EXTRA_DIST): Add it. * tests/ksysent.c (TFSF): New macro, defined to 0. * tests/nsyscalls.c: Likewise.
2017-04-17 21:29:44 +03:00
trace_fstatfs.in \
Implement -e trace=%lstat option linux/*/syscallent*.h part is updated automatically by: sed -i '/TSTA,.*lx\?stat/ s/TSTA,/TLST|&/' linux/*/syscallent*.h * sysent.h (TRACE_LSTAT): New macro. * syscall.c: Alias TLST to TRACE_LSTAT around syscallent.h inclusion. * qualify.c (lookup_class): Add TRACE_LSTAT for "%lstat". * strace.1 (.SS Filtering): Add information about %lstat syscall class. * NEWS: Mention this change. * linux/aarch64/syscallent.h (lstat): Likewise. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/arm/syscallent.h (lstat, lstat64, oldlstat): Likewise. * linux/bfin/syscallent.h: Likewise. * linux/crisv10/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/avr32/syscallent.h (lstat, lstat64): Likewise. * linux/hppa/syscallent.h: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * linux/alpha/syscallent.h (lstat, lstat64, osf_lstat, osf_old_lstat): Likewise. * linux/mips/syscallent-compat.h (bsd43_lstat, posix_lstat, svr4_lstat, sysv_lstat): Likewise. * tests/gen_tests.in (trace_lstat): New entry. * tests/trace_lstat.in: New file. * tests/Makefile.am (EXTRA_DIST): Add it. * tests/ksysent.c (TLST): New macro, defined to 0. * tests/nsyscalls.c: Likewise.
2017-04-18 03:23:05 +03:00
trace_lstat.in \
trace_question.in \
Implement -e trace=%stat option linux/*/syscallent*.h part is updated automatically by: sed -i '/statx/! s/TF|TSTA,/TF|TST|TSTA,/' linux/*/syscallent*.h * sysent.h (TRACE_STAT): New macro. * syscall.c: Alias LST to TRACE_STAT around syscallent.h inclusion. * qualify.c (lookup_class): Add TRACE_STAT for "%stat". * strace.1 (.SS Filtering): Add information about %stat syscall class. * NEWS: Mention this change. * linux/aarch64/syscallent.h (stat): Add TST flag. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/arm/syscallent.h (oldstat, stat, stat64): Likewise. * linux/bfin/syscallent.h: Likewise. * linux/crisv10/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/avr32/syscallent.h (stat, stat64): Likewise. * linux/hppa/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * linux/powerpc64/syscallent.h (oldstat, stat): Likewise. * linux/alpha/syscallent.h (osf_old_stat, osf_stat, stat, stat64): Likewise. * linux/mips/syscallent-compat.h (bsd43_oldstat, bsd43_stat, posix_stat, svr4_stat, svr4_xstat, sysv_stat, sysv_xstat): Likewise. * tests/gen_tests.in (trace_stat): New entry. * tests/trace_stat.in: New file. * tests/Makefile.am (EXTRA_DIST): Add it. * tests/ksysent.c (TST): New macro, defined to 0. * tests/nsyscalls.c: Likewise.
2017-04-18 04:14:52 +03:00
trace_stat.in \
Implement -e trace=%%stat option linux/*/syscallent*.h part is updated automatically by: sed -i '/TSFA\|stat[iu]s/! s/,[[:space:]]\?\([[:space:]]*SEN(.*stat\)/|TSTA,\1/' \ linux/*/syscallent*.h * sysent.h (TRACE_STAT_LIKE): New macro. * syscall.c: Alias TSTA to TRACE_STAT_LIKE around syscallent.h inclusion. * qualify.c (lookup_class): Add TRACE_STAT_LIKE for "%%stat". * strace.1 (.SS Filtering): Add information about %%stat syscall class. * NEWS: Mention this change. * linux/32/syscallent.h (fstat64, fstatat64, statx): Add TSTA flag. * linux/64/syscallent.h (fstat, newfstatat, statx): Likewise. * linux/aarch64/syscallent.h (fstat, lstat, newfstatat, stat): Likewise. * linux/alpha/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, osf_fstat, osf_lstat, osf_old_fstat, osf_old_lstat, osf_old_stat, osf_stat, stat, stat64): Likewise. * linux/arm/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64, statx): Likewise. * linux/avr32/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat, stat64): Likewise. * linux/bfin/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64): Likewise. * linux/crisv10/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64): Likewise. * linux/hppa/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat, stat64): Likewise. * linux/i386/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64, statx): Likewise. * linux/ia64/syscallent.h (fstat, lstat, newfstatat, stat): Likewise. * linux/m68k/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64, statx): Likewise. * linux/microblaze/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64): Likewise. * linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_lstat, bsd43_oldfstat, bsd43_oldstat, bsd43_stat, posix_fstat, posix_lstat, posix_stat, svr4_fstat, svr4_fxstat, svr4_lstat, svr4_lxstat, svr4_stat, svr4_xstat, sysv_fstat, sysv_fxstat, sysv_lstat, sysv_lxstat, sysv_stat, sysv_xstat): Likewise. * linux/mips/syscallent-n32.h (fstat, lstat, newfstatat, stat, statx): Likewise. * linux/mips/syscallent-n64.h (fstat, lstat, newfstatat, stat, statx): Likewise. * linux/mips/syscallent-o32.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64, statx): Likewise. * linux/powerpc64/syscallent.h (fstat, lstat, newfstatat, oldfstat, oldlstat, oldstat, stat): Likewise. * linux/powerpc/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64, statx): Likewise. * linux/s390/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat, stat64, statx): Likewise. * linux/s390x/syscallent.h (fstat, lstat, newfstatat, stat, statx): Likewise. * linux/sh64/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64): Likewise. * linux/sh/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat, oldlstat, oldstat, stat, stat64): Likewise. * linux/sparc64/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldlstat, stat, stat64): Likewise. * linux/sparc/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldlstat, stat, stat64): Likewise. * linux/x32/syscallent.h (fstat, lstat, newfstatat, stat, statx): Likewise. * linux/x86_64/syscallent.h (fstat, lstat, newfstatat, stat, statx): Likewise. * linux/xtensa/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat, stat64, statx): Likewise. * tests/gen_tests.in (trace_stat_like): New entry. * tests/trace_stat_like.in: New file. * tests/Makefile.am (EXTRA_DIST): Add it. * tests/ksysent.c (TSTA): New macro, defined to 0. * tests/nsyscalls.c: Likewise.
2017-04-18 02:14:58 +03:00
trace_stat_like.in \
trace_statfs.in \
Implement -e trace=%%statfs option linux/*/syscallent*.h part is updated automatically by: sed -i 's/\(TSF\),[[:space:]]\?/\1|TSFA,/' linux/*/syscallent*.h sed -i 's/\(TFSF\),/\1|TSFA,/' linux/*/syscallent*.h sed -i 's/0\(,.*ustat\)/TSFA\1/' linux/*/syscallent*.h * sysent.h (TRACE_STATFS_LIKE): New macro. * syscall.c: Alias TSFA to TRACE_STATFS_LIKE around syscallent.h inclusion. * qualify.c (lookup_class): Add SCHED_STATFS_LIKE for "%%statfs". * strace.1 (.SS Filtering): Add information about %%statfs syscall class. * NEWS: Mention this change. * linux/32/syscallent.h (statfs64, fstatfs64): Add TSFA flag. * linux/64/syscallent.h (statfs, fstatfs): Likewise. * linux/aarch64/syscallent.h (statfs, fstatfs, ustat): Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/arm/syscallent.h (statfs, statfs64, fstatfs, fstatfs64, ustat): Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/crisv10/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * linux/alpha/syscallent.h (osf_statfs, osf_statfs64, statfs, ofs_fstatfs, osf_fstatfs64, ustat): Likewise. * linux/mips/syscallent-compat.h (*_statfs, *_statvfs, *_fstatfs): Likewise. * tests/gen_tests.in (trace_statfs_like): New entry. * tests/trace_statfs_like.in: New file. * tests/Makefile.am (EXTRA_DIST): Add it. * tests/ksysent.c (TSFA): New macro, defined to 0. * tests/nsyscalls.c: Likewise.
2017-04-16 16:30:29 +03:00
trace_statfs_like.in \
uio.expected \
umode_t.c \
umovestr.expected \
unix-pair-send-recv.expected \
unix-pair-sendto-recvfrom.expected \
xchownx.c \
xgetrlimit.c \
xselect.c \
xstatfs.c \
xstatfs64.c \
xstatfsx.c \
xstatx.c \
xutimes.c \
$(TESTS)
ksysent.h: $(srcdir)/ksysent.sed
echo '#include <asm/unistd.h>' | \
$(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
LC_COLLATE=C sed -r -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
mv -f $@.t2 $@
rm -f $@.t1
ksysent.$(OBJEXT): ksysent.h
objects = $(filter %.$(OBJEXT),$(SOURCES:.c=.$(OBJEXT)))
$(objects): scno.h
tests: run every test except ksysent.test in its own subdirectory Many test executables create temporary files in the current work directory for the duration of their execution. This level of test isolation allows more test executables to be invoked several times simultaneously. * tests/.gitignore: Add *.dir, remove *.log.*, *.tmp, *.tmp-*, and *.tmp.* patterns. * tests/Makefile.am (clean-local, clean-local-check): New rules. (.PHONY): Add clean-local-check. (CLEANFILES): Remove all but ksysent.h. * tests/init.sh: Strip test-specific prefix from LOG, OUT, and EXP variables. When invoked from a test, create a new test-specific directory, chdir into it, and add more ../ prefix to STRACE variable. (run_prog): Replace "./" with "../". * tests/attach-f-p.test: Replace "./" with "../". * tests/attach-p-cmd.test: Likewise. * tests/bexecve.test: Likewise. * tests/btrfs-v.test: Likewise. * tests/btrfs-vw.test: Likewise. * tests/btrfs-w.test: Likewise. * tests/count.test: Likewise. * tests/detach-running.test: Likewise. * tests/detach-sleeping.test: Likewise. * tests/detach-stopped.test: Likewise. * tests/mmap.test: Likewise. * tests/net-y-unix.test: Likewise. * tests/net-yy-inet.test: Likewise. * tests/net-yy-netlink.test: Likewise. * tests/net-yy-unix.test: Likewise. * tests/net.test: Likewise. * tests/opipe.test: Likewise. * tests/poll.test: Likewise. * tests/prctl-seccomp-strict.test: Likewise. * tests/qual_fault-exit_group.test: Likewise. * tests/qual_fault.test: Likewise. * tests/qual_inject-error-signal.test: Likewise. * tests/qual_inject-retval.test: Likewise. * tests/qual_inject-signal.test: Likewise. * tests/qual_signal.test: Likewise. * tests/qual_syscall.test: Likewise. * tests/readv.test: Likewise. * tests/redirect-fds.test: Likewise. * tests/sched.test: Likewise. * tests/scm_rights-fd.test: Likewise. * tests/seccomp-strict.test: Likewise. * tests/strace-C.test: Likewise. * tests/strace-E.expected: Likewise. * tests/strace-E.test: Likewise. * tests/strace-S.test: Likewise. * tests/strace-T.test: Likewise. * tests/strace-V.test: Likewise. * tests/strace-ff.test: Likewise. * tests/strace-k.test: Likewise. * tests/strace-r.expected: Likewise. * tests/strace-r.test: Likewise. * tests/strace-t.test: Likewise. * tests/strace-tt.test: Likewise. * tests/strace-ttt.test: Likewise. * tests/sun_path.test: Likewise. * tests/uname.test: Likewise. * tests/unix-pair-send-recv.test: Likewise. * tests/unix-pair-sendto-recvfrom.test: Likewise.
2017-04-02 04:03:24 +03:00
clean-local: clean-local-check
.PHONY: clean-local-check
clean-local-check:
tests: tabulate stereotypical test scripts Convert test scripts that follow simple testing patterns to a table. Generate all these scripts from gen_tests.in file using gen_tests.sh script at bootstrap time. The largest set of test scripts has been converted using the following command: grep -l ^run_strace_match_diff *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' || sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f" done The second largest set of test scripts has been converted using the following command: grep -l srcdir= *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Fvq srcdir= || sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f" done * tests/gen_tests.in: New file. * tests/gen_tests.sh: New file. * bootstrap: Invoke it. * tests/.gitignore: Add *.gen.test and gen_tests.am. * tests/_newselect.test: Remove. * tests/accept.test: Ditto. * tests/accept4.test: Ditto. * tests/access.test: Ditto. * tests/acct.test: Ditto. * tests/add_key.test: Ditto. * tests/adjtimex.test: Ditto. * tests/aio.test: Ditto. * tests/alarm.test: Ditto. * tests/bpf.test: Ditto. * tests/btrfs.test: Ditto. * tests/chmod.test: Ditto. * tests/chown.test: Ditto. * tests/chown32.test: Ditto. * tests/chroot.test: Ditto. * tests/clock_adjtime.test: Ditto. * tests/clock_nanosleep.test: Ditto. * tests/clock_xettime.test: Ditto. * tests/copy_file_range.test: Ditto. * tests/creat.test: Ditto. * tests/delete_module.test: Ditto. * tests/dup.test: Ditto. * tests/dup2.test: Ditto. * tests/dup3.test: Ditto. * tests/epoll_create.test: Ditto. * tests/epoll_create1.test: Ditto. * tests/epoll_ctl.test: Ditto. * tests/epoll_pwait.test: Ditto. * tests/epoll_wait.test: Ditto. * tests/erestartsys.test: Ditto. * tests/execveat-v.test: Ditto. * tests/execveat.test: Ditto. * tests/faccessat.test: Ditto. * tests/fadvise64_64.test: Ditto. * tests/fallocate.test: Ditto. * tests/fanotify_init.test: Ditto. * tests/fanotify_mark.test: Ditto. * tests/fchdir.test: Ditto. * tests/fchmod.test: Ditto. * tests/fchmodat.test: Ditto. * tests/fchown.test: Ditto. * tests/fchown32.test: Ditto. * tests/fchownat.test: Ditto. * tests/fcntl.test: Ditto. * tests/fcntl64.test: Ditto. * tests/fdatasync.test: Ditto. * tests/file_handle.test: Ditto. * tests/file_ioctl.test: Ditto. * tests/finit_module.test: Ditto. * tests/flock.test: Ditto. * tests/fork-f.test: Ditto. * tests/fstat64.test: Ditto. * tests/fstatat64.test: Ditto. * tests/fstatfs.test: Ditto. * tests/fstatfs64.test: Ditto. * tests/fsync.test: Ditto. * tests/ftruncate.test: Ditto. * tests/ftruncate64.test: Ditto. * tests/futimesat.test: Ditto. * tests/get_mempolicy.test: Ditto. * tests/getcpu.test: Ditto. * tests/getcwd.test: Ditto. * tests/getdents.test: Ditto. * tests/getdents64.test: Ditto. * tests/getegid.test: Ditto. * tests/getegid32.test: Ditto. * tests/geteuid.test: Ditto. * tests/geteuid32.test: Ditto. * tests/getgid.test: Ditto. * tests/getgid32.test: Ditto. * tests/getgroups.test: Ditto. * tests/getgroups32.test: Ditto. * tests/getpeername.test: Ditto. * tests/getpgrp.test: Ditto. * tests/getrandom.test: Ditto. * tests/getresgid.test: Ditto. * tests/getresgid32.test: Ditto. * tests/getresuid.test: Ditto. * tests/getresuid32.test: Ditto. * tests/getrlimit.test: Ditto. * tests/getrusage.test: Ditto. * tests/getsid.test: Ditto. * tests/getsockname.test: Ditto. * tests/getuid32.test: Ditto. * tests/getxxid.test: Ditto. * tests/inet-cmsg.test: Ditto. * tests/init_module.test: Ditto. * tests/inotify.test: Ditto. * tests/inotify_init1.test: Ditto. * tests/int_0x80.test: Ditto. * tests/ioctl_block.test: Ditto. * tests/ioctl_evdev.test: Ditto. * tests/ioctl_loop.test: Ditto. * tests/ioctl_mtd.test: Ditto. * tests/ioctl_rtc.test: Ditto. * tests/ioctl_scsi.test: Ditto. * tests/ioctl_sg_io_v3.test: Ditto. * tests/ioctl_sg_io_v4.test: Ditto. * tests/ioctl_uffdio.test: Ditto. * tests/ioctl_v4l2.test: Ditto. * tests/ioperm.test: Ditto. * tests/iopl.test: Ditto. * tests/ioprio.test: Ditto. * tests/ip_mreq.test: Ditto. * tests/ipc.test: Ditto. * tests/ipc_msg.test: Ditto. * tests/ipc_sem.test: Ditto. * tests/ipc_shm.test: Ditto. * tests/kcmp.test: Ditto. * tests/kexec_file_load.test: Ditto. * tests/kexec_load.test: Ditto. * tests/keyctl.test: Ditto. * tests/kill.test: Ditto. * tests/lchown.test: Ditto. * tests/lchown32.test: Ditto. * tests/link.test: Ditto. * tests/linkat.test: Ditto. * tests/lookup_dcookie.test: Ditto. * tests/lstat.test: Ditto. * tests/lstat64.test: Ditto. * tests/mbind.test: Ditto. * tests/membarrier.test: Ditto. * tests/memfd_create.test: Ditto. * tests/migrate_pages.test: Ditto. * tests/mincore.test: Ditto. * tests/mkdir.test: Ditto. * tests/mkdirat.test: Ditto. * tests/mknod.test: Ditto. * tests/mknodat.test: Ditto. * tests/mlock.test: Ditto. * tests/mlock2.test: Ditto. * tests/mlockall.test: Ditto. * tests/mmap64.test: Ditto. * tests/mmsg-silent.test: Ditto. * tests/mmsg.test: Ditto. * tests/mmsg_name-v.test: Ditto. * tests/mmsg_name.test: Ditto. * tests/mount.test: Ditto. * tests/move_pages.test: Ditto. * tests/mq.test: Ditto. * tests/mq_sendrecv-read.test: Ditto. * tests/mq_sendrecv-write.test: Ditto. * tests/mq_sendrecv.test: Ditto. * tests/msg_control-v.test: Ditto. * tests/msg_control.test: Ditto. * tests/msg_name.test: Ditto. * tests/munlockall.test: Ditto. * tests/nanosleep.test: Ditto. * tests/net-icmp_filter.test: Ditto. * tests/net-sockaddr.test: Ditto. * tests/newfstatat.test: Ditto. * tests/old_mmap.test: Ditto. * tests/oldfstat.test: Ditto. * tests/oldlstat.test: Ditto. * tests/oldstat.test: Ditto. * tests/open.test: Ditto. * tests/openat.test: Ditto. * tests/pause.test: Ditto. * tests/perf_event_open.test: Ditto. * tests/perf_event_open_nonverbose.test: Ditto. * tests/perf_event_open_unabbrev.test: Ditto. * tests/pipe2.test: Ditto. * tests/pkey_alloc.test: Ditto. * tests/pkey_free.test: Ditto. * tests/pkey_mprotect.test: Ditto. * tests/ppoll-v.test: Ditto. * tests/ppoll.test: Ditto. * tests/preadv-pwritev.test: Ditto. * tests/preadv.test: Ditto. * tests/preadv2-pwritev2.test: Ditto. * tests/printstr.test: Ditto. * tests/prlimit64.test: Ditto. * tests/process_vm_readv.test: Ditto. * tests/process_vm_writev.test: Ditto. * tests/pselect6.test: Ditto. * tests/ptrace.test: Ditto. * tests/pwritev.test: Ditto. * tests/quotactl-v.test: Ditto. * tests/quotactl-xfs-v.test: Ditto. * tests/quotactl-xfs.test: Ditto. * tests/quotactl.test: Ditto. * tests/readahead.test: Ditto. * tests/readdir.test: Ditto. * tests/readlink.test: Ditto. * tests/readlinkat.test: Ditto. * tests/reboot.test: Ditto. * tests/recvfrom.test: Ditto. * tests/recvmmsg-timeout.test: Ditto. * tests/recvmsg.test: Ditto. * tests/remap_file_pages.test: Ditto. * tests/rename.test: Ditto. * tests/renameat.test: Ditto. * tests/renameat2.test: Ditto. * tests/request_key.test: Ditto. * tests/rmdir.test: Ditto. * tests/rt_sigpending.test: Ditto. * tests/rt_sigprocmask.test: Ditto. * tests/rt_sigqueueinfo.test: Ditto. * tests/rt_sigreturn.test: Ditto. * tests/rt_sigsuspend.test: Ditto. * tests/rt_sigtimedwait.test: Ditto. * tests/rt_tgsigqueueinfo.test: Ditto. * tests/sched_get_priority_mxx.test: Ditto. * tests/sched_rr_get_interval.test: Ditto. * tests/sched_xetaffinity.test: Ditto. * tests/sched_xetattr.test: Ditto. * tests/sched_xetparam.test: Ditto. * tests/sched_xetscheduler.test: Ditto. * tests/sched_yield.test: Ditto. * tests/seccomp-filter-v.test: Ditto. * tests/seccomp-filter.test: Ditto. * tests/select.test: Ditto. * tests/semop.test: Ditto. * tests/sendfile.test: Ditto. * tests/sendfile64.test: Ditto. * tests/set_mempolicy.test: Ditto. * tests/setdomainname.test: Ditto. * tests/setfsgid.test: Ditto. * tests/setfsgid32.test: Ditto. * tests/setfsuid.test: Ditto. * tests/setfsuid32.test: Ditto. * tests/setgid.test: Ditto. * tests/setgid32.test: Ditto. * tests/setgroups.test: Ditto. * tests/setgroups32.test: Ditto. * tests/sethostname.test: Ditto. * tests/setns.test: Ditto. * tests/setregid.test: Ditto. * tests/setregid32.test: Ditto. * tests/setresgid.test: Ditto. * tests/setresgid32.test: Ditto. * tests/setresuid.test: Ditto. * tests/setresuid32.test: Ditto. * tests/setreuid.test: Ditto. * tests/setreuid32.test: Ditto. * tests/setrlimit.test: Ditto. * tests/setuid.test: Ditto. * tests/setuid32.test: Ditto. * tests/shutdown.test: Ditto. * tests/siginfo.test: Ditto. * tests/signal_receive.test: Ditto. * tests/signalfd4.test: Ditto. * tests/sigreturn.test: Ditto. * tests/socketcall.test: Ditto. * tests/splice.test: Ditto. * tests/stat.test: Ditto. * tests/stat64.test: Ditto. * tests/statfs64.test: Ditto. * tests/statx.sh: Ditto. * tests/statx.test: Ditto. * tests/swap.test: Ditto. * tests/symlink.test: Ditto. * tests/symlinkat.test: Ditto. * tests/sync.test: Ditto. * tests/sync_file_range.test: Ditto. * tests/sync_file_range2.test: Ditto. * tests/sysinfo.test: Ditto. * tests/syslog.test: Ditto. * tests/tee.test: Ditto. * tests/time.test: Ditto. * tests/timer_create.test: Ditto. * tests/timer_xettime.test: Ditto. * tests/timerfd_xettime.test: Ditto. * tests/times-fail.test: Ditto. * tests/times.test: Ditto. * tests/truncate.test: Ditto. * tests/truncate64.test: Ditto. * tests/ugetrlimit.test: Ditto. * tests/umask.test: Ditto. * tests/umoven-illptr.test: Ditto. * tests/umovestr-illptr.test: Ditto. * tests/umovestr3.test: Ditto. * tests/unlink.test: Ditto. * tests/unlinkat.test: Ditto. * tests/unshare.test: Ditto. * tests/userfaultfd.test: Ditto. * tests/ustat.test: Ditto. * tests/utime.test: Ditto. * tests/utimes.test: Ditto. * tests/vfork-f.test: Ditto. * tests/vhangup.test: Ditto. * tests/vmsplice.test: Ditto. * tests/wait4-v.test: Ditto. * tests/wait4.test: Ditto. * tests/waitid-v.test: Ditto. * tests/waitid.test: Ditto. * tests/waitpid.test: Ditto. * tests/xattr-strings.test: Ditto. * tests/xet_robust_list.test: Ditto. * tests/xetitimer.test: Ditto. * tests/xetpgid.test: Ditto. * tests/xetpriority.test: Ditto. * tests/xettimeofday.test: Ditto. * tests/Makefile.am (DECODER_TESTS, MISC_TESTS): Remove them. Include gen_tests.am. (TESTS): Add $(GEN_TESTS). (XFAIL_TESTS_x86_64, XFAIL_TESTS_x32): Rename int_0x80.test to int_0x80.gen.test. (EXTRA_DIST): Add gen_tests.in and gen_tests.sh, remove statx.sh. (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
2017-04-05 03:37:54 +03:00
-rm -rf -- $(TESTS:.test=.dir) $(GEN_TESTS:.gen.test=.dir)
tests: run every test except ksysent.test in its own subdirectory Many test executables create temporary files in the current work directory for the duration of their execution. This level of test isolation allows more test executables to be invoked several times simultaneously. * tests/.gitignore: Add *.dir, remove *.log.*, *.tmp, *.tmp-*, and *.tmp.* patterns. * tests/Makefile.am (clean-local, clean-local-check): New rules. (.PHONY): Add clean-local-check. (CLEANFILES): Remove all but ksysent.h. * tests/init.sh: Strip test-specific prefix from LOG, OUT, and EXP variables. When invoked from a test, create a new test-specific directory, chdir into it, and add more ../ prefix to STRACE variable. (run_prog): Replace "./" with "../". * tests/attach-f-p.test: Replace "./" with "../". * tests/attach-p-cmd.test: Likewise. * tests/bexecve.test: Likewise. * tests/btrfs-v.test: Likewise. * tests/btrfs-vw.test: Likewise. * tests/btrfs-w.test: Likewise. * tests/count.test: Likewise. * tests/detach-running.test: Likewise. * tests/detach-sleeping.test: Likewise. * tests/detach-stopped.test: Likewise. * tests/mmap.test: Likewise. * tests/net-y-unix.test: Likewise. * tests/net-yy-inet.test: Likewise. * tests/net-yy-netlink.test: Likewise. * tests/net-yy-unix.test: Likewise. * tests/net.test: Likewise. * tests/opipe.test: Likewise. * tests/poll.test: Likewise. * tests/prctl-seccomp-strict.test: Likewise. * tests/qual_fault-exit_group.test: Likewise. * tests/qual_fault.test: Likewise. * tests/qual_inject-error-signal.test: Likewise. * tests/qual_inject-retval.test: Likewise. * tests/qual_inject-signal.test: Likewise. * tests/qual_signal.test: Likewise. * tests/qual_syscall.test: Likewise. * tests/readv.test: Likewise. * tests/redirect-fds.test: Likewise. * tests/sched.test: Likewise. * tests/scm_rights-fd.test: Likewise. * tests/seccomp-strict.test: Likewise. * tests/strace-C.test: Likewise. * tests/strace-E.expected: Likewise. * tests/strace-E.test: Likewise. * tests/strace-S.test: Likewise. * tests/strace-T.test: Likewise. * tests/strace-V.test: Likewise. * tests/strace-ff.test: Likewise. * tests/strace-k.test: Likewise. * tests/strace-r.expected: Likewise. * tests/strace-r.test: Likewise. * tests/strace-t.test: Likewise. * tests/strace-tt.test: Likewise. * tests/strace-ttt.test: Likewise. * tests/sun_path.test: Likewise. * tests/uname.test: Likewise. * tests/unix-pair-send-recv.test: Likewise. * tests/unix-pair-sendto-recvfrom.test: Likewise.
2017-04-02 04:03:24 +03:00
.PHONY: check-valgrind-local
check-valgrind-local: $(check_LIBRARIES) $(check_PROGRAMS)
BUILT_SOURCES = ksysent.h
tests: run every test except ksysent.test in its own subdirectory Many test executables create temporary files in the current work directory for the duration of their execution. This level of test isolation allows more test executables to be invoked several times simultaneously. * tests/.gitignore: Add *.dir, remove *.log.*, *.tmp, *.tmp-*, and *.tmp.* patterns. * tests/Makefile.am (clean-local, clean-local-check): New rules. (.PHONY): Add clean-local-check. (CLEANFILES): Remove all but ksysent.h. * tests/init.sh: Strip test-specific prefix from LOG, OUT, and EXP variables. When invoked from a test, create a new test-specific directory, chdir into it, and add more ../ prefix to STRACE variable. (run_prog): Replace "./" with "../". * tests/attach-f-p.test: Replace "./" with "../". * tests/attach-p-cmd.test: Likewise. * tests/bexecve.test: Likewise. * tests/btrfs-v.test: Likewise. * tests/btrfs-vw.test: Likewise. * tests/btrfs-w.test: Likewise. * tests/count.test: Likewise. * tests/detach-running.test: Likewise. * tests/detach-sleeping.test: Likewise. * tests/detach-stopped.test: Likewise. * tests/mmap.test: Likewise. * tests/net-y-unix.test: Likewise. * tests/net-yy-inet.test: Likewise. * tests/net-yy-netlink.test: Likewise. * tests/net-yy-unix.test: Likewise. * tests/net.test: Likewise. * tests/opipe.test: Likewise. * tests/poll.test: Likewise. * tests/prctl-seccomp-strict.test: Likewise. * tests/qual_fault-exit_group.test: Likewise. * tests/qual_fault.test: Likewise. * tests/qual_inject-error-signal.test: Likewise. * tests/qual_inject-retval.test: Likewise. * tests/qual_inject-signal.test: Likewise. * tests/qual_signal.test: Likewise. * tests/qual_syscall.test: Likewise. * tests/readv.test: Likewise. * tests/redirect-fds.test: Likewise. * tests/sched.test: Likewise. * tests/scm_rights-fd.test: Likewise. * tests/seccomp-strict.test: Likewise. * tests/strace-C.test: Likewise. * tests/strace-E.expected: Likewise. * tests/strace-E.test: Likewise. * tests/strace-S.test: Likewise. * tests/strace-T.test: Likewise. * tests/strace-V.test: Likewise. * tests/strace-ff.test: Likewise. * tests/strace-k.test: Likewise. * tests/strace-r.expected: Likewise. * tests/strace-r.test: Likewise. * tests/strace-t.test: Likewise. * tests/strace-tt.test: Likewise. * tests/strace-ttt.test: Likewise. * tests/sun_path.test: Likewise. * tests/uname.test: Likewise. * tests/unix-pair-send-recv.test: Likewise. * tests/unix-pair-sendto-recvfrom.test: Likewise.
2017-04-02 04:03:24 +03:00
CLEANFILES = ksysent.h
include ../scno.am