feat: add a simple test to generate a EL3 panic
Add a simple patch which would generate a el3 panic from bl31_main
Cleanup and use crash-report tf-a config for bl31_main panic scenario.
Change-Id: Id9870210f3aef0886cd82e7ae5e0e14e82167367
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
diff --git a/expect/bl31_main_panic.exp b/expect/bl31_main_panic.exp
new file mode 100644
index 0000000..4b6a95d
--- /dev/null
+++ b/expect/bl31_main_panic.exp
@@ -0,0 +1,17 @@
+#
+# Copyright (c) 2023, 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 "BACKTRACE: START: bl31_main"
+expect_string "BACKTRACE: END: bl31_main"
+expect_string "PANIC in EL3."
+
+expect_string "x30"
+source [file join [file dirname [info script]] exception_gp_regs.inc]
+source [file join [file dirname [info script]] exception_sys_regs.inc]