mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-27 14:14:30 +08:00
9d98ad1db5
Create a ready-to-use templates for the most common tests, copied from readme. Signed-off-by: David Sterba <dsterba@suse.com>
13 lines
297 B
Bash
13 lines
297 B
Bash
#!/bin/bash
|
|
# Simple test to create a new filesystem and test that it can be mounted
|
|
|
|
source "$TEST_TOP/common"
|
|
|
|
setup_root_helper
|
|
prepare_test_dev
|
|
|
|
run_check_mkfs_test_dev
|
|
run_check_mount_test_dev
|
|
run_check $SUDO_HELPER dd if=/dev/zero of="$TEST_MNT"/file bs=1M count=1
|
|
run_check_umount_test_dev
|