ltp-ddt: New recipe to build ltp-ddt test tool.
PATCH 2/2 ltp-ddt: New recipe to build ltp-ddt test tool.
ltp-ddt is an open source test application for embedded linux devices. It is based on the linux test project (ltp) but it has a smaller footprint and it focus mainly on driver and system performance.
Design Highlights:
* Based on LTP http://ltp.sourceforge.net/
* Test cases are suitable for embedded devices w/ a limited shell.
* Support dynamic selection/filtering of test cases based on platform.
* Support test parameters overrides based on platform.
Signed-off-by Carlos Hernandez <[email protected]>
--- recipes/ltp-ddt/ltp-ddt_0.0.1.bb | 54 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) create mode 100644 recipes/ltp-ddt/ltp-ddt_0.0.1.bb
recipes/ltp-ddt/ltp-ddt_0.0.1.bb new file +54 -0
@@ -0,0 +1,54 @@ +DESCRIPTION = "Embedded Linux Device Driver Tests based on Linux Test Project" +HOMEPAGE = "http://arago-project.org/git/projects/?p=test-automation/ltp-ddt.git;a=summary" +LICENSE = "GPL" +SECTION = "console/utils" +DEPENDS += "zip-native virtual/kernel" +PR = "r0" + +inherit autotools + +BRANCH ?= "master" +TAG ?= "ltp-ddt_${PV}" + +SRC_URI = "\ +git://arago-project.org/git/projects/test-automation/ltp-ddt.git;protocol=git;\ +branch=${BRANCH};\ +tag=${TAG}\ +" +S = "${WORKDIR}/git" + +EXTRA_OEMAKE_append = "prefix=/usr/ltp CROSS_COMPILE=${HOST_PREFIX} SKIP_IDCHECK=1 KERNEL_INC=${STAGING_KERNEL_DIR}/include" + +FILES_${PN}-dbg += "\ + /usr/ltp/.debug \ + /usr/ltp/bin/.debug \ + /usr/ltp/runtest/.debug \ + /usr/ltp/testcases/bin/.debug \ + /usr/ltp/testcases/bin/*/bin/.debug \ + /usr/ltp/testcases/bin/*/test/.debug \ + /usr/ltp/testcases/bin/ddt/.debug \ + /usr/ltp/testcases/bin/ddt/*/bin/.debug \ + /usr/ltp/testcases/bin/ddt/*/test/.debug \ +" + +FILES_${PN} += "\ + /usr/ltp/* \ + /usr/ltp/bin/* \ + /usr/ltp/runtest/* \ + /usr/ltp/testcases/bin/* \ + /usr/ltp/testcases/bin/*/bin/* \ + /usr/ltp/testscripts/* \ +" + +do_configure(){ + cp ${S}/include/config.h.default ${S}/include/config.h + cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk + cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk + echo "${TAG}" > ${S}/ChangeLog +} + +do_install(){ + oe_runmake DESTDIR=${D} install +} + +
Signature · 1 line
1.7.0.4