From 0535df2c32dc562bd5f7704a599b982bc9e102df Mon Sep 17 00:00:00 2001 From: Mikhail Durnev Date: Tue, 20 Oct 2015 20:57:57 +1000 Subject: wayland-ivi-extension: Build unit test apps The wayland-ivi-extension package provides unit test applications. The recipe was modified to build those apps and install them on the target in a separate ipk/rpm package. The test apps are not compatible with ptest. Ctest is required to run them on the target. Change-Id: I937fde52eafc20f38ab7c8ff2d2981cc4f836f33 Signed-off-by: Mikhail Durnev --- .../wayland/wayland-ivi-extension_1.5.0.bbappend | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'recipes-graphics/wayland/wayland-ivi-extension_1.5.0.bbappend') diff --git a/recipes-graphics/wayland/wayland-ivi-extension_1.5.0.bbappend b/recipes-graphics/wayland/wayland-ivi-extension_1.5.0.bbappend index f30bf7f1..da97895a 100644 --- a/recipes-graphics/wayland/wayland-ivi-extension_1.5.0.bbappend +++ b/recipes-graphics/wayland/wayland-ivi-extension_1.5.0.bbappend @@ -1,5 +1,28 @@ FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" +ENABLE_TEST = "-DBUILD_ILM_API_TESTS:BOOL=TRUE \ + -DINSTALL_ILM_API_TESTS:BOOL=TRUE \ + " + +DISABLE_TEST = "-DBUILD_ILM_API_TESTS:BOOL=FALSE \ + -DINSTALL_ILM_API_TESTS:BOOL=FALSE \ + " + +PACKAGECONFIG ??= "test" +PACKAGECONFIG[test] = "${ENABLE_TEST},${DISABLE_TEST},gtest" + SRC_URI_append = "\ file://0001-wayland-ivi-extension-patch-for-wl-shell-emulator.patch \ + file://cmake-find-gtest.patch \ + file://test-path.patch \ " + +PACKAGES =+ "${PN}-test" + +FILES_${PN}-test = "${libdir}/${PN}/test/*/CTestTestfile.cmake \ + ${libdir}/${PN}/test/ivi-layermanagement-api-test \ + ${libdir}/${PN}/test/ivi-input-api-test \ + " +FILES_${PN}-dbg += "${libdir}/${PN}/test/.debug" + +RDEPENDS_${PN}-test += "cmake" -- cgit 1.2.3-korg