blob: 161c171ca186da858f8a750419f16488654019db [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Chris Kay581893e2022-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
Chris Kayc4f00722022-11-15 12:24:24 +000013expect_string "Booting trusted firmware test framework" "TFTF is booting"
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" {
Chris Kayc4f00722022-11-15 12:24:24 +000018 expect_string "Exiting tests." "all TFTF tests passed"
Fathi Boudra422bf772019-12-02 11:10:16 +020019 exit_uart 0
20 }
21 "Tests Passed : 0" {
Chris Kayc4f00722022-11-15 12:24:24 +000022 expect_string "Exiting tests." "no TFTF tests passed"
Fathi Boudra422bf772019-12-02 11:10:16 +020023 exit_uart -1
24 }
25 -re "Tests Failed : \[^0]" {
Chris Kayc4f00722022-11-15 12:24:24 +000026 expect_string "Exiting tests." "one or more TFTF tests failed"
Fathi Boudra422bf772019-12-02 11:10:16 +020027 exit_uart -1
28 }
Fathi Boudra422bf772019-12-02 11:10:16 +020029}
30
31exit_uart -1