nihtest
—
nihtest |
[-hqVv ] [-C
config]
[- -keep-broken ]
[- -no-cleanup ]
[- -setup-only ]
testcase |
nihtest
is a testing tool for command line utilities. It
uses .test files as input. The format of these files
is described in nihtest-case(5).
nihtest
runs the test case
testcase expected in the test case directory (see
nihtest.conf(5)) in the file
testcase or testcase.test.
nihtest
searches the current directory and the
source-directory
specified in
nihtest.conf(5) for test cases,
input and output files.
nihtest
supports the following options
-C
config,
-
-config-file
config-h
,
-
-help
-
-keep-broken
-
-no-cleanup
-q
,
-
-quiet
-
-setup-only
-v
,
-
-verbose
-V
,
-
-version
nihtest
version number and exit.A test run consists of the following steps:
nihtest
configuration file, see
nihtest.conf(5) for
detailsnihtest
uses the following exit codes:
In case the return value does not match,
nihtest
will report “Exit code not as
expected”. If the standard output or standard error output are not
correct, nihtest
will report “Output not as
expected” or “Error output not as expected”
respectively. And finally, if the file contents of the sandbox are not
correct, nihtest
will report “Files in
sandbox not as expected”.