Commit 5d3a5348 authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

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: default avatarAnas Nashif <anas.nashif@intel.com>
parent 5ba7eed2
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -9,5 +9,25 @@ common:
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"
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@ tests:
  test:
    tags: apps
    harness: console
    # We do not handle segfaults here
    platform_exclude: native_posix
  test_stack_guard:
    arch_whitelist: arm
    extra_args: CONF_FILE=prj_stack_guard.conf
+6 −0
Original line number Diff line number Diff line
@@ -2,3 +2,9 @@ tests:
  test:
    tags: samples
    harness: console
    harness_config:
      type: multi_line
      regex:
        - "\\[syslogger\\] \\[ERR\\] (.*): SYS LOG ERR is ACTIVE"
        - "\\[syslogger\\] \\[WRN\\] (.*): SYS LOG WRN is ACTIVE"
        - "\\[syslogger\\] \\[INF\\] (.*): SYS LOG INF is ACTIVE"