Make GNUPGHOME for tests overridable
* lang/python/tests/Makefile.am, lang/qt/tests/Makefile.am, tests/Makefile.am, tests/gpg/Makefile.am, tests/gpgsm/Makefile.am, tests/opassuan/Makefile.am (GNUPGHOME): Make variable explict. -- If the build directory has too long path, gpgme could fail. This is similar to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847206 In order to fix that, this patch extracts the GNUPGHOME variable to be presented directly in the Makefile and thus overridable by command line option. A build system can then create a symlink to the GNUPGHOME directory in /tmp and use that symlink as the GNUPGHOME directory thus making the path very short. GnuPG-Bug-Id: T4091 Patch provided by vlmarek
This commit is contained in:
parent
a6e5c8bf18
commit
d09d19fa9f
@ -21,7 +21,8 @@ GPG_AGENT = gpg-agent
|
|||||||
|
|
||||||
test_srcdir = $(top_srcdir)/tests/gpg
|
test_srcdir = $(top_srcdir)/tests/gpg
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) \
|
GNUPGHOME=$(abs_builddir) \
|
||||||
|
TESTS_ENVIRONMENT = GNUPGHOME=$(GNUPGHOME) \
|
||||||
LC_ALL=C GPG_AGENT_INFO= \
|
LC_ALL=C GPG_AGENT_INFO= \
|
||||||
top_srcdir=$(top_srcdir) \
|
top_srcdir=$(top_srcdir) \
|
||||||
srcdir=$(srcdir) \
|
srcdir=$(srcdir) \
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
|
|
||||||
GPG = gpg
|
GPG = gpg
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir)
|
GNUPGHOME=$(abs_builddir)
|
||||||
|
TESTS_ENVIRONMENT = GNUPGHOME=$(GNUPGHOME)
|
||||||
|
|
||||||
EXTRA_DIST = initial.test
|
EXTRA_DIST = initial.test
|
||||||
|
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
|
|
||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir)
|
GNUPGHOME=$(abs_builddir)
|
||||||
|
TESTS_ENVIRONMENT = GNUPGHOME=$(GNUPGHOME)
|
||||||
|
|
||||||
TESTS = t-version t-data t-engine-info
|
TESTS = t-version t-data t-engine-info
|
||||||
|
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
GPG = gpg
|
GPG = gpg
|
||||||
GPG_AGENT = gpg-agent
|
GPG_AGENT = gpg-agent
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) LC_ALL=C GPG_AGENT_INFO= \
|
GNUPGHOME=$(abs_builddir)
|
||||||
|
TESTS_ENVIRONMENT = GNUPGHOME=$(GNUPGHOME) LC_ALL=C GPG_AGENT_INFO= \
|
||||||
top_srcdir=$(top_srcdir)
|
top_srcdir=$(top_srcdir)
|
||||||
|
|
||||||
# The keylist tests must come after the import and the edit test.
|
# The keylist tests must come after the import and the edit test.
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
GPGSM = gpgsm
|
GPGSM = gpgsm
|
||||||
GPG_AGENT = gpg-agent
|
GPG_AGENT = gpg-agent
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) LC_ALL=C GPG_AGENT_INFO= \
|
GNUPGHOME=$(abs_builddir)
|
||||||
|
TESTS_ENVIRONMENT = GNUPGHOME=$(GNUPGHOME) LC_ALL=C GPG_AGENT_INFO= \
|
||||||
top_srcdir=$(top_srcdir)
|
top_srcdir=$(top_srcdir)
|
||||||
|
|
||||||
noinst_HEADERS = t-support.h
|
noinst_HEADERS = t-support.h
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) GPG_AGENT_INFO=
|
GNUPGHOME=$(abs_builddir)
|
||||||
|
TESTS_ENVIRONMENT = GNUPGHOME=$(GNUPGHOME) GPG_AGENT_INFO=
|
||||||
|
|
||||||
noinst_HEADERS =
|
noinst_HEADERS =
|
||||||
TESTS =
|
TESTS =
|
||||||
|
Loading…
Reference in New Issue
Block a user