summaryrefslogtreecommitdiff
path: root/regress/lib
AgeCommit message (Collapse)Author
2020-12-28Fix an off-by-one error in the marking of the O_CH operator followingTodd C. Miller
an OOR2 operator. Also includes a regress test for the issue. From FreeBSD via miod@
2020-12-26Include expat_config.h to run regress with matching set of ifdefs.Alexander Bluhm
2020-12-26Start each regress run from scratch with new keys and CA database.Alexander Bluhm
2020-12-26Convert CA regress implementation from shell script to make file.Alexander Bluhm
Ensure that it works with obj directory and link regress to build.
2020-12-25Add to *FLAGS and *ADD rather than overwriting themTheo Buehler
This makes CFLAGS pick up -O2, which shaves a few seconds runtime off these very slow tests.
2020-12-17Remove echo headlines.Alexander Bluhm
2020-12-06Enable t_mmap-1 test. It is skipped on NetBSD, but works for us.Alexander Bluhm
2020-12-01Extend the methods test to cover dtls methods as wellTheo Buehler
2020-12-01Enable ssl_methods unit test.Theo Buehler
2020-12-01Add an ssl_methods() unit test that currently only covers theTheo Buehler
behavior of SSL_is_server(). This would have caught the regression introduced in the method unification.
2020-11-19$OpenBSD$Theo Buehler
2020-11-18Don't leak verify and store contexts.Theo Buehler
2020-11-11Run the atf cleanup block after each test. This makes more testsAlexander Bluhm
pass when run as non root.
2020-11-10Declare prototype of __syscall locally. Fixes t_syscall test.Alexander Bluhm
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
ATF (Automated Testing Framework), so we use a small wrapper to map it to our bsd.regress.mk framework. Only half of the 80 NetBSD tests have been taken, the others need more work to adapt. Of them 34 syscall tests pass. Moritz Buhl ported the tests to OpenBSD.
2020-11-09Sync libc syscall tests with changes in upstream NetBSD. Use #ifdefAlexander Bluhm
to document differences to NetBSD behaviour, this helps to track upstream. Mark currently failing test as expected failures. So test programs get compiled and executed, but it shows that further investigation is necceassry.
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
ATF (Automated Testing Framework), so we use a small wrapper to map it to our bsd.regress.mk framework. Only half of the 80 NetBSD tests have been taken, the others need more work to adapt. Of them 34 syscall tests pass. Moritz Buhl ported the tests to OpenBSD.
2020-11-07Add test for ilogb(3).Mark Kettenis
2019-02-21Copy tests for our libm implementation from FreeBSD. Only passingAlexander Bluhm
tests are included, the others need some fixes in the library first. Hopefully these tests will help us to find compiler bugs earlier. from Moritz Buhl
2020-11-05Skip test if web server cannot be pinged.Alexander Bluhm
2020-10-30botan2 uses C++11, so use ports-gcc on gcc-archsTheo Buehler
This makes this interop test pass on sparc64.
2020-10-29Do not fail with obscure error messages on 'make'Theo Buehler
Fix some tests that fail with obscure error messages on 'make' if the required package (either version of OpenSSL or Botan 2) isn't installed. This can be avoided by doing 'make regress' instead. I'll try to adjust my finger memory for the many tests outside the LibreSSL tree that have the same "problem". The fix here is unintrusive and I've been wasting enough time with this to want to change it. ok bluhm
2020-10-26catch unset error when validation fails.Bob Beck
2020-10-21On machines with a userland timecounter we bypass the gettimeofday(2)Mark Kettenis
syscall. So whenever we pass a bad address we get a SIGSEGV instead of EFAULT. POSIX explicitly allows this behaviour. So adjust the test to deal with this case. ok deraadt@, millert@, guenther@
2019-11-19Import NetBSD system call regression tests. They were written withAlexander Bluhm
ATF (Automated Testing Framework), so we use a small wrapper to map it to our bsd.regress.mk framework. Only half of the 80 NetBSD tests have been taken, the others need more work to adapt. Of them 34 syscall tests pass. Moritz Buhl ported the tests to OpenBSD.
2020-10-19Disable FP exception masking tests on armv7 and arm64. ARM hardware doesn'tMark Kettenis
implement this feature.
2020-10-19Skip floating-point exception checks on arm64 and armv7 as the hardwareMark Kettenis
(typically) doesn't implement support for these. ok patrick@, drahn@
2020-10-18XFAIL tests on arm64 and armv7 as floating-point exception support isMark Kettenis
optional and isn't implemented on most hardware.
2020-10-16make this test compile and pass on sparc64Theo Buehler
Two functions missed (void) in their declaration which made gcc whine "warning: function declaration isn't a prototype".
2020-10-16Add an explicit cast to make this test compile and pass with gcc.Theo Buehler
gcc emits a signed vs unsigned comparison warning which breaks the build due to -Werror.
2020-10-15Test DTLS timeouts and retransmissions by dropping specific messages.Joel Sing
Provide a BIO that can drop specific messages in order to trigger and test DTLS timeouts and retransmissions. Note that the SSL buffering BIO (bbio) has to be removed to ensure that handshake messages are sent individually. This would have detected the recent DTLS breakage with retransmissions for a flight that includes a CCS.
2020-10-15Improve poll and event handling.Joel Sing
In particular, ensure we clear events when the client or server side has completed and fix timeouts to ensure we use a non-zero timeout if present.
2020-10-14Hook up dtls regress.Joel Sing
2020-10-14Add regress tests for DTLS.Joel Sing
Test the operation of a DTLS client and server, with and without cookies, using the default MTU and a specifically lowered MTU. Further regress tests will be built on this to exercise other parts of the DTLS code base (such as retransmission, fragmentation and reassembly).
2020-10-12avoid two overlong lines and drop an unused printf argumentTheo Buehler
2020-10-11No longer need to cast away const in srtp_find_profile_by_name()Theo Buehler
2020-10-11Update regress for method changes.Joel Sing
2020-10-11Unbreak regress following SRTP_PROTECTION_PROFILE const change.Joel Sing
2020-10-10Don't leak bundle_file and cert_file paths at the end.Theo Buehler
2020-10-08Read cert.pem once and reuse it instead of reading it twice per test certTheo Buehler
chain. It only takes a few dozens of ms to read it, but doing this 7290 times adds up to a few minutes run time. This way, the test completes in a handful of seconds. Diagnosed by jsing, ok beck
2020-10-07zap trailing whitespaceTheo Buehler
2020-10-07add arguments to skip a bunch of x448 testsTheo Buehler
2020-10-07Hook up tlslegacy regress.Joel Sing
2020-10-07Add regress tests for switching from the new TLS stack to the legacy stack.Joel Sing
This includes a test where the server response includes multiple handhshake messages in the single TLS plaintext record (which would have caught the bug just fixed in tls13_legacy.c).
2020-10-06Use std=gnu99 to be able to build the tests with both base clang and gcc.Martin Pieuchot
2020-10-03KNFTheo Buehler
2020-10-03typoTheo Buehler
2020-10-02spelling, punctuation, whitespaceTheo Buehler
2020-10-02Add possibility to link and run this test against the OpenSSL 1.1.1 packageTheo Buehler
using the make variable EOPENSSL11. Suggested by jsing
2020-10-02Use += and ?= and tidy up whitespaceTheo Buehler