All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-qt5][PATCH] qtwebengine: make test suite succeed
@ 2017-10-24 15:51 Daniel Mack
  2017-10-24 18:46 ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Mack @ 2017-10-24 15:51 UTC (permalink / raw)
  To: openembedded-devel

Make the qtwebengine test suite succeed when Qt was built without
accessibility features.

Upstream bug report: https://bugreports.qt.io/browse/QTBUG-64015
---
 ...ests-make-accessibility-tests-conditional.patch | 37 ++++++++++++++++++++++
 recipes-qt/qt5/qtwebengine_git.bb                  |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 recipes-qt/qt5/qtwebengine/0005-tests-make-accessibility-tests-conditional.patch

diff --git a/recipes-qt/qt5/qtwebengine/0005-tests-make-accessibility-tests-conditional.patch b/recipes-qt/qt5/qtwebengine/0005-tests-make-accessibility-tests-conditional.patch
new file mode 100644
index 0000000..8b82010
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0005-tests-make-accessibility-tests-conditional.patch
@@ -0,0 +1,37 @@
+From 006f08373cbaa8485311f491ab8e67433c0e9ad6 Mon Sep 17 00:00:00 2001
+From: Daniel Mack <daniel@zonque.org>
+Date: Tue, 24 Oct 2017 15:46:19 +0200
+Subject: [PATCH] tests: make accessibility tests conditional
+
+Only test the accessibility functions if accessibility was enabled in the Qt
+config.
+---
+ tests/auto/widgets/widgets.pro | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/tests/auto/widgets/widgets.pro b/tests/auto/widgets/widgets.pro
+index 441eea0f..7bab18f0 100644
+--- a/tests/auto/widgets/widgets.pro
++++ b/tests/auto/widgets/widgets.pro
+@@ -1,7 +1,6 @@
+ TEMPLATE = subdirs
+ 
+ SUBDIRS += \
+-    qwebengineaccessibility \
+     qwebenginedefaultsurfaceformat \
+     qwebenginedownloads \
+     qwebenginefaviconmanager \
+@@ -14,6 +13,10 @@ SUBDIRS += \
+     qwebenginesettings \
+     qwebengineview
+ 
++qtConfig(accessibility) {
++    SUBDIRS += qwebengineaccessibility
++}
++
+ contains(WEBENGINE_CONFIG, use_spellchecker):!cross_compile {
+     !contains(WEBENGINE_CONFIG, use_native_spellchecker) {
+         SUBDIRS += qwebenginespellcheck
+-- 
+2.13.6
+
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb
index 4bc4cdb..519ccb4 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -138,6 +138,7 @@ SRC_URI += " \
     file://0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch \
     file://0003-Include-dependency-to-QCoreApplication-translate.patch \
     file://0004-Force-host-toolchain-configuration.patch \
+    file://0005-tests-make-accessibility-tests-conditional.patch \
 "
 
 # Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/56-based 
-- 
2.13.6



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-qt5][PATCH] qtwebengine: make test suite succeed
  2017-10-24 15:51 [meta-qt5][PATCH] qtwebengine: make test suite succeed Daniel Mack
@ 2017-10-24 18:46 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2017-10-24 18:46 UTC (permalink / raw)
  To: Daniel Mack; +Cc: openembedded-devel

Please resend with your Signed-off-by line.

On Tue, Oct 24, 2017 at 5:51 PM, Daniel Mack <daniel@zonque.org> wrote:

> Make the qtwebengine test suite succeed when Qt was built without
> accessibility features.
>
> Upstream bug report: https://bugreports.qt.io/browse/QTBUG-64015
> ---
>  ...ests-make-accessibility-tests-conditional.patch | 37
> ++++++++++++++++++++++
>  recipes-qt/qt5/qtwebengine_git.bb                  |  1 +
>  2 files changed, 38 insertions(+)
>  create mode 100644 recipes-qt/qt5/qtwebengine/
> 0005-tests-make-accessibility-tests-conditional.patch
>
> diff --git a/recipes-qt/qt5/qtwebengine/0005-tests-make-accessibility-tests-conditional.patch
> b/recipes-qt/qt5/qtwebengine/0005-tests-make-accessibility-
> tests-conditional.patch
> new file mode 100644
> index 0000000..8b82010
> --- /dev/null
> +++ b/recipes-qt/qt5/qtwebengine/0005-tests-make-accessibility-
> tests-conditional.patch
> @@ -0,0 +1,37 @@
> +From 006f08373cbaa8485311f491ab8e67433c0e9ad6 Mon Sep 17 00:00:00 2001
> +From: Daniel Mack <daniel@zonque.org>
> +Date: Tue, 24 Oct 2017 15:46:19 +0200
> +Subject: [PATCH] tests: make accessibility tests conditional
> +
> +Only test the accessibility functions if accessibility was enabled in the
> Qt
> +config.
> +---
> + tests/auto/widgets/widgets.pro | 5 ++++-
> + 1 file changed, 4 insertions(+), 1 deletion(-)
> +
> +diff --git a/tests/auto/widgets/widgets.pro b/tests/auto/widgets/widgets.
> pro
> +index 441eea0f..7bab18f0 100644
> +--- a/tests/auto/widgets/widgets.pro
> ++++ b/tests/auto/widgets/widgets.pro
> +@@ -1,7 +1,6 @@
> + TEMPLATE = subdirs
> +
> + SUBDIRS += \
> +-    qwebengineaccessibility \
> +     qwebenginedefaultsurfaceformat \
> +     qwebenginedownloads \
> +     qwebenginefaviconmanager \
> +@@ -14,6 +13,10 @@ SUBDIRS += \
> +     qwebenginesettings \
> +     qwebengineview
> +
> ++qtConfig(accessibility) {
> ++    SUBDIRS += qwebengineaccessibility
> ++}
> ++
> + contains(WEBENGINE_CONFIG, use_spellchecker):!cross_compile {
> +     !contains(WEBENGINE_CONFIG, use_native_spellchecker) {
> +         SUBDIRS += qwebenginespellcheck
> +--
> +2.13.6
> +
> diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/
> qtwebengine_git.bb
> index 4bc4cdb..519ccb4 100644
> --- a/recipes-qt/qt5/qtwebengine_git.bb
> +++ b/recipes-qt/qt5/qtwebengine_git.bb
> @@ -138,6 +138,7 @@ SRC_URI += " \
>      file://0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch
> \
>      file://0003-Include-dependency-to-QCoreApplication-translate.patch \
>      file://0004-Force-host-toolchain-configuration.patch \
> +    file://0005-tests-make-accessibility-tests-conditional.patch \
>  "
>
>  # Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/
> 56-based
> --
> 2.13.6
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-24 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-24 15:51 [meta-qt5][PATCH] qtwebengine: make test suite succeed Daniel Mack
2017-10-24 18:46 ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.