Ported to MinGW
[libisds.git] / test / offline / Makefile.am
blob738a42f311a4d904c0020e6932c5af982f614096
1 AUTOMAKE_OPTIONS = color-tests parallel-tests
2 export VERBOSE=1
4 libdirpath = src
5 LIBDIR = $(top_srcdir)/$(libdirpath)
6 localedir = $(datadir)/locale
7 AM_CPPFLAGS = -I$(LIBDIR) -I$(top_builddir)/$(libdirpath) \
8                           -DSRCDIR=\"$(top_srcdir)\"
10 # Large files needed by GPGME
11 AM_CPPFLAGS += @XML_CPPFLAGS@ @LIBCURL_CPPFLAGS@ \
12                                           -DLOCALEDIR=\"$(localedir)\"
13 AM_CFLAGS = @LIBGCRYPT_CFLAGS@ @GPGME_CFLAGS@
14 LDADD = @XML_LIBS@ @LIBCURL@ @LIBGCRYPT_LIBS@ @GPGME_LIBS@ @EXPAT_LIBS@ \
15                 @LTLIBINTL@
17 # To fake home dir for gnupg2
18 export HOME=@top_builddir@
20 TESTS = prepare_environment \
21                 b64decode b64encode \
22                 compute_hash context guess_raw_type init_gpgpme isds_init load_raw \
23                 normalize_mime_type utf82locale \
24                 isds_list_free isds_pki_credentials_free isds_hash_free \
25                 isds_DbOwnerInfo_free isds_DbUserInfo_free isds_event_free \
26                 isds_envelope_free isds_document_free isds_message_free \
27                 isds_message_copy_free isds_message_status_change_free isds_approval_free \
28                 isds_commercial_permission_free isds_credentials_delivery_free \
29                 isds_PersonName_duplicate isds_Address_duplicate \
30                 isds_DbOwnerInfo_duplicate isds_DbUserInfo_duplicate \
31                 isds-filemetatype isds-hash_algorithm \
32                 isds-timestring2timeval \
33                 isds-uint2isds_message_status isds-eventstring2event
34 if BUILD_CURL
35 TESTS += isds-dbtype isds-sendertype isds-usertype isds-paymenttype\
36                  isds-datestring2tm isds-tm2datestring \
37                  isds-timeval2timestring \
38                  soap-decode_header_value soap-string2isds_otp_resolution
39 endif
42 noinst_PROGRAMS = $(TESTS)
44 common = ../test.c ../test.h ../test-tools.h \
45         $(LIBDIR)/cdecode.c \
46         $(LIBDIR)/cencode.c \
47         $(LIBDIR)/crypto.c \
48         $(LIBDIR)/isds.c \
49         $(LIBDIR)/physxml.c \
50         $(LIBDIR)/utils.c \
51         $(LIBDIR)/validator.c \
52         $(LIBDIR)/cdecode.h \
53         $(LIBDIR)/cencode.h \
54         $(LIBDIR)/crypto.h \
55         $(LIBDIR)/gettext.h \
56         $(LIBDIR)/isds.h \
57         $(LIBDIR)/isds_priv.h \
58         $(LIBDIR)/physxml.h \
59         $(LIBDIR)/utils.h \
60         $(LIBDIR)/validator.h
61 if BUILD_CURL
62 common += $(LIBDIR)/soap.c $(LIBDIR)/soap.h
63 endif
64 if WIN32
65 common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
66 else
67 common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
68 endif
70 # Omit isds.c
71 isds_common = ../test.c ../test.h ../test-tools.h \
72         $(LIBDIR)/cdecode.c \
73         $(LIBDIR)/cencode.c \
74         $(LIBDIR)/crypto.c \
75         $(LIBDIR)/physxml.c \
76         $(LIBDIR)/utils.c \
77         $(LIBDIR)/validator.c \
78         $(LIBDIR)/cdecode.h \
79         $(LIBDIR)/cencode.h \
80         $(LIBDIR)/crypto.h \
81         $(LIBDIR)/isds.h \
82         $(LIBDIR)/isds_priv.h \
83         $(LIBDIR)/physxml.h \
84         $(LIBDIR)/utils.h \
85         $(LIBDIR)/validator.h
86 if BUILD_CURL
87 isds_common += $(LIBDIR)/soap.c $(LIBDIR)/soap.h
88 endif
89 if WIN32
90 isds_common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
91 else
92 isds_common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
93 endif
95 # Omit soap.c
96 soap_common = ../test.c ../test.h ../test-tools.h \
97         $(LIBDIR)/cdecode.c \
98         $(LIBDIR)/cencode.c \
99         $(LIBDIR)/crypto.c \
100         $(LIBDIR)/isds.c \
101         $(LIBDIR)/physxml.c \
102         $(LIBDIR)/utils.c \
103         $(LIBDIR)/validator.c \
104         $(LIBDIR)/cdecode.h \
105         $(LIBDIR)/cencode.h \
106         $(LIBDIR)/crypto.h \
107         $(LIBDIR)/isds.h \
108         $(LIBDIR)/isds_priv.h \
109         $(LIBDIR)/physxml.h \
110         $(LIBDIR)/utils.h \
111         $(LIBDIR)/validator.h
112 if BUILD_CURL
113 soap_common += $(LIBDIR)/soap.h
114 endif
115 if WIN32
116 soap_common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
117 else
118 soap_common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
119 endif
121 # Access _hidden symbols
122 b64decode_SOURCES               = b64decode.c $(common)
123 b64encode_SOURCES               = b64encode.c $(common)
124 compute_hash_SOURCES    = compute_hash.c $(common)
125 context_SOURCES                 = context.c $(common)
126 guess_raw_type_SOURCES  = guess_raw_type.c $(common)
127 init_gpgpme_SOURCES     = init_gpgpme.c $(common)
128 isds_init_SOURCES               = isds_init.c $(common)
129 load_raw_SOURCES                = load_raw.c $(common)
130 normalize_mime_type_SOURCES             = normalize_mime_type.c $(common)
131 utf82locale_SOURCES             = utf82locale.c $(common)
132 isds_list_free_SOURCES  = isds_list_free.c $(common)
133 isds_pki_credentials_free_SOURCES       = isds_pki_credentials_free.c $(common)
134 isds_hash_free_SOURCES  = isds_hash_free.c $(common)
135 isds_DbOwnerInfo_free_SOURCES   = isds_DbOwnerInfo_free.c $(common)
136 isds_DbUserInfo_free_SOURCES    = isds_DbUserInfo_free.c $(common)
137 isds_event_free_SOURCES         = isds_event_free.c $(common)
138 isds_envelope_free_SOURCES      = isds_envelope_free.c $(common)
139 isds_document_free_SOURCES      = isds_document_free.c $(common)
140 isds_message_free_SOURCES       = isds_message_free.c $(common)
141 isds_message_copy_free_SOURCES  = isds_message_copy_free.c $(common)
142 isds_message_status_change_free_SOURCES = isds_message_status_change_free.c \
143                                                                                   $(common)
144 isds_approval_free_SOURCES      = isds_approval_free.c $(common)
145 isds_commercial_permission_free_SOURCES = isds_commercial_permission_free.c \
146                                                                                   $(common)
147 isds_credentials_delivery_free_SOURCES  = isds_credentials_delivery_free.c \
148                                                                                   $(common)
149 isds_PersonName_duplicate_SOURCES       = isds_PersonName_duplicate.c $(common)
150 isds_Address_duplicate_SOURCES  = isds_Address_duplicate.c $(common)
151 isds_DbOwnerInfo_duplicate_SOURCES      = isds_DbOwnerInfo_duplicate.c $(common)
152 isds_DbUserInfo_duplicate_SOURCES       = isds_DbUserInfo_duplicate.c $(common)
154 # Access static symbols from isds.c
155 isds_dbtype_SOURCES             = isds-dbtype.c $(isds_common)
156 isds_filemetatype_SOURCES       = isds-filemetatype.c $(isds_common)
157 isds_hash_algorithm_SOURCES = isds-hash_algorithm.c $(isds_common)
158 isds_sendertype_SOURCES         = isds-sendertype.c $(isds_common)
159 isds_usertype_SOURCES           = isds-usertype.c $(isds_common)
160 isds_paymenttype_SOURCES        = isds-paymenttype.c $(isds_common)
161 isds_datestring2tm_SOURCES      = isds-datestring2tm.c $(isds_common)
162 isds_tm2datestring_SOURCES      = isds-tm2datestring.c $(isds_common)
163 isds_timestring2timeval_SOURCES = isds-timestring2timeval.c $(isds_common)
164 isds_timeval2timestring_SOURCES = isds-timeval2timestring.c $(isds_common)
165 isds_uint2isds_message_status_SOURCES   = isds-uint2isds_message_status.c \
166                                                                                   $(isds_common)
167 isds_eventstring2event_SOURCES  = isds-eventstring2event.c $(isds_common)
169 # Access static symbols from soap.c
170 soap_decode_header_value_SOURCES        = soap-decode_header_value.c $(soap_common)
171 soap_string2isds_otp_resolution_SOURCES = soap-string2isds_otp_resolution.c \
172                                                                                   $(soap_common)
174 # Tests that need .gnupg
175 guess_raw_type.log load_raw.log: prepare_environment.log
177 prepare_environment_SOURCES = prepare_environment.c \
178                                                           ../test.c ../test.h ../test-tools.h