tests: generalize scripts that check non-abbreviated decoding of ioctls

* tests/ioctl-v.sh: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
(DECODER_TESTS): Remove ioctl_evdev-v.test, ioctl_loop-v.test,
and ioctl_rtc-v.test.
* tests/gen_tests.in (ioctl_evdev-v, ioctl_loop-v, ioctl_rtc-v):
New entries.
* tests/ioctl_evdev-v.test: Remove.
* tests/ioctl_loop-v.test: Ditto.
* tests/ioctl_rtc-v.test: Ditto.
This commit is contained in:
Дмитрий Левин 2017-04-05 00:44:30 +00:00
parent 0527093a7c
commit c352954786
5 changed files with 6 additions and 27 deletions

View File

@ -502,10 +502,7 @@ DECODER_TESTS = \
ioctl.test \
ioctl_dm-v.test \
ioctl_dm.test \
ioctl_evdev-v.test \
ioctl_loop-nv.test \
ioctl_loop-v.test \
ioctl_rtc-v.test \
ioctl_sock_gifconf.test \
ipc_msgbuf.test \
llseek.test \
@ -621,6 +618,7 @@ EXTRA_DIST = gen_tests.in gen_tests.sh init.sh run.sh match.awk \
fstatx.c \
getresugid.c \
init_delete_module.h \
ioctl-v.sh \
ipc.sh \
ipc_msgbuf.expected \
ksysent.sed \

View File

@ -117,9 +117,12 @@ inotify_init1 -a27
int_0x80 -a11 -e trace=getgid32
ioctl_block +ioctl.test
ioctl_evdev +ioctl.test
ioctl_evdev-v +ioctl-v.sh
ioctl_loop +ioctl.test
ioctl_loop-v +ioctl-v.sh
ioctl_mtd +ioctl.test
ioctl_rtc +ioctl.test
ioctl_rtc-v +ioctl-v.sh
ioctl_scsi +ioctl.test
ioctl_sg_io_v3 +ioctl.test
ioctl_sg_io_v4 +ioctl.test

View File

@ -1,11 +1,11 @@
#!/bin/sh
# Check verbose decoding EVIOC* ioctls.
# Check non-abbreviated decoding of ioctls.
. "${srcdir=.}/init.sh"
check_prog grep
run_prog > /dev/null
run_strace -a16 -veioctl $args > "$EXP"
run_strace -a16 -v -eioctl $args > "$EXP"
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"

View File

@ -1,11 +0,0 @@
#!/bin/sh
# Check non-abbreviated decoding of LOOP_* ioctls.
. "${srcdir=.}/init.sh"
check_prog grep
run_prog > /dev/null
run_strace -a22 -v -eioctl $args > "$EXP"
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"

View File

@ -1,11 +0,0 @@
#!/bin/sh
# Check verbose decoding of RTC_* ioctls.
. "${srcdir=.}/init.sh"
check_prog grep
run_prog > /dev/null
run_strace -a16 -veioctl $args > "$EXP"
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"