blob: b47d1c3391e3ad03bc853284290e5d3560b059e1 [file] [log] [blame]
Govindraj Raja67501732023-09-22 16:27:06 -05001#
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
9expect_string "Booting trusted firmware test framework" "TFTF is booting"
10
11expect_re "Running at NS-EL(1|2)"
12
Harrison Mutaifbadee42025-02-18 10:47:48 +000013if {[info exists ::env(measured_boot)]} {
14 capture_and_compare_log tftf_event_log "TEST COMPLETE" tfa_event_log
15}
16
Govindraj Raja67501732023-09-22 16:27:06 -050017expect {
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}