Moved 1.9 branch to trunk
[gnupg.git] / tests / pkits / Makefile.am
1 # Makefile.am - tests using NIST's PKITS
2 #       Copyright (C) 2004 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 # USA.
20
21 ## Process this file with automake to produce Makefile.in
22
23 GPGSM = ../../sm/gpgsm
24
25 TESTS_ENVIRONMENT = GNUPGHOME=`pwd` GPG_AGENT_INFO= 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
48
49 testscripts = import-all-certs validate-all-certs
50
51
52
53 EXTRA_DIST = PKITS_data.tar.bz2 inittests runtest $(testscripts) 
54              import-all-certs.data 
55
56 TESTS = $(testscripts)
57
58 CLEANFILES = inittests.stamp x y y z out err  *.lock .\#lk* *.log
59
60 DISTCLEANFILES = pubring.kbx~ random_seed
61
62 all-local: inittests.stamp
63
64 clean-local:
65         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean
66
67 inittests.stamp: inittests
68         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
69         echo timestamp >./inittests.stamp
70