summaryrefslogtreecommitdiff
path: root/regress/usr.bin
AgeCommit message (Collapse)Author
2024-03-13Add endbr64/bti instruction at the start of the gadget, otherwise we'llMark Kettenis
get a SIGILL when the gadget gets call. Fix the instruction that sets the syscall number on arm64. ok anton@, deraadt@
2024-03-08Invoke ProxyCommand that uses stderr redirection via $TEST_SHELL.Darren Tucker
Fixes test when run by a user whose login shell is tcsh. Found by vinschen at redhat.com.
2024-03-03Reinstate a test that was accidentally removed in previousTheo Buehler
2024-03-02Unhook some gost testsTheo Buehler
2024-02-27Cope with recent ctfdump output changes.Anton Lindqvist
2024-02-20Include the test pattern that resulted in an infinite loop beforeClaudio Jeker
rmatch.c rev 1.4.
2024-02-20Add rsync-unitClaudio Jeker
2024-02-20Add a unit test for rsync special rmatch() function.Claudio Jeker
One pattern is currently disabled since it results in an infinite loop. Fix for that is on the way.
2024-02-19Always define puttysetup function.Darren Tucker
2024-02-09Expand the set of ciphers, MACs and KEX methods in the PuTTY interop tests.Darren Tucker
2024-02-09Factor out PuTTY setup and call when needed.Darren Tucker
This allows us to avoid PuTTY key setup when it's not needed, which speeds up the overall test run by a couple of percent.
2024-02-08No that we load MIB files at snmpd start-up chances that the sleep buildMartijn van Duren
into the regress test don't suffice anymore for slow regress machines. (Ab)use the agentx socket (which gets created after all the MIB files have been parsed) to detect if snmpd is available. For now we poll at 0.1s intervals for a total of 100 tries. found by and earlier diff tested by and OK anton@
2024-01-26Add 'openssl x509 -new' functionality to the libcrypto CLI utilityJob Snijders
The ability to generate a new certificate is useful for testing and experimentation with rechaining PKIs. While there, alias '-key' to '-signkey' for compatibility. with and OK tb@
2024-01-12appstest: Zap a trailing tab added in previousTheo Buehler
2024-01-12Add -force_pubkey -multivalue-rdn -set_issuer -set_subject -utf8 to x509 appJob Snijders
The -set_issuer, -set_subject, and -force_pubkey features can be used to 'rechain' PKIs, for more information see https://labs.apnic.net/nro-ta/ and https://blog.apnic.net/2023/12/14/models-of-trust-for-the-rpki/ OK tb@
2024-01-11don't disable RSA test when DSA is disabled; bug introduced in last commitDamien Miller
2024-01-11make DSA testing optional, defaulting to onDamien Miller
ok markus
2024-01-09extend ChannelTimeout regression test to exercise multiplexed connectionsDamien Miller
and the new "global" timeout type. ok dtucker@
2023-12-22xargs: fix parsing of empty fields when "xargs -0" is used.Todd C. Miller
Previously, these fields would be skipped. From Hiltjo Posthuma.
2023-12-18regress test for agent PKCS#11-backed certificatesDamien Miller
2023-12-18regress test for constrained PKCS#11 keysDamien Miller
2023-12-13remove -o cases; reminded by antonKlemens Nanni
2023-11-24Additional tests of automatic tagging involving different kinds of hyphensIngo Schwarze
after tag.c rev. 1.38.
2023-11-241. Do not put ASCII_HYPH (0x1c) into the tag file.Ingo Schwarze
That happened when tagging a string containing '-' on an input text line, most commonly in man(7) .TP next line scope. 2. Do not let "\-" end the tag. In both cases, translate ASCII_HYPH and "\-" to plain '-' for output. For example, this improves handling of unbound.conf(5). These two bugs were found thanks to a posting by weerd@.
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-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-10Make further use of netcat server close barrier in regress to reduceAnton Lindqvist
flakiness.
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-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-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-29Only try to chown logfiles that exist to prevent spurious errors.Darren Tucker
2023-10-26make use of bsd.regress.mk in extra and interop targets; ok dtucker@Anton Lindqvist
2023-10-26Skip conch interop tests when not enabled instead of fatal.Darren Tucker
2023-10-25ssh conch interop tests requires a controlling terminal; ok dtucker@Anton Lindqvist
2023-10-24Implement the man(7) .MR macro, a 2023 GNU extension.Ingo Schwarze
The syntax and semantics is almost identical to mdoc(7) .Xr. This will be needed for reading the groff manual pages once our port will be updated to 1.23, and the Linux Manual Pages Project is also determined to start using it sooner or later. I did not advocate for this new macro, but since we want to remain able to read all manual pages found in the wild, there is little choice but to support it. At least it is easy to do, they basically copied .Xr.
2023-10-23once again, i forgot to update the date in the footerIngo Schwarze
2023-10-23Support some escape sequences, in particular character escape sequences,Ingo Schwarze
inside \w arguments, and skip most other escape sequences when measuring the output length in this way because most escape sequences contribute little or nothing to text width: for example, consider font escapes in terminal output. This implementation is very rudimentary. In particular, it assumes that every character has the same width. No attempt is made to detect double-width or zero-width Unicode characters or to take dependencies on output devices or fonts into account. These limitations are hard to avoid because mandoc has to interpolate \w at the parsing stage when the output device is not yet known. I really do not want the content of the syntax tree to depend on the output device. Feature requested by Paul <Eggert at cs dot ucla dot edu>, who also submitted a patch, but i chose to commit this very different patch with almost the same functionality. His input was still very valuable because complete support for \w is out of the question, and consequently, the main task is identifying subsets of the feature that are needed for real-world manual pages and can be supported without uprooting the whole forest.
2023-10-23Use private key that is allowed by sshd defaults in conch interop tests.Anton Lindqvist
ok dtucker@
2023-10-22new regression test for roff.c rev. 1.270:Ingo Schwarze
infinite recursion in macro argument expansion
2023-10-21regression test for roff.c rev. 1.269:Ingo Schwarze
recursive delayed expansion of escape sequences in macro arguments
2023-10-20Allow overriding the locations of the Dropbear binaries similar to whatDarren Tucker
we do for the PuTTY ones.
2023-10-20Add interop test with Dropbear. Right now this is only dbclient not theDarren Tucker
Dropbear server since it won't currently run as a ProxyCommand.
2023-10-19Add missing removal of network interfaces in regress cleanup targets.Anton Lindqvist
Reducing the risk tests conflicting with each other. ok bluhm@