strace/tests/ioctl_kvm_run.test
Masatake YAMATO 4f47c43ce7 tests: check decoding of KVM ioctl commands
* tests/ioctl_kvm_run.c: New file.
* tests/ioctl_kvm_run.test: New test.
* tests/Makefile.am (DECODER_TESTS): Add ioctl_kvm_run.test.
* tests/pure_executables.list: Add ioctl_kvm_run.
* tests/.gitignore: Likewise.

Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
2017-12-04 18:29:38 +00:00

12 lines
225 B
Bash
Executable File

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