zt_main — command line interface for running tests
Contents
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.
History
zt_main first appeared in libzt 0.1
Name
zt_main — command line interface for running tests
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
ZT_VISIT_TEST_CASE(3), ZT_VISIT_TEST_SUITE(3)
Synopsis
#include<zt.h>intzt_main(intargc, char**argv, char**envp, zt_test_suite_functsuite);
