* ksutil.h, ksutil.c (curl_armor_writer, curl_writer,
[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 # We can't unset a variable here so we unset GPG_AGENT_INFO in runtest
25 TESTS_ENVIRONMENT = GNUPGHOME=`pwd` LC_ALL=C GPGSM=$(GPGSM) \
26                     LD_LIBRARY_PATH=$$(seen=0; \
27                            for i in $(LDFLAGS) $(LIBGCRYPT_LIBS) $(PTH_LIBS); \
28                            do \
29                              if echo "$$i" | egrep '^-L' >/dev/null 2>&1; \
30                              then \
31                                if test $$seen = 0; \
32                                then \
33                                  seen=1; \
34                                else \
35                                  printf ":"; \
36                                fi; \
37                                printf "%s" "$${i}" | sed 's/^-L//'; \
38                              fi; \
39                            done; \
40                            if test $$seen != 0 \
41                               && test x$${LD_LIBRARY_PATH} != x; \
42                            then \
43                              printf ":"; \
44                            fi; \
45                            printf "%s" "$${LD_LIBRARY_PATH}") $(srcdir)/runtest
46
47 testscripts = sm-sign+verify sm-verify
48
49 EXTRA_DIST = runtest inittests $(testscripts) \
50              text-1.txt text-2.txt text-3.txt \
51              text-1.osig.pem text-1.dsig.pem text-1.osig-bad.pem \
52              text-2.osig.pem text-2.osig-bad.pem \
53              samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key \
54              samplekeys/cert_g10code_pete1.pem \
55              samplekeys/cert_g10code_test1.pem \
56              samplekeys/cert_g10code_theo1.pem
57
58 TESTS = $(testscripts)
59
60 CLEANFILES = inittests.stamp x y y z out err 
61              *.lock .\#lk* 
62
63 DISTCLEANFILES = pubring.kbx~ random_seed
64
65 noinst_PROGRAMS = asschk
66
67 asschk_SOURCES = asschk.c
68
69
70 all-local: inittests.stamp
71
72 clean-local:
73         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean
74
75 inittests.stamp: inittests
76         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
77         echo timestamp >./inittests.stamp
78