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