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:
parent
0527093a7c
commit
c352954786
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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"
|
@ -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"
|
@ -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"
|
Loading…
Reference in New Issue
Block a user