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