feat(sgi): add platform specific tftf expect script and run_config
Neoverse reference design platforms use secure uart for trusted firmware
logs and non-secure uart for tftf logs. Hence, add a new tftf expect
script that searches for tftf logs without expecting trusted firmware
logs on the same uart. Additionally, add a tftf run_config that uses
uart1 as the primary uart port and the newly added tftf expect script.
Also, update the tftf run_config used in group/tf-l3-boot-tests-css for
rdn1edge and sgi575 platforms to reflect the above mentioned changes.
Signed-off-by: Shriram K <shriram.k@arm.com>
Change-Id: If28a4a213e6b60c60359b6e1d1990151a38d4c7e
diff --git a/expect/tftf-sgi.exp b/expect/tftf-sgi.exp
new file mode 100644
index 0000000..56c28b8
--- /dev/null
+++ b/expect/tftf-sgi.exp
@@ -0,0 +1,32 @@
+#
+# Copyright (c) 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" "Starting TFTF"
+expect_re "Running at NS-EL(1|2)"
+
+expect {
+ "Tests Failed : 0" {
+ expect_string "Exiting tests." "<<TFTF Success>>"
+ exit_uart 0
+ }
+ "Tests Passed : 0" {
+ expect_string "Exiting tests." "<<TFTF no tests passed>>"
+ exit_uart -1
+ }
+ -re "Tests Failed : \[^0]" {
+ expect_string "Exiting tests." "<<TFTF Fail>>"
+ exit_uart -1
+ }
+ timeout {
+ exit_timeout
+ }
+}
+
+exit_uart -1