summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2022-09-06Crank (sparse) disk size from 64M to 128M to make arm64 happy againKlemens Nanni
2022-09-06Add VERBOSE=No default, .IGNORE and .SILENT REGRESS_CLEANUPKlemens Nanni
Tiny bit less noise. The many REGRESS_SETUP_ONCE targets could be merged into a single one and then be added to .SILENT unless VERBOSE=yes to focus on actual installboot output and ditch the dd/fdisk/disklabel noise by default.
2022-09-06keep noise down, discard usage text for expected failure casesKlemens Nanni
2022-09-06Use multi-chunk RAID 1C with keydisk on softraid enabled archsKlemens Nanni
Keydisks requires special treatment and should not be touched by installboot. In real setups they are probably offline (temporary USB stick, only present during boot to unlock), but when they are around (keydisk chunk on same disk as crypto volume)... installboot currently installs treats keydisk like any other chunk, which must be fixed. Thus change the tests into a should-work-but-currently-broken setup so an installboot fix can be immediately tested against it.
2022-09-06Add a table-driven test for RC2 in ECB mode to replace the old one.Theo Buehler
From Joshua Sing
2022-09-05Fix copy-paste errorTheo Buehler
2022-09-05Plug leaks due to not resetting the EVP_CIPHER_CTXTheo Buehler
2022-09-05Two more missing long long castsTheo Buehler
2022-09-05More long long casts for printing time_tTheo Buehler
2022-09-05Convert from %i to %dTheo Buehler
2022-09-05cast time_t to long long before printing for portabilityTheo Buehler
2022-09-05Use exact fdisk arguments from "(W)hole disk" answerKlemens Nanni
Not all architectures did what the installer does with empty disks.
2022-09-05Fix -r on multi-chunk softraid volumesKlemens Nanni
Running installboot(8) on softraid(4) volumes means installing stages on every softraid chunk. The overall idea is the same, but MD implementations differ. sparc64_softraid.c's sr_install_bootblk() reuses sparc64_installboot.c's md_installboot() for this. For sparc64, md_installboot() does the copy of stage 2, usually /usr/mdec/ofwboot to /ofwboot, so when `-r root' is passed, it prefixes the file path with "root". For single-disk installations (plain-disk and single-chunk softraid) this is fine, but as soon as multiple chunks are used, md_installboot() currently prefixes the path each time, obviously resulting in invalid paths starting with the second run. Other architectures do reuse md_installboot() as well but either don't do such a copy or implement the prefixing differently -- plus they must support softraid in the firt place to be able to hit this type of bug. With this fixed, regress/usr.sbin/installboot finally passes on sparc64 and installboot no longer fails at the end of a fresh installation onto softraid with multiple chunks. "looks correct" miod
2022-09-05Add minimal tooling for separating tests into dedicated programs.Anton Lindqvist
Used to flag the newly added test_bind_unix_socket() as expected to fail.
2022-09-04Make unveil tests less chatty when things work as expected.Anton Lindqvist
2022-09-04Use simpler disklabel templateKlemens Nanni
2022-09-03Provide PCKBC_AUX to fix compilationTheo Buehler
from mlarkin
2022-09-03Ensure a constructed ASN.1 INTEGER is considered invalid when decoding.Joel Sing
2022-09-03New test coverage for RC4Theo Buehler
From Joshua Sing
2022-09-02Rewrite RMD-160 tests to be table-driven.Theo Buehler
From Joshua Sing
2022-09-02Retire the old crap. Thanks, JoshuaTheo Buehler
2022-09-02Unhook the old md4 and md5 testsTheo Buehler
2022-09-02Link new md test to regress.Theo Buehler
2022-09-02New md4/md5 regress testsTheo Buehler
These exercise MD4 and MD5 with the test vectors from RFCs 1320 and 1321. From Joshua Sing <joshua () hypera ! dev>
2022-09-02Add two constTheo Buehler
2022-09-02Make test tables static const and fix a style nitTheo Buehler
2022-09-02Simplify and clean up the ecdsa test a little. Use stdio instead of BIOTheo Buehler
for output, use 'err' as a label and avoid some silly repetitions.
2022-09-02Retire old SHA testsTheo Buehler
The old tests were incomplete, some of them had no license and the code quality was questionable. The new tests by Joshua Sing cover what they did (and additionally SHA-224 and SHA-384). Many thanks!
2022-09-02Unhook old SHA testsTheo Buehler
2022-09-02Add tests for 1 million repeated "a"Theo Buehler
From Joshua Sing
2022-09-02The sysORTable doesn't have 10 entries anymore.Martijn van Duren
Adjust the test for now to -Cr4, which isn't exactly in the spirit of the test but fixes things for now. Now that we have agentx I should write a backend with more predictable output to make regress more stable. pointed out by anton@
2022-09-01Fill the gaps for armv7, powerpc64 and riscv64Klemens Nanni
These still fail early on due to the opendev(3)/diskmap(4) race condition, so only hook them up after the kernel is fixed. Note to self: some distrib/${MACHINE}/ramdisk/install.md pass explicit newfs(8) flags -- this might be needed here; test once all the relevant kernel and installboot(8) bugs are squashed and this regress suite can be run normally.
2022-09-01add checks that unveil() is doing the right thing irt. bind() and connect()Sebastian Benoit
2022-09-01Link sha test to regressTheo Buehler
2022-09-01Add a nicely licensed, table-driven test for SHATheo Buehler
This tests covers the NIST vectors for SHA-{1,224,256,384,256} and will soon be able to replace the old SHA tests entirely. From Joshua Sing <joshua () hypera ! dev>
2022-09-01Fix logic bugKlemens Nanni
USE_SOFTRAID=Yes means the softraid volume itself *does* need to be formatted.
2022-09-01Minor internal target names and spacing tweaks, add dry-toofew testKlemens Nanni
2022-09-01Add macppc bits, hook up installboot(8) tests on macppcKlemens Nanni
Default tests (USE_SOFTRAID=No, NDISKS=1) pass except for 'vnd0 ./ofwboot' as reported on tech@ (fix pending).
2022-09-01Hook up installboot(8) tests on sparc64Klemens Nanni
Default tests (USE_SOFTRAID=Yes, NDISKS='1 2') pass except for '-r mnt', as mentioned (fix pending). USE_SOFTRAID=no and/or NDISKS=1 make '-r mnt' work.
2022-08-31Introduce USE_SOFTRAID to allow testing on vnd(4) directlyKlemens Nanni
This is mostly for architectures which don't have softraid(4) support in installboot(8), but should also be useful in general to test different setups and thus increase coverage. Default to root on softraid on vnd on all architectures that support it: amd64, arm64, i386 and sparc64; use root on vnd on others (yet to come).
2022-08-31Silence cleanup, rename internal setup targets for clarityKlemens Nanni
2022-08-31Always run prepareKlemens Nanni
Not all architectures require/implement -p, but installboot(8) provides stubs, so leave it to the program to (not) do something.
2022-08-31Rename helper vars/files under obj/Klemens Nanni
Up-front cleanup for a future diff to run directly on vnd(4) without softraid(4). No functional change.
2022-08-31Put MD fdisk usage into new FORMAT_DISK, also softraid volume after chunksKlemens Nanni
2022-08-31Some missing return checksTheo Buehler
2022-08-31Avoid some buffer overflows in ecdsatestTheo Buehler
The ASN.1 encoding of the modified ECDSA signature can grow in size due to padding of the ASN.1 integers. Instead of reusing the same signature buffer freshly allocate it. Avoids some buffer overflows caught by ASAN.
2022-08-31Revert previous. Committed the wrong version of the diff.Theo Buehler
2022-08-31Avoid some buffer overflows in ecdsatestTheo Buehler
The ASN.1 encoding of the modified ECDSA signature can grow in size due to padding of the ASN.1 integers. Instead of reusing the same signature buffer freshly allocate it. Avoids some buffer overflows caught by ASAN.
2022-08-30Add ASPA regress bitsJob Snijders
2022-08-29Hook up installboot(8) tests on i386Klemens Nanni
Passes like amd64 as both use MBR/biosboot(8) at the moment.