* Makefile.am: Reset GPG_AGENT_INFO here
[gnupg.git] / tests / Makefile.am
1 # Makefile.am -tests makefile for libxtime
2 #       Copyright (C) 2002 Free Software Foundation, Inc.
3
4 # This file is part of GnuPG.
5
6 # GnuPG 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.
10
11 # GnuPG 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.
15
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
19
20 ## Process this file with automake to produce Makefile.in
21
22 GPGSM = ../sm/gpgsm
23
24 TESTS_ENVIRONMENT = GNUPGHOME=`pwd` GPG_AGENT_INFO= LC_ALL=C GPGSM=$(GPGSM) \
25                     LD_LIBRARY_PATH=$$(seen=0; \
26                            for i in $(LDFLAGS) $(LIBGCRYPT_LIBS) $(PTH_LIBS); \
27                            do \
28                              if echo "$$i" | egrep '^-L' >/dev/null 2>&1; \
29                              then \
30                                if test $$seen = 0; \
31                                then \
32                                  seen=1; \
33                                else \
34                                  printf ":"; \
35                                fi; \
36                                printf "%s" "$${i}" | sed 's/^-L//'; \
37                              fi; \
38                            done; \
39                            if test $$seen != 0 \
40                               && test x$${LD_LIBRARY_PATH} != x; \
41                            then \
42                              printf ":"; \
43                            fi; \
44                            printf "%s" "$${LD_LIBRARY_PATH}") $(srcdir)/runtest
45
46 testscripts = sm-sign+verify sm-verify
47
48 EXTRA_DIST = runtest inittests $(testscripts) \
49              text-1.txt text-2.txt text-3.txt \
50              text-1.osig.pem text-1.dsig.pem text-1.osig-bad.pem \
51              text-2.osig.pem text-2.osig-bad.pem \
52              samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key \
53              samplekeys/cert_g10code_pete1.pem \
54              samplekeys/cert_g10code_test1.pem \
55              samplekeys/cert_g10code_theo1.pem
56
57 TESTS = $(testscripts)
58
59 CLEANFILES = inittests.stamp x y y z out err 
60              *.lock .\#lk* 
61
62 DISTCLEANFILES = pubring.kbx~ random_seed
63
64 noinst_PROGRAMS = asschk
65
66 asschk_SOURCES = asschk.c
67
68
69 all-local: inittests.stamp
70
71 clean-local:
72         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean
73
74 inittests.stamp: inittests
75         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
76         echo timestamp >./inittests.stamp
77