zt_main(3)

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).

  1. 11–13

History

zt_main first appeared in libzt 0.1

Authors

Zygmunt Krynicki ⟨[email protected]⟩

From libzt-doc 0.3.1-4 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.