summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch')
-rw-r--r--meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch b/meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch
new file mode 100644
index 0000000000..ce3745cca0
--- /dev/null
+++ b/meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch
@@ -0,0 +1,78 @@
1From f47e8c6f9e461803468a64581d3640d873352eaa Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 1 Feb 2018 10:14:30 +0800
4Subject: [PATCH] qt/python: Add variables to tests
5
6* configure.ac, lang/python/Makefile.am:
7 New variable to `lang/python', set to `lang/python' if RUN_LANG_PYTHON_TESTS
8
9* configure.ac, lang/qt/Makefile.am:
10 New variable to `lang/qt', set to `lang/qt' if RUN_LANG_QT_TESTS
11
12Upstream-Status: Submitted [gnupg-devel@gnupg.org]
13
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15---
16 configure.ac | 11 +++++++++++
17 lang/python/Makefile.am | 3 +++
18 lang/qt/Makefile.am | 8 +++++++-
19 3 files changed, 21 insertions(+), 1 deletion(-)
20
21diff --git a/configure.ac b/configure.ac
22index 608c376..fad7467 100644
23--- a/configure.ac
24+++ b/configure.ac
25@@ -536,6 +536,17 @@ AC_ARG_ENABLE(g13-test,
26 run_g13_test=$enableval)
27 AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes")
28
29+run_lang_python_test="yes"
30+AC_ARG_ENABLE(lang-python-test,
31+ AC_HELP_STRING([--disable-lang-python-test], [disable Python regression test]),
32+ run_lang_python_test=$enableval)
33+AM_CONDITIONAL(RUN_LANG_PYTHON_TESTS, test "$run_lang_python_test" = "yes")
34+
35+run_lang_qt_test="yes"
36+AC_ARG_ENABLE(lang-qt-test,
37+ AC_HELP_STRING([--disable-lang-qt-test], [disable Qt regression test]),
38+ run_lang_qt_test=$enableval)
39+AM_CONDITIONAL(RUN_LANG_QT_TESTS, test "$run_lang_qt_test" = "yes")
40
41 # Checks for header files.
42 AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h
43diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
44index 8d74cbd..43b5d1e 100644
45--- a/lang/python/Makefile.am
46+++ b/lang/python/Makefile.am
47@@ -24,7 +24,10 @@ EXTRA_DIST = \
48 examples \
49 src
50
51+if RUN_LANG_PYTHON_TESTS
52 SUBDIRS = . tests
53+endif
54+
55
56 .PHONY: prepare
57 prepare: copystamp
58diff --git a/lang/qt/Makefile.am b/lang/qt/Makefile.am
59index ab85960..a244ede 100644
60--- a/lang/qt/Makefile.am
61+++ b/lang/qt/Makefile.am
62@@ -19,6 +19,12 @@
63 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
64 # 02111-1307, USA
65
66-SUBDIRS = src tests doc
67+if RUN_LANG_QT_TESTS
68+qttests = tests
69+else
70+qttests =
71+endif
72+
73+SUBDIRS = src ${qttests} doc
74
75 EXTRA_DIST = README
76--
771.8.3.1
78