[PATCH] qt/python: Add variables to tests

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] qt/python: Add variables to tests

Hongxu Jia
* configure.ac, lang/python/Makefile.am:
  New variable to `lang/python', set to `lang/python' if RUN_LANG_PYTHON_TESTS

* configure.ac, lang/qt/Makefile.am:
  New variable to `lang/qt', set to `lang/qt' if RUN_LANG_QT_TESTS

Signed-off-by: Hongxu Jia <[hidden email]>
---
 configure.ac            | 11 +++++++++++
 lang/python/Makefile.am |  3 +++
 lang/qt/Makefile.am     |  8 +++++++-
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 608c376..fad7467 100644
--- a/configure.ac
+++ b/configure.ac
@@ -536,6 +536,17 @@ AC_ARG_ENABLE(g13-test,
          run_g13_test=$enableval)
 AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes")
 
+run_lang_python_test="yes"
+AC_ARG_ENABLE(lang-python-test,
+  AC_HELP_STRING([--disable-lang-python-test], [disable Python regression test]),
+         run_lang_python_test=$enableval)
+AM_CONDITIONAL(RUN_LANG_PYTHON_TESTS, test "$run_lang_python_test" = "yes")
+
+run_lang_qt_test="yes"
+AC_ARG_ENABLE(lang-qt-test,
+  AC_HELP_STRING([--disable-lang-qt-test], [disable Qt regression test]),
+         run_lang_qt_test=$enableval)
+AM_CONDITIONAL(RUN_LANG_QT_TESTS, test "$run_lang_qt_test" = "yes")
 
 # Checks for header files.
 AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 8d74cbd..43b5d1e 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -24,7 +24,10 @@ EXTRA_DIST = \
  examples \
  src
 
+if RUN_LANG_PYTHON_TESTS
 SUBDIRS = . tests
+endif
+
 
 .PHONY: prepare
 prepare: copystamp
diff --git a/lang/qt/Makefile.am b/lang/qt/Makefile.am
index ab85960..a244ede 100644
--- a/lang/qt/Makefile.am
+++ b/lang/qt/Makefile.am
@@ -19,6 +19,12 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 # 02111-1307, USA
 
-SUBDIRS = src tests doc
+if RUN_LANG_QT_TESTS
+qttests = tests
+else
+qttests =
+endif
+
+SUBDIRS = src ${qttests} doc
 
 EXTRA_DIST = README
--
1.8.3.1


_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] qt/python: Add variables to tests

Werner Koch
Hi,

and thanks for the patche.  Please also send a DCO (see doc/HACKING and
doc/DCO) to this mailing list.


Shalom-Salam,

   Werner


--
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

attachment0 (233 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[gpgme] DCO for Hongxu Jia

Hongxu Jia
GPGME Developer's Certificate of Origin.  Version 1.0
=====================================================

By making a contribution to the GPGME project, I certify that:

(a) The contribution was created in whole or in part by me and I
     have the right to submit it under the free software license
     indicated in the file; or

(b) The contribution is based upon previous work that, to the
     best of my knowledge, is covered under an appropriate free
     software license and I have the right under that license to
     submit that work with modifications, whether created in whole
     or in part by me, under the same free software license
     (unless I am permitted to submit under a different license),
     as indicated in the file; or

(c) The contribution was provided directly to me by some other
     person who certified (a), (b) or (c) and I have not modified
     it.

(d) I understand and agree that this project and the contribution
     are public and that a record of the contribution (including
     all personal information I submit with it, including my
     sign-off) is maintained indefinitely and may be redistributed
     consistent with this project or the free software license(s)
     involved.

Signed-off-by: Hongxu Jia <[hidden email]>

//Hongxu

_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel