1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
Commit Graph

8008 Commits

Author SHA1 Message Date
tb
0b88608e55 Add test coverage for leading zero octet dance 2023-07-07 07:47:25 +00:00
bcook
d6517dbd6e fixup for MS compilers 2023-07-07 07:44:59 +00:00
sashan
e8c6dd7b2e adding regression tests:
to verify limit on tickets progam can retrieve
    by DIOCXGETRULES. Ad

    tests which verify DIOCXEND works as expected, that program
    can release ticket obtained by earlier call to DIOCGETRULES

improvements from anton@

OK anton@, bluhm@
2023-07-06 19:55:57 +00:00
tb
69421fdc9e bn_print: remove unused bio, plug leak 2023-07-06 15:11:21 +00:00
tb
f356d55941 Add regress coverage for bn_printf
This must be one of the ugliest tests I've ever written, but I can't think
of a better way of doing it.
2023-07-06 15:08:54 +00:00
deraadt
fda352e494 sysctl(2) is now sysctl(3), in particular it does not access name[0] in
userland.  This test should have been written with a signal handler to
be accurate..  Anyways, stop using syscall() to work around that
ok kettenis
2023-07-06 07:47:04 +00:00
deraadt
4f1b6f3a7f syscall(2) regress will eventually be pointless, and untestable also
ok kettenis
2023-07-06 07:45:56 +00:00
bluhm
10657ef0fc Perl tests expect executable permission on source files to match
the Perl distribution.  Fix them in obj directory during test run.
This seems easier than to fiddle with permissions in CVS.
2023-07-05 21:38:22 +00:00
tb
1964a63a33 Avoid undefined behavior in tlsexttest
An empty array cannot be initialized and it is an incomplete type, so the
sizeof() operator can't be applied to it. Therefore initialize it with a
zero byte and replace sizeof() use with lengths.

Slightly tweaked version of a patch by inoguchi in portable.
Discussed with bcook, beck, kettenis
2023-07-05 17:30:14 +00:00
anton
c10b169721 favor hw.ncpuonline; ok bluhm@ 2023-07-04 19:01:46 +00:00
bluhm
c82a04dd18 Run Perl tests from our regress tree. It needs a Perl obj directory
with Makefile.  To create the test environment, use the
Makefile.bsd-wrapper in /usr/src/gnu/usr.bin/perl and build Perl
there if it does not exist.  This allows to test Perl easily and
in a consistent manner.  Do not link tests to regress tree due to
this reach around and the combination of build and test.
2023-07-04 11:27:13 +00:00
tb
df6ddd9b8f Plug leak in the ssltest
Removing -tls1 moved some tests from the legacy stack to the TLSv1.3 stack.
On a HRR, the alpn callback would be called twice and allocate the global
twice, thereby leaking. So free it up front.

Joint suffering with bcook and beck
2023-07-04 08:47:01 +00:00
anton
d3804626eb favor REGRESS_EXPECTED_FAILURES 2023-07-03 17:55:51 +00:00
jasper
03c8fe6abc add regress tests for the remainder of the function provided by our uuid.h 2023-07-03 13:51:55 +00:00
jasper
c367081c09 add a few tests related to --cflags and --libs in combination with Requires.private.
skipping one (currently failing) test which exhibits the behaviour described
by humm@ljabl.com on bugs@
2023-07-03 13:44:45 +00:00
beck
490f565b99 Stop caring about tls 1.0 and 1.1.
Syslogd is not a tls protocol tester in any case. These tests
should not care what version of tls they use
2023-07-03 05:45:53 +00:00
beck
dbacfe20a2 Stop testing tls 1.0 and 1.1
They have gone behind the barn.
2023-07-03 05:31:56 +00:00
beck
521ba2f2ab Disable TLS 1.0 and TLS 1.1 in libssl
Their time has long since past, and they should not be used.
This change restricts ssl to versions 1.2 and 1.3, and changes
the regression tests to understand we no longer speak the legacy
protocols.

For the moment the magical "golden" byte for byte comparison
tests of raw handshake values are disabled util jsing fixes them.

ok jsing@ tb@
2023-07-02 17:21:32 +00:00
beck
5c389b7954 Remove the ability to do tls 1.0 and 1.1 from libtls.
With this change any requests from configurations to request
versions of tls before tls 1.2 will use tls 1.2. This prepares
us to deprecate tls 1.0 and tls 1.1 support from libssl.

ok tb@
2023-07-02 06:37:27 +00:00
tb
03882fa966 update rpki-regress. log.c is no more. 2023-06-29 10:29:18 +00:00
guenther
ff51234218 On amd64, test whether PKU has been enabled and set our expectation
of the results based on that.  Also, the system now enforces
unreadability in copyin() of ld.so, libc, and application text,
even when PKU isn't enabled, so adjust those results to match.

