Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 2 | # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 6 | # Expect script for Trusted Firmware Test Framework |
| 7 | # |
| 8 | |
| 9 | source [file join [file dirname [info script]] handle-arguments.inc] |
| 10 | |
| 11 | expect { |
| 12 | "Initial lookup level: 3" { |
| 13 | puts "<<Using TTST, but it shouldn't be using it>>" |
| 14 | exit_uart -1 |
| 15 | } |
| 16 | "Tests Failed : 0" { |
| 17 | puts "<<TFTF Success>>" |
| 18 | exit_uart 0 |
| 19 | } |
| 20 | "Tests Passed : 0" { |
| 21 | puts "<<TFTF no tests passed>>" |
| 22 | exit_uart -1 |
| 23 | } |
| 24 | -re "Tests Failed : \[^0]" { |
| 25 | puts "<<TFTF Fail>>" |
| 26 | exit_uart -1 |
| 27 | } |
| 28 | timeout { |
| 29 | exit_timeout |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | exit_uart -1 |