blob: 56c28b866591d5ad310521cde111a565f37be5c2 [file] [log] [blame]
Shriram Kc4e77a22022-09-27 17:25:55 +05301#
2# Copyright (c) 2022 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 expect_string "Exiting tests." "<<TFTF no tests passed>>"
21 exit_uart -1
22 }
23 -re "Tests Failed : \[^0]" {
24 expect_string "Exiting tests." "<<TFTF Fail>>"
25 exit_uart -1
26 }
27 timeout {
28 exit_timeout
29 }
30}
31
32exit_uart -1