blob: bcc04fc807662e0690c8a04abf65dbc740aee2c3 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05002# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
Fathi Boudra422bf772019-12-02 11:10:16 +02006# Expect script for Trusted Firmware Test Framework
7#
8
9source [file join [file dirname [info script]] handle-arguments.inc]
10
Zelalemfd529af2020-08-04 15:09:53 -050011source [file join [file dirname [info script]] trusted-firmware.inc]
12
Fathi Boudra422bf772019-12-02 11:10:16 +020013expect_string "Booting trusted firmware test framework" "Starting TFTF"
Zelalemfd529af2020-08-04 15:09:53 -050014expect_re "Running at NS-EL(1|2)"
15
Fathi Boudra422bf772019-12-02 11:10:16 +020016expect {
17 "Tests Failed : 0" {
Madhukar Pappireddya5dcbc22020-12-29 15:01:31 -060018 expect_string "Exiting tests." "<<TFTF Success>>"
Fathi Boudra422bf772019-12-02 11:10:16 +020019 exit_uart 0
20 }
21 "Tests Passed : 0" {
22 puts "<<TFTF no tests passed>>"
23 exit_uart -1
24 }
25 -re "Tests Failed : \[^0]" {
26 puts "<<TFTF Fail>>"
27 exit_uart -1
28 }
29 timeout {
30 exit_timeout
31 }
32}
33
34exit_uart -1