diff options
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux.inc')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 48d7e898f2..318c74ba62 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -17,7 +17,7 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=1715f5ee3e01203ca1e1e0b9ee65918c | |||
17 | file://libmount/COPYING;md5=fb93f01d4361069c5616327705373b16 \ | 17 | file://libmount/COPYING;md5=fb93f01d4361069c5616327705373b16 \ |
18 | file://libblkid/COPYING;md5=fb93f01d4361069c5616327705373b16" | 18 | file://libblkid/COPYING;md5=fb93f01d4361069c5616327705373b16" |
19 | 19 | ||
20 | inherit autotools gettext pkgconfig systemd update-alternatives python-dir | 20 | inherit autotools gettext pkgconfig systemd update-alternatives python-dir ptest |
21 | DEPENDS = "zlib ncurses" | 21 | DEPENDS = "zlib ncurses" |
22 | DEPENDS_append_class-native = " lzo-native" | 22 | DEPENDS_append_class-native = " lzo-native" |
23 | DEPENDS_append_class-nativesdk = " lzo-native" | 23 | DEPENDS_append_class-nativesdk = " lzo-native" |
@@ -272,3 +272,32 @@ python populate_packages_prepend() { | |||
272 | description='util-linux lib%s', | 272 | description='util-linux lib%s', |
273 | extra_depends='', prepend=True, allow_links=True) | 273 | extra_depends='', prepend=True, allow_links=True) |
274 | } | 274 | } |
275 | |||
276 | RDEPENDS_${PN}-ptest = "bash" | ||
277 | |||
278 | do_compile_ptest() { | ||
279 | oe_runmake buildtest-TESTS | ||
280 | } | ||
281 | |||
282 | do_install_ptest() { | ||
283 | mkdir -p ${D}${PTEST_PATH}/tests/ts | ||
284 | find . -maxdepth 1 -type f -perm -111 -exec cp {} ${D}${PTEST_PATH} \; | ||
285 | cp ${S}/tests/functions.sh ${D}${PTEST_PATH}/tests/ | ||
286 | cp ${S}/tests/commands.sh ${D}${PTEST_PATH}/tests/ | ||
287 | cp ${S}/tests/run.sh ${D}${PTEST_PATH}/tests/ | ||
288 | cp -pR ${S}/tests/expected ${D}${PTEST_PATH}/tests/expected | ||
289 | |||
290 | list="bitops build-sys cal col colrm column dmesg fsck hexdump hwclock ipcs isosize login look md5 misc more namei paths schedutils script swapon tailf" | ||
291 | # The following tests are not installed yet: | ||
292 | # blkid scsi_debug module dependent | ||
293 | # cramfs gcc dependent | ||
294 | # eject gcc dependent | ||
295 | # fdisk scsi_debug module and gcc dependent | ||
296 | # lscpu gcc dependant | ||
297 | # libmount uuidgen dependent | ||
298 | # mount gcc dependant | ||
299 | # partx blkid dependant | ||
300 | for d in $list; do | ||
301 | cp -pR ${S}/tests/ts/$d ${D}${PTEST_PATH}/tests/ts/ | ||
302 | done | ||
303 | } | ||