.Dd January 12, 2020 .Os libzt 0.3.1 .Dt zt_main 3 PRM .Sh NAME .Nm zt_main .Nd command line interface for running tests .Sh SYNOPSIS .In zt.h .Ft int .Fo zt_main .Fa "int argc" .Fa "char **argv" .Fa "char **envp" .Fa "zt_test_suite_func tsuite" .Fc .Sh DESCRIPTION .Nm 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. .Sh RETURN VALUES When tests are executed the return value is .Nm EXIT_SUCCESS or .Nm EXIT_FAILURE . If tests are only listed the return value is always .Nm EXIT_SUCCESS . .Sh SEE ALSO .Xr ZT_VISIT_TEST_CASE 3 , .Xr ZT_VISIT_TEST_SUITE 3 .Sh HISTORY .Nm first appeared in libzt 0.1 .Sh AUTHORS .An "Zygmunt Krynicki" Aq Mt me@zygoon.pl