blob: c8d9ac10b79f41f4b5ecccccb9737b0f62d25c5c [file] [log] [blame]
Chris Kay38c68962022-11-15 11:15:07 +00001#
2# Copyright (c) 2022, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Chris Kay78ea2c32022-11-15 12:24:24 +00007message "test completed, waiting for EOF or timeout"
Chris Kay38c68962022-11-15 11:15:07 +00008
9expect {
10 "Exiting tests." {
Chris Kay78ea2c32022-11-15 12:24:24 +000011 message "expected hang, found TFTF completion"
Chris Kay38c68962022-11-15 11:15:07 +000012 }
13
14 "PANIC in EL3." {
Chris Kay78ea2c32022-11-15 12:24:24 +000015 message "expected hang, found crash dump"
Chris Kay38c68962022-11-15 11:15:07 +000016 }
17
18 "Unhandled Exception in EL3." {
Chris Kay78ea2c32022-11-15 12:24:24 +000019 message "expected hang, found crash dump"
Chris Kay38c68962022-11-15 11:15:07 +000020 }
21
Govindraj Raja7e5a8892023-01-24 15:04:39 +000022 "Unhandled Exception from lower EL" {
Chris Kay78ea2c32022-11-15 12:24:24 +000023 message "expected hang, found crash dump"
Chris Kay38c68962022-11-15 11:15:07 +000024 }
25
26 eof {
Chris Kay78ea2c32022-11-15 12:24:24 +000027 message "stream closed as expected, exiting"
Chris Kay38c68962022-11-15 11:15:07 +000028 exit 0
29 }
30
31 timeout {
Chris Kay78ea2c32022-11-15 12:24:24 +000032 message "timeout triggered as expected, exiting"
Chris Kay38c68962022-11-15 11:15:07 +000033 exit_uart 0
34 }
35}
36
37exit_uart -1