From c7beb2bb43edb2c5c5b3f4372924001e78f9c4fa Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Mon, 6 Jul 2020 16:34:31 +0800 Subject: fuse3: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-filesystems/recipes-support/fuse/fuse3/run-ptest | 3 +++ meta-filesystems/recipes-support/fuse/fuse3_3.9.2.bb | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 meta-filesystems/recipes-support/fuse/fuse3/run-ptest (limited to 'meta-filesystems/recipes-support') 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 @@ +#!/bin/sh + +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}" UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases" UPSTREAM_CHECK_REGEX = "fuse\-(?P3(\.\d+)+).tar.xz" -inherit meson pkgconfig +inherit meson pkgconfig ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + bash \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ +} DEPENDS = "udev" -- cgit v1.2.3-54-g00ecf