Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 317cdf60165d760572a26db317e3d6edb159b04e Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Wed, 17 Oct 2018 23:41:09 +0800 |
| 4 | Subject: [PATCH 7/7] 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 | Upstream-Status: Submitted [gnupg-devel@gnupg.org] |
| 10 | |
| 11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 12 | --- |
| 13 | configure.ac | 5 +++++ |
| 14 | lang/python/Makefile.am | 3 +++ |
| 15 | 2 files changed, 8 insertions(+) |
| 16 | |
| 17 | diff --git a/configure.ac b/configure.ac |
| 18 | index 865bd10..035555a 100644 |
| 19 | --- a/configure.ac |
| 20 | +++ b/configure.ac |
| 21 | @@ -535,6 +535,11 @@ AC_ARG_ENABLE(g13-test, |
| 22 | run_g13_test=$enableval) |
| 23 | AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes") |
| 24 | |
| 25 | +run_lang_python_test="yes" |
| 26 | +AC_ARG_ENABLE(lang-python-test, |
| 27 | + AC_HELP_STRING([--disable-lang-python-test], [disable Python regression test]), |
| 28 | + run_lang_python_test=$enableval) |
| 29 | +AM_CONDITIONAL(RUN_LANG_PYTHON_TESTS, test "$run_lang_python_test" = "yes") |
| 30 | |
| 31 | # Checks for header files. |
| 32 | AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h stdint.h |
| 33 | diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am |
| 34 | index ce9a108..0c8cfdc 100644 |
| 35 | --- a/lang/python/Makefile.am |
| 36 | +++ b/lang/python/Makefile.am |
| 37 | @@ -25,7 +25,10 @@ EXTRA_DIST = \ |
| 38 | doc \ |
| 39 | src |
| 40 | |
| 41 | +if RUN_LANG_PYTHON_TESTS |
| 42 | SUBDIRS = . tests |
| 43 | +endif |
| 44 | + |
| 45 | |
| 46 | .PHONY: prepare |
| 47 | prepare: copystamp |
| 48 | -- |
| 49 | 2.7.4 |
| 50 | |