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    harness: console
37    integration_platforms:
38      - qemu_x86
39    harness_config:
40      type: multi_line
41      # Verify core dump contains test values saved in memory
42      regex:
43        - "E: #CD:BEGIN#"
44        - "E: #CD:5([aA])45([0-9a-fA-F]+)"
45        - "E: #CD:4([dD])([0-9a-fA-F]+)"
46        - "E: #CD:4([dD])([0-9a-fA-F]+)"
47        - "E: #CD:4([dD])([0-9a-fA-F]+)"
48        - "E: #CD:ababababcdcdcdcdefefefef"
49        - "E: #CD:4([dD])([0-9a-fA-F]+)"
50        - "E: #CD:babababa"
51        - "E: #CD:END#"
52