diff options
author | Tudor Florea <tudor.florea@enea.com> | 2013-07-19 19:31:34 +0200 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-22 09:44:11 -0700 |
commit | 152c973227e41b7736457b7f8c40849cc71b45ca (patch) | |
tree | 3b66bd1720370d84862b491d4a8b79aa30fac5aa /meta/recipes-kernel/kmod/kmod_git.bb | |
parent | 795db65706d28bc194244a2ebbe6624ded584a33 (diff) | |
download | openembedded-core-152c973227e41b7736457b7f8c40849cc71b45ca.tar.gz openembedded-core-152c973227e41b7736457b7f8c40849cc71b45ca.tar.bz2 openembedded-core-152c973227e41b7736457b7f8c40849cc71b45ca.zip |
kmod: Add ptest
Install kmod test suite and run it as ptest.
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod_git.bb')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod_git.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_git.bb index 6afaca6dbb..f92ff72904 100644 --- a/meta/recipes-kernel/kmod/kmod_git.bb +++ b/meta/recipes-kernel/kmod/kmod_git.bb @@ -37,6 +37,15 @@ do_install_append () { install -Dm644 "${WORKDIR}/depmod-search.conf" "${D}${base_libdir}/depmod.d/search.conf" } +do_compile_prepend() { + sed -i 's/ac_pwd=/#ac_pwd=/' config.status ; sed -i "/#ac_pwd=/a\ac_pwd='.'" config.status +} + +do_compile_ptest () { + oe_runmake buildtest-TESTS + oe_runmake rootfs +} + inherit update-alternatives ALTERNATIVE_PRIORITY = "60" |