blob: 38536d3a8fb77e3432547d551181eb8628150f5c [file] [log] [blame]
Madhukar Pappireddyc683cf62021-11-01 14:38:32 -05001#
2# Copyright (c) 2021 Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Expect script for Trusted Firmware Test Framework
7#
8
9source [file join [file dirname [info script]] handle-arguments.inc]
10
11expect_string "Booting trusted firmware test framework" "Starting TFTF"
12expect_re "Running at NS-EL(1|2)"
13
14expect {
15 "Tests Failed : 0" {
16 expect_string "Exiting tests." "<<TFTF Success>>"
17 exit_uart 0
18 }
19 "Tests Passed : 0" {
20 puts "<<TFTF no tests passed>>"
21 exit_uart -1
22 }
23 -re "Tests Failed : \[^0]" {
24 puts "<<TFTF Fail>>"
25 exit_uart -1
26 }
27 timeout {
28 exit_timeout
29 }
30}
31
32exit_uart -1