Skip to content

Commit

Permalink
testst: f2fs
Browse files Browse the repository at this point in the history
update to new fstests style
  • Loading branch information
Kent Overstreet committed Jul 11, 2024
1 parent 8250cf4 commit bd32ae7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/f2fs.ktest → tests/f2fs/fstests.ktest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

. $(dirname $(readlink -e "${BASH_SOURCE[0]}"))/xfstests.sh
. $(dirname $(readlink -e "${BASH_SOURCE[0]}"))/../xfstests.sh

require-kernel-config F2FS_FS
require-kernel-config F2FS_STAT_FS
Expand All @@ -9,11 +9,12 @@ require-kernel-config F2FS_FS_POSIX_ACL
require-kernel-config F2FS_CHECK_FS
require-kernel-config F2FS_FAULT_INJECTION

export FSTYP=f2fs
export MKFS_OPTIONS=

run_tests()
{
export MKFS_OPTIONS=

run_xfstests f2fs "$@"
run_xfstests "$@"
}

main "$@"
7 changes: 7 additions & 0 deletions tests/f2fs/gcov-fstests.ktest
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
3 changes: 3 additions & 0 deletions tests/f2fs/kasan-fstests.ktest
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
3 changes: 3 additions & 0 deletions tests/f2fs/lockdep-fstests.ktest
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
3 changes: 3 additions & 0 deletions tests/f2fs/ubsan-fstests.ktest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/../ubsan-base.sh

0 comments on commit bd32ae7

Please sign in to comment.