strace/tests/ioctl-v.sh
Dmitry V. Levin c352954786 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.
2017-04-05 00:44:30 +00:00

12 lines
227 B
Bash
Executable File

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