Add struct isds_commercial_permission
[libisds.git] / test / offline / Makefile.am
blob723b100ec1510f08bd835ec054ff198e9c5786f0
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 \
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
65 # Omit isds.c
66 isds_common = ../test.c ../test.h ../test-tools.h \
67         $(LIBDIR)/cdecode.c \
68         $(LIBDIR)/cencode.c \
69         $(LIBDIR)/crypto.c \
70         $(LIBDIR)/physxml.c \
71         $(LIBDIR)/utils.c \
72         $(LIBDIR)/validator.c \
73         $(LIBDIR)/cdecode.h \
74         $(LIBDIR)/cencode.h \
75         $(LIBDIR)/crypto.h \
76         $(LIBDIR)/isds.h \
77         $(LIBDIR)/isds_priv.h \
78         $(LIBDIR)/physxml.h \
79         $(LIBDIR)/utils.h \
80         $(LIBDIR)/validator.h
81 if BUILD_CURL
82 isds_common += $(LIBDIR)/soap.c $(LIBDIR)/soap.h
83 endif
85 # Omit soap.c
86 soap_common = ../test.c ../test.h ../test-tools.h \
87         $(LIBDIR)/cdecode.c \
88         $(LIBDIR)/cencode.c \
89         $(LIBDIR)/crypto.c \
90         $(LIBDIR)/isds.c \
91         $(LIBDIR)/physxml.c \
92         $(LIBDIR)/utils.c \
93         $(LIBDIR)/validator.c \
94         $(LIBDIR)/cdecode.h \
95         $(LIBDIR)/cencode.h \
96         $(LIBDIR)/crypto.h \
97         $(LIBDIR)/isds.h \
98         $(LIBDIR)/isds_priv.h \
99         $(LIBDIR)/physxml.h \
100         $(LIBDIR)/utils.h \
101         $(LIBDIR)/validator.h
102 if BUILD_CURL
103 soap_common += $(LIBDIR)/soap.h
104 endif
106 # Access _hidden symbols
107 b64decode_SOURCES               = b64decode.c $(common)
108 b64encode_SOURCES               = b64encode.c $(common)
109 compute_hash_SOURCES    = compute_hash.c $(common)
110 context_SOURCES                 = context.c $(common)
111 guess_raw_type_SOURCES  = guess_raw_type.c $(common)
112 init_gpgpme_SOURCES     = init_gpgpme.c $(common)
113 isds_init_SOURCES               = isds_init.c $(common)
114 load_raw_SOURCES                = load_raw.c $(common)
115 normalize_mime_type_SOURCES             = normalize_mime_type.c $(common)
116 utf82locale_SOURCES             = utf82locale.c $(common)
117 isds_list_free_SOURCES  = isds_list_free.c $(common)
118 isds_pki_credentials_free_SOURCES       = isds_pki_credentials_free.c $(common)
119 isds_hash_free_SOURCES  = isds_hash_free.c $(common)
120 isds_DbOwnerInfo_free_SOURCES   = isds_DbOwnerInfo_free.c $(common)
121 isds_DbUserInfo_free_SOURCES    = isds_DbUserInfo_free.c $(common)
122 isds_event_free_SOURCES         = isds_event_free.c $(common)
123 isds_envelope_free_SOURCES      = isds_envelope_free.c $(common)
124 isds_document_free_SOURCES      = isds_document_free.c $(common)
125 isds_message_free_SOURCES       = isds_message_free.c $(common)
126 isds_message_copy_free_SOURCES  = isds_message_copy_free.c $(common)
127 isds_message_status_change_free_SOURCES = isds_message_status_change_free.c \
128                                                                                   $(common)
129 isds_approval_free_SOURCES      = isds_approval_free.c $(common)
130 isds_commercial_permission_free_SOURCES = isds_commercial_permission_free.c \
131                                                                                   $(common)
132 isds_credentials_delivery_free_SOURCES  = isds_credentials_delivery_free.c \
133                                                                                   $(common)
134 isds_PersonName_duplicate_SOURCES       = isds_PersonName_duplicate.c $(common)
135 isds_Address_duplicate_SOURCES  = isds_Address_duplicate.c $(common)
136 isds_DbOwnerInfo_duplicate_SOURCES      = isds_DbOwnerInfo_duplicate.c $(common)
137 isds_DbUserInfo_duplicate_SOURCES       = isds_DbUserInfo_duplicate.c $(common)
139 # Access static symbols from isds.c
140 isds_dbtype_SOURCES             = isds-dbtype.c $(isds_common)
141 isds_filemetatype_SOURCES       = isds-filemetatype.c $(isds_common)
142 isds_hash_algorithm_SOURCES = isds-hash_algorithm.c $(isds_common)
143 isds_sendertype_SOURCES         = isds-sendertype.c $(isds_common)
144 isds_usertype_SOURCES           = isds-usertype.c $(isds_common)
145 isds_datestring2tm_SOURCES      = isds-datestring2tm.c $(isds_common)
146 isds_tm2datestring_SOURCES      = isds-tm2datestring.c $(isds_common)
147 isds_timestring2timeval_SOURCES = isds-timestring2timeval.c $(isds_common)
148 isds_timeval2timestring_SOURCES = isds-timeval2timestring.c $(isds_common)
149 isds_uint2isds_message_status_SOURCES   = isds-uint2isds_message_status.c \
150                                                                                   $(isds_common)
151 isds_eventstring2event_SOURCES  = isds-eventstring2event.c $(isds_common)
153 # Access static symbols from soap.c
154 soap_decode_header_value_SOURCES        = soap-decode_header_value.c $(soap_common)
155 soap_string2isds_otp_resolution_SOURCES = soap-string2isds_otp_resolution.c \
156                                                                                   $(soap_common)
158 # Tests that need .gnupg
159 guess_raw_type.log load_raw.log: prepare_environment.log
161 prepare_environment_SOURCES = prepare_environment.c \
162                                                           ../test.c ../test.h ../test-tools.h