summaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-utils/xfstests/xfstests_2025.03.30.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-filesystems/recipes-utils/xfstests/xfstests_2025.03.30.bb')
-rw-r--r--meta-filesystems/recipes-utils/xfstests/xfstests_2025.03.30.bb78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests_2025.03.30.bb b/meta-filesystems/recipes-utils/xfstests/xfstests_2025.03.30.bb
new file mode 100644
index 0000000000..5a6affa078
--- /dev/null
+++ b/meta-filesystems/recipes-utils/xfstests/xfstests_2025.03.30.bb
@@ -0,0 +1,78 @@
1SUMMARY = "File system QA test suite"
2LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=74274e8a218423e49eefdea80bc55038"
4
5SRCREV = "b59671d2b894040bd355ddbf1ff03285607de16f"
6SRCREV_unionmount = "c6ab621ac19f2b96d34cd98f244e611750e2bb23"
7SRCREV_FORMAT = "default_unionmount"
8
9SRC_URI = "git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git;branch=master;tag=v${PV} \
10 git://github.com/amir73il/unionmount-testsuite.git;branch=master;protocol=https;name=unionmount;destsuffix=unionmount-testsuite \
11 file://0001-add-missing-FTW_-macros-when-not-available-in-libc.patch \
12 file://0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch \
13 file://0001-include-libgen.h-for-basename-API-prototype.patch \
14 file://0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch \
15 "
16
17S = "${WORKDIR}/git"
18
19# brokensep because m4/package_globals.m4 calls ". ./VERSION" (and that's not the only issue)
20inherit autotools-brokensep useradd pkgconfig
21
22DEPENDS += "xfsprogs acl"
23RDEPENDS:${PN} += "\
24 bash \
25 bc \
26 coreutils \
27 e2fsprogs \
28 e2fsprogs-tune2fs \
29 e2fsprogs-resize2fs \
30 libaio \
31 libcap-bin \
32 overlayfs-tools \
33 perl \
34 python3 \
35 python3-core \
36 xfsprogs \
37 acl \
38 gawk \
39 util-linux-mkfs \
40 util-linux-mount \
41 util-linux-findmnt \
42 inetutils-hostname \
43 grep \
44"
45
46USERADD_PACKAGES = "${PN}"
47# these users are necessary to run the tests
48USERADD_PARAM:${PN} = "-U -m fsgqa; -N 123456-fsgqa; -N fsgqa2"
49
50EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root"
51
52TARGET_CC_ARCH:append:libc-musl = " -D_LARGEFILE64_SOURCE"
53
54do_configure:prepend() {
55 # this is done by Makefile configure target, but we don't call it in do_configure
56 cp -a ${S}/include/install-sh .
57}
58
59do_install() {
60 # otherwise install-sh duplicates DESTDIR prefix
61 export DIST_ROOT="/" DIST_MANIFEST="" DESTDIR="${D}"
62 oe_runmake install
63
64 unionmount_target_dir=${D}${prefix}/xfstests/unionmount-testsuite
65 install -d $unionmount_target_dir/tests
66 install ${UNPACKDIR}/unionmount-testsuite/tests/* -t $unionmount_target_dir/tests
67 install ${UNPACKDIR}/unionmount-testsuite/*.py -t $unionmount_target_dir
68 install ${UNPACKDIR}/unionmount-testsuite/run -t $unionmount_target_dir
69 install ${UNPACKDIR}/unionmount-testsuite/README -t $unionmount_target_dir
70}
71
72FILES:${PN} += "${prefix}/xfstests"
73
74# This one is reproducible only on 32bit MACHINEs
75# http://errors.yoctoproject.org/Errors/Details/766963/
76# lstat64.c:65:14: error: passing argument 1 of 'time' from incompatible pointer type [-Wincompatible-pointer-types]
77# bstat.c:18:19: error: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types]
78CFLAGS += "-Wno-error=incompatible-pointer-types"