blob: 41e15b1b1717b4bdf85dfa078561f359d8e13e11 [file] [log] [blame]
#
# Copyright (c) 2021-2022 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Expect script for Trusted Firmware Test Framework
#
source [file join [file dirname [info script]] handle-arguments.inc]
expect_string "Booting trusted firmware test framework" "TFTF is booting"
expect_re "Running at NS-EL(1|2)"
expect {
"Tests Failed : 0" {
expect_string "Exiting tests." "all TFTF tests passed"
exit_uart 0
}
"Tests Passed : 0" {
expect_string "Exiting tests." "no TFTF tests passed"
exit_uart -1
}
-re "Tests Failed : \[^0]" {
expect_string "Exiting tests." "one or more TFTF tests failed"
exit_uart -1
}
}
exit_uart -1