Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Jan 20, 2025
1 parent fc1bdce commit 56e33d7
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 22 deletions.
23 changes: 22 additions & 1 deletion manpages/nihtest.conf.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion manpages/nihtest.conf.man
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.TH "NIHTEST.CONF" "5" "June 15, 2023" "NiH" "File Formats Manual"
.TH "NIHTEST.CONF" "5" "January 20, 2025" "NiH" "File Formats Manual"
.nh
.if n .ad l
.SH "NAME"
Expand Down Expand Up @@ -240,6 +240,23 @@ the value specifies the command line to use to copy the file into the sandbox.
The command will be run with the two files as arguments, the source file first and the file in the sandbox last.
.PP
If the command doesn't exit with code 0, the test will fail.
.SH "SUITE"
The optional
\fBsuite\fR
can be used to define a suite of tests to be run with the
\fI--all\fR
command line option.
.TP 22n
\fBtests =\fR \fItests\fR
This specifies the tests to run. It can contain names or shell globs.
\fI.test\fR
will be appended if not present, and files will be searched for in
\fRtest-input-directories\fR.
.TP 22n
\fBexpected-failing-tests =\fR \fItests\fR
This specifies the tests that are expected to fail.
Tests are searched in the same way as for
\fBtests\fR.
.SH "EXAMPLES"
.nf
.RS 0n
Expand All @@ -251,6 +268,10 @@ program-directories = bin
LC_ALL=en_US.UTF-8
[comparators]
zip.zip = zipcmp -v
[suite]
tests = *.test
expected_failing_tests = *-broken.test
completely_broken_test.test
.RE
.fi
.SH "SEE ALSO"
Expand Down
26 changes: 16 additions & 10 deletions manpages/nihtest.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions manpages/nihtest.man
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.TH "NIHTEST" "1" "June 9, 2023" "NiH" "General Commands Manual"
.TH "NIHTEST" "1" "January 20, 2025" "NiH" "General Commands Manual"
.nh
.if n .ad l
.SH "NAME"
Expand All @@ -40,11 +40,12 @@
.HP 8n
\fBnihtest\fR
[\fB\-hqVv\fR]
[\fB\-\fR\fB\-all\fR]
[\fB\-C\fR\ \fIconfig\fR]
[\fB\-\fR\fB\-keep-broken\fR]
[\fB\-\fR\fB\-no-cleanup\fR]
[\fB\-\fR\fB\-setup-only\fR]
\fItestcase\fR
[\fItestcase\ ...\fR]
.SH "DESCRIPTION"
\fBnihtest\fR
is a testing tool for command line utilities.
Expand All @@ -55,14 +56,13 @@ The format of these files is described in
nihtest-case(5).
.PP
\fBnihtest\fR
runs the test case
\fItestcase\fR
expected in the test case directory (see
nihtest.conf(5))
in the file
\fItestcase\fR
or
\fItestcase.test\fR.
runs the test cases specified on the command line or, if the
\fB\-\fR\fB\-all\fR
option is given, in the
\fBsuite\fR
section of the config file.
Shell globs can be used on the command line, test cases are expected in the test case directory.
.PP
\fBnihtest\fR
searches the current directory and the
\fBsource-directory\fR
Expand All @@ -74,6 +74,11 @@ for test cases, input and output files.
supports the following options
.RS 8n
.TP 17n
\fB\-\fR\fB\-all\fR
Run all tests specified in the
\fBsuite\fR
section of the config file.
.TP 17n
\fB\-C\fR \fIconfig\fR, \fB\-\fR\fB\-config-file\fR \fIconfig\fR
Use
\fIconfig\fR
Expand Down

0 comments on commit 56e33d7

Please sign in to comment.