canary run#
Find and run tests from a pathspec
canary run [-wh] [-f file] [-o option] [-k expression] [--owner OWNERS] [-p expression] [--regex regex] [--tag TAG]
[--only {changed,not_pass,failed,not_run,all}] [--fail-fast] [-P {permissive,pedantic}]
[--copy-all-resources] [--empty-ok] [-s CONSOLE_STYLE] [--workers N] [--timeout type=T] [--no-incremental]
...
Positional arguments
- pathspec [–] [user args…]
Test file[s] or directories to search. See ‘canary help –pathspec’ for help on the path specification
Optional arguments
-wRemove test execution directory, if it exists [default: None]
-f fileRead test paths from a json or yaml file. See ‘canary help –pathfile’ for help on the file schema
-o optionTurn option(s) on, such as ‘-o dbg’ or ‘-o intel’
-k expressionRestrict selection to tests matching expression. For example: -k ‘key1 and not key2’. The keyword
:all:matches all tests--owner OWNERSRestrict selection to tests owned by ‘owner’
-p expressionRestrict selection to tests matching the paramter expression. For example: ‘-p cpus=8’ or ‘-p cpus<8’
--regex regexRestrict selection to tests containing the regular expression regex in at least 1 of its file assets. regex is a python regular expression, see https://docs.python.org/3/library/re.html
--tag TAGName this selection ‘tag’
--only {changed,not_pass,failed,not_run,all}- Which tests to run after selection
all - run all selected tests, even if already passing failed - run only previously failing tests not_run - run tests that have never been executed changed - run tests that whose specs have newer modification time not_pass - run tests whose status is not ‘SUCCESS’ (default)
--fail-fastStop after first failed test [default: None]
-P {permissive,pedantic}, --parsing-policy {permissive,pedantic}If pedantic (default), stop if file parsing errors occur, else ignore parsing errors
--copy-all-resourcesDo not link resources to the test directory, only copy [default: None]
--empty-okExit normally when the test set is empty. By default, an empty test set is an error (exit code 7)
-s CONSOLE_STYLE, --style CONSOLE_STYLEConfigure live console display style. Given as key=value pairs: live={yes,no}[yes]: live console updating name={short,long}[short]: print short (default) names or long
--workers NExecute the test session asynchronously using a pool of at most N workers
--timeout type=TSet the timeout for type (accepts Go’s duration format, eg, 40s, 1h20m, 2h, 4h30m30s). • type=**session**, the timeout T is applied to the entire test session. • type=**multiplier**, the multiplier T is applied to each test’s timeout. • type=*****, the timeout T is applied to all test cases. • type=**batch**, choices for T are ‘conservative’ to use a conservative estimate for batch timeouts (queue times) or ‘aggressive’. Otherwise, a timeout of T is applied to tests having keyword type. For example, –timeout fast=2 would apply a timeout of 2 seconds to all tests having the ‘fast’ keyword; common types are fast, long, default, and ctest.
--no-incrementalDon’t use the .canary_cache to infer testcase runtimes
-h, --helpShow this help message and exit.
See canary help –pathspec for help on the path specification