blob: 2b671fdf589b8f072ad3568b08ef47d7baa65f2e [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
13expect {
14 "Tests Failed : 0" {
15 expect_string "Exiting tests." "all TFTF tests passed"
16 exit_uart 0
17 }
18 "Tests Passed : 0" {
19 expect_string "Exiting tests." "no TFTF tests passed"
20 exit_uart -1
21 }
22 -re "Tests Failed : \[^0]" {
23 expect_string "Exiting tests." "one or more TFTF tests failed"
24 exit_uart -1
25 }
26}