diff options
author | Changqing Li <changqing.li@windriver.com> | 2022-08-12 15:56:28 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-12 01:24:27 -0700 |
commit | 4785cc2cd3bcb5635f8942f49f21d0e16edd3f09 (patch) | |
tree | 9a8dbdec6ac9231d154a5183438e5b03d071475e | |
parent | 015fcc40539995eccd62eed11c67598be4bd0d81 (diff) | |
download | meta-openembedded-4785cc2cd3bcb5635f8942f49f21d0e16edd3f09.tar.gz |
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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-filesystems/recipes-support/fuse/fuse3_3.11.0.bb | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/meta-filesystems/recipes-support/fuse/fuse3_3.11.0.bb b/meta-filesystems/recipes-support/fuse/fuse3_3.11.0.bb index 0b9164fd79..8055fb06d3 100644 --- a/meta-filesystems/recipes-support/fuse/fuse3_3.11.0.bb +++ b/meta-filesystems/recipes-support/fuse/fuse3_3.11.0.bb | |||
@@ -35,7 +35,28 @@ RDEPENDS:${PN}-ptest += " \ | |||
35 | 35 | ||
36 | do_install_ptest() { | 36 | do_install_ptest() { |
37 | install -d ${D}${PTEST_PATH}/test | 37 | install -d ${D}${PTEST_PATH}/test |
38 | install -d ${D}${PTEST_PATH}/example | ||
39 | install -d ${D}${PTEST_PATH}/util | ||
38 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | 40 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ |
41 | |||
42 | example_excutables=`find ${B}/example -type f -executable` | ||
43 | util_excutables=`find ${B}/util -type f -executable` | ||
44 | test_excutables=`find ${B}/test -type f -executable` | ||
45 | |||
46 | for e in $example_excutables | ||
47 | do | ||
48 | cp -rf $e ${D}${PTEST_PATH}/example/ | ||
49 | done | ||
50 | |||
51 | for e in $util_excutables | ||
52 | do | ||
53 | cp -rf $e ${D}${PTEST_PATH}/util/ | ||
54 | done | ||
55 | |||
56 | for e in $test_excutables | ||
57 | do | ||
58 | cp -rf $e ${D}${PTEST_PATH}/test | ||
59 | done | ||
39 | } | 60 | } |
40 | 61 | ||
41 | DEPENDS = "udev" | 62 | DEPENDS = "udev" |
@@ -49,10 +70,6 @@ RRECOMMENDS:${PN}:class-target = "kernel-module-fuse fuse3-utils" | |||
49 | FILES:${PN} += "${libdir}/libfuse3.so.*" | 70 | FILES:${PN} += "${libdir}/libfuse3.so.*" |
50 | FILES:${PN}-dev += "${libdir}/libfuse3*.la" | 71 | FILES:${PN}-dev += "${libdir}/libfuse3*.la" |
51 | 72 | ||
52 | EXTRA_OEMESON += " \ | ||
53 | -Dexamples=false \ | ||
54 | " | ||
55 | |||
56 | # Forbid auto-renaming to libfuse3-utils | 73 | # Forbid auto-renaming to libfuse3-utils |
57 | FILES:fuse3-utils = "${bindir} ${base_sbindir}" | 74 | FILES:fuse3-utils = "${bindir} ${base_sbindir}" |
58 | DEBIAN_NOAUTONAME:fuse3-utils = "1" | 75 | DEBIAN_NOAUTONAME:fuse3-utils = "1" |