blob: 80390eee42fcb951b6de5665af7ef6bd275374f8 [file] [log] [blame]
Shriram Kc4e77a22022-09-27 17:25:55 +05301#
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
9source [file join [file dirname [info script]] handle-arguments.inc]
10
Chris Kayc4f00722022-11-15 12:24:24 +000011expect_string "Booting trusted firmware test framework" "TFTF is booting"
Shriram Kc4e77a22022-09-27 17:25:55 +053012expect_re "Running at NS-EL(1|2)"
13
14expect {
15 "Tests Failed : 0" {
Chris Kayc4f00722022-11-15 12:24:24 +000016 expect_string "Exiting tests." "all TFTF tests passed"
Shriram Kc4e77a22022-09-27 17:25:55 +053017 exit_uart 0
18 }
19 "Tests Passed : 0" {
Chris Kayc4f00722022-11-15 12:24:24 +000020 expect_string "Exiting tests." "no TFTF tests passed"
Shriram Kc4e77a22022-09-27 17:25:55 +053021 exit_uart -1
22 }
23 -re "Tests Failed : \[^0]" {
Chris Kayc4f00722022-11-15 12:24:24 +000024 expect_string "Exiting tests." "one or more TFTF tests failed"
Shriram Kc4e77a22022-09-27 17:25:55 +053025 exit_uart -1
26 }
Shriram Kc4e77a22022-09-27 17:25:55 +053027}
28
29exit_uart -1