ok deraadt@ anton@
2023-06-26 19:03:03 +00:00
job
7363246124 Update regress files to aspa-profile-15 format 2023-06-26 18:55:52 +00:00
claudio
628a100ddd Call notification_done() in the regress test so that the list
of deltas is adjusted to what the test expects.
2023-06-24 07:07:36 +00:00
tb
6230b67351 Codify BN_asc2bn(NULL, *) behavior in regress. 2023-06-23 10:50:47 +00:00
tb
284c014012 symbols: Tweak this test so it works with -j N 2023-06-22 19:23:27 +00:00
jsing
d1ac4eb253 Add tests for BN_sqr() corner cases.
Test BN_sqr() with a newly allocated BN, a BN explicitly set to zero and
small values that fit in a single BN_ULONG.
2023-06-21 07:18:10 +00:00
jsing
da50f9d581 Add BN_cmp()/BN_ucmp() tests with zero padded inputs.
Currently BN_hex2bn() removes the leading zeros, however this will not be
the case in the future.
2023-06-21 07:16:08 +00:00
jsing
36ba240090 Add a BN_num_bits() with zero padded input.
Currently BN_hex2bn() removes the leading zeros, however this will not be
the case in the future.
2023-06-21 07:15:38 +00:00
job
edf59932f8 Update regress to align with recent changes in rpki-client 2023-06-20 12:52:32 +00:00
tb
e1dd1f6b50 Fix copy-paste error 2023-06-20 06:46:07 +00:00
jsing
0d31acbab9 Add regress coverage for BN_num_bits() 2023-06-20 06:36:09 +00:00
tb
dff2ba7361 Make enginetest work with disabled engine support 2023-06-19 18:52:29 +00:00
tb
d9e70eaf9b Fix GOST test with disabled engine 2023-06-19 18:51:47 +00:00
claudio
00562ee792 Drop test for msgbuf_drain() since that function is no longer part of the
public API.
2023-06-19 17:22:46 +00:00
claudio
000e30a885 Add community tests for various ext-community * versions.
While there move one test down so that the numbering is consistent again
and make the error strings for counts clear.
2023-06-17 08:01:22 +00:00
espie
ea064d447e fix test after method name change 2023-06-14 07:52:37 +00:00
claudio
a7d38a0626 Link http regress test with -lz for content-encoding gzip support.
Noticed by anton@
2023-06-13 11:41:36 +00:00
tb
820acc68fb Some KNF nits 2023-06-13 10:39:46 +00:00
tb
d5abdd01d7 imsg test: simplify Makefile 2023-06-13 10:38:45 +00:00
anton
7f6870ef82 All hooked up regress directories must at least support make obj and clean in
order to not break the tree. Therefore make use of bsd.regress.mk.
2023-06-13 04:59:10 +00:00
millert
fafd6c403a Simple seq(1) regress. More tests are needed. 2023-06-12 20:19:45 +00:00
tb
ff0e7be1eb File new test-bleichenbacher-timing-pregenerate.py under failing tests
until someone finds time and motivation to figure out how to use this.
2023-06-10 05:00:58 +00:00
espie
5ce1ee8cb5 add tests related to --libs-only-l and the likes
remove extraneous spaces from reference output now that we're closer
to the original pkg-config
2023-06-08 08:57:02 +00:00
job
17feaa7543 Fix copy+paste error in x509 asn regress 2023-06-05 18:32:06 +00:00
tb
9a36959cd9 Make ruby-openssl cope with default ruby change 2023-06-04 11:33:45 +00:00
tb
b505647788 bn_mod_inverse tweaks
Provide prototype that is hidden behind LIBRESSL_INTERNAL for portable
and or in result for future extensibility.
2023-06-04 07:14:47 +00:00
otto
e78208e22e More thorough write-afetr-free checks.
On free, chunks (the pieces of a pages used for smaller allocations)
are junked and then validated after they leave the delayed free
list.  So after free, a chunk always contains junk bytes. This means
that if we start with the right contents for a new page of chunks,
we can *validate* instead of *write* junk bytes when (re)-using a
chunk.

With this, we can detect write-after-free when a chunk is recycled,
not justy when a chunk is in the delayed free list.  We do a little
bit more work on initial allocation of a page of chunks and when
re-using (as we validate now even on junk level 1).

Also: some extra consistency checks for recallocaray(3) and fixes
in error messages to make them more consistent, with man page bits.

Plus regress additions.
2023-06-04 06:58:33 +00:00
tb
99463a0c5d Add regress coverage for BN_mod_inverse()
This would detect the aliasing issue reported by Guido Vranken fixed
in bn_gcd.c r1.28. Most testcases are from BoringSSL's regress test.
2023-06-03 21:20:29 +00:00
tb
1f6bba93cb fix typo 2023-06-02 08:35:10 +00:00
tb
64a4e68961 Remove the speed test again
It takes too much time and we now know that all covered ciphers can cope
with unaligned input and output on all tested architectures.
2023-06-01 09:46:00 +00:00