summaryrefslogtreecommitdiff
path: root/regress/usr.sbin
AgeCommit message (Collapse)Author
2023-01-17cope with ktrace "(via syscall)" changesAnton Lindqvist
2023-01-16Enable softraid(4) support in installboot(8)Klemens Nanni
riscv64 efiboot already supports booting from softraid volumes. These installboot bits make sure that the boot loader will be installed on chunk devices rather than the volume for root on softraid installations, i.e. full boot support for riscv64, just like amd64, arm64 and sparc64. regress is happy. OK kettenis
2023-01-12In build_aspath() be more careful in the len == 0 case. For len == 0Claudio Jeker
aspath->data should not be touched so just exit early. While there also initalize source_as correctly in the rev case. This does not matter here but is more correct. Problem noticed by anton@ OK tb@
2023-01-11Add a somewhat extensive unittest for ASPA validation functionality.Claudio Jeker
2023-01-04Adjust open policy integration test to the change of config in bgpd.Claudio Jeker
2023-01-04The redirectchain test actually works again. The test servr fixed theClaudio Jeker
redirect location to be https.
2023-01-04When building this regress test I copied a bad UUID from some otherClaudio Jeker
RRDP file and so a few files have bad unique ids, fix them up to be valid.
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-11-26Remove RFC 9092 example file because it contains inherit elementsJob Snijders
2022-11-26Add test-geofeed.c (forgotten cvs add in previous).Theo Buehler
2022-11-26Add regress for geofeedJob Snijders
2022-11-18Add aspa-set config test.Claudio Jeker
2022-11-14With the commit to in6_ifattach mpe(4) now also works with IPv6Claudio Jeker
2022-11-12Add support for string comparison in filters.Martin Pieuchot
It is now possible to filter by process name, like: syscall:mmap:entry /comm == "ld"/ { ... } Currently the parser treats C-string like any other expression member even if arithmetic operations do no apply to strings.
2022-11-11Add support for multiple statements in if () blocks.Martin Pieuchot
2022-11-09Enable l3vpn testClaudio Jeker
2022-11-08rpki-client regress: fix build after beck's libcrypto time changesTheo Buehler
2022-11-08Make "prepare filesystem" softraid aware, fix arm64 softraid installKlemens Nanni
On EFI platforms, 'installboot -p' on a softraid volume will only prepare the filesysem inside the volume and leave physical softraid chunks untouched which leaves you with unbootable chunks. The current workaround is to prepare chunks manually (see regress). Fix it in the same spirit the actual "install" already works in softraid.c. This is what mlarkin has already been tested in a combined diff with the MD -> MI softraid merge bits from the previous commit. Works fine on amd64, arm64 and sparc64 upgrades and installations. OK jsing
2022-11-07Rework OpenSSL regress binding a bit to prepare for an upcoming beckTheo Buehler
diff.
2022-11-05Fix missing variable declaration in regress, thanks Anton Lindqvist for the ↵Job Snijders
report
2022-11-04In ktrace execve(2) no longer shows meaningless exit code.Alexander Bluhm
Change regex for kdump output to execve JUSTRETURN. from anton@
2022-11-04Extend l3vpn test to insert and remove a routeClaudio Jeker
Also add some scaffolding for IPv6 testing but currently IPv6 is broken because mpe(4) is unable to configure a local IPv6 address.
2022-11-03Add an abolute minimal test for L3VPNs. Right now not linked since thereClaudio Jeker
is a bug in the kroute code preventing the VPN route to be added properly.
2022-11-02Add regress for Signed TAL (.tak) filesJob Snijders
2022-10-31Add a intergration test that checks if the pftable feature works.Claudio Jeker
2022-10-31Make CLEANFILES patterns not match anything that may live outside of obj.Claudio Jeker
Running make clean without obj should not remove any non-temp files like *.conf.
2022-10-14Add RCS markersTheo Buehler
2022-10-14Revert kn's Makefile surgery. It no longer does what it was supposedTheo Buehler
to do and I'm still not clear what it was supposed to fix.
2022-10-14The HTTP endpoint used for the redirect chain started to unconditionallyAnton Lindqvist
respond with the HTTP protocol in the response location header although HTTPS is being used in the corresponding request. Flag the test as expected to fail for now.
2022-10-10Continue tests is the mountpoint already existsKlemens Nanni
regress should be resilient against partially cleaned obj/. Feedback bluhm
2022-10-09remove by now unwanted extra space in outputAnton Lindqvist
2022-09-24Adjust dummy rde_generate_updates() to the new prototype.Claudio Jeker
2022-09-17Hook up installboot unconditionally, skip on unsupported archsKlemens Nanni
The list of not yet tested archs is smaller, so follow bsd.regress.mk(5) advise and just print SKIPPED on those.
2022-09-14Merge common FORMAT_FDISK and USE_SOFTRAID default, simpler cleanupKlemens Nanni
2022-09-14Fold root disk setup targets into oneKlemens Nanni
2022-09-14Fold vnd disk setup targets into a single loopKlemens Nanni
2022-09-14Make NDISKS an integer, simplify CLEANFILES with globbingKlemens Nanni
Testing with three softraid chunks now means NDISKS=3 as one would expect and not NDISKS='1 2 3'. This uses the powerful jot(1) -w and rs(1) -T commands and allows for more simplifications in the Makefile.
2022-09-14Format softraid keydisk to make regress pass without installboot fixKlemens Nanni
Treat keydisks like real chunks until installboot properly skips it and does not touch/install to them anymore.
2022-09-12Hook up installboot(8) tests on all covered archsKlemens Nanni
Those that still fail (softraid+keydisk or explicit-stage-files) have fixes on tech@.
2022-09-09Add mips64/octeon bitsKlemens Nanni
Still fails due to the disklabel/vnd kernel race but running into failing 'installboot -p' helps exercising the fsck/newfs exit code fix. REGRESS_EXIT_EARLY=1 runs past the prepare target without the diff but properly stops with it as installboot now exits 1 if system(3) fails.
2022-09-07Remove the .SILENT bits again after feedback from bluhmKlemens Nanni
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-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-04Use simpler disklabel templateKlemens Nanni
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.