blob: 6d5d0de0d1fa17bde7723578e2275845b2768b1e [file] [log] [blame]
Chris Kayd9e8d462022-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 Kayc4f00722022-11-15 12:24:24 +00007message "test completed, waiting for EOF or timeout"
Chris Kayd9e8d462022-11-15 11:15:07 +00008
9expect {
10 "Exiting tests." {
Chris Kayc4f00722022-11-15 12:24:24 +000011 message "expected hang, found TFTF completion"
Chris Kayd9e8d462022-11-15 11:15:07 +000012 }
13
14 "PANIC in EL3." {
Chris Kayc4f00722022-11-15 12:24:24 +000015 message "expected hang, found crash dump"
Chris Kayd9e8d462022-11-15 11:15:07 +000016 }
17
18 "Unhandled Exception in EL3." {
Chris Kayc4f00722022-11-15 12:24:24 +000019 message "expected hang, found crash dump"
Chris Kayd9e8d462022-11-15 11:15:07 +000020 }
21
22 "Unhandled Exception from EL" {
Chris Kayc4f00722022-11-15 12:24:24 +000023 message "expected hang, found crash dump"
Chris Kayd9e8d462022-11-15 11:15:07 +000024 }
25
26 eof {
Chris Kayc4f00722022-11-15 12:24:24 +000027 message "stream closed as expected, exiting"
Chris Kayd9e8d462022-11-15 11:15:07 +000028 exit 0
29 }
30
31 timeout {
Chris Kayc4f00722022-11-15 12:24:24 +000032 message "timeout triggered as expected, exiting"
Chris Kayd9e8d462022-11-15 11:15:07 +000033 exit_uart 0
34 }
35}
36
37exit_uart -1