btrfs-progs: tests: add protection against running out of test suite
Executing the script inside the directories as './test.sh' is not supposed to work but could happen accidentally. With an exit after attempting to source the we can fix that. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
0ee736b1f0
commit
f6bbe06c08
131 changed files with 151 additions and 151 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test commands of btrfs
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# coverage of balance --full-balance
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# test parsing of various resize arguments
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# minimal test for the following syntax: btrfs send -p parent subvol1 subvol2
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# qgroup show behaviour when quotas are not enabled
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# simple test of qgroup show --sync option
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# test 'btrfs check --force' on a mounted filesystem
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test for "subvolume get-default/set-default"
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test all command line options of btrfstune
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfstune
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# simple test for 'subvol show' output
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# mountpoint and subvolume boundary, ie. only the first file should
|
||||
# appear in the list of processed files
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# check how deep does recursive 'fi du' go, currently it has to stop at
|
||||
# mountpoint and can continue to subvolumes
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Test deletion of subvolume specified by id
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# Tested for separate data/metadata and mixed
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Test parsing of option 'defrag -c'
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Tests 'btrfs fi usage' reports correct space/ratio with various RAID profiles
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Test that if a device is missing for a mounted filesystem, btrfs fi show will
|
||||
# show which device exactly is missing.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
# 4) Overlap file extents
|
||||
# 5) Unable to rollback
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
# create a base image, convert to btrfs, remove all files, rollback the ext4 image
|
||||
# note: ext4 only
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
# Fast pinpoint regression test. No options combination nor checksum
|
||||
# verification
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Check if block sizes smaller than 4k expectedly fail to convert
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Check if the converted ext2 image is readonly
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Check if btrfs-convert can copy common inode flags like SYNC/IMMUTABLE
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||
_not_run "no reiserfs support"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# create a base image, convert to btrfs, remove all files, rollback the reiserfs image
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||
_not_run "no reiserfs support"
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
# Fast pinpoint regression test. No options combination nor checksum
|
||||
# verification
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||
_not_run "no reiserfs support"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Check if btrfs-convert can copy common inode flags like SYNC/IMMUTABLE
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||
_not_run "no reiserfs support"
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
# We use separate inputs for tails and real blocks so we can determine
|
||||
# if there was a failure in copying either.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||
_not_run "no reiserfs support"
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
# Check if btrfs-convert refuses to rollback the filesystem, and leave the fs
|
||||
# and the convert image untouched
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
# Check if btrfs-convert refuses to rollback the filesystem, and leave the fs
|
||||
# and the convert image untouched
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
# Check if btrfs-convert creates filesystem with device extents beyond the
|
||||
# device boundary
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
# That fs size could trigger a multiply overflow and screw up free space
|
||||
# calculation
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Check if [acm]time values are copied from ext4 with full precision
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Crafted image with needs_recovery incompat bit feature set, convert must
|
||||
# refuse to convert such image
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Verify --uuid option on ext2
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_global_prereq mke2fs
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
# Test that only toplevel directory self-reference is created
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common.convert"
|
||||
source "$TEST_TOP/common" || exit
|
||||
source "$TEST_TOP/common.convert" || exit
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# iterate over all fuzzed images and run 'btrfs check'
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# iterate over all fuzzed images and run 'btrfs-image'
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# iterate over all fuzzed images and run 'btrfs check', try various options to
|
||||
# get more code coverage
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test btrfstune options that enable filesystem features
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfstune
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test btrfstune uuid rewriting options
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfstune
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test zero-log
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# are able to resize (shrink) it to that size.
|
||||
#
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test convert-thread-conflict
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# - btrfs-image must not loop indefinitely
|
||||
# - btrfs-image will expectedly fail to produce the dump
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# - btrfs subvolume must not loop indefinitely
|
||||
# - btrfs subvolume return 0 in normal case
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test if btrfs-convert creates a filesystem without leaf crossing stripes
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Verify that subvolume sync waits until the subvolume is cleaned
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# verify that convert rollback finds the ext2_subvolume intact and fails if it
|
||||
# was partially deleted
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-convert
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# make sure that 'missing' is accepted for device deletion
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# recent fs or balanced fs, whose metadata chunk is the first chunk
|
||||
# and the only metadata chunk
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-find-root
|
||||
check_prereq btrfs-image
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Verify that subvolume sync waits until the subvolume is cleaned and does not
|
||||
# crash at the end
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# test label settings
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# let dump-super dump random data, must not crash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# test for sending stream size of clone-src option, compare against a send
|
||||
# stream generated by buggy version
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# test receiving stream that's not valid, simple cases
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# end of stream conditions: test that no instructions in a stream are still
|
||||
# received, at least the header must be present
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# have an entry with the same name that corresponds to different inodes in each
|
||||
# snapshot.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Corrupt primary superblock and restore it using backup superblock.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-select-super
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Test btrfs-image with multiple devices filesystem and verify that restoring
|
||||
# the created image works against a single device.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# btrfs fi du should handle empty subvolumes (with ino == 2)
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# check if 'device slack' is reported as zero when a device is missing
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# test commands of inspect-internal rootid
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Test zstd compression support on a prebuilt btrfs image
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
check_global_prereq md5sum
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# check that sanitized names with matching crc do not contain unprintable
|
||||
# characters, namely 0x7f
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# check that the toplevel subvolume is not listed as regular or deleted
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Test that any superblock is correctly detected and fixed by btrfs rescue
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# test that send -p does not corrupt paths when send is using 2 different mount
|
||||
# points
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# At least for RAID1, btrfs-image should be able to handle one missing device
|
||||
# without any problem
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Test that btrfs 'qgroup show' outputs the correct parent-child qgroup relation
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# tree leaf
|
||||
# Issue: #128
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# test file name length limits for subvolumes
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Test that receive determines the correct mount point path when there is
|
||||
# another mount point that matches the destination's path as a prefix.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
# fix reverted in v4.20.2 due to reported breakage, the bug fixed by
|
||||
# "Btrfs-progs: fix mount point detection due to partial prefix match" is still
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# The --dump option should follow the --max-errors and not loop indefinetelly
|
||||
# by default
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# test for 'filesystem show' on fresh local file
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Test that a corrupted filesystem will correctly handle writing of backup root
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# receiving, not the existing subvolume). This is a regression test for
|
||||
# "btrfs-progs: receive: don't lookup clone root for received subvolume".
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Detect if a default subvolume is being deleted
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Detect if subvolume deletion fails when it's part of send
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# subvolume tree scenarios. This used to fail when a child subvolume was
|
||||
# mounted without the parent subvolume being accessible.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Verify that default subvolume specified as 0 will be resolved as the toplevel
|
||||
# one and not the containing subvolume of the given path
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# This is a regression test for
|
||||
# "btrfs-progs: receive: fix btrfs_mount_root substring bug"
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Verify that a seeding device can be mounted several times
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Verify that raid56 warning is printed before balance conversion when the
|
||||
# target profile is raid5 or raid6, but not other profiles
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Verify that the restored image of an empty btrfs filesystem can still be
|
||||
# mounted
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
check_prereq mkfs.btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Verify that btrfstune would reject fs with transid mismatch problems
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfs-image
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Prevent changing subvolume ro->rw status with received_uuid set, unless forced
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Look for warning about read-write subvolume with received_uuid set, on a crafted
|
||||
# image
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Make sure btrfstune will not set seed flag when the fs has dirty log
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq btrfstune
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# test that we can send and receive encoded writes for three modes of
|
||||
# transparent compression: zlib, lzo, and zstd.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Verify that receive --dump escapes paths for rename, symlink and hardlink
|
||||
# when it's the "dest=" value
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue