aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/regress.pl
Commit message (Collapse)AuthorAgeFilesLines
* do not use the sed(1) -i option, it is not portable;Ingo Schwarze2021-09-191-6/+7
| | | | issue found on Oracle Solaris 11
* adjust test framework to not require a ttyIngo Schwarze2020-07-211-3/+4
|
* Split tagging into a validation part including prioritizationIngo Schwarze2020-03-131-29/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in tag.{h,c} and {mdoc,man}_validate.c and into a formatting part including command line argument checking in term_tag.{h,c}, html.c, and {mdoc|man}_{term|html}.c. Immediate functional benefits include: * Improved prioritization of automatic tags for .Em and .Sy. * Avoiding bogus automatic tags when .Em, .Fn, or .Sy are explicitly tagged. * Explicit tagging of .Er and .Fl now works in HTML output. * Automatic tagging of .IP and .TP now works in HTML output. But mainly, this patch provides clean earth to build further improvements on. Technical changes: * Main program: Write a tag file for ASCII and UTF-8 output only. * All formatters: There is no more need to delay writing the tags. * mdoc(7)+man(7) formatters: No more need for elaborate syntax tree inspection. * HTML formatter: If available, use the "string" attribute as the tag. * HTML formatter: New function to write permalinks, to reduce code duplication. Style cleanup in the vicinity while here: * mdoc(7) terminal formatter: To set up bold font for children, defer to termp_bold_pre() rather than calling term_fontpush() manually. * mdoc(7) terminal formatter: Garbage collect some duplicate functions. * mdoc(7) HTML formatter: Unify <code> handling, delete redundant functions. * Where possible, use switch statements rather than if cascades. * Get rid of some more Yoda notation. The necessity for such changes was first discussed with kn@, but i didn't bother him with a request to review the resulting -673/+782 line patch.
* Simplify maintainer targets in OpenBSD: EQN and TBL variablesIngo Schwarze2020-01-081-3/+2
| | | | | | no longer exist and NROFF/NOPTS were replaced with GROFF/GOPTS. This doesn't change how things work in the protable version of the test suite.
* adapt to new <p> output logic (html.c rev. 1.260)Ingo Schwarze2019-09-031-3/+6
|
* delete trailing whitespace and space-tab sequences; no code change;Ingo Schwarze2019-07-011-2/+2
| | | | | patch from Michal Nowak <mnowak at startmail dot com> who found these with git pbchk in the illumos tree
* Automatically detect whether diff(1) supports the -a option.Ingo Schwarze2019-03-101-1/+2
| | | | | Useful on illumos and on Oracle Solaris, where it doesn't. Patch written based on a report from Sevan Janiyan.
* Yet another round of improvements to manual font selection.Ingo Schwarze2018-12-161-10/+12
| | | | | | | | | Unify handling of \f and .ft. Support \f4 (bold+italic). Support ".ft BI" and ".ft CW" for terminal output. Support the .ft request in HTML output. Reject the bogus fonts \f(C1, \f(C2, \f(C3, and \f(CP. In regress.pl, only strip leading whitespace in math mode.
* Run the regression tests iteratively rather than recursively.Ingo Schwarze2017-07-181-178/+228
| | | | | | | Simpler user interface, better summary output, simpler code, and slightly faster. Inspired by espie@'s request to avoid needless recursive make(1) in the OpenBSD regression testing tree.
* Messages of the -Wbase level now print STYLE:. Since thisIngo Schwarze2017-07-041-7/+7
| | | | | | | | causes horrible churn anyway, profit of the opportunity to stop excessive testing, such that this is hopefully the last instance of such churn. Consistently use OpenBSD RCS tags, blank .Os, blank fourth .TH argument, and Mdocdate like everywhere else. Use -Ios=OpenBSD for platform-independent predictable output.
* STYLE message about useless macros we don't want (Bt Tn Ud);Ingo Schwarze2017-05-301-3/+3
| | | | not a WARNING because they don't endanger portability
* Now that markdown output is tested for almost everything, test allIngo Schwarze2017-03-081-4/+9
| | | | | | input files in -T markdown output mode by default and only mark those files with SKIP_MARKDOWN that are not to be tested. Much easier to read, and almost minus 40 lines of Makefile code.
* Infrastructure for -T markdown tests.Ingo Schwarze2017-03-051-5/+33
| | | | | | This is needed because -T marksdown is expected to receive less maintenance than -T ascii, so we need automation to make sure that regular parser maintenance doesn't break this output mode.
* Escape literal braces in a regular expression.Ingo Schwarze2017-02-091-2/+2
| | | | Deprecated perlre(1) syntax reported by Thomas Klausner and Sevan Janiyan.
* On some systems (e.g. Solaris 11) diff(1) does not support -a.Ingo Schwarze2017-02-081-6/+10
| | | | Make it easier to get rid of it.
* Finally port the OpenBSD regression suite.Ingo Schwarze2017-02-081-0/+347
Both kristaps@ and wiz@ repeated asked for this, literally for years.