mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-26 08:02:21 +00:00
960e7b3800
The log levels have been added in 6.2, add the basic coverage. Signed-off-by: David Sterba <dsterba@suse.com>
31 lines
856 B
Bash
Executable File
31 lines
856 B
Bash
Executable File
#!/bin/bash
|
|
# test commands of btrfs
|
|
|
|
source "$TEST_TOP/common" || exit
|
|
|
|
check_prereq btrfs
|
|
|
|
# returns 1
|
|
run_mayfail $TOP/btrfs || true
|
|
run_check "$TOP/btrfs" version
|
|
run_check "$TOP/btrfs" version --
|
|
run_check "$TOP/btrfs" help
|
|
run_check "$TOP/btrfs" help --
|
|
run_check "$TOP/btrfs" help --full
|
|
run_check "$TOP/btrfs" --help
|
|
run_check "$TOP/btrfs" --help --full
|
|
run_check "$TOP/btrfs" --version
|
|
run_check "$TOP/btrfs" --version --help
|
|
|
|
# Log levels
|
|
run_check "$TOP/btrfs" --log=default help
|
|
run_check "$TOP/btrfs" --log=info help
|
|
run_check "$TOP/btrfs" -vv help
|
|
run_check "$TOP/btrfs" --log=verbose help
|
|
run_check "$TOP/btrfs" -vvv help
|
|
run_check "$TOP/btrfs" --log=debug help
|
|
run_check "$TOP/btrfs" -vvvv help
|
|
run_check "$TOP/btrfs" --log=quiet help
|
|
run_check "$TOP/btrfs" -q help
|
|
run_mustfail "invalid log level accepted" "$TOP/btrfs" --log=invalid help
|