From: David Sterba Date: Mon, 2 May 2016 12:59:48 +0000 (+0200) Subject: btrfs-progs: tests: add 002-balance-full-no-filters X-Git-Tag: upstream/4.16.1~1605 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0121270a799df52dab8de852b326ebdaf05e19c9;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: tests: add 002-balance-full-no-filters Coverage of new balance option --full-balance. Signed-off-by: David Sterba --- diff --git a/tests/cli-tests/002-balance-full-no-filters/test.sh b/tests/cli-tests/002-balance-full-no-filters/test.sh new file mode 100755 index 0000000..c2757f2 --- /dev/null +++ b/tests/cli-tests/002-balance-full-no-filters/test.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# +# coverage of balance --full-balance + +source $TOP/tests/common + +check_prereq mkfs.btrfs +check_prereq btrfs + +setup_root_helper +prepare_test_dev 2g + +run_check $TOP/mkfs.btrfs -f $IMAGE +run_check_mount_test_dev + +run_check $SUDO_HELPER $TOP/btrfs balance start --full-balance $TEST_MNT +run_check $SUDO_HELPER $TOP/btrfs balance start $TEST_MNT +run_check $SUDO_HELPER $TOP/btrfs balance --full-balance $TEST_MNT +run_check $SUDO_HELPER $TOP/btrfs balance $TEST_MNT + +run_check_umount_test_dev