build.info 10.9 KB
Newer Older
1
{- use File::Spec::Functions qw/catdir catfile rel2abs abs2rel updir/; -}
M
Matt Caswell 已提交
2 3 4 5 6 7 8 9 10 11 12 13
IF[{- !$disabled{tests} -}]
  PROGRAMS=\
          aborttest \
          nptest bntest \
          ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
          md2test md4test md5test \
          hmactest wp_test \
          rc2test rc4test rc5test \
          destest sha1test sha256t sha512t \
          mdc2test rmdtest \
          randtest dhtest enginetest casttest \
          bftest ssltest_old dsatest exptest rsa_test \
R
Rich Salz 已提交
14
          evp_test evp_extra_test igetest v3nametest v3ext \
M
Matt Caswell 已提交
15 16 17 18
          danetest heartbeat_test p5_crpt2_test \
          constant_time_test verify_extra_test clienthellotest \
          packettest asynctest secmemtest srptest memleaktest \
          dtlsv1listentest ct_test threadstest afalgtest d2i_test \
19
          ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
M
Matt Caswell 已提交
20
          bioprinttest getsettest
M
Matt Caswell 已提交
21 22

  SOURCE[aborttest]=aborttest.c
23
  INCLUDE[aborttest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
24 25 26
  DEPEND[aborttest]=../libcrypto

  SOURCE[nptest]=nptest.c
27
  INCLUDE[nptest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
28 29 30
  DEPEND[nptest]=../libcrypto

  SOURCE[bntest]=bntest.c
31
  INCLUDE[bntest]="{- rel2abs(catdir($builddir,"../crypto/include")) -}" "{- rel2abs(catdir($builddir,"../include")) -}" .. ../crypto/include ../include
M
Matt Caswell 已提交
32 33 34
  DEPEND[bntest]=../libcrypto

  SOURCE[ectest]=ectest.c
35
  INCLUDE[ectest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
36 37 38
  DEPEND[ectest]=../libcrypto

  SOURCE[ecdsatest]=ecdsatest.c
39
  INCLUDE[ecdsatest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
40 41 42
  DEPEND[ecdsatest]=../libcrypto

  SOURCE[ecdhtest]=ecdhtest.c
43
  INCLUDE[ecdhtest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
44 45 46
  DEPEND[ecdhtest]=../libcrypto

  SOURCE[gmdifftest]=gmdifftest.c
47
  INCLUDE[gmdifftest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
48 49 50
  DEPEND[gmdifftest]=../libcrypto

  SOURCE[pbelutest]=pbelutest.c
51
  INCLUDE[pbelutest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
52 53 54
  DEPEND[pbelutest]=../libcrypto

  SOURCE[ideatest]=ideatest.c
55
  INCLUDE[ideatest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
56 57 58
  DEPEND[ideatest]=../libcrypto

  SOURCE[md2test]=md2test.c
59
  INCLUDE[md2test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
60 61 62
  DEPEND[md2test]=../libcrypto

  SOURCE[md4test]=md4test.c
63
  INCLUDE[md4test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
64 65 66
  DEPEND[md4test]=../libcrypto

  SOURCE[md5test]=md5test.c
67
  INCLUDE[md5test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
68 69 70
  DEPEND[md5test]=../libcrypto

  SOURCE[hmactest]=hmactest.c
71
  INCLUDE[hmactest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
72 73 74
  DEPEND[hmactest]=../libcrypto

  SOURCE[wp_test]=wp_test.c
75
  INCLUDE[wp_test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
76 77 78
  DEPEND[wp_test]=../libcrypto

  SOURCE[rc2test]=rc2test.c
79
  INCLUDE[rc2test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
80 81 82
  DEPEND[rc2test]=../libcrypto

  SOURCE[rc4test]=rc4test.c
83
  INCLUDE[rc4test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
84 85 86
  DEPEND[rc4test]=../libcrypto

  SOURCE[rc5test]=rc5test.c
87
  INCLUDE[rc5test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
88 89 90
  DEPEND[rc5test]=../libcrypto

  SOURCE[destest]=destest.c
91
  INCLUDE[destest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
92 93 94
  DEPEND[destest]=../libcrypto

  SOURCE[sha1test]=sha1test.c
95
  INCLUDE[sha1test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
96 97 98
  DEPEND[sha1test]=../libcrypto

  SOURCE[sha256t]=sha256t.c
99
  INCLUDE[sha256t]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
100 101 102
  DEPEND[sha256t]=../libcrypto

  SOURCE[sha512t]=sha512t.c
103
  INCLUDE[sha512t]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
104 105 106
  DEPEND[sha512t]=../libcrypto

  SOURCE[mdc2test]=mdc2test.c
107
  INCLUDE[mdc2test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
108 109 110
  DEPEND[mdc2test]=../libcrypto

  SOURCE[rmdtest]=rmdtest.c
111
  INCLUDE[rmdtest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
112 113 114
  DEPEND[rmdtest]=../libcrypto

  SOURCE[randtest]=randtest.c
115
  INCLUDE[randtest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
116
  DEPEND[randtest]=../libcrypto
117

M
Matt Caswell 已提交
118
  SOURCE[dhtest]=dhtest.c
119
  INCLUDE[dhtest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
120
  DEPEND[dhtest]=../libcrypto
121

M
Matt Caswell 已提交
122
  SOURCE[enginetest]=enginetest.c
123
  INCLUDE[enginetest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
124
  DEPEND[enginetest]=../libcrypto
125

M
Matt Caswell 已提交
126
  SOURCE[casttest]=casttest.c
127
  INCLUDE[casttest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
128
  DEPEND[casttest]=../libcrypto
129

M
Matt Caswell 已提交
130
  SOURCE[bftest]=bftest.c
131
  INCLUDE[bftest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
132
  DEPEND[bftest]=../libcrypto
133

M
Matt Caswell 已提交
134
  SOURCE[ssltest_old]=ssltest_old.c
135
  INCLUDE[ssltest_old]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
136
  DEPEND[ssltest_old]=../libcrypto ../libssl
137

M
Matt Caswell 已提交
138
  SOURCE[dsatest]=dsatest.c
139
  INCLUDE[dsatest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
140
  DEPEND[dsatest]=../libcrypto
141

M
Matt Caswell 已提交
142
  SOURCE[exptest]=exptest.c
143
  INCLUDE[exptest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
144
  DEPEND[exptest]=../libcrypto
145

M
Matt Caswell 已提交
146
  SOURCE[rsa_test]=rsa_test.c
147
  INCLUDE[rsa_test]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
148
  DEPEND[rsa_test]=../libcrypto
149

M
Matt Caswell 已提交
150
  SOURCE[evp_test]=evp_test.c
151
  INCLUDE[evp_test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
152
  DEPEND[evp_test]=../libcrypto
153

M
Matt Caswell 已提交
154
  SOURCE[evp_extra_test]=evp_extra_test.c
155
  INCLUDE[evp_extra_test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
156
  DEPEND[evp_extra_test]=../libcrypto
157

M
Matt Caswell 已提交
158
  SOURCE[igetest]=igetest.c
159
  INCLUDE[igetest]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
160
  DEPEND[igetest]=../libcrypto
161

M
Matt Caswell 已提交
162
  SOURCE[v3nametest]=v3nametest.c
163
  INCLUDE[v3nametest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
164
  DEPEND[v3nametest]=../libcrypto
165

R
Rich Salz 已提交
166 167 168 169
  SOURCE[v3ext]=v3ext.c
  INCLUDE[v3ext]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
  DEPEND[v3ext]=../libcrypto

M
Matt Caswell 已提交
170
  SOURCE[danetest]=danetest.c
171
  INCLUDE[danetest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
172
  DEPEND[danetest]=../libcrypto ../libssl
173

M
Matt Caswell 已提交
174
  SOURCE[heartbeat_test]=heartbeat_test.c testutil.c
175
  INCLUDE[heartbeat_test]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
176
  DEPEND[heartbeat_test]=../libcrypto ../libssl
177

M
Matt Caswell 已提交
178
  SOURCE[p5_crpt2_test]=p5_crpt2_test.c
179
  INCLUDE[p5_crpt2_test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
180
  DEPEND[p5_crpt2_test]=../libcrypto
181

M
Matt Caswell 已提交
182
  SOURCE[constant_time_test]=constant_time_test.c
183
  INCLUDE[constant_time_test]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
184
  DEPEND[constant_time_test]=../libcrypto
185

M
Matt Caswell 已提交
186
  SOURCE[verify_extra_test]=verify_extra_test.c
187
  INCLUDE[verify_extra_test]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
188
  DEPEND[verify_extra_test]=../libcrypto
189

M
Matt Caswell 已提交
190
  SOURCE[clienthellotest]=clienthellotest.c
191
  INCLUDE[clienthellotest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
192
  DEPEND[clienthellotest]=../libcrypto ../libssl
193

M
Matt Caswell 已提交
194
  SOURCE[packettest]=packettest.c
195
  INCLUDE[packettest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
196
  DEPEND[packettest]=../libcrypto
197

M
Matt Caswell 已提交
198
  SOURCE[asynctest]=asynctest.c
199
  INCLUDE[asynctest]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
200
  DEPEND[asynctest]=../libcrypto
201

M
Matt Caswell 已提交
202
  SOURCE[secmemtest]=secmemtest.c
203
  INCLUDE[secmemtest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
204
  DEPEND[secmemtest]=../libcrypto
205

M
Matt Caswell 已提交
206
  SOURCE[srptest]=srptest.c
207
  INCLUDE[srptest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
208
  DEPEND[srptest]=../libcrypto
209

M
Matt Caswell 已提交
210
  SOURCE[memleaktest]=memleaktest.c
211
  INCLUDE[memleaktest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
212
  DEPEND[memleaktest]=../libcrypto
213

M
Matt Caswell 已提交
214
  SOURCE[dtlsv1listentest]=dtlsv1listentest.c
215
  INCLUDE[dtlsv1listentest]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
216
  DEPEND[dtlsv1listentest]=../libssl
R
Rich Salz 已提交
217

M
Matt Caswell 已提交
218
  SOURCE[ct_test]=ct_test.c testutil.c
219
  INCLUDE[ct_test]="{- rel2abs(catdir($builddir,"../include")) -}" ../crypto/include ../include
M
Matt Caswell 已提交
220
  DEPEND[ct_test]=../libcrypto
221

M
Matt Caswell 已提交
222
  SOURCE[threadstest]=threadstest.c
223
  INCLUDE[threadstest]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
224
  DEPEND[threadstest]=../libcrypto
225

M
Matt Caswell 已提交
226
  SOURCE[afalgtest]=afalgtest.c
227
  INCLUDE[afalgtest]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
228
  DEPEND[afalgtest]=../libcrypto
C
clucey 已提交
229

M
Matt Caswell 已提交
230
  SOURCE[d2i_test]=d2i_test.c testutil.c
231
  INCLUDE[d2i_test]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
232
  DEPEND[d2i_test]=../libcrypto
E
Emilia Kasper 已提交
233

M
Matt Caswell 已提交
234
  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c
235
  INCLUDE[ssl_test_ctx_test]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
236
  DEPEND[ssl_test_ctx_test]=../libcrypto
E
Emilia Kasper 已提交
237

M
Matt Caswell 已提交
238
  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c
239
  INCLUDE[ssl_test]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
M
Matt Caswell 已提交
240
  DEPEND[ssl_test]=../libcrypto ../libssl
E
Emilia Kasper 已提交
241

E
Emilia Kasper 已提交
242
  SOURCE[cipherlist_test]=cipherlist_test.c testutil.c
243
  INCLUDE[cipherlist_test]="{- rel2abs(catdir($builddir,"../include")) -}" .. ../include
E
Emilia Kasper 已提交
244 245
  DEPEND[cipherlist_test]=../libcrypto ../libssl

M
Matt Caswell 已提交
246
  INCLUDE[testutil.o]=..
247 248
  INCLUDE[ssl_test_ctx.o]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
  INCLUDE[handshake_helper.o]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
249 250

  SOURCE[x509aux]=x509aux.c
251
  INCLUDE[x509aux]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
252
  DEPEND[x509aux]=../libcrypto
M
Matt Caswell 已提交
253 254

  SOURCE[asynciotest]=asynciotest.c
255
  INCLUDE[asynciotest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
M
Matt Caswell 已提交
256
  DEPEND[asynciotest]=../libcrypto ../libssl
257 258 259 260

  SOURCE[bioprinttest]=bioprinttest.c
  INCLUDE[bioprinttest]={- rel2abs(catdir($builddir,"../include")) -} ../include
  DEPEND[bioprinttest]=../libcrypto
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
  {-
   use File::Basename;
   use if $^O ne "VMS", 'File::Glob' => qw/glob/;

   my $includes = join(" ",
                       rel2abs(catdir($builddir,"../include")), "../include");
   my @nogo_headers = ( "asn1_mac.h",
                        "__decc_include_prologue.h",
                        "__decc_include_epilogue.h" );
   my @headerfiles = glob catfile($sourcedir,
                                  updir(), "include", "openssl", "*.h");

   foreach my $headerfile (@headerfiles) {
       my $name = basename($headerfile, ".h");
       next if $disabled{$name};
       next if grep { $_ eq lc("$name.h") } @nogo_headers;
       $OUT .= <<"_____";

  PROGRAMS=buildtest_$name
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
  INCLUDE[buildtest_$name]=$includes
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
  -}
M
Matt Caswell 已提交
287 288 289 290

  SOURCE[getsettest]=getsettest.c
  INCLUDE[getsettest]="{- rel2abs(catdir($builddir,"../include")) -}" ../include
  DEPEND[getsettest]=../libcrypto ../libssl
M
Matt Caswell 已提交
291
ENDIF