Execute test cases defined in package configuration files.
Test cases are defined in package configuration files under the "tests" section:
{
"tests": [
{
"name": "test name",
"command": "command",
"args": ["arg1", "arg2"],
"pattern": "regex",
"ignore_exit_code": false
}
]
}
Test case fields:
name— Optional, defaults to “test #N”command— Required, command to executeargs— Optional, command argumentspattern— Optional, regex pattern to match in outputignore_exit_code— Optional, ignore command exit code
Examples:
- Test specified packages:
cbp build test zlib bzip2