Imported Upstream version 1.5.4
[platform/upstream/gpgme.git] / tests / Makefile.am
1 # Makefile.am - Makefile for GPGME tests.
2 # Copyright (C) 2000 Werner Koch (dd9jn)
3 # Copyright (C) 2001, 2004 g10 Code GmbH
4 #
5 # This file is part of GPGME.
6 #
7 # GPGME is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation; either version 2.1 of the
10 # License, or (at your option) any later version.
11 #
12 # GPGME is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
15 # Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this program; if not, see <http://www.gnu.org/licenses/>.
19
20 ## Process this file with automake to produce Makefile.in
21
22 TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir)
23
24 TESTS = t-version t-data t-engine-info
25
26 EXTRA_DIST = t-data-1.txt t-data-2.txt ChangeLog-2011
27
28 AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@
29 LDADD = ../src/libgpgme.la @GPG_ERROR_LIBS@
30
31 noinst_HEADERS = run-support.h
32
33 noinst_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \
34                   run-verify
35
36
37 if RUN_GPG_TESTS
38 gpgtests = gpg
39 else
40 gpgtests =
41 endif
42
43 if RUN_GPGSM_TESTS
44 gpgsmtests = gpgsm opassuan
45 else
46 gpgsmtests =
47 endif
48
49 SUBDIRS = ${gpgtests} ${gpgsmtests}