blob: 2b1ed24dc78bc8b6d3e4b599df4ac44c5d69e2ba [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Chris Kay3d2ae332022-11-15 11:32:03 +00002# Copyright (c) 2019-2022 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" {
Nathan Dunne27d11c62021-11-11 13:31:47 +000022 expect_string "Exiting tests." "<<TFTF no tests passed>>"
Fathi Boudra422bf772019-12-02 11:10:16 +020023 exit_uart -1
24 }
25 -re "Tests Failed : \[^0]" {
Nathan Dunne27d11c62021-11-11 13:31:47 +000026 expect_string "Exiting tests." "<<TFTF Fail>>"
Fathi Boudra422bf772019-12-02 11:10:16 +020027 exit_uart -1
28 }
Fathi Boudra422bf772019-12-02 11:10:16 +020029}
30
31exit_uart -1