summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2011-03-13add a regress test for the vis and unvis functions. after finding oneTheo de Raadt
bug, this then found a 2nd bug.. worked on with guenther
2011-03-13Make regression tests more reliable.Alexander Bluhm
2011-03-13Test that reading from a spliced socket does not return eof if thereAlexander Bluhm
is still data in the receive socket buffer.
2011-03-12Add more regression tests for socket splicing. These find theAlexander Bluhm
kernel bugs that have slipped through.
2011-03-08Add regression test that checks ENOTSOCK error for non-socket drain.Alexander Bluhm
2011-02-14Make tests more reliable by handling short socket splice correctly.Alexander Bluhm
2011-02-06Do not break the line between the arguments of .Bsx .Dx .Fx .Nx .Ox .Ux.Ingo Schwarze
Original patch from kristaps@, but i fixed a regression regarding .Bk.
2011-02-06Some pre-handlers produce output, so reorder the code to set upIngo Schwarze
keep flags before they are called. Without this bugfix, .Bk was ineffective in some cases. "looks reasonable" kristaps@
2011-02-06If .Ns is specified on its own line, ignore it, like groff does;Ingo Schwarze
from kristaps@.
2011-02-06another test found in yet another tree;Ingo Schwarze
no more working, but uncommitted tests lying around now
2011-02-06more tests found in my other treeIngo Schwarze
2011-02-05another test found in my treeIngo Schwarze
2011-02-05some more tests found in my treeIngo Schwarze
2011-01-31When in a <PRE>, don't print out the <BR> before lines that haveIngo Schwarze
leading whitespace; from kristaps@.
2011-01-30Make .Bx accept not more than two arguments.Ingo Schwarze
Convert the first character of the second argument to uppercase. Append the second argument with a hyphen. Improves chpass(1), column(1), fstat(1), ... from kristaps@
2011-01-30Implement the \N'number' (numbered character) roff escape sequence.Ingo Schwarze
Don't use it in new manuals, it is inherently non-portable, but we need it for backward-compatibility with existing manuals, for example in Xenocara driver pages. ok kristaps@ matthieu@ jmc@
2011-01-17Refrain from throwing fatal errors forIngo Schwarze
* .br .sp .nf .fi .na with arguments - just skip the arguments * .TH lacking arguments - use empty strings instead like groff * .TH with excessive arguments - skip those Reminded by Joerg Sonnenberger, ok kristaps@.
2011-01-16In literal context, do not generate output line breaks between macroIngo Schwarze
arguments. This fixes a long-standing bug reported repeatedly, in particular by naddy@ and brad@. Fix by kristaps@, minus one regression caught by my test suite.
2011-01-16If the first character of a free-form text input line is whitespace,Ingo Schwarze
then it will start a new output line; from kristaps@.
2011-01-12Implement the roff .rm request (remove macro).Ingo Schwarze
Using the new roff_getname() function, this is really simple. Breaks mandoc of the habit of reporting an error in each pod2man(1) preamble. Reminded by a report from brad@.
2011-01-11Fix compiler warning in regression test.Alexander Bluhm
2011-01-10Refactoring in preparation for .rm support:Ingo Schwarze
Unify parsing of names given as roff request arguments into a new function roff_getname(), which is rather different from the parsing function for normal arguments, mandoc_getarg(), because names cannot be quoted and cannot contain whitespace or escaped characters. The new function now throws an ERROR when finding escaped characters in a name. "I'm fine with this." kristaps@
2011-01-09check that lists lacking their end macro do not crash;Ingo Schwarze
related to mdoc_macro.c rev. 1.59
2011-01-09test font-alternating blocks in literal context;Ingo Schwarze
related to usr.bin/mandoc/man_term.c rev. 1.51
2011-01-09Only .Bd -literal has 8-character tabs,Ingo Schwarze
while .Bd -unfilled has 5-character tabs just like normal text; from kristaps@.
2011-01-07Add kernel regression tests for socket splicing.Alexander Bluhm
2011-01-07Remove an extraneous return statement with the wrong return value.Todd C. Miller
Fix some gcc warnings.
2011-01-07do not rely on rndvar.h leaking shit into the namespaceTheo de Raadt
2011-01-06regress test for LocalCommand %n expansion from bert.wesarg ATDamien Miller
googlemail.com; ok markus@
2011-01-04some more tests regarding empty macrosIngo Schwarze
2011-01-04Fix stupid commit error pointed out by guenther@ (thanks!):Ingo Schwarze
1) Actually commit TP/* this time. 2) Revert IP/* to 1.1, which is the correct version. What happened is that i committed both IP/* and TP/* into IP, committing two versions in one commit, because the file TP/CVS/Repository was corrupt in my tree. I didn't even know that could happen...
2011-01-04Multiple man(7) .IP and .TP fixes started during p2k10:Ingo Schwarze
Affecting both -Tascii and -Thtml: * The .IP HEAD uses the second argument as the width, not the last one. * Only print the first .IP HEAD argument, not all but the last. Affecting only -Tascii: * The .IP and .TP HEADs must be printed without literal mode, but literal mode must be restored afterwards. * After the .IP and .TP bodies, we only want term_newln(), not term_flushln(), or we would get two blank lines in literal mode. * The .TP HEAD does not use TWOSPACE, just like .IP doesn't either. * In literal mode, clear NOLPAD after each line, or subsequent lines would get no indentation whatsoever. Affecting only -Thtml: * Only print next-line .TP children, instead of all but the first. OK kristaps@ on the -Tascii part; and: "Can you work this into man_html.c, too?"
2011-01-04Multiple man(7) .IP and .TP fixes started during p2k10:Ingo Schwarze
Affecting both -Tascii and -Thtml: * The .IP HEAD uses the second argument as the width, not the last one. * Only print the first .IP HEAD argument, not all but the last. Affecting only -Tascii: * The .IP and .TP HEADs must be printed without literal mode, but literal mode must be restored afterwards. * After the .IP and .TP bodies, we only want term_newln(), not term_flushln(), or we would get two blank lines in literal mode. * The .TP HEAD does not use TWOSPACE, just like .IP doesn't either. * In literal mode, clear NOLPAD after each line, or subsequent lines would get no indentation whatsoever. Affecting only -Thtml: * Only print next-line .TP children, instead of all but the first. OK kristaps@ on the -Tascii part; and: "Can you work this into man_html.c, too?"
2011-01-03Unify roff macro argument parsing (in roff.c, roff_userdef()) and man macroIngo Schwarze
argument parsing (in man_argv.c, man_args()), both having different bugs, to use one common macro argument parser (in mandoc.c, mandoc_getarg()), because from the point of view of roff, man macros are just roff macros, hence their arguments are parsed in exactly the same way. While doing so, fix these bugs: * Escaped blanks (i.e. those preceded by an odd number of backslashes) were mishandled as argument separators in unquoted arguments to user-defined roff macros. * Unescaped blanks preceded by an even number of backslashes were not recognized as argument separators in unquoted arguments to man macros. * Escaped backslashes (i.e. pairs of backslashes) were not reduced to single backslashes both in unquoted and quoted arguments both to user-defined roff macros and to man macros. * Escaped quotes (i.e. pairs of quotes inside quoted arguments) were not reduced to single quotes in man macros. OK kristaps@ Note that mdoc macro argument parsing is yet another beast for no good reason and is probably afflicted by similar bugs. But i don't attempt to fix that right now because it is intricately entangled with lots of unrelated high-level mdoc(7) functionality, like delimiter handling and column list phrase handling. Disentagling that would waste too much time now.
2011-01-02more tests of white space handlingIngo Schwarze
2011-01-02permit 2011; from Thomas KlausnerJason McIntyre
2011-01-01test whether the .Fl macro is parsedIngo Schwarze
2011-01-01test handling of zero-length user-defined stringsIngo Schwarze
2011-01-01also test .Pp in literal contextIngo Schwarze
2011-01-01also test .Mt without argumentsIngo Schwarze
2010-12-26Use sizeof(double) instead of hardcoding 8.Miod Vallat
2010-12-24now that pkg_create checks more stuff, we have to ask for it to createMarc Espie
more bogus packages so that we can get errors out of pkg_add...
2010-12-19Handle .Bk the same way as groff 1.20.1:Ingo Schwarze
.Bk without arguments defaults to -words. .Bk with invalid arguments (including -lines) has no effect. ok kristaps@
2010-12-09Abort endless loops during roff macro and string expansion.Ingo Schwarze
For now, use the simplest conceivable approach, like groff does: Just a fixed, ugly input stack limit. Kristaps@ agrees.
2010-12-09Roff only interpolates \* strings when the leading backslash is not escaped.Ingo Schwarze
Kristaps@ agrees with the idea, even though he didn't review the final patch.
2010-12-04add a few simple tests found in my treeIngo Schwarze
2010-12-04Now that we don't have groff in base any longer, check in the desired output,Ingo Schwarze
such that the regression suite does not depend on ports.
2010-12-04adjust for hard-link supportDamien Miller
2010-12-03really turn -H off;Jason McIntyre
2010-12-03turn off -H by default (<> warning), since mandoc does not have the sameJason McIntyre
html issues as nroff did; from Thomas Klausner