3586679f7a
* tests/btrfs.c: New file. * tests/btrfs.test: New test. * tests/btrfs-v.test: Likewise. * tests/.gitignore: Add btrfs. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add btrfs.test and btrfs-v.test.
16 lines
261 B
Bash
Executable File
16 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check verbose decoding of btrfs ioctl
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog ./btrfs -v > /dev/null
|
|
run_strace -a16 -veioctl $args > "$EXP"
|
|
check_prog grep
|
|
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
|
|
match_diff "$OUT" "$EXP"
|
|
|
|
rm -f "$EXP" "$OUT"
|
|
|
|
exit 0
|