Update tls13secretstest to use the new simpler test framework
[openssl.git] / test / build.info
1 {-
2      use File::Spec::Functions;
3      sub rebase_files
4      {
5          my ($base, $files) = @_;
6          return join(" ", map { "$base/$_" } split(/\s+/, $files));
7      }
8 -}
9 IF[{- !$disabled{tests} -}]
10   PROGRAMS_NO_INST=\
11           aborttest \
12           sanitytest bntest \
13           ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
14           md2test md4test md5test \
15           hmactest wp_test \
16           rc2test rc4test rc5test \
17           destest sha1test sha256t sha512t \
18           mdc2test rmdtest \
19           randtest dhtest enginetest casttest \
20           bftest ssltest_old dsatest exptest rsa_test \
21           evp_test evp_extra_test igetest v3nametest v3ext \
22           danetest p5_crpt2_test bad_dtls_test \
23           constant_time_test verify_extra_test clienthellotest \
24           packettest asynctest secmemtest srptest memleaktest \
25           dtlsv1listentest ct_test threadstest afalgtest d2i_test \
26           ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
27           bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
28           pkey_meth_test
29
30   SOURCE[aborttest]=aborttest.c
31   INCLUDE[aborttest]=../include
32   DEPEND[aborttest]=../libcrypto
33
34   SOURCE[sanitytest]=sanitytest.c
35   INCLUDE[sanitytest]=../include
36   DEPEND[sanitytest]=../libcrypto
37
38   SOURCE[bntest]=bntest.c
39   INCLUDE[bntest]=.. ../crypto/include ../include
40   DEPEND[bntest]=../libcrypto
41
42   SOURCE[ectest]=ectest.c
43   INCLUDE[ectest]=../include
44   DEPEND[ectest]=../libcrypto
45
46   SOURCE[ecdsatest]=ecdsatest.c
47   INCLUDE[ecdsatest]=../include
48   DEPEND[ecdsatest]=../libcrypto
49
50   SOURCE[ecdhtest]=ecdhtest.c
51   INCLUDE[ecdhtest]=../include
52   DEPEND[ecdhtest]=../libcrypto
53
54   SOURCE[gmdifftest]=gmdifftest.c
55   INCLUDE[gmdifftest]=../include
56   DEPEND[gmdifftest]=../libcrypto
57
58   SOURCE[pbelutest]=pbelutest.c
59   INCLUDE[pbelutest]=../include
60   DEPEND[pbelutest]=../libcrypto
61
62   SOURCE[ideatest]=ideatest.c
63   INCLUDE[ideatest]=../include
64   DEPEND[ideatest]=../libcrypto
65
66   SOURCE[md2test]=md2test.c
67   INCLUDE[md2test]=../include
68   DEPEND[md2test]=../libcrypto
69
70   SOURCE[md4test]=md4test.c
71   INCLUDE[md4test]=../include
72   DEPEND[md4test]=../libcrypto
73
74   SOURCE[md5test]=md5test.c
75   INCLUDE[md5test]=../include
76   DEPEND[md5test]=../libcrypto
77
78   SOURCE[hmactest]=hmactest.c
79   INCLUDE[hmactest]=../include
80   DEPEND[hmactest]=../libcrypto
81
82   SOURCE[wp_test]=wp_test.c
83   INCLUDE[wp_test]=../include
84   DEPEND[wp_test]=../libcrypto
85
86   SOURCE[rc2test]=rc2test.c
87   INCLUDE[rc2test]=../include
88   DEPEND[rc2test]=../libcrypto
89
90   SOURCE[rc4test]=rc4test.c
91   INCLUDE[rc4test]=../include
92   DEPEND[rc4test]=../libcrypto
93
94   SOURCE[rc5test]=rc5test.c
95   INCLUDE[rc5test]=../include
96   DEPEND[rc5test]=../libcrypto
97
98   SOURCE[destest]=destest.c
99   INCLUDE[destest]=../include
100   DEPEND[destest]=../libcrypto
101
102   SOURCE[sha1test]=sha1test.c
103   INCLUDE[sha1test]=../include
104   DEPEND[sha1test]=../libcrypto
105
106   SOURCE[sha256t]=sha256t.c
107   INCLUDE[sha256t]=../include
108   DEPEND[sha256t]=../libcrypto
109
110   SOURCE[sha512t]=sha512t.c
111   INCLUDE[sha512t]=../include
112   DEPEND[sha512t]=../libcrypto
113
114   SOURCE[mdc2test]=mdc2test.c
115   INCLUDE[mdc2test]=../include
116   DEPEND[mdc2test]=../libcrypto
117
118   SOURCE[rmdtest]=rmdtest.c
119   INCLUDE[rmdtest]=../include
120   DEPEND[rmdtest]=../libcrypto
121
122   SOURCE[randtest]=randtest.c
123   INCLUDE[randtest]=../include
124   DEPEND[randtest]=../libcrypto
125
126   SOURCE[dhtest]=dhtest.c
127   INCLUDE[dhtest]=../include
128   DEPEND[dhtest]=../libcrypto
129
130   SOURCE[enginetest]=enginetest.c
131   INCLUDE[enginetest]=../include
132   DEPEND[enginetest]=../libcrypto
133
134   SOURCE[casttest]=casttest.c
135   INCLUDE[casttest]=../include
136   DEPEND[casttest]=../libcrypto
137
138   SOURCE[bftest]=bftest.c
139   INCLUDE[bftest]=../include
140   DEPEND[bftest]=../libcrypto
141
142   SOURCE[ssltest_old]=ssltest_old.c
143   INCLUDE[ssltest_old]=.. ../include
144   DEPEND[ssltest_old]=../libcrypto ../libssl
145
146   SOURCE[dsatest]=dsatest.c
147   INCLUDE[dsatest]=../include
148   DEPEND[dsatest]=../libcrypto
149
150   SOURCE[exptest]=exptest.c
151   INCLUDE[exptest]=../include
152   DEPEND[exptest]=../libcrypto
153
154   SOURCE[rsa_test]=rsa_test.c
155   INCLUDE[rsa_test]=.. ../include
156   DEPEND[rsa_test]=../libcrypto
157
158   SOURCE[evp_test]=evp_test.c
159   INCLUDE[evp_test]=../include
160   DEPEND[evp_test]=../libcrypto
161
162   SOURCE[evp_extra_test]=evp_extra_test.c
163   INCLUDE[evp_extra_test]=../include
164   DEPEND[evp_extra_test]=../libcrypto
165
166   SOURCE[igetest]=igetest.c
167   INCLUDE[igetest]=.. ../include
168   DEPEND[igetest]=../libcrypto
169
170   SOURCE[v3nametest]=v3nametest.c
171   INCLUDE[v3nametest]=../include
172   DEPEND[v3nametest]=../libcrypto
173
174   SOURCE[v3ext]=v3ext.c
175   INCLUDE[v3ext]=../include
176   DEPEND[v3ext]=../libcrypto
177
178   SOURCE[danetest]=danetest.c
179   INCLUDE[danetest]=../include
180   DEPEND[danetest]=../libcrypto ../libssl
181
182   SOURCE[p5_crpt2_test]=p5_crpt2_test.c
183   INCLUDE[p5_crpt2_test]=../include
184   DEPEND[p5_crpt2_test]=../libcrypto
185
186   SOURCE[constant_time_test]=constant_time_test.c
187   INCLUDE[constant_time_test]=.. ../include
188   DEPEND[constant_time_test]=../libcrypto
189
190   SOURCE[verify_extra_test]=verify_extra_test.c
191   INCLUDE[verify_extra_test]=../include
192   DEPEND[verify_extra_test]=../libcrypto
193
194   SOURCE[clienthellotest]=clienthellotest.c
195   INCLUDE[clienthellotest]=../include
196   DEPEND[clienthellotest]=../libcrypto ../libssl
197
198   SOURCE[bad_dtls_test]=bad_dtls_test.c
199   INCLUDE[bad_dtls_test]=../include
200   DEPEND[bad_dtls_test]=../libcrypto ../libssl
201
202   SOURCE[packettest]=packettest.c
203   INCLUDE[packettest]=../include
204   DEPEND[packettest]=../libcrypto
205
206   SOURCE[asynctest]=asynctest.c
207   INCLUDE[asynctest]=.. ../include
208   DEPEND[asynctest]=../libcrypto
209
210   SOURCE[secmemtest]=secmemtest.c
211   INCLUDE[secmemtest]=../include
212   DEPEND[secmemtest]=../libcrypto
213
214   SOURCE[srptest]=srptest.c
215   INCLUDE[srptest]=../include
216   DEPEND[srptest]=../libcrypto
217
218   SOURCE[memleaktest]=memleaktest.c
219   INCLUDE[memleaktest]=../include
220   DEPEND[memleaktest]=../libcrypto
221
222   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
223   INCLUDE[dtlsv1listentest]=.. ../include
224   DEPEND[dtlsv1listentest]=../libssl
225
226   SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
227   INCLUDE[ct_test]=../crypto/include ../include
228   DEPEND[ct_test]=../libcrypto
229
230   SOURCE[threadstest]=threadstest.c
231   INCLUDE[threadstest]=.. ../include
232   DEPEND[threadstest]=../libcrypto
233
234   SOURCE[afalgtest]=afalgtest.c
235   INCLUDE[afalgtest]=.. ../include
236   DEPEND[afalgtest]=../libcrypto
237
238   SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
239   INCLUDE[d2i_test]=.. ../include
240   DEPEND[d2i_test]=../libcrypto
241
242   SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
243   INCLUDE[ssl_test_ctx_test]=.. ../include
244   DEPEND[ssl_test_ctx_test]=../libcrypto
245
246   SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
247   INCLUDE[ssl_test]=.. ../include
248   DEPEND[ssl_test]=../libcrypto ../libssl
249
250   SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
251   INCLUDE[cipherlist_test]=.. ../include
252   DEPEND[cipherlist_test]=../libcrypto ../libssl
253
254   INCLUDE[testutil.o]=..
255   INCLUDE[ssl_test_ctx.o]=../include
256   INCLUDE[handshake_helper.o]=../include
257   INCLUDE[ssltestlib.o]=../include
258
259   SOURCE[x509aux]=x509aux.c
260   INCLUDE[x509aux]=../include
261   DEPEND[x509aux]=../libcrypto
262
263   SOURCE[asynciotest]=asynciotest.c ssltestlib.c
264   INCLUDE[asynciotest]=../include
265   DEPEND[asynciotest]=../libcrypto ../libssl
266
267   SOURCE[bioprinttest]=bioprinttest.c
268   INCLUDE[bioprinttest]=../include
269   DEPEND[bioprinttest]=../libcrypto
270
271   SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
272   INCLUDE[sslapitest]=../include
273   DEPEND[sslapitest]=../libcrypto ../libssl
274
275   SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
276   INCLUDE[dtlstest]=../include .
277   DEPEND[dtlstest]=../libcrypto ../libssl
278
279   SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c
280   INCLUDE[sslcorrupttest]=../include .
281   DEPEND[sslcorrupttest]=../libcrypto ../libssl
282
283   SOURCE[bio_enc_test]=bio_enc_test.c
284   INCLUDE[bio_enc_test]=../include
285   DEPEND[bio_enc_test]=../libcrypto
286
287   SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
288   INCLUDE[pkey_meth_test]=../include
289   DEPEND[pkey_meth_test]=../libcrypto
290
291   IF[{- !$disabled{psk} -}]
292     PROGRAMS_NO_INST=dtls_mtu_test
293     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
294     INCLUDE[dtls_mtu_test]=.. ../include
295     DEPEND[dtls_mtu_test]=../libcrypto ../libssl
296   ENDIF
297
298   IF[{- !$disabled{shared} -}]
299     PROGRAMS_NO_INST=shlibloadtest
300     SOURCE[shlibloadtest]=shlibloadtest.c
301     INCLUDE[shlibloadtest]=../include
302   ENDIF
303
304   IF[{- $disabled{shared} -}]
305     PROGRAMS_NO_INST=wpackettest cipher_overhead_test
306     SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
307     INCLUDE[wpackettest]=../include
308     DEPEND[wpackettest]=../libcrypto ../libssl
309
310     SOURCE[cipher_overhead_test]=cipher_overhead_test.c
311     INCLUDE[cipher_overhead_test]=.. ../include
312     DEPEND[cipher_overhead_test]=../libcrypto ../libssl
313   ENDIF
314
315   # Internal test programs.  These are essentially a collection of internal
316   # test routines.  Some of them need to reach internal symbols that aren't
317   # available through the shared library (at least on Linux, Solaris, Windows
318   # and VMS, where the exported symbols are those listed in util/*.num), these
319   # programs are forcebly linked with the static libraries, where all symbols
320   # are always available.  This excludes linking these programs natively on
321   # Windows when building shared libraries, since the static libraries share
322   # names with the DLL import libraries.
323   IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
324     PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test
325     IF[{- !$disabled{poly1305} -}]
326       PROGRAMS_NO_INST=poly1305_internal_test
327     ENDIF
328
329     SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
330     INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
331     DEPEND[poly1305_internal_test]=../libcrypto.a
332
333     SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
334     INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
335     DEPEND[asn1_internal_test]=../libcrypto.a
336
337     SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
338     INCLUDE[modes_internal_test]=.. ../include
339     DEPEND[modes_internal_test]=../libcrypto.a
340
341     SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
342     INCLUDE[x509_internal_test]=.. ../include
343     DEPEND[x509_internal_test]=../libcrypto.a
344   ENDIF
345
346   IF[{- !$disabled{mdc2} -}]
347     PROGRAMS_NO_INST=mdc2_internal_test
348   ENDIF
349
350   SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
351   INCLUDE[mdc2_internal_test]=.. ../include
352   DEPEND[mdc2_internal_test]=../libcrypto
353
354   # We disable this test completely in a shared build because it deliberately
355   # redefines some internal libssl symbols. This doesn't work in a non-shared
356   # build
357   IF[{- !$disabled{shared} -}]
358     PROGRAMS_NO_INST=tls13secretstest
359     SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
360     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
361     INCLUDE[tls13secretstest]=.. ../include
362     DEPEND[tls13secretstest]=../libcrypto ../libssl
363   ENDIF
364 ENDIF
365
366 {-
367    use File::Spec::Functions;
368    use File::Basename;
369    use if $^O ne "VMS", 'File::Glob' => qw/glob/;
370
371    my @nogo_headers = ( "asn1_mac.h",
372                         "__decc_include_prologue.h",
373                         "__decc_include_epilogue.h" );
374    my @headerfiles = glob catfile($sourcedir,
375                                   updir(), "include", "openssl", "*.h");
376
377    foreach my $headerfile (@headerfiles) {
378        my $name = basename($headerfile, ".h");
379        next if $disabled{$name};
380        next if grep { $_ eq lc("$name.h") } @nogo_headers;
381        $OUT .= <<"_____";
382
383   PROGRAMS_NO_INST=buildtest_$name
384   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
385   SOURCE[buildtest_$name]=buildtest_$name.c
386   INCLUDE[buildtest_$name]=../include
387   DEPEND[buildtest_$name]=../libssl ../libcrypto
388 _____
389    }
390 -}