sanitizer — Run Sanitizer Checks

$ metis sanitizer

Runs sanitizer checks (ASan, UBSan, TSan, LSan) against your project. Requires sanitizers to be enabled in the [sanitizers] section of .metis.toml:

[sanitizers]
enabled = true
types = ["address", "undefined"]

types accepts address, undefined, thread, leak. build_dir is where the sanitizer build is created; timeout is max seconds per test (0 = no limit).

Options

FlagDescription
--verbose, -VPrint detailed output during sanitizer runs

Examples

# Run sanitizer checks
$ metis sanitizer

# Verbose output
$ metis sanitizer --verbose

If sanitizers are not enabled in the config, the command prints a warning and exits successfully.