btrfs-progs: tests: add 015-dump-super-garbage

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-09-01 20:05:20 +02:00
parent ee7bb45ddc
commit f919530b3a

View File

@ -0,0 +1,17 @@
#!/bin/bash
#
# let dump-super dump random data, must not crash
source $TOP/tests/common
check_prereq btrfs
run_check $TOP/btrfs inspect-internal dump-super /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -a /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -fa /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -Ffa /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -Ffa /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -Ffa /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -Ffa /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -Ffa /dev/urandom
run_check $TOP/btrfs inspect-internal dump-super -Ffa /dev/urandom