summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2022-12-19WTRAPPED is now supported by waitid(2)Philip Guenther
Don't test waitid(WUNTRACED) as that's not portable and only 'works' due to an implementation decision
2022-12-18nc: update regress after recent changesTheo Buehler
2022-12-18Use volatile sig_atomic_t for flag set in signal handlerTheo Buehler
2022-12-17Switch to using BN_zero() instead of BN_zero_ex()Theo Buehler
2022-12-17Move benchmark target up a bit and mark it phonyTheo Buehler
2022-12-17Zap some whitespaceTheo Buehler
2022-12-17Provide regress coverage for BN shift functions.Joel Sing
Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and BN_rshift(), along with basic benchmarking functionality (run via 'make benchmark').
2022-12-17Revise cipher list regress coverage of SSL_set_security_level().Joel Sing
A SSL_set_security_level() call was added to the cipher list regress, which expects a failure - however, it should succeed and fails for a completely unrelated reason. Rework this regress so that it actually passes and tests for the expected behaviour.
2022-12-15Add shim functions for repo code introduced by the pre repo stats.Claudio Jeker
From tb@
2022-12-10Make the accepted log grep pattern more strict in order to not pick up any logAnton Lindqvist
entries from sshd causing intermittent failures. Discussed with bluhm@ back in August this year.
2022-12-10bio chain test: compress some error printingTheo Buehler
2022-12-10bio chain test: deduplicate chain walking codeTheo Buehler
2022-12-10bio chain test: handle walking of empty chainsTheo Buehler
Rework the loops walking the chains to be correct for empty chains as well. This simplifies the checking at the cost of slightly more initialization and will allow further refactoring in a subsequent check.
2022-12-09bio chain test: add a consistency check for chain lengthsTheo Buehler
2022-12-09bn/Makefile: tidy up and simplifyTheo Buehler
2022-12-09bio chain test: make two errors noisyTheo Buehler
2022-12-09bio chain test: ensure the length of empty chains is 0Theo Buehler
2022-12-09bio chain test: various minor readability tweaksTheo Buehler
Align initialization in walk_backward() with walk_forward(), fix grammar in a comment and move initialization of oldhead_len in a place consistent with the other length initializations in that function
2022-12-08bio chain test: fix inconsequential off-by-oneTheo Buehler
2022-12-08bio chain test: minor readability tweaksTheo Buehler
2022-12-08bio chain test: rename a few variables for consistencyTheo Buehler
2022-12-08bio chain test: decouple lengths of test chainsTheo Buehler
Add helpers to create and destroy a linear chain of BIOs. Provide two defines for the two lengths of the test chains and make them distinct to rule out coincidences. As a bonus, the code becomes simpler.
2022-12-08bio chain test: refactor link_chains_at()Theo Buehler
Add helper that validate the chains. This deduplicates a lot of code and makes the heart of the test much easier to read.
2022-12-08bio chain test: lose some do_{,bio_} prefixesTheo Buehler
2022-12-08Split biotest into its three logical partsTheo Buehler
Some parts of this test rely on unportable behavior, so cannot run in portable. This way we can run more tests for portable which is helpful for analysis tools, better coverage, etc.
2022-12-08biotest: Tweak long comment a bitTheo Buehler
2022-12-08Print skipped on non applicable architectures.Anton Lindqvist
2022-12-08Stop overriding the regress target and use REGRESS_TARGETS instead.Anton Lindqvist
2022-12-08Add BIO_push() and BIO_set_next() regress coverageTheo Buehler
This tests for the behavior changes in bio_lib.c r1.40 and r1.41 and makes sure that BIO_push() and BIO_set_next() act on two chains in the expected and now documented way.
2022-12-08bn_mod_exp test: drop extra parentheses for readabilityTheo Buehler
2022-12-07Fix comment typo.Darren Tucker
2022-12-06Add a few missing headers and drop a few unused onesTheo Buehler
In bn_test.c include bn_local.h instead of using copy-pasted prototypes.
2022-12-06Correct previous, must exit 0 to signal failure.Anton Lindqvist
2022-12-05Unbreak rust-openssl-tests on sparc64Theo Buehler
For the test compilation using the CC crate, base clang is good enough, so we don't need to pull in another heavy dependency just for this test.
2022-12-05Treat all possible mprotect() failures as fatal.Anton Lindqvist
2022-12-05bn_mod_exp.c doesn't need <string.h>Theo Buehler
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2022-12-04zap weird spaces $EDITOR added in previousTheo Buehler
2022-12-04Print skipped while running on anything other than i386.Anton Lindqvist
2022-12-04Include endian.h for htobe32Tobias Heider
2022-12-03Consistently use uintXX_t from <stdint.h> instead of u_intXX_t.Tobias Heider
2022-12-03skip rust-openssl-tests on sparc64Theo Buehler
The issue is likely that the build is trying to compile some generated C code with the prehistoric gcc from base, so add a tentative workaround for that. Since I don't currently have access to a sparc64 box where I could validate this easily and check if the workaround is enough, let's not waste lots of cycles on this.
2022-12-03Clean up makefileTheo Buehler
2022-12-03biotest needs bio_local.h nowTheo Buehler
Should have been part of the previous commit
2022-12-03Test BIO_{push,pop}() along a linear chainTheo Buehler
2022-12-03More cleanupTheo Buehler
Drop unnecessary loading of error strings, fix error path and consistently print to stdout.
2022-12-03Refactor and fix bn_mod_exp testTheo Buehler
The amount of copy-paste in this test led to a few bugs and it was hard to spot them since things were done in random order. Use a different approach: compute the result of a^b (mod m) according to BN_mod_exp_simple(), then compare the results of all the other *_mod_exp* functions to that. Reuse the test structure from bn_mod_exp_zero.c to loop over the list of functions. This way we test more functions and don't forget to check some crucial bits.
2022-12-03Add missing checks for BN_mod_exp_{non,}ct()Theo Buehler
Someone added a few more functions to test, but forgot to check their results, so if they would not do the expected thing that would only be noticed if one of the already tested functions would break.
2022-12-03Fix some ancient silliness with a random byteTheo Buehler
For nearly 25 years this test has attempted to generate random numbers of bit length between 192 and 319 bits. Unfortunately, it used an unsigned char so instead of generating numbers in the interval [-64..63] and add them to 256, it used numbers in the intervals [0..63] and [192..255]...
2022-10-20Provide a harness driving rust-openssl's regress testsTheo Buehler
rust-openssl is an integral part of the Rust ecosystem and more than a dozen ports, including lang/rust itself, depend on it. We need to ensure that it keeps working with LibreSSL. If the rust and rust-openssl-tests packages are installed, create a cargo workspace under obj/ that compiles and runs the rust-openssl regress tests much like what is done for the openssl-ruby tests. This expands our regress coverage: for instance, this would have caught the broken ASN.1 indefinite length encoding caused by asn1/tasn_enc.c r1.25. Positive feedback beck jsing semarie Testing and ok anton