summaryrefslogtreecommitdiff
path: root/tests/btrfs-vX.test
blob: db15a50c43d8c3b502d7151a48a41e0f008dc92d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Check verbose, verbose xlat decoding of btrfs ioctl.
#
# Copyright (c) 2018 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0-or-later

. "${srcdir=.}/init.sh"

check_prog grep
run_prog ../btrfs -v -X > /dev/null
run_strace -a16 -Xverbose -veioctl $args > "$EXP"
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"