summaryrefslogtreecommitdiff
path: root/regress/usr.bin
AgeCommit message (Collapse)Author
2023-03-06Unit test for kex_proposal_populate_entries.Darren Tucker
2023-03-02Remove SUDO in proxy command wrapper. Anything that needs sudo isDarren Tucker
already run by it, and it breaks if root isn't in sudoers.
2023-03-02Fix breakage on dhgex test.Darren Tucker
This was due to the sshd logs being written to the wrong log file. While there, make save_debug_logs less verbose, write the name of the tarball to regress.log and use $SUDO to remove the old symlinks (which shouldn't be needed, but won't hurt). Initial problem spotted by anton@.
2023-03-02Quote grep and log message better.Darren Tucker
2023-03-01Remove old log symlinks before creating new ones. In -portable someDarren Tucker
platforms don't like overwriting existing symlinks.
2023-03-01Rework logging for the regression tests. Previously we would log toDarren Tucker
ssh.log and sshd.log, but that is insufficient for tests that have more than one concurent ssh/sshd. Instead, we'll log to separate datestamped files in a $OBJ/log/ and leave a symlink at the previous location pointing at the most recent instance with an entry in regress.log showing which files were created at each point. This should be sufficient to reconstruct what happened even for tests that use multiple instances of each program. If the test fails, tar up all of the logs for later analysis. This will let us also capture the output from some of the other tools which was previously sent to /dev/null although most of those will be in future commits.
2023-02-10test -Ohashalg=... and that the default output contains bothDamien Miller
specified hash algorithms; prompted by dtucker@
2023-02-09Test adding terminating newline to known_hosts.Darren Tucker
2023-02-08ssh-agent doesn't actually take -v, so the recently-added ones willDarren Tucker
result in the test not cleaning up after itself. Patch from cjwatson at debian.org vi bz#3536.
2023-02-02test compat_kex_proposal(); by dtucker@Damien Miller
2023-01-19Check if we can copy sshd or need to use sudo to do so during reexecDarren Tucker
test. Skip test if neither can work. Patch from anton@, tweaks from me.
2023-01-17also check that an active session inhibits UnusedConnectionTimeoutDamien Miller
idea markus@
2023-01-17regression test for UnusedConnectionTimeoutDamien Miller
2023-01-16unbreak test: cannot access shell positional parameters past $9 withoutDamien Miller
wrapping the position in braces (i.e. need ${10}, etc.)
2023-01-15adapt to ed25519 changes in src/usr.bin/sshDamien Miller
2023-01-14Shell syntax fix. From ren mingshuai vi github PR#369.Darren Tucker
2023-01-14Instead of skipping the all-tokens test if we don't have OpenSSL (sinceDarren Tucker
we use it to compute the hash), put the hash at the end and just omit it if we don't have it. Prompted by bz#3521.
2023-01-13Move scp path setting to a helper function.Darren Tucker
The previous commit to add scp to the test sshd's path causes the t-envpass test to fail when the test scp is given using a fully qualified path. Put this in a helper function and only call it from the scp tests.
2023-01-13Add scp's path to test sshd's PATH.Darren Tucker
If the scp we're testing is fully qualified (eg it's not in the system PATH) then add its path to the under-test sshd's PATH so we can find it. Prompted by bz#3518.
2023-01-11rewrite this test to use a multiplexed ssh session so we can controlDamien Miller
its lifecycle without risk of race conditions; fixes some of the Github integration tests for openssh-portable
2023-01-09Fix the syscallwx target which is affected by both mimmutable(2) andAnton Lindqvist
xonly by using a new gadget routine written in assembler with the sole purpose of issuing a syscall. Since it needs to be copied to wx memory, place it in the rodata section.
2023-01-06When OpenSSL is not available, skip parts of percent test that require it.Darren Tucker
Based on github pr#368 from ren mingshuai.
2023-01-06Save debug logs from ssh for debugging purposes.Darren Tucker
2023-01-06regression test for ChannelTimeoutDamien Miller
2023-01-06fix typo in verbose loggingDamien Miller
2023-01-06unit tests for misc.c:ptimeout_* APIDamien Miller
2023-01-04Copy bytes from the_banana[] rather than banana()Theo Buehler
Fixes test failure due to segfault seen on arm64 with xonly snap. ok djm
2023-01-02regression test for PermitRemoteOpenDamien Miller
2022-12-18nc: update regress after recent changesTheo Buehler
2022-12-08Stop overriding the regress target and use REGRESS_TARGETS instead.Anton Lindqvist
2022-12-07Fix comment typo.Darren Tucker
2022-12-01Clean up ssh-add and ssh-agent logs.Darren Tucker
2022-12-01Log output of ssh-agent and ssh-add to make debugging easier.Darren Tucker
2022-11-18cope with new getaddrinfo() error messageAnton Lindqvist
2022-11-11cvs(1) populates the author keyword using getlogin(2), therefore favorAnton Lindqvist
logname(1) when normalizing the output.
2022-10-30Use variable for diff options instead of unconditionally specifying "-rN".Darren Tucker
This will make life easier in -portable where not all diff's understand -N.
2022-10-24regress test for unmatched glob characters; fails before previousDamien Miller
commit but passes now. bz3488; prodded by dtucker@
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-08-28Adjust desired output after tbl_term.c rev. 1.66 (stop skippingIngo Schwarze
vertical space after boxed tables). I'm committing this separately because trying to regenerate the desired output with groff-current reveals an unrelated, recent regression in groff. So i fixed the groff output by hand before committing it, to get rid of the effect of the roff regression.
2022-08-28Vertical spacing changes around tables in man_term.c rev. 1.194Ingo Schwarze
and tbl_term.c rev. 1.66 cause quite a bit of churn, unfortunately. This commit cleans up most of it.
2022-08-19Up to version 1.22.4, groff_mdoc(7) only considered the first wordIngo Schwarze
when comparing section headers. For example, ".Sh SEE ELSEWHERE" and ".Sh SEE Em ALSO" were considered instances of a SEE ALSO section. In groff-current, exact matches with no sub-macros are required. Adjust mandoc behaviour. While here, also fix a very minor mandoc bug, even though no detrimental effect of the bug on formatting is known. While using sub-macros in the .Sh HEAD is bad style, the parsers accept it, so setting the section attribute on the HEAD needs to act recursively.
2022-08-16Adjust desired output after the bugfix man.c rev. 1.137.Ingo Schwarze
The new version of the output file was generated with groff-current.
2022-08-16New tests of tabs in fill mode, in particularIngo Schwarze
when multiple input or output lines are involved.
2022-08-16Adjust the desired output after the improvements in term.c rev. 1.150.Ingo Schwarze
The new version of this file was generated with groff-current. Heirloom nroff produces exactly the same output for the content of the DESCRIPTION.
2022-08-15Some more tests of no-fill mode similar to mdoc/Bd/blank.inIngo Schwarze
after vertical spacing was improved in man_term.c rev. 1.192.
2022-08-15oops, once again, i failed to correctly sync some dates in the footerIngo Schwarze
2022-08-15Distinguish between escape sequences that produce no outputIngo Schwarze
whatsoever (for example \fR) and escape sequences that produce invisible zero-width output (for example \&). No, i'm not joking, groff does make that distinction, and it has consequences in some situations, for example for vertical spacing in no-fill mode. Heirloom and Plan 9 behaviour is subtly different, but in case of doubt, we want to follow groff. While this fixes the behaviour for the majority of escape sequences, in particular for those most likely to occur in practice, it is not perfect yet because some of the more exotic ESCAPE_IGNORE sequences are actually of the "no output whatsoever" type but treated as "invisible zero-width" for now. With the new ASCII_NBRZW mechanism in place, switching them over one by one when the need arises will no longer be very difficult.
2022-08-11add some tests for parse_absolute_time(), including cases where itDamien Miller
is forced to the UTC timezone. bz3468 ok dtucker
2022-08-03some love for patch regressOmar Polo
* t3 doesn't was fixed anymore * add a comment describing t19 * add t20 (reversal application of a diff that creates a one-line file) ok stsp@
2022-08-02If the body of a man(7) .MT or .UR block is empty, do not emit a warning.Ingo Schwarze
Leaving the body empty is legitimate in this case if the author only wants to display a mail address or URI without providing a link text. Output modules already handle this correctly: terminal output shows just the URI without an accompanying text, HTML output uses the URI for *both* the href= attribute and as the content of the <a> element. The documentation was also wrong and claimed that an .MT or .UR block with an empty body would produce no output. As explained above, this isn't true. Bogus warning reported by Alejandro Colomar <alx dot manpages at gmail dot com>.