aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2022-08-12 15:56:52 +0800
committerArmin Kuster <akuster808@gmail.com>2022-08-16 11:47:14 -0700
commit0609aa408b174e34ff4f5a43abd3b0e0995946c2 (patch)
treeeea338f3986f513667ee3c7e7c56dbbb9ac3242a
parent3a6f77e5166e4300071773a45187c7b01b87d119 (diff)
downloadmeta-openembedded-contrib-0609aa408b174e34ff4f5a43abd3b0e0995946c2.tar.gz
meta-openembedded-contrib-0609aa408b174e34ff4f5a43abd3b0e0995946c2.tar.bz2
meta-openembedded-contrib-0609aa408b174e34ff4f5a43abd3b0e0995946c2.zip
fuse3: support ptest
fuse3 test is designed to run under source dir, there are many places like "progname = pjoin(basename, 'example', 'ioctl')" in the testcases, which will try to find compiled program. As our S != B, and the don't run test under source dir. Test will fail with following errors: No such file or directory: '/usr/lib64/fuse3/ptest/test/../example/printcap' Fix by install needed programs for the test Signed-off-by: Changqing Li <changqing.li@windriver.com>
-rw-r--r--meta-filesystems/recipes-support/fuse/fuse3_3.10.5.bb25
1 files changed, 21 insertions, 4 deletions
diff --git a/meta-filesystems/recipes-support/fuse/fuse3_3.10.5.bb b/meta-filesystems/recipes-support/fuse/fuse3_3.10.5.bb
index e0cf2092a6..8b0d8ecab8 100644
--- a/meta-filesystems/recipes-support/fuse/fuse3_3.10.5.bb
+++ b/meta-filesystems/recipes-support/fuse/fuse3_3.10.5.bb
@@ -35,7 +35,28 @@ RDEPENDS:${PN}-ptest += " \
do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
+ install -d ${D}${PTEST_PATH}/example
+ install -d ${D}${PTEST_PATH}/util
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
+
+ example_excutables=`find ${B}/example -type f -executable`
+ util_excutables=`find ${B}/util -type f -executable`
+ test_excutables=`find ${B}/test -type f -executable`
+
+ for e in $example_excutables
+ do
+ cp -rf $e ${D}${PTEST_PATH}/example/
+ done
+
+ for e in $util_excutables
+ do
+ cp -rf $e ${D}${PTEST_PATH}/util/
+ done
+
+ for e in $test_excutables
+ do
+ cp -rf $e ${D}${PTEST_PATH}/test
+ done
}
DEPENDS = "udev"
@@ -49,10 +70,6 @@ RRECOMMENDS:${PN}:class-target = "kernel-module-fuse fuse3-utils"
FILES:${PN} += "${libdir}/libfuse3.so.*"
FILES:${PN}-dev += "${libdir}/libfuse3*.la"
-EXTRA_OEMESON += " \
- -Dexamples=false \
-"
-
# Forbid auto-renaming to libfuse3-utils
FILES:fuse3-utils = "${bindir} ${base_sbindir}"
DEBIAN_NOAUTONAME:fuse3-utils = "1"