diff options
author | Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> | 2015-04-18 17:58:17 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-21 07:20:24 +0100 |
commit | 869a770ba4f5c5d69064c40a7e52a3c3ee8baf3d (patch) | |
tree | 29640ad8fe8102bee3f11bc62558f2878474ba4d /meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | |
parent | 8fb1cd85d09cee9dafa77c32c73ffec83fe52ada (diff) | |
download | poky-869a770ba4f5c5d69064c40a7e52a3c3ee8baf3d.tar.gz |
e2fsprogs: add ptest
Enable ptest for e2fsprogs by reusing provided testsuite.
(From OE-Core rev: 47edd33cf8df3ebbfd5164136fb79ac831f01286)
Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb index 66065bc049..67a5ea74f2 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | |||
@@ -87,3 +87,20 @@ ALTERNATIVE_${PN} = "chattr" | |||
87 | ALTERNATIVE_PRIORITY = "100" | 87 | ALTERNATIVE_PRIORITY = "100" |
88 | ALTERNATIVE_LINK_NAME[chattr] = "${base_bindir}/chattr" | 88 | ALTERNATIVE_LINK_NAME[chattr] = "${base_bindir}/chattr" |
89 | ALTERNATIVE_TARGET[chattr] = "${base_bindir}/chattr.e2fsprogs" | 89 | ALTERNATIVE_TARGET[chattr] = "${base_bindir}/chattr.e2fsprogs" |
90 | |||
91 | inherit ptest | ||
92 | SRC_URI += "file://run-ptest" | ||
93 | SRC_URI += "file://ptest.patch" | ||
94 | |||
95 | RDEPENDS_${PN}-ptest += "${PN} ${PN}-tune2fs coreutils procps" | ||
96 | #RDEPENDS_${PN}-ptest += "expect" | ||
97 | |||
98 | do_compile_ptest() { | ||
99 | oe_runmake -C ${B}/tests | ||
100 | } | ||
101 | |||
102 | do_install_ptest() { | ||
103 | cp -a ${B}/tests ${D}${PTEST_PATH}/test | ||
104 | cp -a ${S}/tests/* ${D}${PTEST_PATH}/test | ||
105 | sed -e 's!../e2fsck/e2fsck!e2fsck!g' -i ${D}${PTEST_PATH}/test/*/expect* | ||
106 | } | ||