Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # |
| 8 | # Expect script for Trusted Firmware Test Framework |
| 9 | # |
| 10 | |
| 11 | source [file join [file dirname [info script]] handle-arguments.inc] |
| 12 | |
| 13 | expect_string "Booting trusted firmware test framework" "Starting TFTF" |
| 14 | expect { |
| 15 | "Tests Failed : 0" { |
| 16 | puts "<<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 | |
| 32 | exit_uart -1 |