diff --git a/srcpkgs/btrfs-progs/template b/srcpkgs/btrfs-progs/template index 6c4579cc547..64ba227a241 100644 --- a/srcpkgs/btrfs-progs/template +++ b/srcpkgs/btrfs-progs/template @@ -7,6 +7,7 @@ build_style=gnu-configure configure_args="--disable-backtrace" hostmakedepends="automake libtool pkg-config asciidoc xmlto" makedepends="zlib-devel lzo-devel acl-devel libuuid-devel e2fsprogs-devel zstd-devel" +checkdepends="util-linux acl-progs e2fsprogs" short_desc="Btrfs filesystem utilities" maintainer="Juan RP " license="GPL-2" @@ -24,6 +25,23 @@ pre_build() { fi } +do_check() { + make fssum && # required by [TEST/misc] 019-recieve-clones-on-munted-subvol + + # This test requires fallocate but the testsuite detection methods still can't + # detect it properly so it keeps failing even when util-linux is added to checkdepends + mv tests/fsck-tests/025-file-extents/test.sh{,.broken} + + pushd tests + ./fsck-tests.sh + ./mkfs-tests.sh + ./cli-tests.sh + ./convert-tests.sh + ./misc-tests.sh + ./fuzz-tests.sh + popd +} + post_install() { vinstall btrfs-completion 644 /usr/share/bash-completion/completions btrfs }