[clang] NFC: add some new test cases
These are extracted from my current and future PRs.
They don't have much to do with the PRs themselves except that
they were regressions our test suite missed catching.
18098 Add subcommand to wait for background zfs activity to complete
Imported from: delphix-os 5ff176c46fd197288d4e4be43804c66f3785c586
Reviewed by: Matt Ahrens <matt at mahrens.org>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
18022 Fix ASSERT in zil_create() during ztest
Imported from: OpenZFS 8010 c04812f964a2a79ec501fb1ba995ef333ff79172
Reviewed by: Matt Ahrens <matt at mahrens.org>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
[libc++][test] Move backported algorithms to `libcxx/test/support` (#199431)
And namespace `util`. This will make helpers provided more consistently,
and potentially allow us to unify test helper namespaces in the future.
www/marmite: Remove unused oniguruma and pkgconfig deps
- Drop oniguruma dependency after upstream removed the comrak
feature flag requiring it
- Remove pkgconfig dependency since no external C libs are needed
- Replace unused ssl dependency with libzstd
rio: add PKGMESSAGE; declare ncurses DEPENDS
PKGMESSAGE covers three user-visible gotchas: base-system programs
need TERM=xterm-256color (libterminfo reads only the CDB, not
TERMINFO_DIRS), shell detection from /etc/passwd, and theme placement.
DEPENDS on ncurses is now explicit: do-install calls
${LOCALBASE}/bin/tic which requires ncurses to be installed, and the
installed terminfo is only useful to ncurses-linked programs anyway.
gicv3_its: Fix ITT sizing.
The ITT being allocated did not match the size specified on the MAPD
command. This could cause hardware to read past the end of the ITT.
The old code used a fixed offset mapping scheme to assign eventIDs (the
eventID was derived from the LPI INTID). This scheme is wasteful and
doesn't scale well as the ITT is essentially an array of ITEs starting
with eventID 0. This change introduces per-deviceID namespaces for
eventIDs and allocates them starting with 0. A fixed number of eventIDs is
made available for each deviceID (MAXCPUS * 2). On a platform with an ITE
size of 8 bytes, this allows the ITT to fit in a single page.
The ITT is sized larger than the initial request as multiple requestors
could potentially share the same deviceID (this is the case for legacy PCI
devices behind a PCIe-to-PCI bridge).
The size parameter of the MAPD command now matches the allocated ITT.
Tested on QEMU KVM Virtual Machine and Ampere eMAG (Lenovo HR330A).
rio: fix shell detection, terminfo, man pages, options framework
- patch-teletypewriter_src_unix_mod.rs: add NetBSD shell override so rio
starts the shell from /etc/passwd rather than inheriting $SHELL=/bin/ksh
from the display manager; also fix use-spawn on NetBSD so --login arg
is passed (patch-rio-backend_src_config_defaults.rs)
- patch-misc_rio.terminfo: remove the "rio" entry; ncurses already ships
share/terminfo/r/rio, compiling it here caused a pkg_add PLIST conflict;
tic now produces only rio+base and xterm-rio (unique to this package)
- options.mk: new file; add "man" option (on by default) to build rio.1,
rio.5, rio-bindings.5 from scdoc source in extra/man/
- Makefile: INSTALLATION_DIRS+= (not =) so options.mk additions are kept;
add man/man1 and man/man5 dirs via options.mk; run tic for terminfo;
conditional scdoc installs guarded by !empty(PKG_OPTIONS:Mman)
- PLIST: use ${PLIST.man} token for conditional man page entries;
track share/terminfo/r/rio+base and share/terminfo/x/xterm-rio only
- patch-misc_rio.desktop: set TERMINFO_DIRS=@PREFIX@/share/terminfo and
EGL_LOG_LEVEL=fatal in Exec lines; PREFIX substituted via SUBST block
- distinfo: regenerate for all new and updated patches