1 # Copyright (C) 2000 Werner Koch (dd9jn)
2 # Copyright (C) 2001 g10 Code GmbH
4 # This file is part of GPGME.
6 # GPGME is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # GPGME is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 ## Process this file with automake to produce Makefile.in
24 TESTS_ENVIRONMENT = GNUPGHOME=.
26 TESTS = t-import t-keylist t-encrypt t-verify t-decrypt t-sign
28 EXTRA_DIST = cert_dfn_pca01.der cert_dfn_pca15.der cert_g10code_test1.der $(key_id)
30 INCLUDES = -I$(top_srcdir)/gpgme
32 LDADD = ../../gpgme/libgpgme.la
34 noinst_PROGRAMS = $(TESTS)
36 key_id := 32100C27173EF6E9C4E9A25D3D69F86D37A4F939
38 all-local: ./pubring.kbx ./gpg-agent.conf ./gpgsm.conf ./private-keys-v1.d/$(key_id).key ./trustlist.txt
40 ./pubring.kbx: $(srcdir)/cert_g10code_test1.der
41 $(GPGSM) --homedir . --import $(srcdir)/cert_g10code_test1.der
44 echo batch > ./gpg-agent.conf
47 echo disable-crl-checks > ./gpgsm.conf
49 ./private-keys-v1.d/$(key_id).key: $(srcdir)/$(key_id)
50 mkdir ./private-keys-v1.d
51 cp $(srcdir)/$(key_id) private-keys-v1.d/$(key_id).key
54 echo $(key_id) > ./trustlist.txt