summaryrefslogtreecommitdiff
path: root/regress/usr.bin
AgeCommit message (Collapse)Author
2014-07-02When .Sm is called without an argument, groff toggles the spacing mode,Ingo Schwarze
so let us do the same for compatibility. Using this feature is of course not recommended except in manual page obfuscation contests.
2011-12-04test some simple macros; written while working on -TmanIngo Schwarze
2014-07-02Disentangle the MANDOCERR_CHILD message, which reported threeIngo Schwarze
completely different things, into three distinct messages. Also mention the macro names we are talking about.
2014-07-02Clean up warnings related to macros and nesting.Ingo Schwarze
* Hierarchical naming of enum mandocerr items. * Improve the wording to make it comprehensible. * Mention the offending macro. * Garbage collect one chunk of ancient, long unreachable code.
2014-07-02Fix the column numbers associated with in_line_argn() macros;Ingo Schwarze
this bug is more than four years old, introduced by kristaps@ in mdocml.bsd.lv rev. 1.46, March 30, 2010.
2014-07-02move test to the right directoryIngo Schwarze
2014-07-02Do not tun the .PHONY parts of ${LINT_TARGETS} twice.Ingo Schwarze
2014-07-02Improve "skipping paragraph macro" messages,Ingo Schwarze
showing which macro was skipped and before or after what.
2014-07-02Implement the obsolete macros .En .Es .Fr .Ot for backward compatibility,Ingo Schwarze
since this is hardly more complicated than explicitly ignoring them as we did in the past. Of course, do not use them!
2014-07-01Clean up the warnings related to document structure.Ingo Schwarze
* Hierarchical naming of the related enum mandocerr items. * Mention the offending macro, section title, or string. While here, improve some wordings: * Descriptive instead of imperative style. * Uniform style for "missing" and "skipping". * Where applicable, mention the fallback used.
2014-07-01Add a test to catch .el\{ breakage; roff.c rev. 1.88Ingo Schwarze
2014-06-29Use the freshly improved roff_getname() functionIngo Schwarze
for the main roff request parsing routine, roff_parse(). In request or macro invocations, escape sequences now terminate the request or macro name; what follows is treated as arguments. Besides, the names of user-defined macros can now contain backslashes (eek!).
2014-06-29Major roff_getname() cleanup.Ingo Schwarze
* Return the name even if it is terminated by an escape sequence, not a blank. * Skip the full escape sequence using mandoc_escape(), not just the first byte. * Make it non-destructive, return the length instead of writing a '\0'. * Let .ds and .as cope with the above changes to the internal interface. * Fix .rm and .rr to accept an escape sequence as the end of a name. * Fix .nr and .rr to not set/delete a register with an empty name.
2014-06-24do not prompt for overwrite when none is neccessary using the -F optionJason McIntyre
(which is off by default anyway); netbsd -r1.49, from wiz@netbsd
2014-06-24unit and fuzz tests for new key APIDamien Miller
2014-06-24regress test for broken consecutive revoked serial number rangesDamien Miller
2014-06-21fix expected message levelIngo Schwarze
2014-06-20As suggested by jmc@, only include line and column numbers into messagesIngo Schwarze
when they are meaningful, to avoid confusing stuff like this: $ mandoc /dev/null mandoc: /dev/null:0:1: FATAL: not a manual Instead, just say: mandoc: /dev/null: FATAL: not a manual Another example this applies to is documents having a prologue, but lacking a body. Do not throw a FATAL error for these; instead, issue a warning and show the empty document, in the man(7) case with the same amount of blank lines as groff does. Also downgrade mdoc(7) documents having content before the first .Sh from FATAL to WARNING.
2014-06-20As suggested by jmc@, only include line and column numbers into messagesIngo Schwarze
when they are meaningful, to avoid confusing stuff like this: $ mandoc /dev/null mandoc: /dev/null:0:1: FATAL: not a manual Instead, just say: mandoc: /dev/null: FATAL: not a manual Another example this applies to is documents having a prologue, but lacking a body. Do not throw a FATAL error for these; instead, issue a warning and show the empty document, in the man(7) case with the same amount of blank lines as groff does. Also downgrade mdoc(7) documents having content before the first .Sh from FATAL to WARNING.
2014-06-20regression tests for prologue warningsIngo Schwarze
2014-06-20Infrastructure for regression tests of mandoc messages.Ingo Schwarze
Even though messages are not going to be as stable as formatted output, that is, even though the *.out_lint files are expected to change now and then, from now on, i want to be able to catch unintended changes in messages.
2014-05-21when failing because of unexpected output, show the offending outputDamien Miller
2014-05-04Remove the Z flag from the list of malloc options as itLoganaden Velvindron
was removed from malloc.c 10 days ago. OK from miod@
2014-05-03Add tests for with and without compression, with and without privsep.Darren Tucker
2014-05-02Add missing $ on OpenBSD cvs tags, ok djmAndre de Oliveira
2014-05-02use the test_helper fuzzer rather than the hand-rolled code thatDamien Miller
predates it
2014-05-02make the fuzzer seed const to make it clear that it is never modifiedDamien Miller
2014-04-30unit tests for new buffer API; including basic fuzz testingDamien Miller
2014-04-21repair regress tests broken by server-side default cipher/kex/mac changesDamien Miller
by ensuring that the option under test is included in the server's algorithm list
2014-04-15Using macros in .Sh header lines, or having .Sm off or .Bk -words openIngo Schwarze
while processing .Sh, is not at all recommended, but it's not strictly a syntax violation either, and in any case, mandoc must not die in an assertion. I broke this in rev. 1.124. Crash found while trying to read the (rather broken) original 4.3BSD-Reno od(1) manual page.
2014-04-14fix test regarding false positivesJasper Lievisse Adriaanse
2014-04-14When i committed man_term.c rev. 1.99, i forgot to adjust this test;Ingo Schwarze
now i found the M in my tree...
2014-04-08Add a new term_flushln() flag TERMP_BRIND (if break, then indent)Ingo Schwarze
to control indentation of continuation lines in TERMP_NOBREAK mode. In the past, this was always on; continue using it for .Bl, .Nm, .Fn, .Fo, and .HP, but no longer for .IP and .TP. I looked at this because sthen@ reported the issue in a manual of a Perl module from ports, but it affects base, too: This patch reduces groff-mandoc differences in base by more than 15%.
2014-04-08more tests for excessively long text in TERMP_NOBREAK modeIngo Schwarze
2014-04-08Fully implement the \B (validate numerical expression) andIngo Schwarze
partially implement the \w (measure text width) escape sequence in a way that makes them usable in numerical expressions and in conditional requests, similar to how \n (interpolate number register) and \* (expand user-defined string) are implemented. This lets mandoc(1) handle the baroque low-level roff code found at the beginning of the ggrep(1) manual. Thanks to pascal@ for the report.
2014-04-07We already supported (outer) user-defined strings containing referencesIngo Schwarze
to other (inner) user-defined strings in their values, such that the inner ones get expanded at expansion time of the outer ones (delayed evaluation). Now we also support specifying the name of an (outer) user-defined string to expand using the expanded values of some other (inner) user-defined strings (indirect reference).
2014-04-07Almost complete implementation of roff(7) numerical expressions.Ingo Schwarze
Support all binary operators except ';' (scale conversion). Fully support chained operations and nested parentheses. Use this for the .nr, .if, and .ie requests. While here, fix parsing of integer numbers in roff_getnum().
2014-04-05Implement the roff(7) .rr (remove register) request.Ingo Schwarze
As reported by sthen@, the perl-5.18 pod2man(1) preamble thinks cool kids use that in manuals. I hope *you* know better.
2014-03-31recognise CONTEXT sections, for man9;Jason McIntyre
2014-03-31add test where Libs contains a variable referenceJasper Lievisse Adriaanse
2014-03-30Support relative arguments to .ll (increase or decrease line length).Ingo Schwarze
2014-03-30Implement the roff(7) .ll (line length) request.Ingo Schwarze
Found by naddy@ in the textproc/enchant(1) port. Of course, do not use this in new manuals.
2014-03-30make -Tascii explicit, to be safe when -Tlocale becomes the defaultIngo Schwarze
2014-03-29don't spam the consoleJasper Lievisse Adriaanse
2014-03-29tweak the non-hanging but failing earlier test.Jasper Lievisse Adriaanse
2014-03-29add currently failing (rather, hanging) test taken from empathy'sJasper Lievisse Adriaanse
configure script.
2014-03-29shuffle --variable related tests together and add a few more which are known ↵Jasper Lievisse Adriaanse
to pass
2014-03-28Allow leading and trailing vertical lines,Ingo Schwarze
and format them in the same way as groff. While here, do not require whitespace before vertical lines in layout specifications. Issues found by bentley@ in mpv(1).
2014-03-18Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingMiod Vallat
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
2014-03-17use quiet signifyTed Unangst