[gpgme][PATCH] build: tests: avoid build tests if not required
Alon Bar-Lev
alon.barlev at gmail.com
Thu Sep 29 19:53:40 CEST 2016
Hi,
Any comment?
Thanks!
On 23 September 2016 at 23:38, Alon Bar-Lev <alon.barlev at gmail.com> wrote:
> test enables reducing dependencies for build if tests are not going to
> run.
>
> Signed-off-by: Alon Bar-Lev <alon.barlev at gmail.com>
> ---
> lang/qt/tests/Makefile.am | 2 +-
> tests/Makefile.am | 2 +-
> tests/gpg/Makefile.am | 2 +-
> tests/gpgsm/Makefile.am | 2 +-
> tests/opassuan/Makefile.am | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am
> index f243a55..c40d75d 100644
> --- a/lang/qt/tests/Makefile.am
> +++ b/lang/qt/tests/Makefile.am
> @@ -62,7 +62,7 @@ nodist_t_keylist_SOURCES = $(moc_files)
>
> BUILT_SOURCES = $(moc_files)
>
> -noinst_PROGRAMS = t-keylist t-keylocate t-ownertrust t-tofuinfo t-encrypt
> \
> +check_PROGRAMS = t-keylist t-keylocate t-ownertrust t-tofuinfo t-encrypt \
> run-keyformailboxjob t-wkspublish
>
> CLEANFILES = secring.gpg pubring.gpg pubring.kbx trustdb.gpg dirmngr.conf
> \
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index c71914f..b698e11 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -31,7 +31,7 @@ LDADD = ../src/libgpgme.la @GPG_ERROR_LIBS@
>
> noinst_HEADERS = run-support.h
>
> -noinst_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \
> +check_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \
> run-verify run-encrypt run-identify run-decrypt
> run-genkey \
> run-keysign run-tofu
>
> diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am
> index 2538f63..807ca5c 100644
> --- a/tests/gpg/Makefile.am
> +++ b/tests/gpg/Makefile.am
> @@ -71,7 +71,7 @@ if !HAVE_W32_SYSTEM
> tests_skipped += t-cancel
> endif
>
> -noinst_PROGRAMS = $(c_tests) $(tests_skipped)
> +check_PROGRAMS = $(c_tests) $(tests_skipped)
>
>
> clean-local:
> diff --git a/tests/gpgsm/Makefile.am b/tests/gpgsm/Makefile.am
> index 41645b6..1bdb712 100644
> --- a/tests/gpgsm/Makefile.am
> +++ b/tests/gpgsm/Makefile.am
> @@ -40,7 +40,7 @@ LDADD = ../../src/libgpgme.la
>
> # We don't run t-genkey in the test suite, because it takes too long
> # and needs a working pinentry.
> -noinst_PROGRAMS = $(c_tests) t-genkey cms-keylist cms-decrypt
> +check_PROGRAMS = $(c_tests) t-genkey cms-keylist cms-decrypt
>
> key_id = 32100C27173EF6E9C4E9A25D3D69F86D37A4F939
>
> diff --git a/tests/opassuan/Makefile.am b/tests/opassuan/Makefile.am
> index 31d26ed..608b608 100644
> --- a/tests/opassuan/Makefile.am
> +++ b/tests/opassuan/Makefile.am
> @@ -27,7 +27,7 @@ EXTRA_DIST =
> AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@
> LDADD = ../../src/libgpgme.la
>
> -noinst_PROGRAMS = $(TESTS) t-command
> +check_PROGRAMS = $(TESTS) t-command
>
> DISTCLEANFILES =
>
> --
> 2.7.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160929/3147140f/attachment-0001.html>
More information about the Gnupg-devel
mailing list