diff options
| -rw-r--r-- | meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest | 3 | ||||
| -rw-r--r-- | meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.0.bb | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest new file mode 100644 index 0000000000..b63c4de0d9 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/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-filesystems/sshfs-fuse/sshfs-fuse_3.7.0.bb b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.0.bb index bf9c34dc97..47c9a64aab 100644 --- a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.0.bb +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.0.bb | |||
| @@ -10,4 +10,18 @@ SRC_URI = "git://github.com/libfuse/sshfs" | |||
| 10 | SRCREV = "a7e1038203c856cc7e052d439d1da49fe131339f" | 10 | SRCREV = "a7e1038203c856cc7e052d439d1da49fe131339f" |
| 11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
| 12 | 12 | ||
| 13 | inherit meson | 13 | inherit meson ptest |
| 14 | |||
| 15 | SRC_URI += " \ | ||
| 16 | file://run-ptest \ | ||
| 17 | " | ||
| 18 | |||
| 19 | RDEPENDS_${PN}-ptest += " \ | ||
| 20 | ${PYTHON_PN}-pytest \ | ||
| 21 | bash \ | ||
| 22 | " | ||
| 23 | |||
| 24 | do_install_ptest() { | ||
| 25 | install -d ${D}${PTEST_PATH}/test | ||
| 26 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | ||
| 27 | } | ||
