zt_main3
Command line interface for running tests
Usage
#include <zt.h>
int
zt_main(int argc, char **argv, char **envp, zt_test_suite_func tsuite);
Overview
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.
Releases
Unchanged in 3 releases since Debian 11 (Bullseye).