diff options
author | Neal H. Walfield <neal@g10code.com> | 2015-09-02 15:07:06 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2015-09-02 15:08:57 +0200 |
commit | ee7ec1256b24dc340656c331ef92fc59cad817b6 (patch) | |
tree | c9642ff125bbbe5b095be55aa148110dae823fb0 /g10/Makefile.am | |
parent | g10: Make the keyblock cache per-handle rather than global. (diff) | |
download | gnupg2-ee7ec1256b24dc340656c331ef92fc59cad817b6.tar.xz gnupg2-ee7ec1256b24dc340656c331ef92fc59cad817b6.zip |
g10: Add test for keydb as well as new testing infrastructure.
* g10/Makefile.am (EXTRA_DIST): Add test.c.
(AM_CPPFLAGS): Add -DSOURCE_DIR="\"$(srcdir)\"".
(module_tests): Add t-keydb.
(t_keydb_SOURCES): New variable.
(t_keydb_LDADD): Likewise.
* g10/t-keydb.c: New file.
* g10/t-keydb-keyring.kbx: New file.
* g10/test-stubs.c: New file.
* g10/test.c: New file.
--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
Diffstat (limited to 'g10/Makefile.am')
-rw-r--r-- | g10/Makefile.am | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/g10/Makefile.am b/g10/Makefile.am index 0c53eab97..421870c5e 100644 --- a/g10/Makefile.am +++ b/g10/Makefile.am @@ -19,9 +19,9 @@ ## Process this file with automake to produce Makefile.in EXTRA_DIST = options.skel distsigkey.gpg ChangeLog-2011 gpg-w32info.rc \ - gpg.w32-manifest.in + gpg.w32-manifest.in test.c -AM_CPPFLAGS = -I$(top_srcdir)/common +AM_CPPFLAGS = -I$(top_srcdir)/common -DSOURCE_DIR="\"$(srcdir)\"" include $(top_srcdir)/am/cmacros.am @@ -150,9 +150,12 @@ gpgv2_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) \ gpgv2_LDFLAGS = $(extra_bin_ldflags) t_common_ldadd = -module_tests = t-rmd160 +module_tests = t-rmd160 t-keydb t_rmd160_SOURCES = t-rmd160.c rmd160.c t_rmd160_LDADD = $(t_common_ldadd) +t_keydb_SOURCES = t-keydb.c test-stubs.c $(common_source) +t_keydb_LDADD = $(LDADD) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \ + $(LIBICONV) $(t_common_ldadd) $(PROGRAMS): $(needed_libs) ../common/libgpgrl.a |