summaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-filesystems/sshfs-fuse
diff options
context:
space:
mode:
Diffstat (limited to 'meta-filesystems/recipes-filesystems/sshfs-fuse')
-rw-r--r--meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest10
-rw-r--r--meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb6
2 files changed, 13 insertions, 3 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
index b63c4de0d9..5aab54d5b5 100644
--- a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest
+++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/run-ptest
@@ -1,3 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2mkdir -p ~/.ssh
3cat > ~/.ssh/config << EOF
4Host *
5 CheckHostIP no
6 StrictHostKeyChecking no
7 UserKnownHostsFile=/dev/null
8EOF
9pytest --automake
2 10
3pytest -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}}' 11rm -rf ~/.ssh/config
diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb
index 5a926dac0c..c3a00566ab 100644
--- a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb
+++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb
@@ -10,16 +10,17 @@ SRC_URI = "git://github.com/libfuse/sshfs;branch=master;protocol=https \
10 file://a1d58ae1be99571a88b8439b027abe6349b74658.patch \ 10 file://a1d58ae1be99571a88b8439b027abe6349b74658.patch \
11" 11"
12SRCREV = "c91eb9a9a992f1a36c49a8e6f1146e45b5e1c8e7" 12SRCREV = "c91eb9a9a992f1a36c49a8e6f1146e45b5e1c8e7"
13S = "${WORKDIR}/git"
14 13
15inherit meson pkgconfig ptest 14inherit meson pkgconfig ptest
16 15
17SRC_URI += " \ 16SRC_URI += " \
18 file://run-ptest \ 17 file://run-ptest \
19" 18"
20 19#python3-compile for filecmp module
21RDEPENDS:${PN}-ptest += " \ 20RDEPENDS:${PN}-ptest += " \
21 python3-compile \
22 python3-pytest \ 22 python3-pytest \
23 python3-unittest-automake-output \
23 bash \ 24 bash \
24 fuse \ 25 fuse \
25" 26"
@@ -27,4 +28,5 @@ RDEPENDS:${PN}-ptest += " \
27do_install_ptest() { 28do_install_ptest() {
28 install -d ${D}${PTEST_PATH}/test 29 install -d ${D}${PTEST_PATH}/test
29 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ 30 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
31 ln -sf ${bindir}/sshfs ${D}${PTEST_PATH}/sshfs
30} 32}