summaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-utils/xfstests/xfstests_2024.03.03.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-filesystems/recipes-utils/xfstests/xfstests_2024.03.03.bb')
-rw-r--r--meta-filesystems/recipes-utils/xfstests/xfstests_2024.03.03.bb65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests_2024.03.03.bb b/meta-filesystems/recipes-utils/xfstests/xfstests_2024.03.03.bb
new file mode 100644
index 0000000000..2d5fedb417
--- /dev/null
+++ b/meta-filesystems/recipes-utils/xfstests/xfstests_2024.03.03.bb
@@ -0,0 +1,65 @@
1SUMMARY = "File system QA test suite"
2LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=74274e8a218423e49eefdea80bc55038"
4
5SRCREV = "088e5bd4cb6d7295612430a56ae84ff5c8f54730"
6SRCREV_unionmount = "e3825b16b46f4c4574a1a69909944c059835f914"
7SRCREV_FORMAT = "default_unionmount"
8
9SRC_URI = "git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git;branch=master \
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 "
14
15S = "${WORKDIR}/git"
16
17# brokensep because m4/package_globals.m4 calls ". ./VERSION" (and that's not the only issue)
18inherit autotools-brokensep useradd
19
20DEPENDS += "xfsprogs acl"
21RDEPENDS:${PN} += "\
22 bash \
23 bc \
24 coreutils \
25 e2fsprogs \
26 e2fsprogs-tune2fs \
27 e2fsprogs-resize2fs \
28 libaio \
29 libcap-bin \
30 overlayfs-tools \
31 perl \
32 python3 \
33 python3-core \
34 xfsprogs \
35 acl \
36 gawk \
37"
38
39USERADD_PACKAGES = "${PN}"
40# these users are necessary to run the tests
41USERADD_PARAM:${PN} = "-U -m fsgqa; -N 123456-fsgqa; -N fsgqa2"
42
43EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root"
44
45TARGET_CC_ARCH:append:libc-musl = " -D_LARGEFILE64_SOURCE"
46
47do_configure:prepend() {
48 # this is done by Makefile configure target, but we don't call it in do_configure
49 cp -a ${S}/include/install-sh .
50}
51
52do_install() {
53 # otherwise install-sh duplicates DESTDIR prefix
54 export DIST_ROOT="/" DIST_MANIFEST="" DESTDIR="${D}"
55 oe_runmake install
56
57 unionmount_target_dir=${D}${prefix}/xfstests/unionmount-testsuite
58 install -d $unionmount_target_dir/tests
59 install ${WORKDIR}/unionmount-testsuite/tests/* -t $unionmount_target_dir/tests
60 install ${WORKDIR}/unionmount-testsuite/*.py -t $unionmount_target_dir
61 install ${WORKDIR}/unionmount-testsuite/run -t $unionmount_target_dir
62 install ${WORKDIR}/unionmount-testsuite/README -t $unionmount_target_dir
63}
64
65FILES:${PN} += "${prefix}/xfstests"