summaryrefslogtreecommitdiff
path: root/regress/usr.bin
AgeCommit message (Collapse)Author
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>.
2022-08-02Reorganize the tests that require custom command line optionsIngo Schwarze
such that they don't abort the whole test suite if one of them fails.
2022-07-25Restore missing "!" in TEST_SSH_ELAPSED_TIMES test.Darren Tucker
2022-07-24Test TEST_SSH_ELAPSED_TIMES for empty string not executable. No-opDarren Tucker
on most platforms but should prevent warnings in -portable on systems that don't have 'date %s'.
2022-07-20crank SSH_SK_VERSION_MAJOR to matchDamien Miller
2022-07-14Only run the client connection test with supported ciphers. Avoids testTheo Buehler
breakage also noted by anton.
2022-07-06While the HTML standard allows multiple <h1> elements in the sameIngo Schwarze
document, <h1> is intended for top level headers, and most of the sections in a manual page can hardly be considered top-level. It is more usual to use <h1> only for the main title of the document of for the site name. Consequently, move .Sh/.SH from <h1> to <h2> and .Ss/.SS from <h2> to <h3>, freeing <h1> for use by header.html in man.cgi(8). Discussed with Anna Vyalkova <cyber at sysrq dot in>.
2022-07-04Add TEST_REGRESS_CACHE_DIR which, if set, is used to cache regress testDarren Tucker
names that have succeeded and skip those on a re-run.
2022-06-26In groff commit 78e66624 on May 7 20:15:33 2021 +1000,Ingo Schwarze
G. Branden Robinson changed the -T ascii rendering of \(sd, the "second" symbol, U+2033 DOUBLE PRIME, from '' to ". Follow suit in mandoc.
2022-06-19Make expected output match reality again.Theo Buehler
2022-06-19Since rtsock.c -r1.329 routes sent via sysctl(2) are now marked RTF_DONE.Theo Buehler
Adjust expected output.
2022-06-08Surprisingly, every escape sequence can also be used as an argumentIngo Schwarze
delimiter for an outer escape sequence, in which case the delimiting escape sequence retains its syntax but usually ignores its argument and loses its inherent effect. Add rudimentary support for this syntax quirk in order to improve parsing compatibility with groff.
2022-06-07Split the excessively generic diagnostic message "invalid escape sequence"Ingo Schwarze
into the more specific messages "invalid escape argument delimiter" and "invalid escape sequence argument".
2022-06-06adjust two desired error messages after roff_escape.c rev. 1.11Ingo Schwarze
improved diagnostics for the \C escape sequence
2022-06-05With the improved escape sequence parser, it becomes easy to also improveIngo Schwarze
diagnostics. Distinguish "incomplete escape sequence", "invalid special character", and "unknown special character" from the generic "invalid escape sequence", also promoting them from WARNING to ERROR because incomplete escape sequences are severe syntax violations and because encountering an invalid or unknown special character makes it likely that part of the document content intended by the authors gets lost.
2022-06-03oops, update forgotten date in the footerIngo Schwarze
2022-06-03During identifier parsing, handle undefined escape sequencesIngo Schwarze
in the same way as groff: * \\ is always reduced to \ * \. is always reduced to . * other undefined escape sequences are usually reduced to the escape name, for example \G to G, except during the expansion of expanding escape sequences having the standard argument form (in particular \* and \n), in which case the backslash is preserved literally. Yes, this is confusing indeed. For example, the following have the same meaning: * .ds \. and .ds . which is not the same as .ds \\. * \*[\.] and \*[.] which is not the same as \*[\\.] * .ds \G and .ds G which is not the same as .ds \\G * \*[\G] and \*[\\G] which is not the same as \*[G] <- sic! To feel less dirty, have a leaning toothpick, if you are so inclined. This patch also slightly improves the string shown by the "escaped character not allowed in a name" error message.
2022-06-03test setenv in both client and server, test first-match-wins tooDamien Miller
2022-05-30Dummy implementation of the roff(7) \V (interpolate environment variable)Ingo Schwarze
escape sequence. This is needed to get \V into the correct parsing class, ESCAPE_EXPAND. It is intentional that mandoc(1) output is *not* influenced by environment variables, so interpolate the name of the variable with some decorating punctuation rather than interpolating its value.
2022-05-20Re-classify the roff(7) \r (reverse line feed) escape sequenceIngo Schwarze
from "ignore" to "unsupported" because when an input file uses it, mandoc(1) is likely to significantly misformat the output, usually showing parts of the output in a different order than the author intended.
2022-05-20Test the handling of some additional one-character escape sequencesIngo Schwarze
that take no argument and are ignored: \% \& \^ \a \d \t \u \{ \| \} No change to parsing or formatting needed.
2022-05-19following the fixed parsing direction of roff_expand() in roff.c rev. 1.260,Ingo Schwarze
some diagnostics now appear in a more reasonable order, too
2022-05-19Adjust a column number in an error messageIngo Schwarze
after the roff_expand() reorganization in roff.c rev. 1.260. The new parsing direction has two effects: 1. Correct output when a line contains more than one expanding escape sequence that has a side effect. 2. Column numbers in diagnostic messages now report the changed column numbers after any expansions left of them have taken place; in the past, column numbers refered to the original input line. Arguably, item 2 was a bit better in its old state, but slightly less helpful diagnostics are a small price to pay for correct output. Besides, when the expansion of user-defined strings or macros is involved, in many cases, mandoc(1) is already unable to report meaningful line and column numbers, so item 2 is not a noteworthy regression. The effort and code complication for fixing that would probably be excessive, in particular since well-written manual pages are not supposed to use such features in the first place.
2022-05-19fix a wrong column number that got fixed as a side effectIngo Schwarze
of the roff_expand() reorganization in roff.c rev. 1.260
2022-05-19remove a bogus warning that went away as a side effectIngo Schwarze
of the roff_expand() reorganization in roff.c rev. 1.260
2022-05-15regress test for in-place transfers and clobbering larger files withDamien Miller
smaller ones; would have caught last regression in scp(1)
2022-05-01Split a new function roff_parse_comment() out of roff_expand() because thisIngo Schwarze
functionality is not needed when called from roff_getarg(). This makes the long and complicated function roff_expand() significantly shorter, and also simpler in so far as it no longer needs to return ROFF_APPEND. No functional change intended.
2022-04-30Provide a new function roff_req_or_macro() to parse and handle a requestIngo Schwarze
or macro, including context-dependent error handling inside tbl(7) code and inside .ce/.rj blocks. Use it both in the top level roff(7) parser and inside conditional blocks. This fixes an assertion failure triggered by ".if 1 .ce" inside tbl(7) code, found by tb@ using afl(1). As a side benefit for readability, only one place remains in the code that calls the main handler functions for the various roff(7) requests. This patch also improves column numbers in some error messages and various comments.
2022-04-28The syntax of the roff(7) .mc request is quite specialIngo Schwarze
and the roff_onearg() parsing function is too generic, so provide a dedicated parsing function instead. This fixes an assertion failure when an \o escape sequence is passed as the argument; the bug was found by tb@ using afl(1). It also makes mandoc output more similar to groff in various cases.
2022-04-28oops, fix wrong .TH nameIngo Schwarze