1 AUTOMAKE_OPTIONS = color-tests parallel-tests
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@ \
17 # To fake home dir for gnupg2
18 export HOME=@top_builddir@
20 TESTS = prepare_environment \
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_PersonName_free isds_BirthInfo_free isds_Address_free \
26 isds_DbOwnerInfo_free isds_DbUserInfo_free isds_event_free \
27 isds_envelope_free isds_document_free isds_message_free \
28 isds_message_copy_free isds_message_status_change_free isds_approval_free \
29 isds_commercial_permission_free isds_credentials_delivery_free \
30 isds_credit_event_free \
31 isds_PersonName_duplicate isds_Address_duplicate \
32 isds_DbOwnerInfo_duplicate isds_DbUserInfo_duplicate \
33 isds-filemetatype isds-hash_algorithm \
34 isds-timestring2timeval \
35 isds-uint2isds_message_status isds-eventstring2event
37 TESTS += isds-dbtype isds-sendertype isds-usertype isds-paymenttype\
38 isds-crediteventtype isds-datestring2tm isds-tm2datestring \
39 isds-timeval2timestring \
40 soap-decode_header_value soap-string2isds_otp_resolution
44 noinst_PROGRAMS = $(TESTS)
46 common = ../test.c ../test.h ../test-tools.h \
53 $(LIBDIR)/validator.c \
59 $(LIBDIR)/isds_priv.h \
64 common += $(LIBDIR)/soap.c $(LIBDIR)/soap.h
67 common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
69 common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
73 isds_common = ../test.c ../test.h ../test-tools.h \
79 $(LIBDIR)/validator.c \
84 $(LIBDIR)/isds_priv.h \
89 isds_common += $(LIBDIR)/soap.c $(LIBDIR)/soap.h
92 isds_common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
94 isds_common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
98 soap_common = ../test.c ../test.h ../test-tools.h \
100 $(LIBDIR)/cencode.c \
103 $(LIBDIR)/physxml.c \
105 $(LIBDIR)/validator.c \
106 $(LIBDIR)/cdecode.h \
107 $(LIBDIR)/cencode.h \
110 $(LIBDIR)/isds_priv.h \
111 $(LIBDIR)/physxml.h \
113 $(LIBDIR)/validator.h
115 soap_common += $(LIBDIR)/soap.h
118 soap_common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
120 soap_common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
123 # Access _hidden symbols
124 b64decode_SOURCES = b64decode.c $(common)
125 b64encode_SOURCES = b64encode.c $(common)
126 compute_hash_SOURCES = compute_hash.c $(common)
127 context_SOURCES = context.c $(common)
128 guess_raw_type_SOURCES = guess_raw_type.c $(common)
129 init_gpgpme_SOURCES = init_gpgpme.c $(common)
130 isds_init_SOURCES = isds_init.c $(common)
131 load_raw_SOURCES = load_raw.c $(common)
132 normalize_mime_type_SOURCES = normalize_mime_type.c $(common)
133 utf82locale_SOURCES = utf82locale.c $(common)
134 isds_list_free_SOURCES = isds_list_free.c $(common)
135 isds_pki_credentials_free_SOURCES = isds_pki_credentials_free.c $(common)
136 isds_hash_free_SOURCES = isds_hash_free.c $(common)
137 isds_PersonName_free_SOURCES = isds_PersonName_free.c $(common)
138 isds_BirthInfo_free_SOURCES = isds_BirthInfo_free.c $(common)
139 isds_Address_free_SOURCES = isds_Address_free.c $(common)
140 isds_DbOwnerInfo_free_SOURCES = isds_DbOwnerInfo_free.c $(common)
141 isds_DbUserInfo_free_SOURCES = isds_DbUserInfo_free.c $(common)
142 isds_event_free_SOURCES = isds_event_free.c $(common)
143 isds_envelope_free_SOURCES = isds_envelope_free.c $(common)
144 isds_document_free_SOURCES = isds_document_free.c $(common)
145 isds_message_free_SOURCES = isds_message_free.c $(common)
146 isds_message_copy_free_SOURCES = isds_message_copy_free.c $(common)
147 isds_message_status_change_free_SOURCES = isds_message_status_change_free.c \
149 isds_approval_free_SOURCES = isds_approval_free.c $(common)
150 isds_commercial_permission_free_SOURCES = isds_commercial_permission_free.c \
152 isds_credentials_delivery_free_SOURCES = isds_credentials_delivery_free.c \
154 isds_credit_event_free_SOURCES = isds_credit_event_free.c $(common)
155 isds_PersonName_duplicate_SOURCES = isds_PersonName_duplicate.c $(common)
156 isds_Address_duplicate_SOURCES = isds_Address_duplicate.c $(common)
157 isds_DbOwnerInfo_duplicate_SOURCES = isds_DbOwnerInfo_duplicate.c $(common)
158 isds_DbUserInfo_duplicate_SOURCES = isds_DbUserInfo_duplicate.c $(common)
160 # Access static symbols from isds.c
161 isds_dbtype_SOURCES = isds-dbtype.c $(isds_common)
162 isds_filemetatype_SOURCES = isds-filemetatype.c $(isds_common)
163 isds_hash_algorithm_SOURCES = isds-hash_algorithm.c $(isds_common)
164 isds_sendertype_SOURCES = isds-sendertype.c $(isds_common)
165 isds_usertype_SOURCES = isds-usertype.c $(isds_common)
166 isds_paymenttype_SOURCES = isds-paymenttype.c $(isds_common)
167 isds_crediteventtype_SOURCES = isds-crediteventtype.c $(isds_common)
168 isds_datestring2tm_SOURCES = isds-datestring2tm.c $(isds_common)
169 isds_tm2datestring_SOURCES = isds-tm2datestring.c $(isds_common)
170 isds_timestring2timeval_SOURCES = isds-timestring2timeval.c $(isds_common)
171 isds_timeval2timestring_SOURCES = isds-timeval2timestring.c $(isds_common)
172 isds_uint2isds_message_status_SOURCES = isds-uint2isds_message_status.c \
174 isds_eventstring2event_SOURCES = isds-eventstring2event.c $(isds_common)
176 # Access static symbols from soap.c
177 soap_decode_header_value_SOURCES = soap-decode_header_value.c $(soap_common)
178 soap_string2isds_otp_resolution_SOURCES = soap-string2isds_otp_resolution.c \
181 # Tests that need .gnupg
182 guess_raw_type.log load_raw.log: prepare_environment.log
184 prepare_environment_SOURCES = prepare_environment.c \
185 ../test.c ../test.h ../test-tools.h