summaryrefslogtreecommitdiff
path: root/regress/usr.bin
AgeCommit message (Collapse)Author
2014-07-09add some (currently failing) tests for openssl-like version number (1.0.1g) ↵Jasper Lievisse Adriaanse
comparisons
2014-07-07Clean up ERROR messages related to document structure and macros:Ingo Schwarze
Hierarchical naming and mention macro names in messages.
2014-07-07no need to delete any content from .Rs blocks,Ingo Schwarze
and downgrade the related message from ERROR to WARNING
2014-07-07no need to skip content before first section headerIngo Schwarze
2014-07-07implement .dei and .amiIngo Schwarze
2014-07-07remove forced-fatal that I stuck in there to test the new cleanupDamien Miller
logic and forgot to remove...
2014-07-06Clean up messages related to plain text and to escape sequences.Ingo Schwarze
* Mention invalid escape sequences and string names, and fallbacks. * Hierarchical naming.
2014-07-06add a hook to the cleanup() function to kill $SSH_PID if it is setDamien Miller
use it to kill the mux master started in multiplex.sh (it was being left around on fatal failures)
2014-07-05Cleanup with respect to bad macro arguments.Ingo Schwarze
* Fix .Sm with invalid arg: move arg out and toggle mode. * Promote "unknown standard" from WARNING to ERROR, it loses information. * Delete MANDOCERR_BADWIDTH, it would only indicate a mandoc(1) bug. * Do not report MANDOCERR_BL_LATETYPE when there is no type at all. * Mention macro names, arguments and fallbacks.
2014-07-05Cleanup regarding -offset and -width:Ingo Schwarze
* Bugfix: Last one wins, not first one. * Fix .Bl -width without argument: it means 0n, so do not ignore it. * Report macro names, argument names and fallbacks in related messages. * Simplify: Garbage collect auxiliary variables in pre_bd() and pre_bl().
2014-07-04Clean up messages regarding excess arguments:Ingo Schwarze
* Downgrade ".Bf -emphasis Em" from FATAL to WARNING. * Mention the macros, the arguments, and the fallbacks. * Hierarchical naming. Also fix the handling of excess .It head arguments in -Tman.
2014-07-04Clean up messages related to missing arguments.Ingo Schwarze
* Do not warn about empty -column cells, they seem valid to me. * Downgrade empty item and missing -std from ERROR to WARNING. * Hierarchical naming. * Descriptive, not imperative style. * Mention macro names, argument names, and fallbacks. * Garbage collect some unreachable code in post_it().
2014-07-03Fix formatting of empty .Bl -inset item heads.Ingo Schwarze
Downgrade empty item heads from ERROR to WARNING. Show the list type in the error message. Choose better variable names for nodes in post_it().
2014-07-03MANDOCERR_NOARGS reported three completely unrelated classes of problems.Ingo Schwarze
Split the roff(7) parts out of it and report the request names for these cases.
2014-07-03Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets.Miod Vallat
2014-07-02Improve and test the messages about empty macros,Ingo Schwarze
in particular reporting the macro names involved.
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