zephyr/samples/drivers/crypto/sample.yaml
Anas Nashif 5d3a534807 samples: use console harness for some samples
The output of those samples can be parsed and verified by sanitycheck,
so lets use the console harness for this.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-01-25 04:45:35 +05:30

34 lines
1.2 KiB
YAML

sample:
description: An example to illustrate the usage of
crypto APIs
name: Crypto APIs
common:
tags: crypto
harness: console
min_ram: 16
tests:
test-mbedtls:
extra_args: CONF_FILE=prj_mtls_shim.conf
harness_config:
type: multi_line
regex:
- "\\[general\\] \\[INF\\] .*: Cipher Sample"
- "\\[general\\] \\[INF\\] ccm_mode: CCM Mode"
- "\\[general\\] \\[INF\\] ccm_mode: CCM mode ENCRYPT - Match"
- "\\[general\\] \\[INF\\] ccm_mode: CCM mode DECRYPT - Match"
test-micro:
tags: micro
harness_config:
type: multi_line
regex:
- "\\[general\\] \\[INF\\] .*: Cipher Sample"
- "\\[general\\] \\[INF\\] cbc_mode: CBC Mode"
- "\\[general\\] \\[INF\\] cbc_mode: CBC mode ENCRYPT - Match"
- "\\[general\\] \\[INF\\] cbc_mode: CBC mode DECRYPT - Match"
- "\\[general\\] \\[INF\\] ctr_mode: CTR Mode"
- "\\[general\\] \\[INF\\] ctr_mode: CTR mode ENCRYPT - Match"
- "\\[general\\] \\[INF\\] ctr_mode: CTR mode DECRYPT - Match"
- "\\[general\\] \\[INF\\] ccm_mode: CCM Mode"
- "\\[general\\] \\[INF\\] ccm_mode: CCM mode ENCRYPT - Match"
- "\\[general\\] \\[INF\\] ccm_mode: CCM mode DECRYPT - Match"