1# Copyright Meta Platforms, Inc. and its affiliates.
2# SPDX-License-Identifier: Apache-2.0
3
4common:
5  tags:
6    - coredump
7  ignore_faults: true
8  ignore_qemu_crash: true
9tests:
10  debug.coredump.drivers.api.qemu_riscv32:
11    filter: CONFIG_ARCH_SUPPORTS_COREDUMP
12    platform_allow: qemu_riscv32
13    harness: console
14    harness_config:
15      type: multi_line
16      # Verify core dump contains test values saved in memory
17      regex:
18        - "E: #CD:BEGIN#"
19        - "E: #CD:5([aA])45([0-9a-fA-F]+)"
20        - "E: #CD:4([dD])([0-9a-fA-F]+)"
21        - "E: #CD:4([dD])([0-9a-fA-F]+)"
22        - "E: #CD:4([dD])([0-9a-fA-F]+)"
23        - "E: #CD:12121212"
24        - "E: #CD:4([dD])([0-9a-fA-F]+)"
25        - "E: #CD:34343434"
26        - "E: #CD:4([dD])([0-9a-fA-F]+)"
27        - "E: #CD:ababababcdcdcdcdefefefef"
28        - "E: #CD:4([dD])([0-9a-fA-F]+)"
29        - "E: #CD:565656567878787890909090"
30        - "E: #CD:4([dD])([0-9a-fA-F]+)"
31        - "E: #CD:babababa"
32        - "E: #CD:END#"
33  debug.coredump.drivers.api:
34    filter: CONFIG_ARCH_SUPPORTS_COREDUMP
35    platform_exclude: qemu_riscv32
36    arch_exclude:
37      - posix
38    harness: console
39    integration_platforms:
40      - qemu_x86
41    harness_config:
42      type: multi_line
43      # Verify core dump contains test values saved in memory
44      regex:
45        - "E: #CD:BEGIN#"
46        - "E: #CD:5([aA])45([0-9a-fA-F]+)"
47        - "E: #CD:4([dD])([0-9a-fA-F]+)"
48        - "E: #CD:4([dD])([0-9a-fA-F]+)"
49        - "E: #CD:4([dD])([0-9a-fA-F]+)"
50        - "E: #CD:ababababcdcdcdcdefefefef"
51        - "E: #CD:4([dD])([0-9a-fA-F]+)"
52        - "E: #CD:babababa"
53        - "E: #CD:END#"
54