summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2023-11-20Add a couple of tests for handling of tcp connections.Martijn van Duren
2023-11-20Still need engine.h for ENGINE_free()Theo Buehler
But do away with the OPENSSL_NO_ENGINE dance.
2023-11-19Remove last OPENSSL_NO_ENGINE from libssl regressTheo Buehler
2023-11-19Unifdef OPENSSL_NO_ENGINE in libcrypto regressTheo Buehler
2023-11-18Sync example.c and minigzip.c with upstream.Theo Buehler
This silences lots of K&R warning noise.
2022-03-24Import upstream madler/zlib test files and run them with our libz.Alexander Bluhm
2023-11-16Add 3 tests for when getbulk reaches EOMV.Martijn van Duren
2023-11-16Add expected output files, missed in previous commit. I hope our grep isAnton Lindqvist
producing the wanted output at this point.
2023-11-15Add regress test for "grep -m" behavior. From Crystal Kolipe.Todd C. Miller
2023-11-13reduce the man(7) global indentation from 7n to 5n, see man_term.c rev. 1.197Ingo Schwarze
2023-11-13Retire the libcsi regressTheo Buehler
2023-11-13Add 2 tests to make sure getbulkrequests return the correct error index.Martijn van Duren
2023-11-11Cope with recent rt_hash() const changes.Anton Lindqvist
2023-11-11Ignore -N in "gzip -dN <in.gz" and "zcat -N in.gz"George Koehler
Have -c override -N, like other gzip implementations. Before, our -N (decompress to stored name) overrode -c (cat to stdout) and crashed with a pledge violation, because the pledge for -c excludes wpath. Guilherme Janczak reported the pledge violation in July 2022 and provided a diff to prevent it, along with a regress test. I rewrote the diff and expanded the regress. ok kn@ millert@
2023-11-10Add an initial SNMPv3 regression test.Martijn van Duren
2023-11-10Make further use of netcat server close barrier in regress to reduceAnton Lindqvist
flakiness.
2023-11-07Fix an error message left out in the mustDecodeHexString() conversionTheo Buehler
2023-11-07Pull up the handling of the two webcrypto special snowflakesTheo Buehler
2023-11-07Drop a useless line and bump copyright yearsTheo Buehler
2023-11-07Unwrap a few linesTheo Buehler
2023-11-07Wrap hex.DecodeString() into mustDecodeHexString()Theo Buehler
The hex decoding is only done from the JSON files provided by the wycheproof-testvectors package. Failure is always fatal. So there is no need for repeated error checks, and we can use an ergonomic wrapper. Also rework the calculation of the message digest from input data this had a similar deficit. All in all this shaves off about 10% of the code and removes a lot of tedious repetition.
2023-11-07Use maps to retrieve various AES variantsTheo Buehler
2023-11-07Convert hashEvpMdFromString() to a mapTheo Buehler
2023-11-07Add stringer interfaces to the test groupsTheo Buehler
This simplifies and unifies a lot of error messages.
2023-11-06Pull everything except the actual run call out of the closureTheo Buehler
The determination of the test group type and the JSON unmarshalling can be done before the closure without performance impact. This is more readable and eliminates the need of a temporary variable again. Suggested by jsing
2023-11-06Introduce testGroupFromAlgorithm()Theo Buehler
This factors another ugly switch into a helper function. This should probably become a map eventually, but for now keep things straightforward.
2023-11-06Add a wycheproofTestGroupRunner interfaceTheo Buehler
This allows us to use a simpler way of running the individual test groups and gets rid of an ugly mostly copy-pasted switch inside a closure.
2023-11-06Add aliases for AES AEAD constructions and ChaChaTheo Buehler
These used the wycheproofTestGroupAead type but an upcoming change requires to change this. Introduce the aliases now to make the next diff cleaner.
2023-11-06Fix a for loop bug introduced in the concurrency refactorTheo Buehler
Due to Go's idiosyncratic semantics of for loops, tests would only run some of the test groups in the JSON file because by the time the closure is called, the array index could be changed. For example, on fast 8 core machines, the CMAC tests would run the last test group with key size 320 eight times rather than each of the eight test groups once. Make a copy of the pointer before passing it to the closure to avoid this issue. Simpler version of my initial fix from jsing
2023-11-06Uncomment json webcrypto line. Packages will have caught up...Theo Buehler
2023-11-06Mark a couple of tests as broken, now that the sysORTable is gone/empty.Martijn van Duren
Relying on the live snmpd(8) metrics is brittle and this regress test should probably move to a custom agent in a similar fashion to the custom manager from the snmpd(8) regress. Pointed out by anton@
2023-11-04With the move of SNMPv2-SMI::snmpV2 into application_internal.c, it's noMartijn van Duren
longer possible to register objects underneath this region. This effectively made a few snmp(1) regress tests unusable, which essentially don't belong here. Simply remove these tests.
2023-11-03Make netcat tests less flaky by ensuring the server has terminated beforeAnton Lindqvist
examining the outcome. ok bluhm@
2023-11-01Specify ssh binary to use instead of relying on installed one. FixesDarren Tucker
test failures in -portable when running tests prior to installation.
2023-11-01add some tests of forced commands overriding Subsystem directivesDamien Miller
2023-10-31Remove 3 expected failures those got fixed in the regress code.Claudio Jeker
2023-10-31unlink("/") just needs to error. Checking for a specific errno makesClaudio Jeker
little sense here since there are multiple possible errnos that could be returned. On OpenBSD this returns EISDIR and not EBUSY. OK mbuhl@ millert@
2023-10-31When creating a file in a directory the file gid is inherited fromClaudio Jeker
the directory and so checking against getgid() makes no sense. OK mbuhl@ millert@
2023-10-31Ignore closefrom() failure. This fails normally since fd 4 and up are allClaudio Jeker
closed. OK mbuhl@ millert@
2023-10-31Don't try to use sudo inside sshd log wrapper. We still need toDarren Tucker
check if we're using sudo since we don't want to chown unecessarily, as on some platforms this causes an error which pollutes stderr. We also don't want to unnecessarily invoke sudo, since it's running in the context of the proxycommand, on *other* platforms it may not be able to authenticate, and if we're using SUDO then it should already be privileged.
2023-10-31Only try to chmod logfile if we have sudo. If we don't have sudoDarren Tucker
then we won't need to chmod.
2023-10-30move PKCS#11 setup code to test-exec.sh so it can be reused elsewhereDamien Miller
2023-10-30tidy and refactor PKCS#11 setup codeDamien Miller
Replace the use of a perl script to delete the controlling TTY with a SSH_ASKPASS script to directly load the PIN. Move PKCS#11 setup code to functions in anticipation of it being used elsewhere in additional tests. Reduce stdout spam
2023-10-30Add support for OpenSSL 3.1 interop testsTheo Buehler
Until OpenSSL 3.1 has replaced OpenSSL 3.0 on most architectures, run both tests. Installed packages of OpenSSL 3.0 will update automatically to 3.1, so regress runners should not need to do anything.
2023-10-29Add a few tests to make sure that getnext requests on/under a registeredMartijn van Duren
instance with a registered region above cause a recursion in the tree.
2023-10-29Add a regress test to make sure that agentx responses equal toMartijn van Duren
searchrange.end are rejected.
2023-10-29Only try to chown logfiles that exist to prevent spurious errors.Darren Tucker
2023-10-27Add a test that would cause a use after free previously by sending aMartijn van Duren
protocol error-ed message and immediately followed up by a connection close. OK tb@
2023-10-27Include wait(2) status in error message, in the hopes of providing cluesAnton Lindqvist
on why this occasionally fails.
2023-10-26make use of bsd.regress.mk in extra and interop targets; ok dtucker@Anton Lindqvist