blob: bc40b17622eaf02414c964d649aba17a5d2f5d5b [file] [log] [blame]
Sandrine Bailleux57bffcd2020-08-04 14:46:06 +02001#
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7source [file join [file dirname [info script]] handle-arguments.inc]
8
9expect {
Olivier Deprezc561e6e2020-07-30 10:24:47 +020010 "Booting Primary Cactus Secure Partition" {
Sandrine Bailleux57bffcd2020-08-04 14:46:06 +020011 puts "<<SP entry>>"
12 }
13 timeout {
14 exit_uart -1
15 }
16}
17
18expect {
Olivier Deprezc561e6e2020-07-30 10:24:47 +020019 "FFA_VERSION returned 1.0" {
Madhukar Pappireddy5bc6cdd2021-01-28 14:45:08 -060020 puts "<<SP checked FF-A version>>"
Sandrine Bailleux57bffcd2020-08-04 14:46:06 +020021 }
22 timeout {
23 exit_uart -1
24 }
25}
26
Madhukar Pappireddy5bc6cdd2021-01-28 14:45:08 -060027# UART2 captures prints from SP0. If we exit from here, expect script will stop
28# capturing the output from telnet process spawned for tracking uart2 console.
29# Hence, we need to hold the uart such that the expect script captures the
30# outputs to uart log. We do this by configuring timeout to never expire and
31# expecting an unexpected string such as "FOOBAR". Refer uart-hold.inc
32
33source [file join [file dirname [info script]] uart-hold.inc]