-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move filesystem tests to tests/fs; regularize naming
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
- Loading branch information
Kent Overstreet
committed
Jul 11, 2024
1 parent
bd32ae7
commit 909aa3f
Showing
133 changed files
with
105 additions
and
70 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bcachefs-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
export MKFS_OPTIONS="--nocow" | ||
|
||
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/fstests.ktest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
tests/bcachefs/perf-fio.ktest → tests/fs/bcachefs/perf-fio.ktest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname $(readlink -e "${BASH_SOURCE[0]}"))/xfstests.sh | ||
. $(dirname $(readlink -e "${BASH_SOURCE[0]}"))/../fstests.sh | ||
|
||
require-kernel-config EXT2_FS | ||
require-kernel-config EXT2_FS_XATTR | ||
require-kernel-config EXT2_FS_POSIX_ACL | ||
|
||
export FSTYP=ext2 | ||
export MKFS_OPTIONS= | ||
|
||
run_tests() | ||
{ | ||
export MKFS_OPTIONS= | ||
|
||
run_xfstests "$@" | ||
run_fstests "$@" | ||
} | ||
|
||
main "$@" |
2 changes: 1 addition & 1 deletion
2
tests/nilfs2/gcov-fstests.ktest → tests/fs/ext2/gcov-fstests.ktest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/jfs/gcov-fstests.ktest → tests/fs/ext4/gcov-fstests.ktest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/f2fs/gcov-fstests.ktest → tests/fs/f2fs/gcov-fstests.ktest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ext4/gcov-fstests.ktest → tests/fs/jfs/gcov-fstests.ktest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/nfs/kasan-xfstests.ktest → tests/fs/nfs/kasan-fstests.ktest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/../../test-libs.sh | ||
|
||
require-gcov fs/xfs | ||
|
||
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/fstests.ktest |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname $(readlink -e "${BASH_SOURCE[0]}"))/../test-libs.sh | ||
|
||
require-kernel-config MISC_FILESYSTEMS | ||
require-kernel-config SQUASHFS | ||
require-kernel-config SQUASHFS_ZLIB | ||
require-kernel-config SQUASHFS_LZO | ||
require-kernel-config SQUASHFS_LZ4 | ||
require-kernel-config SQUASHFS_XZ | ||
require-kernel-config SQUASHFS_ZSTD | ||
|
||
config-timeout $(stress_timeout) | ||
|
||
config-image /home/kent/squashfs-test-images/file.sqsh | ||
config-image /home/kent/squashfs-test-images/bcachefs-tools.gzip.sqfs | ||
config-image /home/kent/squashfs-test-images/bcachefs-tools.lz4.sqfs | ||
config-image /home/kent/squashfs-test-images/bcachefs-tools.lzo.sqfs | ||
config-image /home/kent/squashfs-test-images/bcachefs-tools.xz.sqfs | ||
config-image /home/kent/squashfs-test-images/bcachefs-tools.zstd.sqfs | ||
|
||
case $1 in | ||
prep) | ||
for c in gzip lzo lz4 xz zstd lzma; do | ||
mksquashfs . bcachefs-tools.$c.sqfs -comp $c | ||
done | ||
;; | ||
esac | ||
|
||
test_squashfs() | ||
{ | ||
for dev in /dev/vdb; do | ||
echo "testing image $dev" | ||
|
||
mount -t squashfs $dev /mnt | ||
find /mnt -type f -print|xargs cat > /dev/null | ||
umount /mnt | ||
done | ||
} | ||
|
||
main "$@" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/../../test-libs.sh | ||
|
||
require-gcov fs/xfs | ||
|
||
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/fstests.ktest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/../kasan-base.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/../lockdep-base.sh |
Oops, something went wrong.