btrfs-progs: add tests.

This commit is contained in:
maxice8 2017-11-16 01:34:18 -02:00 committed by Jürgen Buchmüller
parent 551be447d0
commit 4b0650b1e3

View file

@ -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 <xtraeme@voidlinux.eu>"
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
}