Shriram K | c4e77a2 | 2022-09-27 17:25:55 +0530 | [diff] [blame] | 1 | # |
| 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 | |
| 9 | source [file join [file dirname [info script]] handle-arguments.inc] |
| 10 | |
Chris Kay | c4f0072 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 11 | expect_string "Booting trusted firmware test framework" "TFTF is booting" |
Shriram K | c4e77a2 | 2022-09-27 17:25:55 +0530 | [diff] [blame] | 12 | expect_re "Running at NS-EL(1|2)" |
| 13 | |
| 14 | expect { |
| 15 | "Tests Failed : 0" { |
Chris Kay | c4f0072 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 16 | expect_string "Exiting tests." "all TFTF tests passed" |
Shriram K | c4e77a2 | 2022-09-27 17:25:55 +0530 | [diff] [blame] | 17 | exit_uart 0 |
| 18 | } |
| 19 | "Tests Passed : 0" { |
Chris Kay | c4f0072 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 20 | expect_string "Exiting tests." "no TFTF tests passed" |
Shriram K | c4e77a2 | 2022-09-27 17:25:55 +0530 | [diff] [blame] | 21 | exit_uart -1 |
| 22 | } |
| 23 | -re "Tests Failed : \[^0]" { |
Chris Kay | c4f0072 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 24 | expect_string "Exiting tests." "one or more TFTF tests failed" |
Shriram K | c4e77a2 | 2022-09-27 17:25:55 +0530 | [diff] [blame] | 25 | exit_uart -1 |
| 26 | } |
Shriram K | c4e77a2 | 2022-09-27 17:25:55 +0530 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | exit_uart -1 |