table of contents
zt_main(3) | Library Functions Manual (prm) | zt_main(3) |
NAME¶
zt_main
— command
line interface for running tests
SYNOPSIS¶
#include
<zt.h>
int
zt_main
(int argc,
char **argv, char **envp,
zt_test_suite_func tsuite);
DESCRIPTION¶
zt_main
takes familiar arguments as well
as a single test suite function. Depending on command line arguments some or
all tests are enumerated and printed or executed.
RETURN VALUES¶
When tests are executed the return value is
EXIT_SUCCESS
or
EXIT_FAILURE
. If tests are only listed the return
value is always EXIT_SUCCESS
.
SEE ALSO¶
HISTORY¶
zt_main
first appeared in libzt 0.1
AUTHORS¶
Zygmunt Krynicki <me@zygoon.pl>
January 12, 2020 | libzt 0.3.1 |