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/run_config/fvp-aemv8a.runtime_bl31_main_panic b/run_config/fvp-aemv8a.runtime_bl31_main_panic
new file mode 100644
index 0000000..ff324cd
--- /dev/null
+++ b/run_config/fvp-aemv8a.runtime_bl31_main_panic
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2023, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+pre_tf_build() {
+ # Apply fault injection patches
+ apply_tf_patch "fault_inject/induce_bl31_main_panic.patch"
+}
+
+generate_lava_job() {
+ local model="base-aemv8a"
+
+ uart="0" timeout="60" file="bl31_boot.exp" track_expect
+ uart="1" timeout="60" file="bl31_main_panic.exp" set_primary="1" track_expect
+
+ model="$model" gen_model_params
+ model="$model" gen_fvp_yaml
+}