test: Add isds_BirthInfo_free tests
[libisds.git] / test / offline / Makefile.am
blob0af80a7ceae0e4f0f083d8e5c83cfc2b451273ba
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_PersonName_free isds_BirthInfo_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
36 if BUILD_CURL
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
41 endif
44 noinst_PROGRAMS = $(TESTS)
46 common = ../test.c ../test.h ../test-tools.h \
47         $(LIBDIR)/cdecode.c \
48         $(LIBDIR)/cencode.c \
49         $(LIBDIR)/crypto.c \
50         $(LIBDIR)/isds.c \
51         $(LIBDIR)/physxml.c \
52         $(LIBDIR)/utils.c \
53         $(LIBDIR)/validator.c \
54         $(LIBDIR)/cdecode.h \
55         $(LIBDIR)/cencode.h \
56         $(LIBDIR)/crypto.h \
57         $(LIBDIR)/gettext.h \
58         $(LIBDIR)/isds.h \
59         $(LIBDIR)/isds_priv.h \
60         $(LIBDIR)/physxml.h \
61         $(LIBDIR)/utils.h \
62         $(LIBDIR)/validator.h
63 if BUILD_CURL
64 common += $(LIBDIR)/soap.c $(LIBDIR)/soap.h
65 endif
66 if WIN32
67 common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
68 else
69 common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
70 endif
72 # Omit isds.c
73 isds_common = ../test.c ../test.h ../test-tools.h \
74         $(LIBDIR)/cdecode.c \
75         $(LIBDIR)/cencode.c \
76         $(LIBDIR)/crypto.c \
77         $(LIBDIR)/physxml.c \
78         $(LIBDIR)/utils.c \
79         $(LIBDIR)/validator.c \
80         $(LIBDIR)/cdecode.h \
81         $(LIBDIR)/cencode.h \
82         $(LIBDIR)/crypto.h \
83         $(LIBDIR)/isds.h \
84         $(LIBDIR)/isds_priv.h \
85         $(LIBDIR)/physxml.h \
86         $(LIBDIR)/utils.h \
87         $(LIBDIR)/validator.h
88 if BUILD_CURL
89 isds_common += $(LIBDIR)/soap.c $(LIBDIR)/soap.h
90 endif
91 if WIN32
92 isds_common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
93 else
94 isds_common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
95 endif
97 # Omit soap.c
98 soap_common = ../test.c ../test.h ../test-tools.h \
99         $(LIBDIR)/cdecode.c \
100         $(LIBDIR)/cencode.c \
101         $(LIBDIR)/crypto.c \
102         $(LIBDIR)/isds.c \
103         $(LIBDIR)/physxml.c \
104         $(LIBDIR)/utils.c \
105         $(LIBDIR)/validator.c \
106         $(LIBDIR)/cdecode.h \
107         $(LIBDIR)/cencode.h \
108         $(LIBDIR)/crypto.h \
109         $(LIBDIR)/isds.h \
110         $(LIBDIR)/isds_priv.h \
111         $(LIBDIR)/physxml.h \
112         $(LIBDIR)/utils.h \
113         $(LIBDIR)/validator.h
114 if BUILD_CURL
115 soap_common += $(LIBDIR)/soap.h
116 endif
117 if WIN32
118 soap_common += $(LIBDIR)/win32.c $(LIBDIR)/win32.h
119 else
120 soap_common += $(LIBDIR)/unix.c $(LIBDIR)/unix.h
121 endif
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_DbOwnerInfo_free_SOURCES   = isds_DbOwnerInfo_free.c $(common)
140 isds_DbUserInfo_free_SOURCES    = isds_DbUserInfo_free.c $(common)
141 isds_event_free_SOURCES         = isds_event_free.c $(common)
142 isds_envelope_free_SOURCES      = isds_envelope_free.c $(common)
143 isds_document_free_SOURCES      = isds_document_free.c $(common)
144 isds_message_free_SOURCES       = isds_message_free.c $(common)
145 isds_message_copy_free_SOURCES  = isds_message_copy_free.c $(common)
146 isds_message_status_change_free_SOURCES = isds_message_status_change_free.c \
147                                                                                   $(common)
148 isds_approval_free_SOURCES      = isds_approval_free.c $(common)
149 isds_commercial_permission_free_SOURCES = isds_commercial_permission_free.c \
150                                                                                   $(common)
151 isds_credentials_delivery_free_SOURCES  = isds_credentials_delivery_free.c \
152                                                                                   $(common)
153 isds_credit_event_free_SOURCES  = isds_credit_event_free.c $(common)
154 isds_PersonName_duplicate_SOURCES       = isds_PersonName_duplicate.c $(common)
155 isds_Address_duplicate_SOURCES  = isds_Address_duplicate.c $(common)
156 isds_DbOwnerInfo_duplicate_SOURCES      = isds_DbOwnerInfo_duplicate.c $(common)
157 isds_DbUserInfo_duplicate_SOURCES       = isds_DbUserInfo_duplicate.c $(common)
159 # Access static symbols from isds.c
160 isds_dbtype_SOURCES             = isds-dbtype.c $(isds_common)
161 isds_filemetatype_SOURCES       = isds-filemetatype.c $(isds_common)
162 isds_hash_algorithm_SOURCES = isds-hash_algorithm.c $(isds_common)
163 isds_sendertype_SOURCES         = isds-sendertype.c $(isds_common)
164 isds_usertype_SOURCES           = isds-usertype.c $(isds_common)
165 isds_paymenttype_SOURCES        = isds-paymenttype.c $(isds_common)
166 isds_crediteventtype_SOURCES    = isds-crediteventtype.c $(isds_common)
167 isds_datestring2tm_SOURCES      = isds-datestring2tm.c $(isds_common)
168 isds_tm2datestring_SOURCES      = isds-tm2datestring.c $(isds_common)
169 isds_timestring2timeval_SOURCES = isds-timestring2timeval.c $(isds_common)
170 isds_timeval2timestring_SOURCES = isds-timeval2timestring.c $(isds_common)
171 isds_uint2isds_message_status_SOURCES   = isds-uint2isds_message_status.c \
172                                                                                   $(isds_common)
173 isds_eventstring2event_SOURCES  = isds-eventstring2event.c $(isds_common)
175 # Access static symbols from soap.c
176 soap_decode_header_value_SOURCES        = soap-decode_header_value.c $(soap_common)
177 soap_string2isds_otp_resolution_SOURCES = soap-string2isds_otp_resolution.c \
178                                                                                   $(soap_common)
180 # Tests that need .gnupg
181 guess_raw_type.log load_raw.log: prepare_environment.log
183 prepare_environment_SOURCES = prepare_environment.c \
184                                                           ../test.c ../test.h ../test-tools.h