aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test
diff options
context:
space:
mode:
authorOscar Andreasson <oscar.andreasson@pelagicore.com>2018-02-14 09:45:07 +0100
committerOscar Andreasson <oan@frozentux.net>2018-02-14 13:30:21 +0100
commitdc3ea021950e1b7b11d86993ccb2307c026a41ec (patch)
treef6ecade8286a37f21dabf8cf1fb06ea5ebe31eba /meta-ivi-test
parentb072f7c50a260e4599c26747f3e07e1ad46e71c0 (diff)
downloadmeta-ivi-dc3ea021950e1b7b11d86993ccb2307c026a41ec.tar.gz
meta-ivi-dc3ea021950e1b7b11d86993ccb2307c026a41ec.tar.bz2
meta-ivi-dc3ea021950e1b7b11d86993ccb2307c026a41ec.zip
wayland-ivi-extension tests: Disable sanitizers
Our cross compilers lack the sanitizers options for our targets. This patch disables the compiler options which causes compilation errors. In the long run we should probably try and get the cross compiler compiled with sanitizers enabled. Signed-off-by: Oscar Andreasson <oscar.andreasson@pelagicore.com>
Diffstat (limited to 'meta-ivi-test')
-rw-r--r--meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension/0001-disable-sanitizers.patch21
-rw-r--r--meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension_%.bbappend6
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension/0001-disable-sanitizers.patch b/meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension/0001-disable-sanitizers.patch
new file mode 100644
index 0000000..07ed3c9
--- /dev/null
+++ b/meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension/0001-disable-sanitizers.patch
@@ -0,0 +1,21 @@
+commit b87c0b8bb756e80a56f1abd703ff0fee14dcfcc7
+Author: Oscar Andreasson <oscar.andreasson@pelagicore.com>
+Date: Wed Feb 14 09:36:35 2018 +0100
+
+ sanitizers are not available in our cross compilers for the time being.
+
+ Signed-off-by: Oscar Andreasson <oscar.andreasson@pelagicore.com>
+
+diff --git a/ivi-layermanagement-api/test/CMakeLists.txt b/ivi-layermanagement-api/test/CMakeLists.txt
+index ef1f50d..a3cb8a9 100644
+--- a/ivi-layermanagement-api/test/CMakeLists.txt
++++ b/ivi-layermanagement-api/test/CMakeLists.txt
+@@ -56,7 +56,7 @@ IF(BUILD_ILM_API_TESTS)
+ ilm_control_notification_test.cpp
+ )
+
+- SET(GCC_SANITIZER_COMPILE_FLAGS "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover -fstack-protector-all")
++# SET(GCC_SANITIZER_COMPILE_FLAGS "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover -fstack-protector-all")
+ SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_SANITIZER_COMPILE_FLAGS}" )
+ SET( CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -static-libasan -static-libubsan" )
+
diff --git a/meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension_%.bbappend b/meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension_%.bbappend
index d1d9fbb..b971a0e 100644
--- a/meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension_%.bbappend
+++ b/meta-ivi-test/recipes-graphics/wayland/wayland-ivi-extension_%.bbappend
@@ -1,6 +1,12 @@
#
# for testing
#
+FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
+
+SRC_URI_append += " \
+ file://0001-disable-sanitizers.patch \
+ "
+
DEPENDS += " gtest"
EXTRA_OECMAKE += " -DBUILD_ILM_API_TESTS=1 -DINSTALL_ILM_API_TESTS=1"