579a4aae8a
tests: introduce $NAME
...
* tests/init.sh (NAME): New variable, defined to ${ME_%.test}.
(run_prog, match_awk, match_diff, match_grep): Replace ${ME_%.test}
with $NAME.
* tests/fcntl.test: Likewise.
* tests/fstat.test: Likewise.
* tests/mmap.test: Likewise.
* tests/net-y-unix.test: Likewise.
* tests/net-yy-inet.test: Likewise.
* tests/net-yy-unix.test: Likewise.
* tests/open.test: Likewise.
* tests/openat.test: Likewise.
* tests/poll.test: Likewise.
* tests/ppoll.test: Likewise.
* tests/readlink.test: Likewise.
* tests/select.test: Likewise.
* tests/statx.sh: Likewise.
* tests/uname.test: Likewise.
2016-03-30 00:13:56 +00:00
2e8a7871ab
tests: move definitions of $OUT and $ERR to init.sh
...
As virtually every test defines either one or both of OUT and ERR
variables and these definitions are exactly the same, move definitions
of these variables from individual tests to init.sh.
* tests/init.sh (OUT, ERR): New variables.
* tests/ipc.sh: Remove initialization of OUT variable.
* tests/statx.sh: Likewise.
* tests/*.test: Remove initialization of OUT and ERR variables.
2016-03-30 00:13:37 +00:00
a990e8c671
tests: simplify sendfile.test and sendfile64.test
...
Use the executable itself for input by default.
* tests/sendfile.c (main): Use av[0] instead of av[1] for input.
* tests/sendfile64.c (main): Likewise.
* tests/sendfile.test: Invoke run_prog without arguments.
* tests/sendfile64.test: Likewise.
2016-03-29 17:01:02 +00:00
1e7dfc38fd
open.test, openat.test: lift /proc requirement
...
While -P option needs /proc to match descriptors, it does not use
/proc to match pathnames. As these tests do not need descriptor
match, the /proc requirement can be safely lifted.
* tests/open.test: Lift /proc/self/fd/ requirement.
* tests/openat.test: Likewise.
2016-03-29 03:33:00 +00:00
cca2e53c4a
quotactl: add decoding of Q_GETNEXTQUOTA and Q_XGETNEXTQUOTA
...
* quota.c (if_nextdqblk): New structure.
(decode_cmd_data): Handle Q_GETNEXTQUOTA and Q_XGETNEXTQUOTA.
2016-03-29 01:15:24 +00:00
4ce6b5e0e8
Update Q_* constants
...
* xlat/quotacmds.in: Add Q_GETNEXTQUOTA and Q_XGETNEXTQUOTA introduced
by linux kernel commits v4.6-rc1~65^2~9^2~5 and v4.6-rc1~65^2~9^2~6.
2016-03-29 00:51:28 +00:00
c4d67d4141
Update CLONE_* constants
...
* xlat/clone_flags.in: Rename CLONE_STOPPED to CLONE_NEWCGROUP.
The former was removed by linux kernel commit v2.6.38-rc1~217.
The latter was introduced by linux kernel commit v4.6-rc1~67^2~8.
2016-03-29 00:51:28 +00:00
54cc3e1d21
Update BPF_MAP_TYPE_* constants
...
* xlat/bpf_map_types.in: Add BPF_MAP_TYPE_PERCPU_HASH,
BPF_MAP_TYPE_PERCPU_ARRAY, and BPF_MAP_TYPE_STACK_TRACE introduced by
linux kernel commits v4.6-rc1~91^2~326^2~5, v4.6-rc1~91^2~326^2~4, and
v4.6-rc1~91^2~212^2~1, respectively.
2016-03-29 00:28:11 +00:00
ce515ddda4
Update SO_* constants
...
* xlat/sockoptions.in: Add SO_CNX_ADVICE introduced by linux kernel
commit v4.6-rc1~91^2~176.
2016-03-29 00:20:37 +00:00
ebd1124bce
Update SEGV_* constants
...
* xlat/sigsegv_codes.in: Add SEGV_PKUERR introduced by linux kernel
commit v4.6-rc1~68^2~23.
2016-03-29 00:17:19 +00:00
dbc68b7034
avr32: wire up copy_file_range syscall
...
* linux/avr32/syscallent.h [325]: Add copy_file_range entry.
2016-03-29 00:01:07 +00:00
JayRJoshi
d2029cc4a1
tests/uname.test: check abbreviated output, use print_quoted_string
...
* tests/uname.c (main): Use print_quoted_string to print
utsname members. Add abbrev check.
* tests/uname.test: Add abbrev check.
2016-03-28 23:25:30 +00:00
90406df134
faccessat.test: robustify against libcs invoking faccessat syscall on their own
...
* tests/faccessat.c (TMP_FILE): Rename to sample, change its value
to "faccessat.sample".
* tests/faccessat.test: Rewrite using openat.test.
2016-03-28 00:16:17 +00:00
347a5d45ec
openat.test: robustify against libcs invoking openat syscall on their own
...
* tests/openat.c (main): Rename fname to sample, change its value
to "openat.sample".
* tests/openat.test: Use -P option to filter out openat syscalls
made by libc and dynamic linker.
2016-03-28 00:16:02 +00:00
f09a474877
tests: add open.test
...
* tests/open.c: New file.
* tests/open.test: New test.
* tests/.gitignore: Add open.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add open.test.
2016-03-28 00:15:15 +00:00
e17f28dce0
Update generic ioctl entries from linux 4.5
...
* linux/64/ioctls_inc.h: Update from linux v4.5 using ioctls_gen.sh.
* linux/32/ioctls_inc_align32.h: Likewise.
* linux/32/ioctls_inc_align64.h: Likewise.
* NEWS: Mention this.
2016-03-27 00:03:27 +00:00
e7794ae36c
maint: update for linux 4.5
...
* maint/ioctls_sym.sh: Update workarounds for drm/*_drm.h files.
Add workarounds for xen/gntdev.h and net/nfc/nci_core.h files.
Update path of saa6588.h and exynos-fimc.h files.
2016-03-26 23:37:18 +00:00
9d91928320
Fix decoding of device numbers in mknod and mknodat syscalls
...
* mknod.c (decode_mknod): Treat device number argument as unsigned int.
* tests/mknod.c: Include <sys/sysmacros.h> or <sys/mkdev.h>
for definition of makedev macro.
(main): Add a check for a character special file.
2016-03-25 23:48:48 +00:00
b0e507f39d
sparc64: fix decoding of mknod and mknodat syscalls for sparc personality
...
Remove remnants of solaris personality support in mknod parser
that resulted to sparc personality being decoded as old solaris
personality. This complements commit v4.10-45-gdf4dd8b and fixes
commit v4.10-46-g588a90f.
* mknod.c (decode_mknod) [SPARC || SPARC64]: Remove.
2016-03-25 23:48:48 +00:00
Katerina Koukiou
6598026d6a
tests: add openat.test
...
* tests/openat.c: New file.
* tests/openat.test: New test.
* tests/.gitignore: Add openat.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add openat.test.
2016-03-25 19:40:12 +00:00
Fei Jie
896479de76
tests: add renameat.test
...
* tests/renameat.c: New file.
* tests/renameat.test: New test.
* tests/.gitignore: Add renameat.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add renameat.test.
2016-03-25 09:47:16 +00:00
Fei Jie
e2975b61b3
tests: add faccessat.test
...
* tests/faccessat.c: New file.
* tests/faccessat.test: New test.
* tests/.gitignore: Add faccessat.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add faccessat.test.
2016-03-25 09:47:15 +00:00
Fei Jie
8346e63e43
tests: add creat.test
...
* tests/creat.c: New file.
* tests/creat.test: New test.
* tests/.gitignore: Add creat.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add creat.test.
2016-03-25 09:47:14 +00:00
Fei Jie
0ebe67b780
tests: add mknod.test
...
* tests/mknod.c: New file.
* tests/mknod.test: New test.
* tests/.gitignore: Add mknod.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add mknod.test.
2016-03-25 09:47:13 +00:00
Fei Jie
9a88371122
tests: add syslog.test
...
* tests/syslog.c: New file.
* tests/syslog.test: New test.
* tests/.gitignore: Add syslog.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add syslog.test.
2016-03-25 09:46:19 +00:00
JayRJoshi
c4e36dc14e
tests/scm_rights-fd.test: fix pathname regex
...
Pathname containing >, }, or non-printable characters was resulting
in failing of the test.
* tests/scm_rights-fd.test: Fix pathname regex and simplify things.
2016-03-23 19:13:13 +00:00
e10ab4cdbc
tests: add strace-r.test
...
* tests/strace-r.expected: New file.
* tests/strace-r.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
(EXTRA_DIST): Add strace-r.expected.
2016-03-24 01:27:03 +00:00
534a39292a
tests: add strace-ttt.test
...
* tests/strace-ttt.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
2016-03-24 01:10:02 +00:00
e4d110df88
tests: add strace-tt.test
...
* tests/strace-tt.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
2016-03-24 01:03:31 +00:00
ac2c43e8e9
tests: add strace-t.test
...
* tests/strace-t.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
2016-03-24 00:59:32 +00:00
a08d03f08d
tests: add strace-T.test
...
* tests/strace-T.expected: New file.
* tests/strace-T.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
(EXTRA_DIST): Add strace-T.expected.
2016-03-24 00:31:23 +00:00
f7f7e601c3
tests: split out tests of specific decoders
...
Split TESTS into three groups: tests of specific decoders, libunwind
tests, and all other tests.
* tests/Makefile.am (TESTS): Move attach-f-p.test, attach-p-cmd.test,
bexecve.test, count-f.test, count.test, detach-running.test,
detach-sleeping.test, detach-stopped.test, dumpio.test,
filter-unavailable.test, fork-f.test, ksysent.test, opipe.test,
pc.test, qual_syscall.test, redirect.test, restart_syscall.test,
strace-f.test, and vfork-f.test to MISC_TESTS.
Move remaining tests except $(LIBUNWIND_TESTS) to DECODER_TESTS.
Add $(DECODER_TESTS) and $(MISC_TESTS).
2016-03-23 23:07:02 +00:00
JayRJoshi
39ab120626
tests: add getcwd.test
...
* tests/getcwd.c: New file.
* tests/getcwd.test: New test.
* tests/.gitignore: Add getcwd.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add getcwd.test.
2016-03-23 13:38:35 +00:00
JayRJoshi
17654da621
tests: add print_quoted_string function to libtests
...
* tests/tests.h (print_quoted_string): New prototype.
* tests/print_quoted_string.c: New file.
* tests/Makefile.am (libtests_a_SOURCES): Add it.
2016-03-23 13:34:15 +00:00
Fei Jie
032a9a4358
tests: add xetpriority.test
...
* resource.c (SYS_FUNC(getpriority), SYS_FUNC(setpriority)): Print
the second syscall argument using %d format.
* tests/xetpriority.c: New file.
* tests/xetpriority.test: New test.
* tests/.gitignore: Add xetpriority.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add xetpriority.test.
2016-03-17 09:30:45 +00:00
Fei Jie
b824f9872b
tests: add flock.test
...
* tests/flock.c: New file.
* tests/flock.test: New test.
* tests/.gitignore: Add flock.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add flock.test.
2016-03-15 08:38:34 +00:00
Fei Jie
c3fb92c0ae
tests: add sched_xetscheduler.test
...
* tests/sched_xetscheduler.c: New file.
* tests/sched_xetscheduler.test: New test.
* tests/.gitignore: Add sched_xetscheduler.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add sched_xetscheduler.test.
2016-03-15 08:38:17 +00:00
ab26390287
alpha: fix SOCK_DIAG_BY_FAMILY tests
...
This complements commit v4.9-368-g301c65c.
* tests/netlink_inet_diag.c (check_responses): Align "buf"
on sizeof(long) boundary.
* tests/netlink_unix_diag.c (check_responses): Likewise.
2016-03-15 02:54:38 +00:00
aa7b60de3e
Update EPOLL* constants
...
* xlat/epollevents.in: Add EPOLLWAKEUP and EPOLLEXCLUSIVE.
2016-03-14 21:53:19 +00:00
b389028e08
tests: add count-f.test
...
* tests/count-f.c: New file.
* tests/count-f.expected: Likewise.
* tests/count-f.test: New test.
* tests/.gitignore: Add count-f.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(count_f_LDADD): New variable.
(EXTRA_DIST): Add count-f.expected.
(TESTS): Add count-f.test.
2016-03-12 23:52:52 +00:00
5d6292c167
hppa: wire up copy_file_range syscall
...
* linux/hppa/syscallent.h [346]: Add copy_file_range entry.
2016-02-21 01:53:31 +00:00
Fei Jie
fb2230665c
tests: filter strace output in uname test
...
* tests/uname.test: Use uniq to filter strace output.
2016-03-11 02:43:02 +00:00
Fei Jie
ea5c7b5515
tests: add sched_xetparam.test
...
* tests/sched_xetparam.c: New file.
* tests/sched_xetparam.test: New test.
* tests/.gitignore: Add sched_xetparam.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add sched_xetparam.test.
2016-03-10 09:12:24 +00:00
Fei Jie
1eed594f30
tests: add sched_get_priority_mxx.test
...
* tests/sched_get_priority_mxx.c: New file.
* tests/sched_get_priority_mxx.test: New test.
* tests/.gitignore: Add sched_get_priority_mxx.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add sched_get_priority_mxx.test.
2016-03-10 09:12:23 +00:00
Fei Jie
ab917ae5af
tests: add dup.test, dup2.test, and dup3.test
...
* tests/dup.c: New file.
* tests/dup.test: New test.
* tests/dup2.c: New file.
* tests/dup2.test: New test.
* tests/dup3.c: New file.
* tests/dup3.test: New test.
* tests/.gitignore: Add dup, dup2, and dup3.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add dup.test, dup2.test, and dup3.test.
2016-03-10 02:41:31 +00:00
Fabien Siron
61ac8ee9b2
tests: add fchmod.test
...
* tests/fchmod.c: New file.
* tests/fchmod.test: New test.
* tests/.gitignore: Add fchmod.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add fchmod.test.
2016-03-10 10:29:32 +00:00
Fei Jie
275d135ec2
tests: add acct.test
...
* tests/acct.c: New file.
* tests/acct.test: New test.
* tests/.gitignore: Add acct.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add acct.test.
2016-03-09 06:07:06 +00:00
Anchit Jain
1b5d1cbf63
tests: add chmod.test
...
* tests/chmod.c: New file.
* tests/chmod.test: New test.
* tests/.gitignore: Add chmod.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add chmod.test.
2016-03-07 23:13:28 +00:00
Nahim El Atmani
c811fa6115
Reduce memory usage while managing tcbs allocation.
...
* strace.c (init): Remove initial memory allocation for tcbtab.
(expand_tcbtab): Do initial memory allocation when tcbtabsize == 0.
Signed-off-by: Nahim El Atmani <nahim+dev@naam.me>
Reviewed-By: Gabriel Laskar <gabriel@lse.epita.fr>
Reported-by: haris iqbal <haris.phnx@gmail.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2016-03-05 17:02:05 +00:00
Fei Jie
eee3476844
tests: add umask.test
...
* tests/umask.c: New file.
* tests/umask.test: New test.
* tests/.gitignore: Add umask.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add umask.test.
2016-03-01 08:55:37 +00:00