diff options
Diffstat (limited to 'meta-filesystems/recipes-support')
-rw-r--r-- | meta-filesystems/recipes-support/fuse/fuse3/run-ptest | 3 | ||||
-rw-r--r-- | meta-filesystems/recipes-support/fuse/fuse3_3.9.2.bb | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/meta-filesystems/recipes-support/fuse/fuse3/run-ptest b/meta-filesystems/recipes-support/fuse/fuse3/run-ptest new file mode 100644 index 000000000..b63c4de0d --- /dev/null +++ b/meta-filesystems/recipes-support/fuse/fuse3/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' | ||
diff --git a/meta-filesystems/recipes-support/fuse/fuse3_3.9.2.bb b/meta-filesystems/recipes-support/fuse/fuse3_3.9.2.bb index 24b17fc93..357a1de1d 100644 --- a/meta-filesystems/recipes-support/fuse/fuse3_3.9.2.bb +++ b/meta-filesystems/recipes-support/fuse/fuse3_3.9.2.bb | |||
@@ -20,7 +20,21 @@ S = "${WORKDIR}/fuse-${PV}" | |||
20 | UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases" | 20 | UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases" |
21 | UPSTREAM_CHECK_REGEX = "fuse\-(?P<pver>3(\.\d+)+).tar.xz" | 21 | UPSTREAM_CHECK_REGEX = "fuse\-(?P<pver>3(\.\d+)+).tar.xz" |
22 | 22 | ||
23 | inherit meson pkgconfig | 23 | inherit meson pkgconfig ptest |
24 | |||
25 | SRC_URI += " \ | ||
26 | file://run-ptest \ | ||
27 | " | ||
28 | |||
29 | RDEPENDS_${PN}-ptest += " \ | ||
30 | ${PYTHON_PN}-pytest \ | ||
31 | bash \ | ||
32 | " | ||
33 | |||
34 | do_install_ptest() { | ||
35 | install -d ${D}${PTEST_PATH}/test | ||
36 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | ||
37 | } | ||
24 | 38 | ||
25 | DEPENDS = "udev" | 39 | DEPENDS = "udev" |
26 | 40 | ||