Govindraj Raja | 6750173 | 2023-09-22 16:27:06 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2023 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 | expect_string "Booting trusted firmware test framework" "TFTF is booting" |
| 10 | |
| 11 | expect_re "Running at NS-EL(1|2)" |
| 12 | |
Harrison Mutai | fbadee4 | 2025-02-18 10:47:48 +0000 | [diff] [blame] | 13 | if {[info exists ::env(measured_boot)]} { |
| 14 | capture_and_compare_log tftf_event_log "TEST COMPLETE" tfa_event_log |
| 15 | } |
| 16 | |
Govindraj Raja | 6750173 | 2023-09-22 16:27:06 -0500 | [diff] [blame] | 17 | expect { |
| 18 | "Tests Failed : 0" { |
| 19 | expect_string "Exiting tests." "all TFTF tests passed" |
| 20 | exit_uart 0 |
| 21 | } |
| 22 | "Tests Passed : 0" { |
| 23 | expect_string "Exiting tests." "no TFTF tests passed" |
| 24 | exit_uart -1 |
| 25 | } |
| 26 | -re "Tests Failed : \[^0]" { |
| 27 | expect_string "Exiting tests." "one or more TFTF tests failed" |
| 28 | exit_uart -1 |
| 29 | } |
| 30 | } |