Mailing List Archive

[PATCH gpgme] cpp,python: Respect --disable-gpg-test for tests
From: Biswapriyo Nath <nathbappai@gmail.com>

This is similar to the core and qt switch to disable the tests.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
---
lang/cpp/Makefile.am | 8 +++++++-
lang/python/Makefile.am | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/lang/cpp/Makefile.am b/lang/cpp/Makefile.am
index 724da6c..70ca746 100644
--- a/lang/cpp/Makefile.am
+++ b/lang/cpp/Makefile.am
@@ -18,6 +18,12 @@
# License along with this program; if not, see <https://gnu.org/licenses/>.
# SPDX-License-Identifier: LGPL-2.1-or-later

-SUBDIRS = src tests
+if RUN_GPG_TESTS
+tests = tests
+else
+tests =
+endif
+
+SUBDIRS = src ${tests}

EXTRA_DIST = README
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 845b7b1..68b98e8 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -23,7 +23,13 @@ EXTRA_DIST = \
gpgme.i \
helpers.c helpers.h private.h

-SUBDIRS = . tests examples doc src
+if RUN_GPG_TESTS
+tests = tests
+else
+tests =
+endif
+
+SUBDIRS = . ${tests} examples doc src

.PHONY: prepare
prepare: copystamp
--
2.40.1


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: [PATCH gpgme] cpp,python: Respect --disable-gpg-test for tests [ In reply to ]
On Sun, 28 May 2023 23:15, Biswapriyo Nath said:
> From: Biswapriyo Nath <nathbappai@gmail.com>
>
> This is similar to the core and qt switch to disable the tests.

Thanks.


Shalom-Salam,

Werner

--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein