Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Chris Kay | 3d2ae33 | 2022-11-15 11:32:03 +0000 | [diff] [blame^] | 2 | # Copyright (c) 2019-2022 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 | |
Zelalem | fd529af | 2020-08-04 15:09:53 -0500 | [diff] [blame] | 11 | source [file join [file dirname [info script]] trusted-firmware.inc] |
| 12 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 13 | expect_string "Booting trusted firmware test framework" "Starting TFTF" |
Zelalem | fd529af | 2020-08-04 15:09:53 -0500 | [diff] [blame] | 14 | expect_re "Running at NS-EL(1|2)" |
| 15 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 16 | expect { |
| 17 | "Tests Failed : 0" { |
Madhukar Pappireddy | a5dcbc2 | 2020-12-29 15:01:31 -0600 | [diff] [blame] | 18 | expect_string "Exiting tests." "<<TFTF Success>>" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 19 | exit_uart 0 |
| 20 | } |
| 21 | "Tests Passed : 0" { |
Nathan Dunne | 27d11c6 | 2021-11-11 13:31:47 +0000 | [diff] [blame] | 22 | expect_string "Exiting tests." "<<TFTF no tests passed>>" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 23 | exit_uart -1 |
| 24 | } |
| 25 | -re "Tests Failed : \[^0]" { |
Nathan Dunne | 27d11c6 | 2021-11-11 13:31:47 +0000 | [diff] [blame] | 26 | expect_string "Exiting tests." "<<TFTF Fail>>" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 27 | exit_uart -1 |
| 28 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | exit_uart -1 |